@umituz/react-native-design-system 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Universal design system for React Native apps - Domain-Driven Design architecture with Material Design 3 components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -213,54 +213,54 @@ export const lightColors = {
|
|
|
213
213
|
|
|
214
214
|
export const darkColors = {
|
|
215
215
|
// =============================================================================
|
|
216
|
-
// PRIMARY BRAND COLORS (dark mode
|
|
216
|
+
// PRIMARY BRAND COLORS (darker versions for dark mode)
|
|
217
217
|
// =============================================================================
|
|
218
|
-
primary: '#
|
|
219
|
-
primaryLight: '#
|
|
220
|
-
primaryDark: '#
|
|
218
|
+
primary: '#60A5FA', // Lighter blue for dark backgrounds
|
|
219
|
+
primaryLight: '#93C5FD',
|
|
220
|
+
primaryDark: '#3B82F6',
|
|
221
221
|
|
|
222
|
-
secondary: '#
|
|
223
|
-
secondaryLight: '#
|
|
224
|
-
secondaryDark: '#
|
|
222
|
+
secondary: '#A78BFA', // Lighter purple for dark backgrounds
|
|
223
|
+
secondaryLight: '#C4B5FD',
|
|
224
|
+
secondaryDark: '#8B5CF6',
|
|
225
225
|
|
|
226
|
-
accent: '#
|
|
227
|
-
accentLight: '#
|
|
228
|
-
accentDark: '#
|
|
226
|
+
accent: '#FBBF24', // Lighter amber for dark backgrounds
|
|
227
|
+
accentLight: '#FCD34D',
|
|
228
|
+
accentDark: '#F59E0B',
|
|
229
229
|
|
|
230
230
|
// =============================================================================
|
|
231
|
-
// MATERIAL DESIGN 3 - ON COLORS (
|
|
231
|
+
// MATERIAL DESIGN 3 - ON COLORS (Dark mode text colors)
|
|
232
232
|
// =============================================================================
|
|
233
|
-
onPrimary: '#
|
|
234
|
-
onSecondary: '#
|
|
235
|
-
onSuccess: '#
|
|
236
|
-
onError: '#FFFFFF', //
|
|
237
|
-
onWarning: '#000000', //
|
|
238
|
-
onInfo: '#
|
|
239
|
-
onSurface: '#
|
|
240
|
-
onBackground: '#
|
|
241
|
-
onSurfaceDisabled: '#
|
|
233
|
+
onPrimary: '#000000', // Dark text on light primary
|
|
234
|
+
onSecondary: '#000000', // Dark text on light secondary
|
|
235
|
+
onSuccess: '#000000', // Dark text on light success
|
|
236
|
+
onError: '#FFFFFF', // Light text on dark error
|
|
237
|
+
onWarning: '#000000', // Dark text on light warning
|
|
238
|
+
onInfo: '#000000', // Dark text on light info
|
|
239
|
+
onSurface: '#E2E8F0', // Light text on dark surface
|
|
240
|
+
onBackground: '#F1F5F9', // Light text on dark background
|
|
241
|
+
onSurfaceDisabled: '#64748B', // Disabled dark mode text
|
|
242
242
|
|
|
243
243
|
// =============================================================================
|
|
244
|
-
// MATERIAL DESIGN 3 - CONTAINER COLORS (
|
|
244
|
+
// MATERIAL DESIGN 3 - CONTAINER COLORS (Dark mode containers)
|
|
245
245
|
// =============================================================================
|
|
246
|
-
primaryContainer: '#
|
|
247
|
-
onPrimaryContainer: '#
|
|
248
|
-
secondaryContainer: '#
|
|
249
|
-
onSecondaryContainer: '#
|
|
250
|
-
errorContainer: '#
|
|
251
|
-
onErrorContainer: '#
|
|
246
|
+
primaryContainer: '#1E3A8A', // Dark blue container
|
|
247
|
+
onPrimaryContainer: '#DBEAFE', // Light text on dark primary container
|
|
248
|
+
secondaryContainer: '#4C1D95', // Dark purple container
|
|
249
|
+
onSecondaryContainer: '#E0E7FF', // Light text on dark secondary container
|
|
250
|
+
errorContainer: '#7F1D1D', // Dark red container
|
|
251
|
+
onErrorContainer: '#FEE2E2', // Light text on dark error container
|
|
252
252
|
|
|
253
253
|
// =============================================================================
|
|
254
|
-
// MATERIAL DESIGN 3 - OUTLINE (
|
|
254
|
+
// MATERIAL DESIGN 3 - OUTLINE (Dark mode outlines)
|
|
255
255
|
// =============================================================================
|
|
256
|
-
outline: '#
|
|
257
|
-
outlineVariant: '#
|
|
258
|
-
outlineDisabled: '#
|
|
256
|
+
outline: '#475569', // Medium gray outline for dark mode
|
|
257
|
+
outlineVariant: '#334155', // Darker outline variant
|
|
258
|
+
outlineDisabled: '#334155', // Disabled outline
|
|
259
259
|
|
|
260
260
|
// =============================================================================
|
|
261
|
-
// SEMANTIC UI COLORS (
|
|
261
|
+
// SEMANTIC UI COLORS (slightly lighter for dark backgrounds)
|
|
262
262
|
// =============================================================================
|
|
263
|
-
success: '#
|
|
263
|
+
success: '#34D399', // Lighter green for dark mode
|
|
264
264
|
successLight: '#34D399',
|
|
265
265
|
successDark: '#059669',
|
|
266
266
|
|
|
@@ -301,43 +301,43 @@ export const darkColors = {
|
|
|
301
301
|
gray900: '#18181B',
|
|
302
302
|
|
|
303
303
|
// =============================================================================
|
|
304
|
-
// BACKGROUND COLORS (dark mode
|
|
304
|
+
// BACKGROUND COLORS (dark mode - true dark backgrounds)
|
|
305
305
|
// =============================================================================
|
|
306
|
-
backgroundPrimary: '#
|
|
307
|
-
backgroundSecondary: '#
|
|
306
|
+
backgroundPrimary: '#0F172A', // Slate 900 - Deep dark background
|
|
307
|
+
backgroundSecondary: '#1E293B', // Slate 800 - Slightly lighter
|
|
308
308
|
|
|
309
|
-
surface: '#
|
|
310
|
-
surfaceVariant: '#
|
|
311
|
-
surfaceSecondary: '#
|
|
312
|
-
surfaceDisabled: '#
|
|
309
|
+
surface: '#1E293B', // Slate 800 - Card/surface backgrounds
|
|
310
|
+
surfaceVariant: '#334155', // Slate 700 - Variant surfaces
|
|
311
|
+
surfaceSecondary: '#334155', // Alias for surfaceVariant
|
|
312
|
+
surfaceDisabled: '#475569', // Slate 600 - Disabled surfaces
|
|
313
313
|
|
|
314
314
|
// =============================================================================
|
|
315
|
-
// TEXT COLORS (
|
|
315
|
+
// TEXT COLORS (dark mode - light text on dark backgrounds)
|
|
316
316
|
// =============================================================================
|
|
317
|
-
textPrimary: '#
|
|
318
|
-
textSecondary: '#
|
|
319
|
-
textTertiary: '#94A3B8',
|
|
320
|
-
textDisabled: '#
|
|
321
|
-
textInverse: '#
|
|
317
|
+
textPrimary: '#F1F5F9', // Slate 100 - Primary text (very light)
|
|
318
|
+
textSecondary: '#CBD5E1', // Slate 300 - Secondary text
|
|
319
|
+
textTertiary: '#94A3B8', // Slate 400 - Tertiary text
|
|
320
|
+
textDisabled: '#64748B', // Slate 500 - Disabled text
|
|
321
|
+
textInverse: '#0F172A', // Dark text for light backgrounds
|
|
322
322
|
|
|
323
323
|
// =============================================================================
|
|
324
|
-
// BORDER COLORS (
|
|
324
|
+
// BORDER COLORS (dark mode - subtle borders)
|
|
325
325
|
// =============================================================================
|
|
326
|
-
border: '#
|
|
327
|
-
borderLight: '#
|
|
328
|
-
borderMedium: '#
|
|
329
|
-
borderFocus: '#
|
|
326
|
+
border: '#334155', // Slate 700 - Default border
|
|
327
|
+
borderLight: '#475569', // Slate 600 - Light border
|
|
328
|
+
borderMedium: '#64748B', // Slate 500 - Medium border
|
|
329
|
+
borderFocus: '#60A5FA', // Blue 400 - Focus border (lighter)
|
|
330
330
|
|
|
331
331
|
// =============================================================================
|
|
332
|
-
// COMPONENT-SPECIFIC COLORS (
|
|
332
|
+
// COMPONENT-SPECIFIC COLORS (dark mode specific)
|
|
333
333
|
// =============================================================================
|
|
334
|
-
buttonPrimary: '#
|
|
335
|
-
buttonSecondary: '#
|
|
334
|
+
buttonPrimary: '#60A5FA', // Lighter blue for dark mode
|
|
335
|
+
buttonSecondary: '#A78BFA', // Lighter purple for dark mode
|
|
336
336
|
|
|
337
|
-
inputBackground: '#
|
|
338
|
-
inputBorder: '#
|
|
337
|
+
inputBackground: '#1E293B', // Dark input background
|
|
338
|
+
inputBorder: '#475569', // Subtle input border
|
|
339
339
|
|
|
340
|
-
cardBackground: '#
|
|
340
|
+
cardBackground: '#1E293B', // Dark card background
|
|
341
341
|
|
|
342
342
|
// =============================================================================
|
|
343
343
|
// SPECIAL COLORS
|