Mixins / foldkit-mixins/theme

lightDark

function · packages/mixins/src/theme/core.ts:69

function lightDark(light: string, dark: string): string

A token that follows the user's color scheme with CSS light-dark(): no JavaScript and no Model field. A theme the user chooses is the other case, and belongs in the Model as a class on the root; variables compiles both.