MonEspacePro/pro/src/theme.ts
Tony AVERTY 6725358a7c App Pro (Expo) et API du comptoir avec anti-triche
- API /staff : profil, scan d'une carte, crédit (montant ou tampon),
  récompenses, historique (gérant : tout le magasin, employé : le sien),
  résumé du jour
- Anti-triche côté serveur : carte du bon magasin, plafond de montant,
  délai minimum entre deux crédits (atomique, scans simultanés compris),
  tentatives refusées journalisées avec l'employé
- App Expo SDK 54 / Expo Router : connexion, accueil, scanner QR avec
  lampe, fiche client, pavé numérique, récompenses, confirmation, erreurs,
  historique ; icônes générées depuis le logo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:50:59 +02:00

58 lines
1.2 KiB
TypeScript

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',
};