Aucune description

theme.ts 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * Below are the colors that are used in the app. The colors are defined in the light and dark mode.
  3. * There are many other ways to style your app. For example, [Nativewind](https://www.nativewind.dev/), [Tamagui](https://tamagui.dev/), [unistyles](https://reactnativeunistyles.vercel.app), etc.
  4. */
  5. import { Platform } from 'react-native';
  6. const tintColorLight = '#3E7A4A';
  7. const tintColorDark = '#86B77B';
  8. export const Colors = {
  9. light: {
  10. text: '#2B2B23',
  11. background: '#F6F1E8',
  12. tint: tintColorLight,
  13. icon: '#6C7A63',
  14. tabIconDefault: '#7A8570',
  15. tabIconSelected: tintColorLight,
  16. card: '#FFFFFF',
  17. surface: '#F3EFE6',
  18. border: '#D9D1C2',
  19. muted: '#6B736D',
  20. input: '#FFFFFF',
  21. placeholder: '#8C9386',
  22. success: '#2F7D4F',
  23. warning: '#B45309',
  24. danger: '#B42318',
  25. textOnTint: '#F7FBF3',
  26. },
  27. dark: {
  28. text: '#F1EEE6',
  29. background: '#1B1F16',
  30. tint: tintColorDark,
  31. icon: '#B3BBA7',
  32. tabIconDefault: '#B3BBA7',
  33. tabIconSelected: tintColorDark,
  34. card: '#23281E',
  35. surface: '#1F241A',
  36. border: '#3A4334',
  37. muted: '#A4AD9A',
  38. input: '#23281E',
  39. placeholder: '#7C8577',
  40. success: '#7FD08A',
  41. warning: '#F5B454',
  42. danger: '#F97066',
  43. textOnTint: '#112015',
  44. },
  45. };
  46. export const Fonts = Platform.select({
  47. ios: {
  48. /** iOS `UIFontDescriptorSystemDesignDefault` */
  49. sans: 'system-ui',
  50. /** iOS `UIFontDescriptorSystemDesignSerif` */
  51. serif: 'ui-serif',
  52. /** iOS `UIFontDescriptorSystemDesignRounded` */
  53. rounded: 'ui-rounded',
  54. /** iOS `UIFontDescriptorSystemDesignMonospaced` */
  55. mono: 'ui-monospace',
  56. },
  57. default: {
  58. sans: 'normal',
  59. serif: 'serif',
  60. rounded: 'normal',
  61. mono: 'monospace',
  62. },
  63. web: {
  64. sans: "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
  65. serif: "Georgia, 'Times New Roman', serif",
  66. rounded: "'SF Pro Rounded', 'Hiragino Maru Gothic ProN', Meiryo, 'MS PGothic', sans-serif",
  67. mono: "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
  68. },
  69. });