jamie-tokens
v1.1.4
Published
A design token package following the Design Tokens Format Module specification. This package provides a standardized set of design tokens for use across projects.
Downloads
44
Readme
Jamie Tokens
A design token package following the Design Tokens Format Module specification. This package provides a standardized set of design tokens for use across projects.
Overview
This repository contains design tokens defined in JSON format, compatible with tools like Tokens Studio and other design token management platforms.
Token Types
The token system includes:
- Dimensions - Base scaling values and size units
- Spacing - Spacing scales (xs, sm, md, lg, xl) with support for multi-value spacing
- Border Radius - Border radius scales with single and multi-value support
- Colors - Comprehensive color palette including:
- Base colors (black, white)
- Gray scale (100-900)
- Red scale (100-900)
- Orange scale (100-900)
- Yellow scale (100-900)
- And more...
Token Structure
Tokens are defined using the standard $type and $value properties, with optional $description fields for documentation. Tokens support references to other tokens using the {token.name} syntax.
Example:
{
"dimension": {
"md": {
"$type": "dimension",
"$value": "{dimension.sm} * {dimension.scale}"
}
}
}Installation
npm install jamie-tokensUsage
Import the tokens in your project:
const tokens = require('jamie-tokens');Repository
- GitHub: nativerez/jamie-tokens
- Issues: Report issues
Version
Current version: 1.0.6
License
ISC
