Getting StartedInstallation and setup guides 5
LayoutWorkflow and structural layout components 7
OverlayModal and floating layer surfaces 3
FeedbackStatus, empty, progress, and loading placeholder patterns 5
FormInput and selection components 17
UtilityGeneral-purpose interface utilities 7
NavigationMenu surfaces and hierarchical actions 7

Styling contract

The supported component contract is host-level token overrides on tng-switch plus any wrapper layout you apply around it. If you need to style the internal track or thumb markup directly, switch to the headless or ownable surfaces instead.

TokenTypical use
--tng-semantic-accent-brandChecked track background.
--tng-semantic-border-subtleUnchecked track background.
--tng-semantic-focus-ringFocus-visible ring around the visible switch button.
--tng-semantic-foreground-primaryProjected label text color.
--tng-color-whiteThumb fill when you need a different neutral token.

switch.tokens.css

css
tng-switch {
  --tng-semantic-accent-brand: #2563eb;
  --tng-semantic-border-subtle: #cbd5e1;
  --tng-semantic-focus-ring: rgba(37, 99, 235, 0.25);
  --tng-semantic-foreground-primary: var(--tng-semantic-foreground-primary);
}

Styling examples

The same switch component contract can sit inside a plain CSS shell or a Tailwind shell by overriding host-level semantic tokens.

Release gate (Plain-CSS)

Release gate

Require human sign-off before publish.

Require review