Skip to content
Source
Sign inSign up

useControlTheme.ts

13 lines421 Bytes

1import { useAppearancePreferences } from "../../features/settings/appearance/AppearancePreferencesProvider";
2​
3export function useControlTheme() {
4 const { themeId, themeAppearance, themeVariables, systemColorsActive, appearance } =
5 useAppearancePreferences();
6 return {
7 themeId,
8 colorScheme: themeAppearance,
9 colors: themeVariables,
10 systemColorsActive,
11 fontSize: appearance.baseFontSize,
12 };