Tachyons Neo
v2.0.1
Docs Tokens

Tokens

Every design value is available as a CSS custom property, so custom CSS can share the same system as the utilities.

Token Groups

The token table mirrors the :root block in tachyons.css.

Spacing

Token Value
--spacing-0 0
--spacing-1 .25rem
--spacing-2 .5rem
--spacing-3 1rem
--spacing-4 2rem
--spacing-5 4rem
--spacing-6 8rem
--spacing-7 16rem

Font size

Token Value
--font-size-headline 6rem
--font-size-subheadline 5rem
--font-size-1 3rem
--font-size-2 2.25rem
--font-size-3 1.5rem
--font-size-4 1.25rem
--font-size-5 1rem
--font-size-6 .875rem
--font-size-7 .75rem

Measure

Token Value
--measure 30em
--measure-wide 34em
--measure-narrow 20em
--mw-6 32rem
--mw-7 48rem
--mw-8 64rem
--mw-9 96rem

Letter spacing

Token Value
--tracked .1em
--tracked-tight -.05em
--tracked-mega .25em

Line height

Token Value
--lh-solid 1
--lh-title 1.25
--lh-copy 1.5
--lh-headline .85

Radius

Token Value
--radius-0 0
--radius-1 .125rem
--radius-2 .25rem
--radius-3 .5rem
--radius-4 1rem
--radius-100 100%
--radius-pill 9999px

Border width

Token Value
--border-width-0 0
--border-width-1 .125rem
--border-width-2 .25rem
--border-width-3 .5rem
--border-width-4 1rem
--border-width-5 2rem

Shadow

Token Value
--shadow-1 0 1px 2px rgba(0, 0, 0, .06)
--shadow-2 0 2px 4px rgba(0, 0, 0, .08)
--shadow-3 0 1px 2px rgba(0, 0, 0, .06), 0 4px 8px rgba(0, 0, 0, .08)
--shadow-4 0 2px 4px rgba(0, 0, 0, .06), 0 8px 16px rgba(0, 0, 0, .10)
--shadow-5 0 4px 8px rgba(0, 0, 0, .08), 0 16px 32px rgba(0, 0, 0, .12)

Transition

Token Value
--duration-fast .15s
--duration-medium .25s
--duration-slow .5s
--ease-shadow cubic-bezier(.4, 0, .2, 1)

Font family

Token Value
--font-sans-serif system-ui, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif
--font-serif georgia, times, serif
--font-system-sans-serif ui-sans-serif, sans-serif
--font-system-serif ui-serif, serif
--font-code ui-monospace, SF Mono, Consolas, monaco, monospace

Grayscale

Token Value
--black #000
--near-black #111
--dark-gray #333
--mid-gray #555
--gray #777
--silver #999
--light-silver #aaa
--moon-gray #ccc
--light-gray #eee
--near-white #f4f4f4
--white #fff

Black and white alpha

Token Value
--black-90 rgba(0, 0, 0, .9)
--black-80 rgba(0, 0, 0, .8)
--black-70 rgba(0, 0, 0, .7)
--black-60 rgba(0, 0, 0, .6)
--black-50 rgba(0, 0, 0, .5)
--black-40 rgba(0, 0, 0, .4)
--black-30 rgba(0, 0, 0, .3)
--black-20 rgba(0, 0, 0, .2)
--black-10 rgba(0, 0, 0, .1)
--black-05 rgba(0, 0, 0, .05)
--black-025 rgba(0, 0, 0, .025)
--black-0125 rgba(0, 0, 0, .0125)
--white-90 hsla(0, 0%, 100%, .9)
--white-80 hsla(0, 0%, 100%, .8)
--white-70 hsla(0, 0%, 100%, .7)
--white-60 hsla(0, 0%, 100%, .6)
--white-50 hsla(0, 0%, 100%, .5)
--white-40 hsla(0, 0%, 100%, .4)
--white-30 hsla(0, 0%, 100%, .3)
--white-20 hsla(0, 0%, 100%, .2)
--white-10 hsla(0, 0%, 100%, .1)
--white-05 hsla(0, 0%, 100%, .05)
--white-025 hsla(0, 0%, 100%, .025)
--white-0125 hsla(0, 0%, 100%, .0125)

Warm color

Token Value
--dark-red #e7040f
--red #ff4136
--light-red #ff725c
--orange #ff6300
--gold #ffb700
--yellow #ffd700
--light-yellow #fbf1a9

Purple and pink

Token Value
--purple #5e2ca5
--light-purple #a463f2
--dark-pink #d5008f
--hot-pink #ff41b4
--pink #ff80cc
--light-pink #ffa3d7

Green

Token Value
--dark-green #137752
--green #19a974
--light-green #9eebcf

Blue

Token Value
--navy #001b44
--dark-blue #00449e
--blue #357edd
--light-blue #96ccff
--lightest-blue #cdecff

Washed color

Token Value
--washed-blue #f6fffe
--washed-green #e8fdf5
--washed-yellow #fffceb
--washed-red #ffdfdf

Use Tokens In Project CSS

.card {
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
  color: var(--near-black);
  padding: var(--spacing-3);
}

Tokens live in @layer tachyons, but custom properties resolve everywhere. Redefine a token in your own unlayered CSS when a project needs a different value.

:root {
  --dark-blue: oklch(0.46 0.18 255);
}

Cascade Layers

The layer order is fixed:

@layer reset, tachyons, app, debug;

Reset rules lose to utilities, utilities lose to optional app.css, app helpers lose to debug helpers, and unlayered project CSS wins over layered CSS.