frontend: introduce spacing and border constants
Parents:
51a7c2b1 file(s) changed
- frontend/constants/theme.ts +20 -5
frontend/constants/theme.ts
@@ -65,12 +65,12 @@ inactiveOpacity: 0.7,
65 65
66 66 // Semantic Accents (for categorization)
67 67 accentBlue: PILL_BLUE,
68 - accentIndigo: PILL_INDIGO,
69 - accentPurple: PILL_PURPLE,
68 + accentIndigo: PILL_INDIGO,
69 + accentPurple: PILL_PURPLE,
70 70
71 - // Disabled / Secondary
72 - disabled: '#cbd5e1',
73 - divider: BORDER_SUBTLE,
71 + // Disabled / Secondary
72 + disabled: '#cbd5e1',
73 + divider: BORDER_SUBTLE,
74 74 },
75 75 };
76 76
@@ -127,6 +127,21 @@ fontWeight: '600' as const,
127 127 lineHeight: 16,
128 128 letterSpacing: 0.05,
129 129 },
130 + };
131 +
132 + export const Spacing = {
133 + containerPadding: 16, // 1rem
134 + sectionGap: 32, // 2rem
135 + inlineGapSm: 8, // 0.5rem
136 + };
137 +
138 + export const BorderRadius = {
139 + sm: 4, // 0.25rem
140 + default: 8, // 0.5rem
141 + md: 12, // 0.75rem
142 + lg: 16, // 1rem
143 + xl: 24, // 1.5rem
144 + full: 9999, // pill-shaped
130 145 };
131 146
132 147 export const Fonts = Platform.select({