Skip to content

Create @extrachill/tokens package for shared design tokens #2

Description

@chubes4

Context

The Extra Chill ecosystem has two design token layers:

  • datamachine tokens (--datamachine-*) — theme-agnostic, used by DM plugins
  • extrachill theme tokens (--card-background, --text-color, --accent, etc.) — theme-specific

Currently these live in their respective CSS files with no shared package. A @extrachill/tokens package would:

  1. Export CSS custom properties as importable values
  2. Provide TypeScript constants for use in JS/TS
  3. Be the single source of truth for spacing, colors, typography scales

Scope

  • Extract existing tokens from extrachill-theme/root.css and data-machine/root.css
  • Publish as @extrachill/tokens on npm
  • Provide CSS, SCSS, and JS/TS entry points

Open question

Should this be a separate package or a sub-export of @extrachill/components? Separate package keeps the dependency graph cleaner for consumers that only need tokens (e.g., native apps).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions