The Laws of Sparse CSS
The Primary Laws
- All Sparse CSS Laws must adhere to the Laws defined in
Sparse.md.No Exceptions. - All CSS specific Sparse Laws must be specified within this file.
No Exceptions.
CSS Specific Laws
- There are no more than 5 of any variable type.
No Exceptions. - There are no hardcoded numeric values - only CSS variables.
No Exceptions. - There are no ems - only rems.
No Exceptions. - There are no more than 3 distinct ‘types’ of a class.
No Exceptions. - There are 4 percentages: 25%, 50%, 75%, 100%.
No Exceptions. - There are 2 colors: ‘copper’ and ‘danger’.
No Exceptions. - There may be no more than 2 classes applied to any element.
No Exceptions. - There is only one animation speed.
No Exceptions. - There is only one border radius.
No Exceptions. - No box shadows.
No Exceptions.
No Exceptions.