Scaffold a light/dark theme contract, a
| Argument | Description |
|---|---|
[dir] | Directory to scaffold into. (default: .) |
| Option | Description |
|---|---|
--force | Overwrite existing files. |
--tag <tag-name> | Tag name for the toggle component. (default: theme-toggle) |
--tokens <tokens.json> | Seed the light :root token set from a DTCG document. |
$ banira theme src/theme$ banira theme src/theme --tokens design.tokens.jsonGenerates theme.css (a light/dark contract where an explicit data-theme="light"
wins over the OS preference), a <theme-toggle> that flips data-theme and persists the
choice, and a no-flash demo page.