• 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. component-tokens

Menu

Menu

  • Overview
  • Getting started
  • design-tokens
  • component-tokens
    • Overview
    • Naming
    • Customizing
    • Reference
    • DTCG format
    • Style Dictionary
  • css-base
  • css-components

component-tokens

Component-scoped CSS design tokens, layer 3 of the architecture, mapping semantic values onto the parts of a component.

Overview

What a component token is, why the extra indirection is worth it, the 27 components covered, and how to install the…

Read more

Naming

The component token naming grammar, the rules behind it, and why colors invert the usual property order.

Read more

Customizing

How to override a component token, which layer to reach for, and when a new token is warranted.

Read more

Reference

Every token for all 27 components, 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 as used for component tokens, including group-level types.

Read more

Style Dictionary

How component token JSON is compiled to CSS, and how cross-package references to design-tokens are resolved.

Read more

  1. Socle
  2. Documentation
  3. component-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