A series of utilities to enable/encourage systematised web design/development.
AREA 17 strongly believes in design systems and then using these systems to build products for both ourselves and our clients. Utility classes are thus a natural fit for us, and so we "systematised" the utilities to tie closer to our design methodology.
We also wanted to include a few utility classes that would simplify some common styling requirements.
What this isn't is a replacement or alternative to Tailwind - which is a utility CSS class library. These SCSS utilities are intended to help you write SCSS and use your responsive/grid system.
Setup
- Required: Setup - a walk through of the setup
- Optional: CSS-Class-Generation - configure which CSS classes are generated
Featured utility classes
Layout
- container - centered column container
- colspan - generates design column spanning classes (for flex/float/other)
- Grid Columns - generates CSS Grid design column spanning classes
- Spacing - generates spacing utilities for gutters and responsive spacing groups
Typography
- Typography - generates responsive typography classes
Color
- Color - generates colour variables and utility classes
Dev Tools
- Dev Tools - generates colour variables and utility classes
Other useful utility classes
- visually-hidden/sr-only - visually hidden screen reader only text class
- float-clear - float clearing utility
- background-fill - draws a full width background color block
Featured utility mixins and functions
Layout
@mixinbreakpoint - inserts a media query@mixincontainer - centered column container@mixincolspan - mixin to add a design column spanningwidthto an element@functioncolspan - function that returns a design column spanning CSScalc()@functionrem-calc - convertspxandemtorem
Typography
@mixintypeset - adds responsive type set to an element
Other useful utility mixins and functions
@mixinplaceholder - form input placeholder styling@mixinvisually-hidden - visually hidden screen reader only text class@mixinfloat-clear - float clearing utility@mixinbackground-fill - draws a full width background color block@mixinkeyline-full - draws a keyline the full viewport width@mixinfont-smoothing - controls the anti-aliasing of text@functionstrip-units - removes unites from a CSS distance value@functionstring-replace - replaces item in string with new string@functionmap-deep-get - returns item from nested map
Internal mixins and functions
@mixinprocessStructure@mixinprocessColors-
@mixinprocessTypography@mixintypeStyles@mixintypeStyle@mixintypeAttribute
-
@mixinprocessGrid@mixinsetupDevTools@mixinsetColspan@mixinsetBreakpointColspan@mixinsetGridCol@mixinsetBreakpointGridCol@mixinsetStartEndCColumn@mixinsetBreakpointStartEndCColumn
@mixinprocessSpacing@mixinsetupDevTools
@functionget-breakpoint-directions@functionget-media@functionprocess-breakpoints@functionget-smallest-breakpoint@functionisColorVariable@functionget-max