@waaelg/dga-design-system 0.4.2

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.
@@ -0,0 +1,441 @@
1
+ # Colors β€” Swatches
2
+
3
+ Visual hex reference for all DGA palettes. Full guide: [colors.md](./colors.md) Β· Cheatsheet: [colors-cheatsheet.md](./colors-cheatsheet.md)
4
+
5
+ ---
6
+
7
+ ## 🎨 Color Palettes Overview
8
+
9
+ The DGA Design System includes **8 color palettes** with **12 shades each** (25-950), totaling **96 colors**.
10
+
11
+ ---
12
+
13
+ ## Gray (Neutral Palette)
14
+
15
+ ```
16
+ β–ˆ 25 #fcfcfd β”‚ Body background, subtle tint
17
+ β–ˆ 50 #f9fafb β”‚ Light background, cards
18
+ β–ˆ 100 #f3f4f6 β”‚ Hover states, disabled backgrounds
19
+ β–ˆ 200 #e5e7eb β”‚ Borders, dividers ⭐
20
+ β–ˆ 300 #d2d6db β”‚ Strong dividers
21
+ β–ˆ 400 #9da4ae β”‚ Placeholder text, icons
22
+ β–ˆ 500 #6c737f β”‚ Secondary icons
23
+ β–ˆ 600 #4d5761 β”‚ Muted text ⭐
24
+ β–ˆ 700 #384250 β”‚ Secondary text ⭐
25
+ β–ˆ 800 #1f2a37 β”‚ Emphasis, headings
26
+ β–ˆ 900 #111927 β”‚ Dark backgrounds
27
+ β–ˆ 950 #0d121c β”‚ Primary text, maximum contrast ⭐
28
+ ```
29
+
30
+ **Primary Uses:** Text hierarchy, backgrounds, borders
31
+
32
+ ---
33
+
34
+ ## Primary - Saudi Green πŸ‡ΈπŸ‡¦ (Brand Palette)
35
+
36
+ ```
37
+ β–ˆ 25 #f7fdf9 β”‚ Subtle green tint
38
+ β–ˆ 50 #f3fcf6 β”‚ Light green background
39
+ β–ˆ 100 #dff6e7 β”‚ Success message backgrounds
40
+ β–ˆ 200 #b8eacb β”‚ Hover states, light accent
41
+ β–ˆ 300 #88d8ad β”‚ Active states, decorative
42
+ β–ˆ 400 #54c08a β”‚ Vibrant decorative
43
+ β–ˆ 500 #25935f β”‚ MAIN SAUDI GREEN ⭐⭐⭐
44
+ β–ˆ 600 #1b8354 β”‚ Primary hover ⭐
45
+ β–ˆ 700 #166a45 β”‚ Primary active ⭐
46
+ β–ˆ 800 #14573a β”‚ Brand text ⭐
47
+ β–ˆ 900 #104631 β”‚ Dark brand accent
48
+ β–ˆ 950 #092a1e β”‚ Maximum contrast
49
+ ```
50
+
51
+ **Main Color:** `#25935f` (500 shade)
52
+ **Primary Uses:** Buttons, links, brand elements, CTAs
53
+
54
+ ---
55
+
56
+ ## Gold (Secondary Palette)
57
+
58
+ ```
59
+ β–ˆ 25 #fffef7 β”‚ Subtle gold tint
60
+ β–ˆ 50 #fffef2 β”‚ Light gold background
61
+ β–ˆ 100 #fffce6 β”‚ Highlight backgrounds
62
+ β–ˆ 200 #fcf3bd β”‚ Soft accent
63
+ β–ˆ 300 #fae996 β”‚ Decorative elements
64
+ β–ˆ 400 #f7d54d β”‚ Vibrant gold
65
+ β–ˆ 500 #f5bd02 β”‚ MAIN GOLD ⭐⭐
66
+ β–ˆ 600 #dba102 β”‚ Gold hover
67
+ β–ˆ 700 #b87b02 β”‚ Gold active
68
+ β–ˆ 800 #945c01 β”‚ Gold text
69
+ β–ˆ 900 #6e3c00 β”‚ Dark gold
70
+ β–ˆ 950 #472400 β”‚ Maximum contrast
71
+ ```
72
+
73
+ **Main Color:** `#f5bd02` (500 shade)
74
+ **Primary Uses:** Secondary buttons, badges, accents, premium features
75
+
76
+ ---
77
+
78
+ ## Lavender (Accent Palette)
79
+
80
+ ```
81
+ β–ˆ 25 #fefcff β”‚ Subtle lavender
82
+ β–ˆ 50 #f9f5fa β”‚ Light lavender background
83
+ β–ˆ 100 #f2e9f5 β”‚ Soft accent backgrounds
84
+ β–ˆ 200 #e1cce8 β”‚ Decorative
85
+ β–ˆ 300 #ccadd9 β”‚ Hover states
86
+ β–ˆ 400 #a57bba β”‚ Active states
87
+ β–ˆ 500 #80519f β”‚ MAIN LAVENDER ⭐
88
+ β–ˆ 600 #6d428f β”‚ Emphasis
89
+ β–ˆ 700 #532d75 β”‚ Strong accent
90
+ β–ˆ 800 #3d1d5e β”‚ Lavender text
91
+ β–ˆ 900 #281047 β”‚ Dark lavender
92
+ β–ˆ 950 #16072e β”‚ Maximum contrast
93
+ ```
94
+
95
+ **Main Color:** `#80519f` (500 shade)
96
+ **Primary Uses:** Special highlights, tertiary elements, decorative accents
97
+
98
+ ---
99
+
100
+ ## Error/Danger (Red Palette)
101
+
102
+ ```
103
+ β–ˆ 25 #fffbfa β”‚ Subtle error tint
104
+ β–ˆ 50 #fef3f2 β”‚ Error backgrounds ⭐
105
+ β–ˆ 100 #fee4e2 β”‚ Alert backgrounds
106
+ β–ˆ 200 #fecdca β”‚ Light error ⭐
107
+ β–ˆ 300 #fda29b β”‚ Hover states
108
+ β–ˆ 400 #f97066 β”‚ Active states
109
+ β–ˆ 500 #f04438 β”‚ MAIN ERROR ⭐⭐
110
+ β–ˆ 600 #d92d20 β”‚ Error text ⭐⭐
111
+ β–ˆ 700 #b42318 β”‚ Strong error ⭐
112
+ β–ˆ 800 #912018 β”‚ Dark error text
113
+ β–ˆ 900 #7a271a β”‚ Maximum error
114
+ β–ˆ 950 #55160c β”‚ Deep contrast
115
+ ```
116
+
117
+ **Main Color:** `#f04438` (500 shade)
118
+ **Text Color:** `#d92d20` (600 shade)
119
+ **Primary Uses:** Error messages, delete buttons, validation errors, alerts
120
+
121
+ ---
122
+
123
+ ## Warning (Orange Palette)
124
+
125
+ ```
126
+ β–ˆ 25 #fffcf5 β”‚ Subtle warning
127
+ β–ˆ 50 #fffaeb β”‚ Warning backgrounds ⭐
128
+ β–ˆ 100 #fef0c7 β”‚ Alert backgrounds
129
+ β–ˆ 200 #fedf89 β”‚ Light warning ⭐
130
+ β–ˆ 300 #fec84b β”‚ Hover states
131
+ β–ˆ 400 #fdb022 β”‚ Active states
132
+ β–ˆ 500 #f79009 β”‚ MAIN WARNING ⭐⭐
133
+ β–ˆ 600 #dc6803 β”‚ Warning text ⭐⭐
134
+ β–ˆ 700 #b54708 β”‚ Strong warning ⭐
135
+ β–ˆ 800 #93370d β”‚ Dark warning
136
+ β–ˆ 900 #7a2e0e β”‚ Maximum warning
137
+ β–ˆ 950 #4e1d09 β”‚ Deep contrast
138
+ ```
139
+
140
+ **Main Color:** `#f79009` (500 shade)
141
+ **Text Color:** `#dc6803` (600 shade)
142
+ **Primary Uses:** Warning messages, caution states, pending actions
143
+
144
+ ---
145
+
146
+ ## Info (Blue Palette)
147
+
148
+ ```
149
+ β–ˆ 25 #f5faff β”‚ Subtle info
150
+ β–ˆ 50 #eff8ff β”‚ Info backgrounds ⭐
151
+ β–ˆ 100 #d1e9ff β”‚ Light info backgrounds
152
+ β–ˆ 200 #b2ddff β”‚ Soft info accent ⭐
153
+ β–ˆ 300 #84caff β”‚ Hover states
154
+ β–ˆ 400 #53b1fd β”‚ Active states
155
+ β–ˆ 500 #2e90fa β”‚ MAIN INFO ⭐⭐
156
+ β–ˆ 600 #1570ef β”‚ Info text ⭐⭐
157
+ β–ˆ 700 #175cd3 β”‚ Strong info ⭐
158
+ β–ˆ 800 #1849a9 β”‚ Dark info
159
+ β–ˆ 900 #194185 β”‚ Maximum info
160
+ β–ˆ 950 #102a56 β”‚ Deep contrast
161
+ ```
162
+
163
+ **Main Color:** `#2e90fa` (500 shade)
164
+ **Text Color:** `#1570ef` (600 shade)
165
+ **Primary Uses:** Info messages, neutral notifications, help text
166
+
167
+ ---
168
+
169
+ ## Success (Green Palette)
170
+
171
+ ```
172
+ β–ˆ 25 #f6fef9 β”‚ Subtle success
173
+ β–ˆ 50 #ecfdf3 β”‚ Success backgrounds ⭐
174
+ β–ˆ 100 #dcfae6 β”‚ Light success backgrounds
175
+ β–ˆ 200 #abefc6 β”‚ Soft success accent ⭐
176
+ β–ˆ 300 #75e0a7 β”‚ Hover states
177
+ β–ˆ 400 #47cd89 β”‚ Active states
178
+ β–ˆ 500 #17b26a β”‚ MAIN SUCCESS ⭐⭐
179
+ β–ˆ 600 #079455 β”‚ Success text ⭐⭐
180
+ β–ˆ 700 #067647 β”‚ Strong success ⭐
181
+ β–ˆ 800 #085d3a β”‚ Dark success
182
+ β–ˆ 900 #074d31 β”‚ Maximum success
183
+ β–ˆ 950 #053321 β”‚ Deep contrast
184
+ ```
185
+
186
+ **Main Color:** `#17b26a` (500 shade)
187
+ **Text Color:** `#079455` (600 shade)
188
+ **Primary Uses:** Success messages, confirmation, completed states
189
+
190
+ ---
191
+
192
+ ## Color Usage Chart
193
+
194
+ ### By Shade Number
195
+
196
+ | Shade | Typical Use Case |
197
+ |-------|------------------|
198
+ | **25** | Subtle tints, barely visible backgrounds |
199
+ | **50** | Light backgrounds, cards, panels ⭐ |
200
+ | **100** | Hover states on light backgrounds |
201
+ | **200** | Borders, dividers, alert backgrounds ⭐ |
202
+ | **300** | Strong dividers, disabled states |
203
+ | **400** | Placeholder text, decorative elements |
204
+ | **500** | **Primary/Default color** ⭐⭐⭐ |
205
+ | **600** | Hover states, emphasized text ⭐⭐ |
206
+ | **700** | Active states, strong emphasis ⭐⭐ |
207
+ | **800** | Text on light backgrounds ⭐ |
208
+ | **900** | Dark backgrounds, maximum emphasis |
209
+ | **950** | Maximum contrast, primary text |
210
+
211
+ ---
212
+
213
+ ## Semantic Color Mappings
214
+
215
+ ### Primary Colors
216
+
217
+ | Semantic | Maps To | Hex | Use |
218
+ |----------|---------|-----|-----|
219
+ | `primary` | Saudi Green 500 | `#25935f` | Main brand color |
220
+ | `secondary` | Gold 500 | `#f5bd02` | Secondary brand |
221
+
222
+ ### Status Colors
223
+
224
+ | Semantic | Maps To | Hex | Use |
225
+ |----------|---------|-----|-----|
226
+ | `success` | Success 500 | `#17b26a` | Success states |
227
+ | `info` | Info 500 | `#2e90fa` | Informational |
228
+ | `warning` | Warning 500 | `#f79009` | Warnings |
229
+ | `danger` | Error 500 | `#f04438` | Errors, delete |
230
+
231
+ ### Neutral Colors
232
+
233
+ | Semantic | Maps To | Hex | Use |
234
+ |----------|---------|-----|-----|
235
+ | `light` | Gray 50 | `#f9fafb` | Light backgrounds |
236
+ | `dark` | Gray 900 | `#111927` | Dark backgrounds |
237
+
238
+ ---
239
+
240
+ ## Text Color Hierarchy
241
+
242
+ For optimal readability on **light backgrounds**:
243
+
244
+ ```
245
+ Primary Text β†’ Gray 950 #0d121c ⭐⭐⭐
246
+ Secondary Text β†’ Gray 700 #384250 ⭐⭐
247
+ Muted Text β†’ Gray 600 #4d5761 ⭐
248
+ ```
249
+
250
+ For **dark backgrounds**:
251
+
252
+ ```
253
+ Primary Text β†’ White #ffffff ⭐⭐⭐
254
+ Muted Text β†’ White 70% rgba(255,255,255,0.7) ⭐
255
+ ```
256
+
257
+ For **brand text**:
258
+
259
+ ```
260
+ Brand Primary β†’ SA 800 #14573a ⭐⭐
261
+ Brand Accent β†’ SA 600 #1b8354 ⭐
262
+ ```
263
+
264
+ For **semantic text**:
265
+
266
+ ```
267
+ Error Text β†’ Error 600 #d92d20 ⭐⭐
268
+ Warning Text β†’ Warning 600 #dc6803 ⭐⭐
269
+ Success Text β†’ Success 600 #079455 ⭐⭐
270
+ Info Text β†’ Info 600 #1570ef ⭐⭐
271
+ ```
272
+
273
+ ---
274
+
275
+ ## Most Commonly Used Colors
276
+
277
+ ### Top 20 Colors by Usage
278
+
279
+ 1. **Gray 50** (`#f9fafb`) - Background
280
+ 2. **Primary 500** (`#25935f`) - Saudi Green (main)
281
+ 3. **Gray 950** (`#0d121c`) - Primary text
282
+ 4. **Gray 200** (`#e5e7eb`) - Borders
283
+ 5. **Primary 600** (`#1b8354`) - Hover states
284
+ 6. **Gray 700** (`#384250`) - Secondary text
285
+ 7. **White** (`#ffffff`) - Backgrounds
286
+ 8. **Error 50** (`#fef3f2`) - Error backgrounds
287
+ 9. **Error 600** (`#d92d20`) - Error text
288
+ 10. **Success 50** (`#ecfdf3`) - Success backgrounds
289
+ 11. **Success 600** (`#079455`) - Success text
290
+ 12. **Warning 50** (`#fffaeb`) - Warning backgrounds
291
+ 13. **Warning 600** (`#dc6803`) - Warning text
292
+ 14. **Info 50** (`#eff8ff`) - Info backgrounds
293
+ 15. **Info 600** (`#1570ef`) - Info text
294
+ 16. **Gold 500** (`#f5bd02`) - Secondary color
295
+ 17. **Primary 800** (`#14573a`) - Brand text
296
+ 18. **Gray 600** (`#4d5761`) - Muted text
297
+ 19. **Primary 100** (`#dff6e7`) - Light green tint
298
+ 20. **Gray 900** (`#111927`) - Dark backgrounds
299
+
300
+ ---
301
+
302
+ ## Color Combinations
303
+
304
+ ### Best Pairs (High Contrast βœ…)
305
+
306
+ ```
307
+ Background Text Color
308
+ ━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━
309
+ White (#ffffff) β†’ Gray 950 (#0d121c)
310
+ Gray 50 β†’ Gray 950
311
+ Primary 500 β†’ White
312
+ Dark (Gray 900) β†’ White
313
+ Error 50 β†’ Error 700
314
+ Success 50 β†’ Success 700
315
+ Warning 50 β†’ Warning 700
316
+ ```
317
+
318
+ ### Alert Color Schemes
319
+
320
+ ```
321
+ Type Background Border Text
322
+ ━━━━━━━ ━━━━━━━━━━━━ ━━━━━━━━━━━━━ ━━━━━━━━━━━━━
323
+ Error error-50 error-200 error-700
324
+ Warning warning-50 warning-200 warning-700
325
+ Success success-50 success-200 success-700
326
+ Info info-50 info-200 info-700
327
+ ```
328
+
329
+ ---
330
+
331
+ ## Gradient Definitions
332
+
333
+ All gradients are based on Saudi Green:
334
+
335
+ ```scss
336
+ Primary β†’ linear-gradient(90deg, #1b8354, #25935f)
337
+ Secondary β†’ linear-gradient(45deg, #166a45, #1b8354)
338
+ Dark β†’ linear-gradient(45deg, #092a1e, #1b8354)
339
+ Medium β†’ linear-gradient(90deg, #14573a, #1b8354)
340
+ Subtle β†’ linear-gradient(26.5deg, #14573a, #166a45)
341
+ Deep β†’ linear-gradient(45deg, #104631, #1b8354)
342
+ ```
343
+
344
+ **Usage:** Hero sections, card headers, CTAs
345
+
346
+ ---
347
+
348
+ ## CSS Variable Reference
349
+
350
+ All colors available as CSS custom properties:
351
+
352
+ ```css
353
+ /* Gray palette */
354
+ --dga-gray-25 through --dga-gray-950
355
+
356
+ /* Primary (Saudi Green) */
357
+ --dga-primary-25 through --dga-primary-950
358
+
359
+ /* Gold */
360
+ --dga-gold-25 through --dga-gold-950
361
+
362
+ /* Lavender */
363
+ --dga-lavender-25 through --dga-lavender-950
364
+
365
+ /* Semantic palettes */
366
+ --dga-error-25 through --dga-error-950
367
+ --dga-warning-25 through --dga-warning-950
368
+ --dga-info-25 through --dga-info-950
369
+ --dga-success-25 through --dga-success-950
370
+ ```
371
+
372
+ ---
373
+
374
+ ## Color Psychology
375
+
376
+ ### Saudi Green (Primary)
377
+ - **Represents:** Saudi Arabian identity, nature, growth, prosperity
378
+ - **Emotion:** Trust, stability, harmony
379
+ - **Use:** Primary actions, brand elements, success
380
+
381
+ ### Gold (Secondary)
382
+ - **Represents:** Wealth, prestige, quality, Saudi heritage
383
+ - **Emotion:** Luxury, value, importance
384
+ - **Use:** Premium features, badges, secondary CTAs
385
+
386
+ ### Red (Error)
387
+ - **Represents:** Danger, urgency, errors
388
+ - **Emotion:** Alert, stop, attention
389
+ - **Use:** Errors, delete actions, critical warnings
390
+
391
+ ### Orange (Warning)
392
+ - **Represents:** Caution, warning, in-progress
393
+ - **Emotion:** Careful attention, pending
394
+ - **Use:** Warnings, pending states, moderate alerts
395
+
396
+ ### Blue (Info)
397
+ - **Represents:** Information, calm, trust
398
+ - **Emotion:** Reliable, professional, neutral
399
+ - **Use:** Info messages, help text, neutral states
400
+
401
+ ### Green (Success)
402
+ - **Represents:** Success, completion, positive
403
+ - **Emotion:** Accomplishment, safe, go
404
+ - **Use:** Success messages, confirmations, completed
405
+
406
+ ---
407
+
408
+ ## Print Reference
409
+
410
+ ### Color Print Table
411
+
412
+ For printing this reference with color swatches:
413
+
414
+ | Color Name | Hex | RGB | HSL |
415
+ |------------|-----|-----|-----|
416
+ | Primary 500 | #25935f | rgb(37, 147, 95) | hsl(152, 60%, 36%) |
417
+ | Gray 950 | #0d121c | rgb(13, 18, 28) | hsl(220, 37%, 8%) |
418
+ | Gold 500 | #f5bd02 | rgb(245, 189, 2) | hsl(46, 98%, 48%) |
419
+ | Error 500 | #f04438 | rgb(240, 68, 56) | hsl(4, 86%, 58%) |
420
+ | Warning 500 | #f79009 | rgb(247, 144, 9) | hsl(34, 94%, 50%) |
421
+ | Info 500 | #2e90fa | rgb(46, 144, 250) | hsl(211, 95%, 58%) |
422
+ | Success 500 | #17b26a | rgb(23, 178, 106) | hsl(152, 77%, 39%) |
423
+
424
+ ---
425
+
426
+ ## Accessibility Notes
427
+
428
+ - ⭐ **Recommended combinations** meet WCAG AA standards
429
+ - Use **shade 600-800** for text on light backgrounds
430
+ - Use **shade 50-100** for backgrounds in alerts
431
+ - Use **white** for text on 500-950 backgrounds
432
+ - Always test with contrast checker tools
433
+
434
+ ---
435
+
436
+ **Total Colors:** 96 (8 palettes Γ— 12 shades)
437
+ **Primary Brand:** Saudi Green #25935f
438
+ **Secondary Brand:** Gold #f5bd02
439
+
440
+ **Version:** 1.0.0
441
+ **DGA Design System Color Palette**