A mixture of SASS variables, CSS variables, and SASS maps are used throughout the site.
View variables in the 3-variables folder.
Mixin and function information can be found in the 2-mixins-and-functions folder.
SASS variables and maps
border variables
variables for the default border style
breakpoints map & variables
$breakpoints map: list of the site's most used breakpoints
user-friendly variables that utilize the breakpoint map to spell out which breakpoint it is (mobile, tablet, etc.)
color map, color theme maps, & variables
Sass variables of the W&M brand colors in equal light to dark values. This enables easy text contrast checks as the numbers have to be at least 400 apart to pass the check.
$colors map: uses the color variables and outputs colors using categories based on primary, secondary, etc.
variables of colors for specific elements in the site
$color-themes map: lists colors for all elements in each theme.
$button-color-themes map: lists colors for all elements in each button theme.
html element style variables
variables for heading and listing font styles (should probably move this into the font file
font maps & variables
variables for default text size and line heights
$fonts map: contains the font families and font weights
spacing map & variables
$kspaces (Karls' spaces) map: list of standard sizes used frequently in the site
variables for various element margins
width & height variables
size variables for page structure elements (e.g. content are, page nav, etc.)
z-index variables
variables for things that use z-index. Not used as consistently as I would like.
SASS functions
Colors
outputs color from color map var(--color-link-base)
Fonts
outputs font from font map font(text-sans)
px-to-rm
converts pixels to rem toRem(30)
Spacing
outputs value from spacing map: kspace(sm)
SASS mixins
banner heights
outputs heights for the various banner sizes using SASS variables; also outputs the banner gradient
breakpoints
outputs a media query using breakpoints map. Can be used anywhere in the style sheet (it does not need to go at the bottom, it can go in the element styles)
button-styles
outputs styles for the various buttons
[[ remove center center ]]
color-theme
outputs CSS variables for each color theme using the color theme maps
fluid-anything
outputs a fluid value (with limited success on min and max values)
link-styles
outputs the various link styles
menu-open-closed-styles
outputs the mega menu styles for the open/closed states