Documentation Index
Fetch the complete documentation index at: https://docs.uniwind.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thegenerate-artifacts command generates Uniwind artifacts from your CSS entry file.
Use it when you need to run artifact generation manually from a script or CI step.
This is useful in CI actions when you run tools that need generated Uniwind types before Metro or Vite starts, for example a linter or formatter for Tailwind classes.
Basic Usage
--theme flags and set the TypeScript declarations path with --dts:
Options
—css
CSS entry file path, for example
./global.css.global.css
—theme
Extra theme name. Pass this option multiple times to match the custom themes from
extraThemes.extraThemes:
metro.config.js
vite.config.ts
—dts
Generated TypeScript declarations path.
Place the
.d.ts file in your src or app directory for automatic TypeScript inclusion. For custom paths outside these directories, add the file to your tsconfig.json.—help
Show help for the command.
Usage Reference
Related
Metro Config
Configure automatic artifact generation in Metro
Global CSS
Learn more about configuring your CSS entry file
Custom Themes
Create and register extra themes