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