import { useColorScheme } from 'react-native'; /** Tokens du design system MonEspacePro (mêmes valeurs que l'admin). */ const light = { primary: '#0E7A66', primaryPressed: '#0B6253', primarySoft: '#EAF6F2', onPrimary: '#FFFFFF', accent: '#F2B544', bg: '#F6F6F3', surface: '#FFFFFF', surface2: '#EEEDE8', border: '#DEDDD6', text: '#1C1C19', text2: '#45443E', text3: '#5F5E56', ok: '#1E7A3C', okBg: '#E5F3E9', warn: '#8F5300', warnBg: '#FCEFD6', err: '#B8322A', errBg: '#FBE7E5', }; const dark: typeof light = { primary: '#3CB59C', primaryPressed: '#5CC7B0', primarySoft: '#143A33', onPrimary: '#0B1F1B', accent: '#F2B544', bg: '#141412', surface: '#1D1D1A', surface2: '#272723', border: '#34342F', text: '#F2F1EC', text2: '#CFCEC6', text3: '#A5A49B', ok: '#6FCF8F', okBg: '#173523', warn: '#F2B544', warnBg: '#3A2B10', err: '#F08A80', errBg: '#3D1A17', }; export type Colors = typeof light; export function useColors(): Colors { return useColorScheme() === 'dark' ? dark : light; } export const font = { regular: 'Figtree_400Regular', medium: 'Figtree_500Medium', semibold: 'Figtree_600SemiBold', bold: 'Figtree_700Bold', extrabold: 'Figtree_800ExtraBold', };