Files
frontend/src/theme/index.ts
lafay 4ee3079b9f
All checks were successful
Frontend CI / build-and-push-web (push) Successful in 8m15s
Frontend CI / ota-android (push) Successful in 10m56s
Frontend CI / build-android-apk (push) Successful in 1h3m22s
feat(Theme): enhance theming and UI consistency across components
- Updated app.json to set userInterfaceStyle to automatic for improved theme adaptability.
- Refactored layout components to utilize useAppColors for dynamic theming, ensuring consistent color usage.
- Introduced SystemChrome component to manage system UI background color based on theme.
- Enhanced TabsLayout, ProfileStackLayout, and other components to leverage new theming structure.
- Improved QRCodeScanner, SearchBar, and CommentItem styles to align with the updated theme system.
- Consolidated styles in SystemMessageItem and TabBar for better maintainability and visual coherence.
2026-03-25 05:16:54 +08:00

29 lines
823 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 胡萝卜BBS 主题明暗色板、Paper 主题、设计 token
* 新代码请优先使用 useAppColors();静态 colors 为浅色快照,与深色模式不同步。
*/
export { lightColors, darkColors, type AppColors } from './palettes';
export { buildPaperTheme } from './paperTheme';
export * from './tokens';
export {
useAppColors,
useThemePreference,
useResolvedColorScheme,
useSetThemePreference,
usePaperThemeFromStore,
ThemeBootstrap,
useThemeStore,
type ThemePreference,
type ResolvedScheme,
} from '../stores/themeStore';
import { lightColors } from './palettes';
import { buildPaperTheme } from './paperTheme';
/** 浅色静态快照;随主题切换请使用 useAppColors() */
export const colors = lightColors;
export const paperTheme = buildPaperTheme(lightColors, false);