Utilização

Read the current color scheme.

Este tipo é usado por 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

Declaração do tipo

ts
export type ColorSchemeName = Scheme;

Tipo

ts
"light" | "dark"
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.