This package includes all of AstroUXDS's design tokens in various different formats for you to consume in your applications.
npm i @astrouxds/tokens
Each export target has the following files:
@import "node_modules/@astrouxds/tokens/dist/css/index.css";
or
@import "node_modules/@astrouxds/tokens/dist/css/base.reference.css";
@import "node_modules/@astrouxds/tokens/dist/css/base.system.css";
@import "node_modules/@astrouxds/tokens/dist/css/base.component.css";
@import "node_modules/@astrouxds/tokens/dist/css/theme.light.css";
A light-theme
class that includes Astro's light theme.
@import "node_modules/@astrouxds/tokens/dist/css/classes/typography.css";
A few utility classes for applying Astro typography.
@import "node_modules/@astrouxds/tokens/dist/scss/base.reference.scss";
@import "node_modules/@astrouxds/tokens/dist/scss/base.system.scss";
@import "node_modules/@astrouxds/tokens/dist/scss/base.component.scss";
@import "node_modules/@astrouxds/tokens/dist/scss-map-flat/base.reference.scss";
@import "node_modules/@astrouxds/tokens/dist/scss-map-flat/base.system.scss";
@import "node_modules/@astrouxds/tokens/dist/scss-map-flat/base.component.scss";
graph TD
A[Figma] --> B(data/tokens.json)
B -->|Token Transformer| D["/tokens/*.json"]
D -->|Style Dictionary| E["/dist"]
E -->F[CSS]
E -->G[SASS]
E -->H[iOS]
E -->I[JSON]
yarn make