Verwendung

Read the current color scheme.

Dieser Typ wird verwendet von appearance.colorScheme

tsx
// Read the current color scheme.
import { appearance, watch } from 'kuito';

appearance.colorScheme.value; // 'light' | 'dark' | null
appearance.fontScale.value; // 1 by default
watch(appearance.fontScale, (scale) => console.log(scale)); // in a component

Typdeklaration

ts
export type ColorSchemeName = Scheme;

Typ

ts
"light" | "dark"
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.