Usage

Read the current color scheme.

This type is used by 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

Type declaration

ts
export type ColorSchemeName = Scheme;

Type

ts
"light" | "dark"
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.