21 lines
799 B
TypeScript
21 lines
799 B
TypeScript
import type { SuixinBaseThemeId } from '@/src/storage/appStorage';
|
|
|
|
/**
|
|
* 随心主题色盘(与设计说明文档保持一致)
|
|
*/
|
|
export const BASE_THEME_COLORS: Record<Exclude<SuixinBaseThemeId, 'neutral'>, [string, string, string]> = {
|
|
emotional_support: ['#F6DCE4', '#FFEFF4', '#FFF7FA'],
|
|
parenting_pressure: ['#D6EAF5', '#EEF6FB', '#F8FCFF'],
|
|
self_worth: ['#FFD8A8', '#FFE8C9', '#FFF6E5'],
|
|
anxiety_relief: ['#DFF3EA', '#ECFBF6', '#F6FFFB'],
|
|
rest_balance: ['#F2E6D8', '#FAF3EC', '#FFFDF9'],
|
|
};
|
|
|
|
export const NEUTRAL_THEME_COLORS: [string, string, string] = ['#F4F7F2', '#E8F1EC', '#EDF4F8'];
|
|
|
|
export function getThemeTriplet(themeId: SuixinBaseThemeId): [string, string, string] {
|
|
if (themeId === 'neutral') return NEUTRAL_THEME_COLORS;
|
|
return BASE_THEME_COLORS[themeId];
|
|
}
|
|
|