UNPKG

@ribajs/bs5

Version:

Bootstrap 5 module for Riba.js

21 lines (19 loc) 884 B
import type { ThemeChoice } from "./theme-choice.js"; export interface ThemeData { /** true if the system / OS and browser supports color scheme (if this is not the case the color scheme can still be changed via css) */ supported: boolean; /** Color scheme is the color scheme from the os / system */ bySystem: boolean; /** Color scheme is set by the user and the system default is overwritten */ byUser: boolean; /** Color scheme is light (from system or overwritten by the user) */ isLight: boolean; /** Color scheme is dark (from system or overwritten by the user) */ isDark: boolean; /** System / OS color scheme is light (User selection is ignored here) */ systemIsLight: boolean; /** System / OS color scheme is dark (User selection is ignored here) */ systemIsDark: boolean; /** The user selection (os, dark or light) */ choice: ThemeChoice; }