Theming
Zeus Web has two token surfaces:
--zeus-*variables for registry-installed React/Vue source components.--zw-*variables for package-owned native styled Web Components.
Registry source tokens
When you run:
zweb init --style slatethe CLI writes or updates:
src/styles/zeus.cssThat file contains --zeus-* variables used by generated components.
Examples:
:root {
--zeus-background: 0 0% 100%;
--zeus-foreground: 240 10% 3.9%;
--zeus-primary: 240 5.9% 10%;
--zeus-primary-foreground: 0 0% 98%;
--zeus-border: 240 5.9% 90%;
--zeus-ring: 240 5.9% 10%;
}Registry components consume those variables:
<Button variant="primary">Save</Button>
<Input placeholder="Email" />Native styled Web Component tokens
When you import:
import '@zeus-web/ui'the package loads @zeus-web/themes/default.css and component CSS internally.
Native styled Web Components consume --zw-* variables:
<zw-button variant="primary">Save</zw-button>
<zw-input placeholder="Email"></zw-input>You can also import styles only:
import '@zeus-web/ui/styles.css'
import '@zeus-web/button/wc/auto'
import '@zeus-web/input/wc/auto'Available theme names
Dark mode
Registry styles support .dark:
<html class="dark">
...
</html>Native @zeus-web/ui styles also include dark token values through the theme package.
Radius and motion
zweb init --radius lg --motion reducedThis updates managed variables in src/styles/zeus.css.
Accent color
zweb init --accent "220 90% 56%"This can override primary and ring color tokens.
Rule
Use semantic variables instead of hard-coded colors.
Use --zeus-* inside registry-owned app source.
Use --zw-* when styling or overriding native @zeus-web/ui surfaces.