@fpkit/acss 4.0.0 → 5.0.0
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/libs/components/alert/alert.css +1 -1
- package/libs/components/alert/alert.css.map +1 -1
- package/libs/components/alert/alert.min.css +2 -2
- package/libs/components/badge/badge.css +1 -1
- package/libs/components/badge/badge.css.map +1 -1
- package/libs/components/badge/badge.min.css +2 -2
- package/libs/components/buttons/button.css +1 -1
- package/libs/components/buttons/button.css.map +1 -1
- package/libs/components/buttons/button.min.css +2 -2
- package/libs/components/cards/card.css +1 -1
- package/libs/components/cards/card.css.map +1 -1
- package/libs/components/cards/card.min.css +2 -2
- package/libs/components/details/details.css +1 -1
- package/libs/components/details/details.css.map +1 -1
- package/libs/components/details/details.min.css +2 -2
- package/libs/components/dialog/dialog.css +1 -1
- package/libs/components/dialog/dialog.css.map +1 -1
- package/libs/components/dialog/dialog.min.css +2 -2
- package/libs/components/form/checkbox.css +1 -1
- package/libs/components/form/checkbox.css.map +1 -1
- package/libs/components/form/checkbox.min.css +2 -2
- package/libs/components/form/form.css +1 -1
- package/libs/components/form/form.css.map +1 -1
- package/libs/components/form/form.min.css +2 -2
- package/libs/components/link/link.css +1 -1
- package/libs/components/link/link.css.map +1 -1
- package/libs/components/link/link.min.css +2 -2
- package/libs/components/nav/nav.css +1 -1
- package/libs/components/nav/nav.css.map +1 -1
- package/libs/components/nav/nav.min.css +2 -2
- package/libs/components/progress/progress.css +1 -1
- package/libs/components/progress/progress.css.map +1 -1
- package/libs/components/progress/progress.min.css +2 -2
- package/libs/components/tag/tag.css +1 -1
- package/libs/components/tag/tag.css.map +1 -1
- package/libs/components/tag/tag.min.css +2 -2
- package/libs/components/text-to-speech/text-to-speech.css +1 -1
- package/libs/components/text-to-speech/text-to-speech.css.map +1 -1
- package/libs/components/text-to-speech/text-to-speech.min.css +2 -2
- package/libs/components/title/title.css +1 -1
- package/libs/components/title/title.css.map +1 -1
- package/libs/components/title/title.min.css +2 -2
- package/libs/index.cjs +1 -1
- package/libs/index.cjs.map +1 -1
- package/libs/index.css +1 -1
- package/libs/index.css.map +1 -1
- package/libs/index.js +1 -1
- package/libs/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/alert/alert.scss +22 -22
- package/src/components/alert/views/alert-view.tsx +6 -2
- package/src/components/badge/badge.scss +1 -1
- package/src/components/buttons/button.scss +8 -8
- package/src/components/cards/card.scss +7 -7
- package/src/components/details/details.scss +2 -3
- package/src/components/dialog/dialog.scss +4 -4
- package/src/components/form/checkbox.scss +8 -8
- package/src/components/form/form.scss +10 -10
- package/src/components/form/input.stories.tsx +17 -4
- package/src/components/link/link.scss +1 -1
- package/src/components/nav/nav.scss +1 -1
- package/src/components/progress/progress.scss +2 -2
- package/src/components/tag/tag.scss +7 -7
- package/src/components/text-to-speech/text-to-speech.scss +1 -1
- package/src/components/title/title.scss +4 -4
- package/src/index.scss +15 -1
- package/src/sass/_globals.scss +3 -3
- package/src/sass/styles/_colors.scss +16 -0
- package/src/sass/tokens/_color-primitives.scss +112 -0
- package/src/sass/tokens/_color-semantic.scss +144 -0
- package/src/sass/tokens/_index.scss +15 -0
- package/src/sass/utilities/_color-bg.scss +62 -0
- package/src/sass/utilities/_color-border.scss +61 -0
- package/src/sass/utilities/_color-text.scss +58 -0
- package/src/sass/utilities/_index.scss +17 -0
- package/src/sass/utilities/color-utilities.stories.tsx +608 -0
- package/src/styles/alert/alert.css +19 -19
- package/src/styles/badge/badge.css +1 -1
- package/src/styles/buttons/button.css +8 -8
- package/src/styles/cards/card.css +7 -7
- package/src/styles/details/details.css +2 -3
- package/src/styles/details/details.css.map +1 -1
- package/src/styles/dialog/dialog.css +4 -4
- package/src/styles/form/checkbox.css +11 -11
- package/src/styles/form/form.css +26 -21
- package/src/styles/form/form.css.map +1 -1
- package/src/styles/index.css +516 -82
- package/src/styles/index.css.map +1 -1
- package/src/styles/link/link.css +1 -1
- package/src/styles/nav/nav.css +1 -1
- package/src/styles/progress/progress.css +2 -2
- package/src/styles/tag/tag.css +7 -7
- package/src/styles/text-to-speech/text-to-speech.css +1 -1
- package/src/styles/title/title.css +4 -4
- package/src/styles/title/title.css.map +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color Primitives - Foundation Layer (Tier 1)
|
|
3
|
+
*
|
|
4
|
+
* Raw color values that form the foundation of the design system.
|
|
5
|
+
* All colors are WCAG AA compliant (4.5:1 for text, 3:1 for UI components).
|
|
6
|
+
*
|
|
7
|
+
* Pattern: --color-{hue}-{scale}
|
|
8
|
+
* Scale: 50 (lightest) to 900 (darkest)
|
|
9
|
+
*
|
|
10
|
+
* Industry-standard palette based on accessible color scales.
|
|
11
|
+
* No rebeccapurple or purple colors per project requirements.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
/* ========================================
|
|
16
|
+
Neutral Scale (Grays)
|
|
17
|
+
Purpose: Text, borders, surfaces, backgrounds
|
|
18
|
+
======================================== */
|
|
19
|
+
|
|
20
|
+
--color-neutral-0: #ffffff; /* Pure white - Surfaces, text inverse */
|
|
21
|
+
--color-neutral-50: #fafafa; /* Off-white - Secondary surfaces */
|
|
22
|
+
--color-neutral-100: #f5f5f5; /* Light gray - Disabled backgrounds, tertiary surfaces */
|
|
23
|
+
--color-neutral-200: #e5e5e5; /* Border subtle - Light borders, dividers */
|
|
24
|
+
--color-neutral-300: #d4d4d4; /* Border default - Standard borders */
|
|
25
|
+
--color-neutral-400: #a3a3a3; /* Border interactive - Hover borders, interactive elements */
|
|
26
|
+
--color-neutral-500: #737373; /* Text disabled - Disabled text, placeholders */
|
|
27
|
+
--color-neutral-600: #525252; /* Text tertiary - Less emphasized text */
|
|
28
|
+
--color-neutral-700: #404040; /* Text secondary - Secondary text */
|
|
29
|
+
--color-neutral-800: #262626; /* Text primary - Body text, primary content */
|
|
30
|
+
--color-neutral-900: #171717; /* Text emphasis - Headings, emphasized text */
|
|
31
|
+
|
|
32
|
+
/* ========================================
|
|
33
|
+
Blue Scale (Primary/Info)
|
|
34
|
+
Purpose: Primary brand, focus states, links, info messages
|
|
35
|
+
WCAG: 4.5:1+ contrast ratios verified
|
|
36
|
+
======================================== */
|
|
37
|
+
|
|
38
|
+
--color-blue-100: #dbeafe; /* Info background light - Subtle info backgrounds */
|
|
39
|
+
--color-blue-200: #bfdbfe; /* Info background - Info alert backgrounds */
|
|
40
|
+
--color-blue-300: #93c5fd; /* Info border light - Light info borders */
|
|
41
|
+
--color-blue-400: #60a5fa; /* Info hover - Hover states for info elements */
|
|
42
|
+
--color-blue-500: #3b82f6; /* Info default - Standard info color */
|
|
43
|
+
--color-blue-600: #2563eb; /* Primary default - Primary brand color */
|
|
44
|
+
--color-blue-700: #1d4ed8; /* Primary hover - Primary button hover */
|
|
45
|
+
--color-blue-800: #1e40af; /* Primary active - Primary button active/pressed */
|
|
46
|
+
--color-blue-900: #1e3a8a; /* Info text - Dark text on info backgrounds (WCAG AAA: 12.6:1) */
|
|
47
|
+
|
|
48
|
+
/* ========================================
|
|
49
|
+
Green Scale (Success)
|
|
50
|
+
Purpose: Success states, positive feedback, valid inputs
|
|
51
|
+
WCAG: 4.5:1+ contrast ratios verified
|
|
52
|
+
======================================== */
|
|
53
|
+
|
|
54
|
+
--color-green-100: #dcfce7; /* Success background light - Subtle success backgrounds */
|
|
55
|
+
--color-green-200: #bbf7d0; /* Success background - Success alert backgrounds */
|
|
56
|
+
--color-green-300: #86efac; /* Success border light - Light success borders */
|
|
57
|
+
--color-green-400: #4ade80; /* Success hover - Hover states for success elements */
|
|
58
|
+
--color-green-500: #22c55e; /* Success default - Standard success color */
|
|
59
|
+
--color-green-600: #16a34a; /* Success border - Success borders, checkmarks */
|
|
60
|
+
--color-green-700: #15803d; /* Success dark - Dark success emphasis */
|
|
61
|
+
--color-green-800: #166534; /* Success text - Dark text on success backgrounds (WCAG AAA: 8.3:1) */
|
|
62
|
+
--color-green-900: #14532d; /* Success emphasis - Highest contrast success text */
|
|
63
|
+
|
|
64
|
+
/* ========================================
|
|
65
|
+
Red Scale (Error/Danger)
|
|
66
|
+
Purpose: Errors, destructive actions, invalid inputs, alerts
|
|
67
|
+
WCAG: 4.5:1+ contrast ratios verified
|
|
68
|
+
======================================== */
|
|
69
|
+
|
|
70
|
+
--color-red-100: #fee2e2; /* Error background light - Subtle error backgrounds */
|
|
71
|
+
--color-red-200: #fecaca; /* Error background - Error alert backgrounds */
|
|
72
|
+
--color-red-300: #fca5a5; /* Error border light - Light error borders */
|
|
73
|
+
--color-red-400: #f87171; /* Error hover - Hover states for error elements */
|
|
74
|
+
--color-red-500: #ef4444; /* Error default - Standard error color */
|
|
75
|
+
--color-red-600: #dc2626; /* Error border - Error borders, icons */
|
|
76
|
+
--color-red-700: #b91c1c; /* Error dark - Dark error emphasis */
|
|
77
|
+
--color-red-800: #991b1b; /* Error text - Dark text on error backgrounds (WCAG AAA: 10.3:1) */
|
|
78
|
+
--color-red-900: #7f1d1d; /* Error emphasis - Highest contrast error text */
|
|
79
|
+
|
|
80
|
+
/* ========================================
|
|
81
|
+
Amber Scale (Warning)
|
|
82
|
+
Purpose: Warnings, cautions, pending states
|
|
83
|
+
WCAG: 4.5:1+ contrast ratios verified
|
|
84
|
+
======================================== */
|
|
85
|
+
|
|
86
|
+
--color-amber-100: #fef3c7; /* Warning background light - Subtle warning backgrounds */
|
|
87
|
+
--color-amber-200: #fde68a; /* Warning background - Warning alert backgrounds */
|
|
88
|
+
--color-amber-300: #fcd34d; /* Warning border light - Light warning borders */
|
|
89
|
+
--color-amber-400: #fbbf24; /* Warning hover - Hover states for warning elements */
|
|
90
|
+
--color-amber-500: #f59e0b; /* Warning default - Standard warning color */
|
|
91
|
+
--color-amber-600: #d97706; /* Warning border - Warning borders, icons */
|
|
92
|
+
--color-amber-700: #b45309; /* Warning dark - Dark warning emphasis */
|
|
93
|
+
--color-amber-800: #92400e; /* Warning text - Dark text on warning backgrounds (WCAG AAA: 9.8:1) */
|
|
94
|
+
--color-amber-900: #78350f; /* Warning emphasis - Highest contrast warning text */
|
|
95
|
+
|
|
96
|
+
/* ========================================
|
|
97
|
+
Cyan Scale (Info Alternative)
|
|
98
|
+
Purpose: Alternative info states, highlights, accents
|
|
99
|
+
WCAG: 4.5:1+ contrast ratios verified
|
|
100
|
+
Note: Used instead of purple/rebeccapurple per requirements
|
|
101
|
+
======================================== */
|
|
102
|
+
|
|
103
|
+
--color-cyan-100: #cffafe; /* Info alt background light - Subtle cyan backgrounds */
|
|
104
|
+
--color-cyan-200: #a5f3fc; /* Info alt background - Cyan alert backgrounds */
|
|
105
|
+
--color-cyan-300: #67e8f9; /* Info alt border light - Light cyan borders */
|
|
106
|
+
--color-cyan-400: #22d3ee; /* Info alt hover - Hover states for cyan elements */
|
|
107
|
+
--color-cyan-500: #06b6d4; /* Info alt default - Standard cyan color */
|
|
108
|
+
--color-cyan-600: #0891b2; /* Info alt border - Cyan borders, icons */
|
|
109
|
+
--color-cyan-700: #0e7490; /* Info alt dark - Dark cyan emphasis */
|
|
110
|
+
--color-cyan-800: #155e75; /* Info alt text - Dark text on cyan backgrounds (WCAG AAA: 7.2:1) */
|
|
111
|
+
--color-cyan-900: #164e63; /* Info alt emphasis - Highest contrast cyan text */
|
|
112
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color Semantic Tokens - Purpose Layer (Tier 2)
|
|
3
|
+
*
|
|
4
|
+
* Intent-based color mappings for common use cases.
|
|
5
|
+
* All semantic tokens reference primitive tokens (Tier 1).
|
|
6
|
+
*
|
|
7
|
+
* Pattern: --color-{purpose}-{variant}
|
|
8
|
+
*
|
|
9
|
+
* This layer provides meaning to colors and enables easy theming.
|
|
10
|
+
* To theme the application, override these semantic tokens.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
/* ========================================
|
|
15
|
+
Brand Colors
|
|
16
|
+
Purpose: Primary and secondary brand identity
|
|
17
|
+
======================================== */
|
|
18
|
+
|
|
19
|
+
/* Primary brand color - Main CTAs, primary buttons, primary links */
|
|
20
|
+
--color-primary: var(--color-blue-600); /* #2563eb */
|
|
21
|
+
--color-primary-hover: var(--color-blue-700); /* #1d4ed8 */
|
|
22
|
+
--color-primary-active: var(--color-blue-800); /* #1e40af */
|
|
23
|
+
--color-primary-light: var(--color-blue-100); /* #dbeafe */
|
|
24
|
+
|
|
25
|
+
/* Secondary brand color - Secondary actions, alternative emphasis */
|
|
26
|
+
--color-secondary: var(--color-neutral-700); /* #404040 */
|
|
27
|
+
--color-secondary-hover: var(--color-neutral-800);/* #262626 */
|
|
28
|
+
--color-secondary-light: var(--color-neutral-100);/* #f5f5f5 */
|
|
29
|
+
|
|
30
|
+
/* ========================================
|
|
31
|
+
State Colors - Success
|
|
32
|
+
Purpose: Positive feedback, valid inputs, confirmations
|
|
33
|
+
======================================== */
|
|
34
|
+
|
|
35
|
+
--color-success: var(--color-green-600); /* #16a34a */
|
|
36
|
+
--color-success-bg: var(--color-green-100); /* #dcfce7 */
|
|
37
|
+
--color-success-border: var(--color-green-600); /* #16a34a */
|
|
38
|
+
--color-success-text: var(--color-green-800); /* #166534 */
|
|
39
|
+
--color-success-hover: var(--color-green-700); /* #15803d */
|
|
40
|
+
|
|
41
|
+
/* ========================================
|
|
42
|
+
State Colors - Error
|
|
43
|
+
Purpose: Errors, validation failures, destructive actions
|
|
44
|
+
======================================== */
|
|
45
|
+
|
|
46
|
+
--color-error: var(--color-red-600); /* #dc2626 */
|
|
47
|
+
--color-error-bg: var(--color-red-100); /* #fee2e2 */
|
|
48
|
+
--color-error-border: var(--color-red-600); /* #dc2626 */
|
|
49
|
+
--color-error-text: var(--color-red-800); /* #991b1b */
|
|
50
|
+
--color-error-hover: var(--color-red-700); /* #b91c1c */
|
|
51
|
+
|
|
52
|
+
/* ========================================
|
|
53
|
+
State Colors - Warning
|
|
54
|
+
Purpose: Warnings, cautions, pending actions
|
|
55
|
+
======================================== */
|
|
56
|
+
|
|
57
|
+
--color-warning: var(--color-amber-600); /* #d97706 */
|
|
58
|
+
--color-warning-bg: var(--color-amber-100); /* #fef3c7 */
|
|
59
|
+
--color-warning-border: var(--color-amber-600); /* #d97706 */
|
|
60
|
+
--color-warning-text: var(--color-amber-800); /* #92400e */
|
|
61
|
+
--color-warning-hover: var(--color-amber-700); /* #b45309 */
|
|
62
|
+
|
|
63
|
+
/* ========================================
|
|
64
|
+
State Colors - Info
|
|
65
|
+
Purpose: Informational messages, tips, notices
|
|
66
|
+
======================================== */
|
|
67
|
+
|
|
68
|
+
--color-info: var(--color-blue-500); /* #3b82f6 */
|
|
69
|
+
--color-info-bg: var(--color-blue-100); /* #dbeafe */
|
|
70
|
+
--color-info-border: var(--color-blue-500); /* #3b82f6 */
|
|
71
|
+
--color-info-text: var(--color-blue-900); /* #1e3a8a */
|
|
72
|
+
--color-info-hover: var(--color-blue-600); /* #2563eb */
|
|
73
|
+
|
|
74
|
+
/* ========================================
|
|
75
|
+
UI Surface Colors
|
|
76
|
+
Purpose: Backgrounds, containers, cards, modals
|
|
77
|
+
======================================== */
|
|
78
|
+
|
|
79
|
+
--color-surface: var(--color-neutral-0); /* #ffffff - Primary background */
|
|
80
|
+
--color-surface-secondary: var(--color-neutral-50);/* #fafafa - Secondary background */
|
|
81
|
+
--color-surface-tertiary: var(--color-neutral-100);/* #f5f5f5 - Tertiary background */
|
|
82
|
+
--color-surface-elevated: var(--color-neutral-0); /* #ffffff - Cards, modals, raised elements */
|
|
83
|
+
--color-surface-overlay: rgba(0, 0, 0, 0.5); /* Modal overlay, backdrop */
|
|
84
|
+
|
|
85
|
+
/* ========================================
|
|
86
|
+
Border Colors
|
|
87
|
+
Purpose: Borders, dividers, separators, outlines
|
|
88
|
+
======================================== */
|
|
89
|
+
|
|
90
|
+
--color-border: var(--color-neutral-300); /* #d4d4d4 - Default borders */
|
|
91
|
+
--color-border-subtle: var(--color-neutral-200); /* #e5e5e5 - Subtle borders, dividers */
|
|
92
|
+
--color-border-strong: var(--color-neutral-400); /* #a3a3a3 - Emphasized borders */
|
|
93
|
+
--color-border-interactive: var(--color-neutral-400);/* #a3a3a3 - Hover borders on inputs */
|
|
94
|
+
|
|
95
|
+
/* ========================================
|
|
96
|
+
Text Colors
|
|
97
|
+
Purpose: Body text, headings, labels, captions
|
|
98
|
+
======================================== */
|
|
99
|
+
|
|
100
|
+
--color-text: var(--color-neutral-800); /* #262626 - Primary body text */
|
|
101
|
+
--color-text-secondary: var(--color-neutral-700); /* #404040 - Secondary text, labels */
|
|
102
|
+
--color-text-tertiary: var(--color-neutral-600); /* #525252 - Tertiary text, captions */
|
|
103
|
+
--color-text-disabled: var(--color-neutral-500); /* #737373 - Disabled text */
|
|
104
|
+
--color-text-inverse: var(--color-neutral-0); /* #ffffff - Text on dark backgrounds */
|
|
105
|
+
|
|
106
|
+
/* ========================================
|
|
107
|
+
Interactive States
|
|
108
|
+
Purpose: Focus, hover, active, disabled states
|
|
109
|
+
======================================== */
|
|
110
|
+
|
|
111
|
+
--color-focus: var(--color-blue-600); /* #2563eb - Focus outlines (WCAG 3:1 contrast) */
|
|
112
|
+
--color-focus-ring: var(--color-blue-600); /* #2563eb - Focus rings on inputs */
|
|
113
|
+
--color-hover-overlay: rgba(0, 0, 0, 0.05); /* Subtle hover overlay on buttons */
|
|
114
|
+
--color-active-overlay: rgba(0, 0, 0, 0.1); /* Active/pressed overlay on buttons */
|
|
115
|
+
--color-disabled-bg: var(--color-neutral-100); /* #f5f5f5 - Disabled backgrounds */
|
|
116
|
+
--color-disabled-text: var(--color-neutral-500); /* #737373 - Disabled text */
|
|
117
|
+
|
|
118
|
+
/* ========================================
|
|
119
|
+
Link Colors
|
|
120
|
+
Purpose: Hyperlinks, navigation links
|
|
121
|
+
======================================== */
|
|
122
|
+
|
|
123
|
+
--color-link: var(--color-blue-700); /* #1d4ed8 - Default link color */
|
|
124
|
+
--color-link-hover: var(--color-blue-800); /* #1e40af - Link hover state */
|
|
125
|
+
--color-link-visited: var(--color-blue-900); /* #1e3a8a - Visited link color */
|
|
126
|
+
--color-link-active: var(--color-blue-800); /* #1e40af - Link active/pressed state */
|
|
127
|
+
|
|
128
|
+
/* ========================================
|
|
129
|
+
Validation Colors
|
|
130
|
+
Purpose: Form validation, required fields
|
|
131
|
+
======================================== */
|
|
132
|
+
|
|
133
|
+
--color-required: var(--color-red-600); /* #dc2626 - Required field indicators */
|
|
134
|
+
--color-valid: var(--color-green-600); /* #16a34a - Valid input indicators */
|
|
135
|
+
--color-invalid: var(--color-red-600); /* #dc2626 - Invalid input indicators */
|
|
136
|
+
|
|
137
|
+
/* ========================================
|
|
138
|
+
Skip Link & Accessibility
|
|
139
|
+
Purpose: Skip navigation, accessibility utilities
|
|
140
|
+
======================================== */
|
|
141
|
+
|
|
142
|
+
--color-skip-link-bg: var(--color-neutral-100); /* #f5f5f5 - Skip link background */
|
|
143
|
+
--color-skip-link-text: var(--color-text); /* Inherits default text color */
|
|
144
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color Tokens - Main Export
|
|
3
|
+
*
|
|
4
|
+
* This file exports the complete color token system.
|
|
5
|
+
* Import order matters: primitives must load before semantic tokens.
|
|
6
|
+
*
|
|
7
|
+
* Usage in main index.scss:
|
|
8
|
+
* @use "./sass/tokens";
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* Tier 1: Primitive color scales (foundation) */
|
|
12
|
+
@forward "./color-primitives";
|
|
13
|
+
|
|
14
|
+
/* Tier 2: Semantic color mappings (purpose-based) */
|
|
15
|
+
@forward "./color-semantic";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Background Color Utilities
|
|
3
|
+
*
|
|
4
|
+
* Semantic background color utility classes for quick styling.
|
|
5
|
+
* All utilities reference semantic tokens (Tier 2), not primitives.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* <div class="bg-primary">Primary background</div>
|
|
9
|
+
* <div class="bg-success">Success background</div>
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* ========================================
|
|
13
|
+
Brand Backgrounds
|
|
14
|
+
======================================== */
|
|
15
|
+
|
|
16
|
+
.bg-primary {
|
|
17
|
+
background-color: var(--color-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.bg-primary-light {
|
|
21
|
+
background-color: var(--color-primary-light);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.bg-secondary {
|
|
25
|
+
background-color: var(--color-secondary-light);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ========================================
|
|
29
|
+
State Backgrounds
|
|
30
|
+
======================================== */
|
|
31
|
+
|
|
32
|
+
.bg-success {
|
|
33
|
+
background-color: var(--color-success-bg);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.bg-error {
|
|
37
|
+
background-color: var(--color-error-bg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.bg-warning {
|
|
41
|
+
background-color: var(--color-warning-bg);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bg-info {
|
|
45
|
+
background-color: var(--color-info-bg);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ========================================
|
|
49
|
+
Surface Backgrounds
|
|
50
|
+
======================================== */
|
|
51
|
+
|
|
52
|
+
.bg-surface {
|
|
53
|
+
background-color: var(--color-surface);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.bg-surface-secondary {
|
|
57
|
+
background-color: var(--color-surface-secondary);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.bg-transparent {
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Border Color Utilities
|
|
3
|
+
*
|
|
4
|
+
* Semantic border color utility classes for quick styling.
|
|
5
|
+
* All utilities reference semantic tokens (Tier 2), not primitives.
|
|
6
|
+
*
|
|
7
|
+
* Note: These utilities only set border-color.
|
|
8
|
+
* You may need to set border-width and border-style separately.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* <div class="border-primary" style="border: 1px solid;">
|
|
12
|
+
* <div class="border-error" style="border-width: 2px; border-style: solid;">
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/* ========================================
|
|
16
|
+
Brand Borders
|
|
17
|
+
======================================== */
|
|
18
|
+
|
|
19
|
+
.border-primary {
|
|
20
|
+
border-color: var(--color-primary);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.border-secondary {
|
|
24
|
+
border-color: var(--color-secondary);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ========================================
|
|
28
|
+
State Borders
|
|
29
|
+
======================================== */
|
|
30
|
+
|
|
31
|
+
.border-success {
|
|
32
|
+
border-color: var(--color-success-border);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.border-error {
|
|
36
|
+
border-color: var(--color-error-border);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.border-warning {
|
|
40
|
+
border-color: var(--color-warning-border);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.border-info {
|
|
44
|
+
border-color: var(--color-info-border);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ========================================
|
|
48
|
+
UI Borders
|
|
49
|
+
======================================== */
|
|
50
|
+
|
|
51
|
+
.border-default {
|
|
52
|
+
border-color: var(--color-border);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.border-subtle {
|
|
56
|
+
border-color: var(--color-border-subtle);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.border-transparent {
|
|
60
|
+
border-color: transparent;
|
|
61
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text Color Utilities
|
|
3
|
+
*
|
|
4
|
+
* Semantic text color utility classes for quick styling.
|
|
5
|
+
* All utilities reference semantic tokens (Tier 2), not primitives.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* <p class="text-primary">Primary text</p>
|
|
9
|
+
* <span class="text-error">Error message</span>
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* ========================================
|
|
13
|
+
Brand Text Colors
|
|
14
|
+
======================================== */
|
|
15
|
+
|
|
16
|
+
.text-primary {
|
|
17
|
+
color: var(--color-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.text-secondary {
|
|
21
|
+
color: var(--color-secondary);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ========================================
|
|
25
|
+
State Text Colors
|
|
26
|
+
======================================== */
|
|
27
|
+
|
|
28
|
+
.text-success {
|
|
29
|
+
color: var(--color-success-text);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.text-error {
|
|
33
|
+
color: var(--color-error-text);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text-warning {
|
|
37
|
+
color: var(--color-warning-text);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text-info {
|
|
41
|
+
color: var(--color-info-text);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ========================================
|
|
45
|
+
Text Hierarchy Colors
|
|
46
|
+
======================================== */
|
|
47
|
+
|
|
48
|
+
.text-muted {
|
|
49
|
+
color: var(--color-text-tertiary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.text-disabled {
|
|
53
|
+
color: var(--color-text-disabled);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.text-inverse {
|
|
57
|
+
color: var(--color-text-inverse);
|
|
58
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities - Main Export
|
|
3
|
+
*
|
|
4
|
+
* This file exports all utility classes.
|
|
5
|
+
* Utilities are loaded after tokens and base styles, before components.
|
|
6
|
+
*
|
|
7
|
+
* Usage in main index.scss:
|
|
8
|
+
* @use "./sass/utilities";
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* Existing utilities */
|
|
12
|
+
@forward "../../styles/utilities/disabled";
|
|
13
|
+
|
|
14
|
+
/* New color utilities (semantic only) */
|
|
15
|
+
@forward "./color-text";
|
|
16
|
+
@forward "./color-bg";
|
|
17
|
+
@forward "./color-border";
|