govuk-frontend-rounded
v1.2.1
Published
Rounded corners for GOV.UK Frontend, useful when branding the GOV.UK Design System
Downloads
146
Readme
govuk-frontend-rounded
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
- Install GOV.UK Frontend and GOV.UK Frontend Rounded
npm install govuk-frontend govuk-frontend-rounded
- 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.