• Main content
  • Main navigation
  • Search
  • Go to the bottom of the page
Socle

Menu

  • Documentation
    • Getting started

      How to install and setup packages.

    • Design tokens

      Colors, typography, spacing and motion.

    • Component tokens

      Component-scoped tokens for 26 components.

    • CSS base

      Reset, native elements and layout primitives.

    • CSS components

      29 components and 1 utility.

Search

  1. Socle
  2. Documentation
  3. design-tokens

Menu

Menu

  • Overview
  • Getting started
  • design-tokens
    • Overview
    • Naming
    • Colors
    • Dark mode
    • Customizing
    • Reference
    • DTCG format
    • Style Dictionary
    • Fluid scales
  • component-tokens
  • css-base
  • css-components

design-tokens

Framework-agnostic primitive and semantic design tokens, authored in DTCG JSON and shipped as CSS custom properties.

Overview

The three-layer token architecture, how to install the package, and where the sources and the generated CSS live.

Read more

Naming

The naming grammar for semantic and component tokens, the rules that keep it consistent, and the scales in use.

Read more

Colors

The OKLCH color space, the 19-hue primitive palette, the semantic color roles, and WCAG guidance for using them.

Read more

Dark mode

How the dark theme overlays 13 semantic tokens, how a page opts out, and why there is no forced-dark selector.

Read more

Customizing

The two override strategies, CSS layer override and JSON plus build, and when each one is the right tool.

Read more

Reference

Every token in the package, generated from the JSON sources so it can never drift from the shipped CSS.

Read more

DTCG format

The Design Tokens Community Group JSON format, its keys, types and naming conventions as used in this package.

Read more

Style Dictionary

How the JSON token sources are compiled into CSS custom properties, including the dark theme pass.

Read more

Fluid scales

The Utopia method behind the fluid font-size and spacing tokens, and when to reach for them.

Read more

  1. Socle
  2. Documentation
  3. design-tokens
Socle

A framework-agnostic CSS foundation, four packages covering tokens, reset, layouts and components.

  • Documentation
  • Github
  • Legal mentions
  • Sitemap
  • Socle is developed by Un Cinq
  • Github
  • Linkedin

a low impact website crafted with Hugolify