theme.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import { settingsButtons } from 'app/settings/theme/buttons';
  2. import { settingsExpoUi } from 'app/settings/theme/expo_ui';
  3. import { settingsProfiles } from 'app/settings/theme/profiles';
  4. import { settingsBadges } from 'app/settings/theme/badges';
  5. import { settingsLinks } from 'app/settings/theme/links';
  6. import { settingsTabs } from 'app/settings/theme/tabs';
  7. import { settingsInputs } from 'app/settings/theme/inputs';
  8. import { settingsElements } from 'app/settings/theme/elements';
  9. import { settingsAccordion } from 'app/settings/theme/accordion';
  10. export const settingsTheme = {
  11. theme: {
  12. light: {
  13. default: 'rgba(3,7,18,1)',
  14. primary: 'rgba(37, 99, 235, 1)',
  15. outline: 'rgba(37, 99, 235, 0.5)',
  16. headerBackground: 'rgba(255,255,255,1)',
  17. barsBackground: 'rgba(255,255,255,1)', //header and tabbar background in native light mode
  18. bottomSheetBackground: 'rgba(255,255,255,1)',
  19. barsColor: '#4B5563',
  20. safeAreaBackground: 'rgba(255,255,255,1)', // Add this new property
  21. primaryBg: 'rgba(37,99,235,0.1)',
  22. },
  23. dark: {
  24. default: 'rgba(209,213,219,1)', //fix for icons color in iOS
  25. primary: 'rgba(59, 130, 246, 1)',
  26. outline: 'rgba(59, 130, 246, 0.5)',
  27. headerBackground: 'rgba(24,24,27,1)',
  28. barsBackground: 'rgba(24,24,27,1)', //header background in native
  29. bottomSheetBackground: 'rgba(24,24,27,1)',
  30. barsColor: 'rgba(161,161,170,1)', //tabbar icons color in native
  31. safeAreaBackground: 'rgba(24,24,27,1)', // Add this new property
  32. primaryBg: 'rgba(37,99,235,0.1)',
  33. },
  34. // Web: `corner-shape: superellipse` + radius multiplier (global.web.css).
  35. // iOS: `borderCurve: 'continuous'` on design View / inputs.
  36. // Set `enabled: false` to use plain CSS border-radius / no continuous curve.
  37. corner_smoothing: {
  38. enabled: true,
  39. factor: 1.6,
  40. full_factor: 1,
  41. },
  42. native_tabs: {
  43. tabBarItemStyle: {
  44. marginBottom: 0,
  45. height: 48,
  46. marginTop: 4,
  47. paddingBottom: 0,
  48. borderRadius: 12,
  49. marginLeft: 0,
  50. marginRight: 0,
  51. overflow: 'hidden',
  52. },
  53. // Tab badge fill: a hex or a `bg-*` token (web footer badges use `bg-destructive`).
  54. badgeBackground: 'bg-destructive',
  55. badgeTextSize: 'text-xs leading-4 font-semibold', // Customizable text size for badge
  56. // Selected tab (JS tabs and NativeTabs) and selected More sheet rows:
  57. // the toggled look of selected glass buttons — indicator / row fill
  58. // and icon / label ink. Hex or `bg-*` / `text-*` tokens.
  59. // iosMoreIndicator: the selected row fill in the iOS More sheet. The
  60. // iOS Liquid Glass tab bar only draws its own gray pill for the
  61. // selected tab, so the sheet matches that instead of `indicator`.
  62. selected: { indicator: 'bg-accent', foreground: 'text-accent-foreground', iosMoreIndicator: 'bg-muted/60' },
  63. },
  64. ...settingsButtons,
  65. ...settingsExpoUi,
  66. ...settingsProfiles,
  67. ...settingsBadges,
  68. ...settingsLinks,
  69. ...settingsTabs,
  70. ...settingsInputs,
  71. ...settingsElements,
  72. ...settingsAccordion,
  73. }
  74. }