0.11.0 • Published 9 months ago

@spyrothon/tokens v0.11.0

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

@spyrothon/tokens

Type-safe token generation system for the Sparx design system, managing colors, fonts, and more.

Define your design system's tokens and themes safely in typescript and generate client code for CSS and more.

Usage

# Install the package
pnpm add @spyrothon/tokens
# Create the token definitions from a default template
pnpm sparx-tokens
# Run the generate script (you'll need a native typescript runner)
pnpm esno ./design/generate.ts

You can edit ./design/tokens.ts to change tokens to match whatever you need. Note that the color tokens defined by default are almost all required for Sparx to function and appear as intended.

Sparx also provides a validateTokens function that you can add to your generate.ts to validate that all of the required tokens for Sparx are present in your token definitions.

0.11.0

9 months ago

0.10.2

9 months ago

0.10.1

9 months ago

0.10.0

9 months ago

0.9.1

9 months ago