sdxc

Type to search, or start from one of these:

color

outline-color

Sets outline-color alone, so a state such as [aria-invalid] can tint an outline while the width and style already in effect stay in force.

import { outlineColor } from "@sdxc/u/color";

Quick reference

Every documented call, beside the CSS it emits.

CallCSS
u.outlineColor()css({ outlineColor: "var(--ui-ring, Highlight)" })
u.outlineColor("danger")css({ outlineColor: "var(--ui-danger-ring)" })

Using a custom value

Every scale argument also takes a raw CSS value, which passes through untouched.

u.outlineColor()

Applying on a state

Wrap the call in a state utility to scope it to one selector.

u.hover(u.outlineColor())

Responsive design

Wrap the call in a container query to scope it to one width.

u.at("md", u.outlineColor())

Customizing the theme

The custom properties this utility reads, which a theme redefines.

Variable
--ui-danger-ring
--ui-ring

Signature

u.outlineColor(value?: ColorValue | (string & {}))