tokens.css View source
Foundation

Color

Three tiers: primitive ramps (the raw values), semantic aliases (brand, surface, feedback), and component tokens (button.brand.bg). Components reference semantic tokens so re-themes are a primitive-only swap.

Brand & accent

The two anchor colors of USA Clean. Brand blue is used for surfaces, links, focus states; accent gold is reserved for the highest-emphasis CTA.

Brand · default

--caster-color-brand-default

#0021a6 · blue.700

Brand · hover

--caster-color-brand-hover

#001580 · blue.800

Brand · deep

--caster-color-brand-deep

#0d1a4d · blue.900

Brand · subtle

--caster-color-brand-subtle

#eef1fa · blue.50

Accent · default

--caster-color-accent-default

#efaa22 · gold.500

Accent · hover

--caster-color-accent-hover

#d8951a · gold.600

Accent · deep

--caster-color-accent-deep

#8b5a00 · gold.700 · WCAG AA

Accent · subtle

--caster-color-accent-subtle

#fff8e6 · gold.50

Text

Six levels of text emphasis. default is the body color; inverted is for text over dark surfaces.

TokenHexSample
--caster-color-text-default#131313The brushless drive motor pairs with most Tennant T7 chassis.
--caster-color-text-secondary#222222The brushless drive motor pairs with most Tennant T7 chassis.
--caster-color-text-subtle#5d5d5dThe brushless drive motor pairs with most Tennant T7 chassis.
--caster-color-text-muted#757575The brushless drive motor pairs with most Tennant T7 chassis.
--caster-color-text-brand#0021a6The brushless drive motor pairs with most Tennant T7 chassis.
--caster-color-text-inverted#ffffffThe brushless drive motor pairs with most Tennant T7 chassis.

Surface

Background surfaces. Most pages use default; cards on white use subtle; the announcement bar and footer use inverted.

Surface · default

--caster-color-surface-default

#ffffff

Surface · subtle

--caster-color-surface-subtle

#f5f7fa

Surface · muted

--caster-color-surface-muted

#ececec

Surface · search

--caster-color-surface-search

#f4f5f7

Surface · dark

--caster-color-surface-dark

#1b252d

Surface · inverted

--caster-color-surface-inverted

#0d1a4d

Feedback

Status colors with three slots: default (icon/strong text), text (accessible body text on light surface), surface, border. All text variants are WCAG 2.2 AA verified.

Success

Order shipped — tracking added.

Warning

3 items left in stock at this price.

Error

Card declined. Try another method.

Info

Net-30 invoicing now available.

<div style="background: var(--caster-color-feedback-success-surface);
            color: var(--caster-color-feedback-success-text);
            border: 1px solid var(--caster-color-feedback-success-border);">
  Order shipped — tracking added.
</div>
Tonedefaulttext (on surface)surfaceborder
Success#00a900#15692a#e6f7e6#86efac
Warning#d97706#92400e#fff7e6#fde68a
Error#c70e1d#991b1b#fef2f2#c70e1d
Info#1e40af#1e40af#eff6ff#bfdbfe

Border

Four border colors. default is the workhorse; strong appears on card hover; brand on focused or selected states; focus is the alpha-channel ring.

TokenHex / valueDemo
--caster-color-border-default#d9d9d9
--caster-color-border-subtle#ececec
--caster-color-border-strong#c0c0c0
--caster-color-border-brand#0021a6
Re-themes happen at the semantic layer. A component reads var(--caster-color-brand-default), never the underlying primitive blue.700 directly. To change the brand color globally, update tokens/semantic.json or override the semantic custom property on a parent scope.