@gobolt/genesis-tokens
v0.0.10
Published
a TypeScript library for Genesis design tokens
Downloads
441
Readme
Genesis Tokens
A platform-agnostic TypeScript library for Genesis design tokens.
Try this token tool which makes it easy to find and copy them into your projects.
Genesis tokens are the foundation of our component libraries:
- Genesis for React 18 & Ant 5
- Genesis Legacy for React 17 and Ant 4
They provide a consistent structure for our GoBolt applications
Installation
npm install @gobolt/genesis-tokensUsage
import { lightTheme, darkTheme } from '@gobolt/genesis-tokens';You can think of the raw tokens as a Typescript tree that can compliment any library.
Styled components
See the styled-components guide for a full example of using Genesis tokens with styled-components.
Tailwind
See the Tailwind CSS guide for a full example of using Genesis tokens with Tailwind.
Theme Structure
The package exports the following:
- Theme objects (
lightTheme,darkTheme) - Individual token groups (
color,typography,sizing, etc.) within each theme object - Theme types and interfaces for TypeScript support
Development
- Clone the repository
- Install dependencies:
npm install - Develop
npm run dev - Publish
npm publish
Prompt Guide
When using AI UI apps like lovable, we can prompt the LLM to use this genesis-tokens library
see prompt guide
Deploy the Token Tool to GCP
just ship