NEURALNG

DESIGN TOKENS

Switch tokens

Neutral supplies production defaults. Glass, Futuristic and consumer themes override this stable contract without changing component logic.

Layout and typography

--neural-switch-gap

Spacing between component items.

--neural-switch-width

Component inline size.

--neural-switch-label-color

Label foreground color.

--neural-switch-font-family

Component font family.

--neural-switch-font-size

Component font size.

--neural-switch-line-height

Component line height.

--neural-switch-state-label-font-size

State label font size.

--neural-switch-state-label-font-weight

State label font weight.

Track

--neural-switch-track-width

Track inline size.

--neural-switch-track-height

Track block size.

--neural-switch-track-padding

Track internal spacing.

--neural-switch-track-color

Track foreground color.

--neural-switch-track-background

Track background surface.

--neural-switch-track-background-hover

Hovered track background surface.

--neural-switch-track-background-checked

Checked track background surface.

--neural-switch-track-background-checked-hover

Checked Hovered track background surface.

--neural-switch-track-border

Track border shorthand.

--neural-switch-track-border-color-hover

Hovered track border color.

--neural-switch-track-border-color-checked

Checked track border color.

--neural-switch-track-border-color-focus

Focused track border color.

--neural-switch-track-border-color-invalid

Invalid track border color.

--neural-switch-track-radius

Track corner radius.

--neural-switch-track-shadow

Track box shadow.

--neural-switch-track-shadow-focus

Focused track box shadow.

Thumb and state

--neural-switch-thumb-size

Thumb width and height.

--neural-switch-thumb-background

Thumb background surface.

--neural-switch-thumb-background-checked

Checked thumb background surface.

--neural-switch-thumb-radius

Thumb corner radius.

--neural-switch-thumb-shadow

Thumb box shadow.

--neural-switch-thumb-translate

Logical travel distance of the Switch thumb in its checked state.

--neural-switch-focus-ring

Component keyboard focus ring.

--neural-switch-focus-ring-offset

Component focus ring offset.

--neural-switch-disabled-opacity

Disabled opacity.

Motion

--neural-switch-transition

Component CSS transition.

--neural-switch-thumb-transition

Thumb CSS transition.