Color Scheme

Set which color schemes an element can be rendered in.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

cs-d
color-scheme: dark;
cs-l
color-scheme: light;
cs-ld
color-scheme: light dark;

Yumma CSS declares color-scheme: light dark on :root automatically as soon as your theme contains a paired color. Use these utilities to override it.

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

@sm:cs-(value)
Small640px
@md:cs-(value)
Medium768px
@lg:cs-(value)
Large1024px
@xxl:cs-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:cs-(value)