feat(appearance): add accessible display preferences

This commit is contained in:
Maofeng
2026-09-29 20:58:35 +08:00
parent 75d8cbbfc3
commit aae02d1502
23 changed files with 786 additions and 221 deletions
+41 -3
View File
@@ -24,9 +24,21 @@ export {
type AppearanceSettingsProps,
} from "./components/appearance-settings"
export {
CompactLayoutField,
type CompactLayoutFieldProps,
} from "./components/compact-layout-field"
BrightnessField,
type BrightnessFieldProps,
} from "./components/brightness-field"
export {
ColorVisionModeField,
type ColorVisionModeFieldProps,
} from "./components/color-vision-mode-field"
export {
MotionModeField,
type MotionModeFieldProps,
} from "./components/motion-mode-field"
export {
TextScaleField,
type TextScaleFieldProps,
} from "./components/text-scale-field"
export {
ThemeColorPicker,
ThemeColorSwatchButton,
@@ -58,10 +70,36 @@ export {
type ThemeToggleButtonProps,
type ThemeToggleProps,
} from "./components/theme-toggle-button"
export {
COLOR_VISION_ATTRIBUTE,
colorVisionModes,
colorVisionPalettes,
getColorVisionCssVariables,
isColorVisionMode,
type ColorVisionMode,
} from "./color-vision"
export {
BRIGHTNESS_ATTRIBUTE,
MOTION_ATTRIBUTE,
TEXT_SCALE_ATTRIBUTE,
applyBrightnessToTheme,
brightnessModes,
isBrightness,
isMotionMode,
isTextScale,
motionModes,
textScales,
type Brightness,
type MotionMode,
type ResolvedMotionMode,
type TextScale,
} from "./display"
export {
applyAppearancePreferenceEffect,
applyAppearancePreferences,
appearancePreferenceEffect,
subscribeSystemAppearancePreferenceEffect,
subscribeSystemMotionPreferenceEffect,
subscribeSystemThemePreferenceEffect,
} from "./effects"
export {