@4alldigital/foundation-ui--core 3.0.0 → 3.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4alldigital/foundation-ui--core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Foundation UI Core Component Library (source distribution)",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
".": "./src/index.ts",
|
|
9
9
|
"./components/*": "./src/components/*",
|
|
10
10
|
"./features/*": "./src/features/*",
|
|
11
|
-
"./lib/*": "./src/lib/*"
|
|
11
|
+
"./lib/*": "./src/lib/*",
|
|
12
|
+
"./tokens": "./src/styles/tokens.css"
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
14
15
|
"src"
|
|
@@ -31,5 +32,5 @@
|
|
|
31
32
|
},
|
|
32
33
|
"author": "Joe Mewes",
|
|
33
34
|
"license": "MIT",
|
|
34
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "97e889400e9cd39840b33bb80b679aaeba4de2ec"
|
|
35
36
|
}
|
|
@@ -38,7 +38,7 @@ const Header = ({
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const defaultHeaderStyles = 'relative z-10 w-full m-auto py-4 bg-
|
|
41
|
+
const defaultHeaderStyles = 'relative z-10 w-full m-auto py-4 bg-body-bg dark:bg-body-bg-dark';
|
|
42
42
|
|
|
43
43
|
if (context?.brand?.logoOnly) {
|
|
44
44
|
return (
|
|
@@ -59,7 +59,7 @@ const Header = ({
|
|
|
59
59
|
return (
|
|
60
60
|
<header
|
|
61
61
|
data-testid={testID || '"Header"'}
|
|
62
|
-
className={twMerge(cx(defaultHeaderStyles, ' text-header-text dark:text-
|
|
62
|
+
className={twMerge(cx(defaultHeaderStyles, ' text-header-text dark:text-body-text-dark', className))}>
|
|
63
63
|
<Container padded>
|
|
64
64
|
<div className="relative w-full flex">
|
|
65
65
|
{context?.brand?.logo && (
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Design Tokens
|
|
3
|
+
* Tailwind CSS v4 - CSS-first configuration
|
|
4
|
+
*
|
|
5
|
+
* These tokens are shared across all themes.
|
|
6
|
+
* Individual themes can override specific values.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
/* ============================================
|
|
11
|
+
PRIMITIVE COLOR TOKENS
|
|
12
|
+
============================================ */
|
|
13
|
+
/* Base colors */
|
|
14
|
+
--color-white: #FFFFFF;
|
|
15
|
+
--color-black: #000000;
|
|
16
|
+
|
|
17
|
+
/* Grey scale */
|
|
18
|
+
--color-grey-50: #F8F8F8;
|
|
19
|
+
--color-grey-100: #F1F1F1;
|
|
20
|
+
--color-grey-200: #EAEAEA;
|
|
21
|
+
--color-grey-300: #E3E3E3;
|
|
22
|
+
--color-grey-400: #DCDCDC;
|
|
23
|
+
--color-grey-500: #C0C0C0;
|
|
24
|
+
--color-grey-600: #A9A9A9;
|
|
25
|
+
--color-grey-700: #8C8C8C;
|
|
26
|
+
--color-grey-800: #666666;
|
|
27
|
+
--color-grey-900: #404040;
|
|
28
|
+
|
|
29
|
+
/* Info scale (blue/cyan) */
|
|
30
|
+
--color-info: #3ABFF8;
|
|
31
|
+
--color-info-50: #E6F9FD;
|
|
32
|
+
--color-info-100: #CFF3FB;
|
|
33
|
+
--color-info-200: #B8EDF8;
|
|
34
|
+
--color-info-300: #A1E7F6;
|
|
35
|
+
--color-info-400: #8AE1F3;
|
|
36
|
+
--color-info-500: #73DBF1;
|
|
37
|
+
--color-info-600: #5CC5DA;
|
|
38
|
+
--color-info-700: #469EB3;
|
|
39
|
+
--color-info-800: #2F788C;
|
|
40
|
+
--color-info-900: #195165;
|
|
41
|
+
|
|
42
|
+
/* Success scale (green) */
|
|
43
|
+
--color-success: #36D399;
|
|
44
|
+
--color-success-50: #E6FDEE;
|
|
45
|
+
--color-success-100: #CFFBDD;
|
|
46
|
+
--color-success-200: #B8F8CC;
|
|
47
|
+
--color-success-300: #A1F6BB;
|
|
48
|
+
--color-success-400: #8AEDAA;
|
|
49
|
+
--color-success-500: #73E499;
|
|
50
|
+
--color-success-600: #5CC482;
|
|
51
|
+
--color-success-700: #469E6C;
|
|
52
|
+
--color-success-800: #2F784F;
|
|
53
|
+
--color-success-900: #195133;
|
|
54
|
+
|
|
55
|
+
/* Warning scale (yellow/orange) */
|
|
56
|
+
--color-warning: #FBBD23;
|
|
57
|
+
--color-warning-50: #FEF9E6;
|
|
58
|
+
--color-warning-100: #FDF3CD;
|
|
59
|
+
--color-warning-200: #FCECB4;
|
|
60
|
+
--color-warning-300: #FBDF8B;
|
|
61
|
+
--color-warning-400: #FAD262;
|
|
62
|
+
--color-warning-500: #F9C639;
|
|
63
|
+
--color-warning-600: #E0AD32;
|
|
64
|
+
--color-warning-700: #B78C27;
|
|
65
|
+
--color-warning-800: #8E6B1D;
|
|
66
|
+
--color-warning-900: #654A13;
|
|
67
|
+
|
|
68
|
+
/* Error scale (red) */
|
|
69
|
+
--color-error: #F87272;
|
|
70
|
+
--color-error-50: #FCE6E6;
|
|
71
|
+
--color-error-100: #F9CDCD;
|
|
72
|
+
--color-error-200: #F6B4B4;
|
|
73
|
+
--color-error-300: #F29999;
|
|
74
|
+
--color-error-400: #EF8080;
|
|
75
|
+
--color-error-500: #EC6666;
|
|
76
|
+
--color-error-600: #D95252;
|
|
77
|
+
--color-error-700: #B34040;
|
|
78
|
+
--color-error-800: #8E2E2E;
|
|
79
|
+
--color-error-900: #6B1B1B;
|
|
80
|
+
|
|
81
|
+
/* Purple scale */
|
|
82
|
+
--color-purple-50: #ede9f4;
|
|
83
|
+
--color-purple-100: #c8b9de;
|
|
84
|
+
--color-purple-200: #ae98ce;
|
|
85
|
+
--color-purple-300: #8968b7;
|
|
86
|
+
--color-purple-400: #724ba9;
|
|
87
|
+
--color-purple-500: #4f1e94;
|
|
88
|
+
--color-purple-600: #481b87;
|
|
89
|
+
--color-purple-700: #381569;
|
|
90
|
+
--color-purple-800: #2b1151;
|
|
91
|
+
--color-purple-900: #210d3e;
|
|
92
|
+
|
|
93
|
+
/* Opacity variants */
|
|
94
|
+
--color-opacity-dark-10: rgba(0, 0, 0, 0.1);
|
|
95
|
+
--color-opacity-dark-20: rgba(0, 0, 0, 0.2);
|
|
96
|
+
--color-opacity-dark-30: rgba(0, 0, 0, 0.3);
|
|
97
|
+
--color-opacity-dark-40: rgba(0, 0, 0, 0.4);
|
|
98
|
+
--color-opacity-dark-50: rgba(0, 0, 0, 0.5);
|
|
99
|
+
--color-opacity-dark-60: rgba(0, 0, 0, 0.6);
|
|
100
|
+
--color-opacity-dark-70: rgba(0, 0, 0, 0.7);
|
|
101
|
+
--color-opacity-dark-80: rgba(0, 0, 0, 0.8);
|
|
102
|
+
--color-opacity-dark-90: rgba(0, 0, 0, 0.9);
|
|
103
|
+
--color-opacity-light-10: rgba(255, 255, 255, 0.1);
|
|
104
|
+
--color-opacity-light-20: rgba(255, 255, 255, 0.2);
|
|
105
|
+
--color-opacity-light-30: rgba(255, 255, 255, 0.3);
|
|
106
|
+
--color-opacity-light-40: rgba(255, 255, 255, 0.4);
|
|
107
|
+
--color-opacity-light-50: rgba(255, 255, 255, 0.5);
|
|
108
|
+
--color-opacity-light-60: rgba(255, 255, 255, 0.6);
|
|
109
|
+
--color-opacity-light-70: rgba(255, 255, 255, 0.7);
|
|
110
|
+
--color-opacity-light-80: rgba(255, 255, 255, 0.8);
|
|
111
|
+
--color-opacity-light-90: rgba(255, 255, 255, 0.9);
|
|
112
|
+
|
|
113
|
+
/* ============================================
|
|
114
|
+
TYPOGRAPHY
|
|
115
|
+
============================================ */
|
|
116
|
+
|
|
117
|
+
/* Font families */
|
|
118
|
+
--font-sans: ui-sans-serif, system-ui, sans-serif;
|
|
119
|
+
--font-serif: ui-serif, Georgia, serif;
|
|
120
|
+
--font-mono: ui-monospace, monospace;
|
|
121
|
+
/* Custom font families - these will be overridden by CSS vars from Next.js fonts at runtime */
|
|
122
|
+
--font-body: var(--font-sans);
|
|
123
|
+
--font-heading: var(--font-sans);
|
|
124
|
+
--font-display: var(--font-sans);
|
|
125
|
+
|
|
126
|
+
/* Font sizes */
|
|
127
|
+
--font-size-xs: 0.75rem;
|
|
128
|
+
--font-size-xs--line-height: 1rem;
|
|
129
|
+
--font-size-sm: 0.875rem;
|
|
130
|
+
--font-size-sm--line-height: 1.25rem;
|
|
131
|
+
--font-size-base: 1rem;
|
|
132
|
+
--font-size-base--line-height: 1.5rem;
|
|
133
|
+
--font-size-lg: 1.125rem;
|
|
134
|
+
--font-size-lg--line-height: 1.75rem;
|
|
135
|
+
--font-size-xl: 1.25rem;
|
|
136
|
+
--font-size-xl--line-height: 1.75rem;
|
|
137
|
+
--font-size-2xl: 1.5rem;
|
|
138
|
+
--font-size-2xl--line-height: 2rem;
|
|
139
|
+
--font-size-3xl: 1.875rem;
|
|
140
|
+
--font-size-3xl--line-height: 2.25rem;
|
|
141
|
+
--font-size-4xl: 2.25rem;
|
|
142
|
+
--font-size-4xl--line-height: 2.5rem;
|
|
143
|
+
--font-size-5xl: 3rem;
|
|
144
|
+
--font-size-5xl--line-height: 3.25rem;
|
|
145
|
+
--font-size-6xl: 3.75rem;
|
|
146
|
+
--font-size-6xl--line-height: 4rem;
|
|
147
|
+
--font-size-7xl: 4.5rem;
|
|
148
|
+
--font-size-7xl--line-height: 5rem;
|
|
149
|
+
--font-size-8xl: 6rem;
|
|
150
|
+
--font-size-8xl--line-height: 7rem;
|
|
151
|
+
--font-size-9xl: 8rem;
|
|
152
|
+
--font-size-9xl--line-height: 9rem;
|
|
153
|
+
|
|
154
|
+
/* Font weights */
|
|
155
|
+
--font-weight-thin: 100;
|
|
156
|
+
--font-weight-extralight: 200;
|
|
157
|
+
--font-weight-light: 300;
|
|
158
|
+
--font-weight-normal: 400;
|
|
159
|
+
--font-weight-medium: 500;
|
|
160
|
+
--font-weight-semibold: 600;
|
|
161
|
+
--font-weight-bold: 700;
|
|
162
|
+
--font-weight-extrabold: 800;
|
|
163
|
+
--font-weight-black: 900;
|
|
164
|
+
|
|
165
|
+
/* ============================================
|
|
166
|
+
BORDER RADIUS
|
|
167
|
+
============================================ */
|
|
168
|
+
|
|
169
|
+
--radius-none: 0;
|
|
170
|
+
--radius-sm: 0.125rem;
|
|
171
|
+
--radius: 0.25rem;
|
|
172
|
+
--radius-md: 0.375rem;
|
|
173
|
+
--radius-lg: 0.5rem;
|
|
174
|
+
--radius-xl: 0.75rem;
|
|
175
|
+
--radius-2xl: 1rem;
|
|
176
|
+
--radius-3xl: 1.5rem;
|
|
177
|
+
--radius-full: 9999px;
|
|
178
|
+
|
|
179
|
+
/* ============================================
|
|
180
|
+
SPACING
|
|
181
|
+
============================================ */
|
|
182
|
+
|
|
183
|
+
--spacing-px: 1px;
|
|
184
|
+
--spacing-0: 0;
|
|
185
|
+
--spacing-1: 0.25rem;
|
|
186
|
+
--spacing-2: 0.5rem;
|
|
187
|
+
--spacing-3: 0.75rem;
|
|
188
|
+
--spacing-4: 1rem;
|
|
189
|
+
--spacing-5: 1.25rem;
|
|
190
|
+
--spacing-6: 1.5rem;
|
|
191
|
+
--spacing-8: 2rem;
|
|
192
|
+
--spacing-10: 2.5rem;
|
|
193
|
+
--spacing-11: 2.75rem;
|
|
194
|
+
--spacing-12: 3rem;
|
|
195
|
+
--spacing-16: 4rem;
|
|
196
|
+
--spacing-20: 5rem;
|
|
197
|
+
--spacing-24: 6rem;
|
|
198
|
+
--spacing-32: 8rem;
|
|
199
|
+
--spacing-40: 10rem;
|
|
200
|
+
--spacing-48: 12rem;
|
|
201
|
+
--spacing-56: 14rem;
|
|
202
|
+
--spacing-64: 16rem;
|
|
203
|
+
--spacing-128: 32rem;
|
|
204
|
+
}
|