Skip to main content
US Army Corps of EngineersInstitute for Water Resources, Risk Management Center

Color and Token System

The DST uses a structured token system built on Tailwind CSS custom properties. All colors are defined as global tokens in frontend/src/app/index.css and consumed via Tailwind classes.


Color Palette

The dst-steel-* family is the application's primary accent color. Use it for buttons, active states, links, and indicators.

TokenHexUsage
dst-steel-lightest#e4edf3Cell highlights, tinted backgrounds, header backgrounds
dst-steel-light#7fb5d0Icons on dark surfaces, subtle accents, focus rings
dst-steel#4a7c9bPrimary accent — Section accent bars, buttons, active borders, indicators
dst-steel-dark#3a6a88Active link text, hover states, tab labels
dst-steel-darkest#2a5068Deep hover, pressed states

Token Architecture Rules

  1. Global tokens in index.css define the palette — they describe color values, not component behavior.
  2. Component-level constants at the top of each file map global tokens to component-specific roles using Tailwind class names.
  3. No arbitrary hex values in components. If you're typing # inside a component, it should become a Tailwind class or a new global token. Seeing text-[#94a3b8] in a component means there's a gap in the token system that should be filled.
  4. Nav-specific tokens do not belong in index.css. Tab hover backgrounds, icon colors, and active states are component concerns owned by the component's constants block.