Files
paseo/packages/app/src/styles/unistyles.ts
T
Mohamed BoudraandGitHub 8c003351d0 fix(app): keep theme selection consistent (#3214)
Theme registration, the appearance picker, persistence, and shortcut cycling drifted as new choices were added. Make one ordered catalog own those paths so Auto and Pure Black participate consistently, while lifting the Pure Black selected-workspace surface above its sidebar.
2026-08-11 14:09:44 +02:00

33 lines
633 B
TypeScript

import { StyleSheet } from "react-native-unistyles";
import { REGISTERED_THEMES } from "./theme";
StyleSheet.configure({
themes: REGISTERED_THEMES,
breakpoints: {
xs: 0,
sm: 576,
md: 720,
lg: 992,
xl: 1200,
},
settings: {
adaptiveThemes: true,
},
});
// Type augmentation for TypeScript
type AppThemes = typeof REGISTERED_THEMES;
interface AppBreakpoints {
xs: number;
sm: number;
md: number;
lg: number;
xl: number;
}
declare module "react-native-unistyles" {
export interface UnistylesThemes extends AppThemes {}
export interface UnistylesBreakpoints extends AppBreakpoints {}
}