govau / design-system-components

🛠 Component code and tests for the Australian Government design system
https://auds.service.gov.au
MIT License
739 stars 110 forks source link

Add !default to all variables #893

Open maedi opened 4 years ago

maedi commented 4 years ago

Feature Request

Problem

On multiple occasions we have needed to override variables such as:

$AU-colordark-background-alt:       darken( $AU-colordark-background, 8% );

We can't easily do so because they have no !default flag. In our use case we need 4 unique variants, not just Standard and Dark, but Standard-Alt and Dark-Alt to be customisable variants.

Solution

It would be nice if every variable had a !default flag to avoid hacky methods of overriding them.