Skip to content

Design Tokens

Design tokens are the single source of truth for the visual design of your product. They store values like colors, typography, and spacing.

What are Design Tokens?

Design tokens are named entities that store visual design attributes. They help maintain a consistent visual language across products and platforms by providing a centralized way to define and manage design decisions.

Benefits of using tokens

  • Single source of truth for design values
  • Easy theme customization and white-labeling
  • Consistent design language across platforms
  • Easier maintenance and updates

Color Tokens

Our color system is built around brand colors, semantic colors, and neutral scales.

Brand Colors

The core brand colors define the visual identity of Everforth.

Aa
Primary
--df-color-primary
#C8102E
Aa
Secondary
--df-color-secondary
#0D4F4F
Aa
Accent
--df-color-accent
#D4FF00
Aa
Navy
--df-color-navy
#1E2832

Semantic Colors

Semantic colors convey meaning and status in the interface.

Aa
Success
--df-color-success
#16a34a
Aa
Error
--df-color-error
#dc2626
Aa
Warning
--df-color-warning
#d97706
Aa
Info
--df-color-info
#2563eb

Neutral Scale

A comprehensive grayscale for text, backgrounds, and borders.

TokenValueUsage
--df-color-gray-50#f8fafcLightest backgrounds
--df-color-gray-100#f1f5f9Subtle backgrounds
--df-color-gray-200#e2e8f0Borders, dividers
--df-color-gray-300#cbd5e1Disabled states
--df-color-gray-400#94a3b8Placeholder text
--df-color-gray-500#64748bSecondary text
--df-color-gray-600#475569Body text
--df-color-gray-700#334155Primary text
--df-color-gray-800#1e293bHeadlines
--df-color-gray-900#0f172aDarkest text

Typography Tokens

Typography tokens define the font families, sizes, weights, and line heights used throughout the system.

Font Families

TokenValueUsage
--df-font-family-sansWork Sans, sans-serifBody text, UI elements
--df-font-family-serifSource Serif Pro, serifHeadlines, marketing
--df-font-family-monoSF Mono, monospaceCode, technical content

Font Sizes

TokenSizeExample
--df-font-size-xs12pxThe quick brown fox
--df-font-size-sm14pxThe quick brown fox
--df-font-size-base16pxThe quick brown fox
--df-font-size-lg18pxThe quick brown fox
--df-font-size-xl20pxThe quick brown fox
--df-font-size-2xl24pxThe quick brown fox
--df-font-size-3xl30pxThe quick brown fox
--df-font-size-4xl36pxThe quick brown fox

Font Weights

TokenValueExample
--df-font-weight-light300Light text
--df-font-weight-normal400Normal text
--df-font-weight-medium500Medium text
--df-font-weight-semibold600Semibold text
--df-font-weight-bold700Bold text

Spacing Tokens

A consistent spacing scale based on a 4px (0.25rem) base unit.

TokenValueVisual
--df-spacing-14px
--df-spacing-28px
--df-spacing-312px
--df-spacing-416px
--df-spacing-520px
--df-spacing-624px
--df-spacing-832px
--df-spacing-1248px
--df-spacing-1664px

Semantic Spacing

TokenValueUsage
--df-spacing-xs4pxTight spacing, icons
--df-spacing-sm8pxCompact elements
--df-spacing-md16pxDefault spacing
--df-spacing-lg24pxSection spacing
--df-spacing-xl32pxLarge sections
--df-spacing-2xl48pxPage sections

Border Tokens

Border Radius

TokenValuePreview
--df-radius-none0
--df-radius-sm2px
--df-radius-md4px
--df-radius-lg8px
--df-radius-xl12px
--df-radius-full9999px

Shadow Tokens

TokenPreview
--df-shadow-sm
--df-shadow-md
--df-shadow-lg
--df-shadow-xl

Animation Tokens

Durations

TokenValueUsage
--df-duration-fast150msHover states, micro-interactions
--df-duration-normal200msDefault transitions
--df-duration-slow300msComplex animations
--df-duration-slower500msPage transitions

Easing Functions

TokenValueUsage
--df-ease-incubic-bezier(0.4, 0, 1, 1)Elements leaving
--df-ease-outcubic-bezier(0, 0, 0.2, 1)Elements entering
--df-ease-in-outcubic-bezier(0.4, 0, 0.2, 1)General purpose

Using Tokens

Tokens can be used directly in your CSS via custom properties:

css
.my-component {
  /* Colors */
  color: var(--df-color-text-primary);
  background-color: var(--df-color-surface);
  border-color: var(--df-color-border);

  /* Typography */
  font-family: var(--df-font-family-sans);
  font-size: var(--df-font-size-base);
  font-weight: var(--df-font-weight-medium);

  /* Spacing */
  padding: var(--df-spacing-md);
  margin-bottom: var(--df-spacing-lg);

  /* Borders */
  border-radius: var(--df-radius-lg);

  /* Shadows */
  box-shadow: var(--df-shadow-md);

  /* Transitions */
  transition: all var(--df-duration-normal) var(--df-ease-out);
}

Figma Export

Our design tokens are also available as a Figma-compatible JSON export:

Download Figma Tokens (JSON)

Built with care by Everforth