govuk-frontend-rounded

1.2.1 • Public • Published

govuk-frontend-rounded

npm version

Rounded corners for GOV.UK Frontend, useful when branding the GOV.UK Design System.

⚠️ Do not use for GOV.UK services. You may fail a Service Assessment. Only for use in branded projects. ⚠️

This project is compatible and tested with version 4.x of GOV.UK Frontend.

Install

  1. Install GOV.UK Frontend and GOV.UK Frontend Rounded
npm install govuk-frontend govuk-frontend-rounded
  1. Import into your project
// Import GOV.UK Frontend
@import "node_modules/govuk-frontend/govuk/all.scss";

// Configure how round components should be.
$govuk-frontend-rounded: 10px;
@import "node_modules/govuk-frontend-rounded/all.scss";

// The rest of your SCSS...

$govuk-frontended-rounded must be in pixels and can only be between 2px and 20px.

Screenshots

Before

Button and Text input with square corners

After

Button and Text input with rounded corners

See all rounded components.

/govuk-frontend-rounded/

    Package Sidebar

    Install

    npm i govuk-frontend-rounded

    Weekly Downloads

    38

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    32.7 kB

    Total Files

    23

    Last publish

    Collaborators

    • nickcolley