theme.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 = '#0a7ea4';
  7. const tintColorDark = '#fff';
  8. export const Colors = {
  9. light: {
  10. text: '#11181C',
  11. background: '#fff',
  12. tint: tintColorLight,
  13. icon: '#687076',
  14. tabIconDefault: '#687076',
  15. tabIconSelected: tintColorLight,
  16. },
  17. dark: {
  18. text: '#ECEDEE',
  19. background: '#151718',
  20. tint: tintColorDark,
  21. icon: '#9BA1A6',
  22. tabIconDefault: '#9BA1A6',
  23. tabIconSelected: tintColorDark,
  24. },
  25. };
  26. export const Fonts = Platform.select({
  27. ios: {
  28. /** iOS `UIFontDescriptorSystemDesignDefault` */
  29. sans: 'system-ui',
  30. /** iOS `UIFontDescriptorSystemDesignSerif` */
  31. serif: 'ui-serif',
  32. /** iOS `UIFontDescriptorSystemDesignRounded` */
  33. rounded: 'ui-rounded',
  34. /** iOS `UIFontDescriptorSystemDesignMonospaced` */
  35. mono: 'ui-monospace',
  36. },
  37. default: {
  38. sans: 'normal',
  39. serif: 'serif',
  40. rounded: 'normal',
  41. mono: 'monospace',
  42. },
  43. web: {
  44. sans: "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
  45. serif: "Georgia, 'Times New Roman', serif",
  46. rounded: "'SF Pro Rounded', 'Hiragino Maru Gothic ProN', Meiryo, 'MS PGothic', sans-serif",
  47. mono: "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
  48. },
  49. });