OTTODesign System

Tokens

Base values

The raw font, duration and shadow values the semantic tokens point to. Read them to understand a semantic value; ship the semantic token.

Font

Line height

Token Value
--oc-base-font-line-height-75 0.75rem
--oc-base-font-line-height-100 1rem
--oc-base-font-line-height-125 1.25rem
--oc-base-font-line-height-150 1.5rem
--oc-base-font-line-height-175 1.75rem
--oc-base-font-line-height-200 2rem
--oc-base-font-line-height-225 2.25rem
--oc-base-font-line-height-250 2.5rem
--oc-base-font-line-height-300 3rem
--oc-base-font-line-height-350 3.5rem

Size

Token Value
--oc-base-font-size-62 0.625rem
--oc-base-font-size-75 0.75rem
--oc-base-font-size-87 0.875rem
--oc-base-font-size-100 1rem
--oc-base-font-size-125 1.25rem
--oc-base-font-size-150 1.5rem
--oc-base-font-size-175 1.75rem
--oc-base-font-size-200 2rem
--oc-base-font-size-250 2.5rem
--oc-base-font-size-300 3rem

Weight

Token Value
--oc-base-font-weight-black 800
--oc-base-font-weight-bold 700
--oc-base-font-weight-regular 400

Other

Token Value
--oc-base-font-otto-play 'OTTOPlay', serif
--oc-base-font-otto-sans 'OTTOSans', Arial, Helvetica, sans-serif

Duration

Token Value
--oc-base-duration-0 0ms
--oc-base-duration-15 15ms
--oc-base-duration-50 50ms
--oc-base-duration-125 125ms
--oc-base-duration-200 200ms
--oc-base-duration-275 275ms
--oc-base-duration-350 350ms
--oc-base-duration-425 425ms
--oc-base-duration-500 500ms
--oc-base-duration-750 750ms
--oc-base-duration-1000 1000ms

Shadow

Token Value
--oc-base-shadow-0 unset
--oc-base-shadow-100 drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.25)) drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.07))
--oc-base-shadow-200 drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.25)) drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.10))
--oc-base-shadow-300 drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.30)) drop-shadow(0px 9px 10px rgba(0, 0, 0, 0.10))

Custom properties outside the token set

The component CSS also declares these properties, which have no token of their own.

Property Scope Value
--oc-base-color-white :root var(--oc-base-color-white-100,#fff)
--oc-base-color-white @media (prefers-color-scheme:dark) html[data-color-scheme=auto] var(--oc-base-color-white-100,#fff)
--oc-base-color-white html[data-color-scheme=dark] var(--oc-base-color-white-100,#fff)
--oc-base-color-white html[data-onex=yeah] var(--oc-base-color-white-100,#fff)