updated 2026-11-26·3 min read
Component Variables
CSS tokens and utility classes for Noether interactive controls including buttons (.noether-btn), inputs, toggle switches (.noether-switch), cards, and popovers.
CSS tokens and component classes defined in src/index.css and src/components/ui/ for buttons, inputs, toggle switches, cards, and popovers.
1. Buttons (.noether-btn & .noether-toolbar-btn)
Buttons consume surface and accent tokens rather than separate button-specific color variables:
| Selector / Token | Dark Default | Light Default | Usage |
|---|---|---|---|
.noether-btn | var(--noether-bg-card-hover, #2a2a2a) | var(--noether-bg-card, #f4f4f5) | Default button surface (border-radius: 5px, padding: 5px 12px). |
.noether-btn-primary | var(--noether-accent, #eb584d) | var(--noether-accent, #eb584d) | Primary CTA button (color: #ffffff). |
.noether-btn-danger | #e11d48 | #e11d48 | Destructive action button (color: #ffffff). |
--noether-btn-hover-bg | rgba(255, 255, 255, 0.05) | rgba(0, 0, 0, 0.04) | Hover background for .noether-toolbar-btn and ghost actions. |
--noether-btn-active-bg | rgba(255, 255, 255, 0.09) | rgba(0, 0, 0, 0.08) | Active / pressed background for .noether-toolbar-btn and selected menu rows. |
2. Text Inputs
TextInput and base form fields in src/index.css use the input surface and border tokens:
| Token | Dark Default | Light Default | Description |
|---|---|---|---|
--noether-bg-input | #181818 | #f0f0f2 | Text input, select, and textarea background. |
--noether-bg-input-focus | #222222 | #ffffff | Focused input background. |
--noether-border-base | #292929 | #e4e4e7 | Default input border. |
--noether-border-strong | #383838 | #cbd5e1 | TextInput border (focus:border-[var(--noether-accent)]). |
--noether-text-primary | #ffffff | #09090b | Input text color. |
--noether-text-faint | #555555 | #71717a | Placeholder text color in dark mode (--noether-text-muted in .theme-light). |
3. Toggle Switches (.noether-switch)
ToggleSwitch and SettingBuilder.addToggle() style switches via .noether-switch and .noether-switch-knob:
| Selector | Track / Knob Styling | Description |
|---|---|---|
.noether-switch[aria-checked="false"] | var(--noether-bg-card-hover, #2a2a2a) (light: var(--noether-border-base)) | Inactive toggle track. |
.noether-switch[aria-checked="true"] | var(--noether-accent, #eb584d) | Active toggle track. |
.noether-switch-knob | #ffffff | Circular sliding knob. |
4. Cards, Popovers & Modals
| Token | Dark Default | Light Default | Description |
|---|---|---|---|
--noether-bg-card | #222222 | #ffffff | SettingCard and [data-card="true"] surface. |
--noether-border-subtle | #202020 | #f0f0f2 | Dividers between SettingItem rows. |
--noether-bg-popover | #232323 | #ffffff | Floating menus (CustomSelect, StatusBar mode menu, context menus). |
--noether-shadow-2 | 0 4px 16px 0 rgba(0, 0, 0, 0.4) | 0 4px 12px -2px rgba(0, 0, 0, 0.06), ... | Popover and dropdown elevation. |
--noether-shadow-3 | 0 8px 32px 0 rgba(0, 0, 0, 0.6) | 0 10px 24px -4px rgba(0, 0, 0, 0.08), ... | Dialog and modal elevation ([role="dialog"]). |