MoonCSS library for primitive, semantic, and component variables and component classes.
- Get Personal Figma Token (FIGMA_TOKEN), base variables Figma file ID (FIGMA_FILE), and component variables Figma file ID (FIGMA_COMPONENTS_FILE).
- Add next lines to a
.env
file. Replacemoon
with a brand name and Figma file IDs to brand specific ones:
FIGMA_TOKEN=figd_personal-access-token
FIGMA_FILE=moon:BZiHkvF7pXFHrFH8P0cG2T
FIGMA_COMPONENTS_FILE=moon:S3q1SkVngbwHuwpxHKCsgtJj
- Run
npx @heathmont/moon-css
to generatemoon-base.css
file with all CSS variables. - Optionally run
npx @heathmont/moon-css --with-preset
to additionally generatemoon-base-preset.js
andmoon-components.js
files with Tailwind configuration for utility and component classes.