@goldlabelapps/theme 3.0.8 → 3.2.8
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/README.md +1 -1
- package/dist/components/RenderMarkdown.d.ts +7 -0
- package/dist/components/RenderMarkdown.js +118 -0
- package/dist/components/download/DownloadBanner.js +1 -1
- package/dist/components/footer/Footer.js +1 -1
- package/dist/components/guide/MarkdownContent.js +1 -1
- package/dist/components/hero/VideoModal.js +0 -1
- package/dist/components/navigation/LogoContextMenu.d.ts +0 -1
- package/dist/components/navigation/LogoContextMenu.js +0 -1
- package/dist/components/navigation/MobileMenu.js +15 -6
- package/dist/components/navigation/ShareMenu.d.ts +1 -1
- package/dist/components/navigation/ShareMenu.js +1 -2
- package/dist/components/showcase/FeatureExplorer.js +1 -1
- package/dist/components/ui/Card.d.ts +2 -1
- package/dist/components/ui/Card.js +29 -7
- package/dist/context/ConfigContext.js +1 -1
- package/dist/context/ThemeContext.js +2 -2
- package/dist/data/og-images.json +476 -0
- package/dist/design-system/components/DesignSystemProvider/DesignSystemProvider.js +1 -1
- package/dist/design-system/components/feedback/Alert/Alert.js +42 -5
- package/dist/design-system/components/feedback/Card/Card.d.ts +1 -1
- package/dist/design-system/components/feedback/Card/Card.js +10 -6
- package/dist/design-system/components/feedback/Field/Field.d.ts +1 -1
- package/dist/design-system/components/feedback/Field/Field.js +2 -2
- package/dist/design-system/components/icons/SVGIcons/BlokeyIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/BlokeyIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/ChromeIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/ChromeIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/DesktopIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/DesktopIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/EdgeIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/EdgeIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/FallmanagerIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/FirefoxIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/FirefoxIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/FlickrIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/FlickrIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/GatsbyIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/GoldenticketIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/GoldenticketIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/GoldlabelOutlined.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/GraphqlIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/GraphqlIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/IphoneIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/IphoneIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/LinuxIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/LinuxIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/MacIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/MacIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/MacromediaIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/MacromediaIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/OliverIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/OpenAIIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/PingpongballIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/SafariIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/SafariIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/WindowsIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/WindowsIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/WordpressIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/WordpressIcon.js +1 -1
- package/dist/design-system/components/icons/SVGIcons/XboxIcon.d.ts +2 -1
- package/dist/design-system/components/icons/SVGIcons/XboxIcon.js +1 -1
- package/dist/design-system/components/images/FeaturedImage/FeaturedImage.d.ts +1 -1
- package/dist/design-system/components/images/FeaturedImage/FeaturedImage.js +71 -23
- package/dist/design-system/components/images/FeaturedImage/types.d.ts +1 -1
- package/dist/design-system/components/layout/Footer/Footer.js +1 -1
- package/dist/design-system/components/nxStyle.d.ts +60 -0
- package/dist/design-system/components/nxStyle.js +54 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/styles/globals.css +150 -1
- package/dist/styles/site-layout.css +1 -1
- package/dist/styles/theme.js +76 -4
- package/dist/styles/tokens.css +65 -0
- package/package.json +5 -3
|
@@ -36,25 +36,45 @@ export const nxLightStyle = {
|
|
|
36
36
|
'--focus-ring': '#5A5A5A',
|
|
37
37
|
},
|
|
38
38
|
body: {
|
|
39
|
-
backgroundColor: '
|
|
39
|
+
backgroundColor: '#FFFFFF',
|
|
40
40
|
color: '#1E1E1E',
|
|
41
41
|
transition: 'background-color 0.2s ease',
|
|
42
42
|
},
|
|
43
|
+
a: {
|
|
44
|
+
color: '#012867',
|
|
45
|
+
textDecoration: 'none',
|
|
46
|
+
'&:hover': {
|
|
47
|
+
color: '#011f52',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
code: {
|
|
51
|
+
backgroundColor: '#F1F5F9',
|
|
52
|
+
color: '#0F172A',
|
|
53
|
+
},
|
|
54
|
+
pre: {
|
|
55
|
+
backgroundColor: '#F8FAFC',
|
|
56
|
+
color: '#0F172A',
|
|
57
|
+
borderColor: '#E2E8F0',
|
|
58
|
+
},
|
|
59
|
+
'pre code': {
|
|
60
|
+
backgroundColor: 'transparent',
|
|
61
|
+
color: 'inherit',
|
|
62
|
+
},
|
|
43
63
|
};
|
|
44
64
|
export const nxDarkStyle = {
|
|
45
65
|
':root': {
|
|
46
|
-
'--nx-ink': '#
|
|
47
|
-
'--nx-ink-logo': '#
|
|
48
|
-
'--nx-dusty': '#
|
|
49
|
-
'--nx-body': '#
|
|
50
|
-
'--nx-sign': '#
|
|
51
|
-
'--nx-ash': '#
|
|
52
|
-
'--nx-muted': '#
|
|
53
|
-
'--nx-fog': '#
|
|
66
|
+
'--nx-ink': '#FFFFFF',
|
|
67
|
+
'--nx-ink-logo': '#FFFFFF',
|
|
68
|
+
'--nx-dusty': '#F8FAFC',
|
|
69
|
+
'--nx-body': '#F8FAFC',
|
|
70
|
+
'--nx-sign': '#F1F5F9',
|
|
71
|
+
'--nx-ash': '#E2E8F0',
|
|
72
|
+
'--nx-muted': '#CBD5E1',
|
|
73
|
+
'--nx-fog': '#CBD5E1',
|
|
54
74
|
'--nx-parchment': '#111111',
|
|
55
75
|
'--nx-paper': '#1C1C1C',
|
|
56
76
|
'--nx-oat': '#4A4A4A',
|
|
57
|
-
'--nx-clay': '#
|
|
77
|
+
'--nx-clay': '#38BDF8',
|
|
58
78
|
'--nx-line': 'rgba(255, 255, 255, 0.16)',
|
|
59
79
|
'--nx-line-soft': 'rgba(255, 255, 255, 0.10)',
|
|
60
80
|
'--nx-glass': 'rgba(28, 28, 28, 0.72)',
|
|
@@ -75,14 +95,34 @@ export const nxDarkStyle = {
|
|
|
75
95
|
'--surface-footer': '#1C1C1C',
|
|
76
96
|
'--border-input': 'rgba(255, 255, 255, 0.22)',
|
|
77
97
|
'--border-input-hover': 'rgba(255, 255, 255, 0.32)',
|
|
78
|
-
'--border-input-focus': '#
|
|
79
|
-
'--focus-ring': '#
|
|
98
|
+
'--border-input-focus': '#FFFFFF',
|
|
99
|
+
'--focus-ring': '#FFFFFF',
|
|
80
100
|
},
|
|
81
101
|
body: {
|
|
82
|
-
backgroundColor: '
|
|
83
|
-
color: '#
|
|
102
|
+
backgroundColor: '#111111',
|
|
103
|
+
color: '#F8FAFC',
|
|
84
104
|
transition: 'background-color 0.2s ease',
|
|
85
105
|
},
|
|
106
|
+
a: {
|
|
107
|
+
color: '#F8FAFC',
|
|
108
|
+
textDecoration: 'none',
|
|
109
|
+
'&:hover': {
|
|
110
|
+
color: '#E2E8F0',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
code: {
|
|
114
|
+
backgroundColor: '#1E293B',
|
|
115
|
+
color: '#F8FAFC',
|
|
116
|
+
},
|
|
117
|
+
pre: {
|
|
118
|
+
backgroundColor: '#0F172A',
|
|
119
|
+
color: '#FFFFFF',
|
|
120
|
+
borderColor: '#334155',
|
|
121
|
+
},
|
|
122
|
+
'pre code': {
|
|
123
|
+
backgroundColor: 'transparent',
|
|
124
|
+
color: 'inherit',
|
|
125
|
+
},
|
|
86
126
|
};
|
|
87
127
|
export function getNxStyle(mode) {
|
|
88
128
|
return mode === 'dark' ? nxDarkStyle : nxLightStyle;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { default as Field } from "./design-system/components/feedback/Field/Fiel
|
|
|
15
15
|
export type { AlertProps } from "./design-system/components/feedback/Alert/types";
|
|
16
16
|
export type { FieldProps } from "./design-system/components/feedback/Field/types";
|
|
17
17
|
export { default as NxButton } from "./design-system/components/buttons/Button/Button";
|
|
18
|
+
export { Button } from "./components/ui/Button";
|
|
18
19
|
export { default as IconButton } from "./design-system/components/buttons/IconButton/IconButton";
|
|
19
20
|
export { default as Breadcrumb } from "./design-system/components/navigation/Breadcrumb/Breadcrumb";
|
|
20
21
|
export { default as Share } from "./design-system/components/navigation/Share/Share";
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export { default as ListSubheader } from "./design-system/components/lists/ListS
|
|
|
13
13
|
export { default as Alert } from "./design-system/components/feedback/Alert/Alert";
|
|
14
14
|
export { default as Field } from "./design-system/components/feedback/Field/Field";
|
|
15
15
|
export { default as NxButton } from "./design-system/components/buttons/Button/Button";
|
|
16
|
+
export { Button } from "./components/ui/Button";
|
|
16
17
|
export { default as IconButton } from "./design-system/components/buttons/IconButton/IconButton";
|
|
17
18
|
export { default as Breadcrumb } from "./design-system/components/navigation/Breadcrumb/Breadcrumb";
|
|
18
19
|
export { default as Share } from "./design-system/components/navigation/Share/Share";
|
package/dist/styles/globals.css
CHANGED
|
@@ -11,15 +11,94 @@
|
|
|
11
11
|
--primary-hover: #011f52;
|
|
12
12
|
--secondary: #0F172A;
|
|
13
13
|
--foreground: #0f172a;
|
|
14
|
-
--foreground-muted: #
|
|
14
|
+
--foreground-muted: #475569;
|
|
15
15
|
--card-bg: #ffffff;
|
|
16
16
|
--card-border: rgba(1, 40, 103, 0.1);
|
|
17
|
+
--surface-input: #ffffff;
|
|
18
|
+
--surface-input-border: #cbd5e1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(.dark, .dark *),
|
|
22
|
+
.dark,
|
|
23
|
+
[data-theme="dark"] {
|
|
24
|
+
--background: #0F172A;
|
|
25
|
+
--background-secondary: #1E293B;
|
|
26
|
+
--paper: #1E293B;
|
|
27
|
+
--primary: #F8FAFC;
|
|
28
|
+
--primary-hover: #E2E8F0;
|
|
29
|
+
--secondary: #F8FAFC;
|
|
30
|
+
--foreground: #F8FAFC;
|
|
31
|
+
--foreground-muted: #CBD5E1;
|
|
32
|
+
--card-bg: #1E293B;
|
|
33
|
+
--card-border: rgba(255, 255, 255, 0.12);
|
|
34
|
+
--surface-input: #1E293B;
|
|
35
|
+
--surface-input-border: rgba(255, 255, 255, 0.22);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input[type="text"],
|
|
39
|
+
input[type="email"],
|
|
40
|
+
input[type="password"],
|
|
41
|
+
input[type="search"],
|
|
42
|
+
input[type="tel"],
|
|
43
|
+
input[type="url"],
|
|
44
|
+
input[type="number"],
|
|
45
|
+
input[type="date"],
|
|
46
|
+
input[type="datetime-local"],
|
|
47
|
+
input[type="month"],
|
|
48
|
+
input[type="time"],
|
|
49
|
+
input[type="week"],
|
|
50
|
+
textarea,
|
|
51
|
+
select {
|
|
52
|
+
background-color: var(--surface-input, #ffffff);
|
|
53
|
+
color: var(--foreground);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(.dark, .dark *) input[type="text"],
|
|
57
|
+
:where(.dark, .dark *) input[type="email"],
|
|
58
|
+
:where(.dark, .dark *) input[type="password"],
|
|
59
|
+
:where(.dark, .dark *) input[type="search"],
|
|
60
|
+
:where(.dark, .dark *) input[type="tel"],
|
|
61
|
+
:where(.dark, .dark *) input[type="url"],
|
|
62
|
+
:where(.dark, .dark *) input[type="number"],
|
|
63
|
+
:where(.dark, .dark *) input[type="date"],
|
|
64
|
+
:where(.dark, .dark *) input[type="datetime-local"],
|
|
65
|
+
:where(.dark, .dark *) input[type="month"],
|
|
66
|
+
:where(.dark, .dark *) input[type="time"],
|
|
67
|
+
:where(.dark, .dark *) input[type="week"],
|
|
68
|
+
:where(.dark, .dark *) textarea,
|
|
69
|
+
:where(.dark, .dark *) select,
|
|
70
|
+
.dark input[type="text"],
|
|
71
|
+
.dark input[type="email"],
|
|
72
|
+
.dark input[type="password"],
|
|
73
|
+
.dark input[type="search"],
|
|
74
|
+
.dark input[type="tel"],
|
|
75
|
+
.dark input[type="url"],
|
|
76
|
+
.dark input[type="number"],
|
|
77
|
+
.dark input[type="date"],
|
|
78
|
+
.dark input[type="datetime-local"],
|
|
79
|
+
.dark input[type="month"],
|
|
80
|
+
.dark input[type="time"],
|
|
81
|
+
.dark input[type="week"],
|
|
82
|
+
.dark textarea,
|
|
83
|
+
.dark select {
|
|
84
|
+
background-color: var(--surface-input, #1e293b);
|
|
85
|
+
color: var(--foreground);
|
|
17
86
|
}
|
|
18
87
|
|
|
19
88
|
* {
|
|
20
89
|
border-color: rgba(15, 23, 42, 0.12);
|
|
21
90
|
}
|
|
22
91
|
|
|
92
|
+
a {
|
|
93
|
+
color: var(--primary);
|
|
94
|
+
text-decoration: none;
|
|
95
|
+
transition: color 0.15s ease;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
a:hover {
|
|
99
|
+
color: var(--primary-hover);
|
|
100
|
+
}
|
|
101
|
+
|
|
23
102
|
html {
|
|
24
103
|
scroll-behavior: smooth;
|
|
25
104
|
color-scheme: light;
|
|
@@ -65,6 +144,43 @@
|
|
|
65
144
|
font-size: inherit;
|
|
66
145
|
}
|
|
67
146
|
|
|
147
|
+
:where(.dark, .dark *) code,
|
|
148
|
+
.dark code {
|
|
149
|
+
background-color: #1e293b;
|
|
150
|
+
color: #f1f5f9;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:where(.dark, .dark *) pre,
|
|
154
|
+
.dark pre {
|
|
155
|
+
background-color: #0f172a;
|
|
156
|
+
color: #f8fafc;
|
|
157
|
+
border-color: #334155;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:where(.dark, .dark *) pre code,
|
|
161
|
+
.dark pre code {
|
|
162
|
+
background-color: transparent;
|
|
163
|
+
color: inherit;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@media (prefers-color-scheme: dark) {
|
|
167
|
+
:root:not(.light) code {
|
|
168
|
+
background-color: #1e293b;
|
|
169
|
+
color: #f1f5f9;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:root:not(.light) pre {
|
|
173
|
+
background-color: #0f172a;
|
|
174
|
+
color: #f8fafc;
|
|
175
|
+
border-color: #334155;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:root:not(.light) pre code {
|
|
179
|
+
background-color: transparent;
|
|
180
|
+
color: inherit;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
68
184
|
::selection {
|
|
69
185
|
background-color: #012867;
|
|
70
186
|
color: #ffffff;
|
|
@@ -89,3 +205,36 @@
|
|
|
89
205
|
::-webkit-scrollbar-thumb:hover {
|
|
90
206
|
background: #94a3b8;
|
|
91
207
|
}
|
|
208
|
+
|
|
209
|
+
:where(.dark, .dark *) ::-webkit-scrollbar-track,
|
|
210
|
+
.dark ::-webkit-scrollbar-track,
|
|
211
|
+
.dark::-webkit-scrollbar-track {
|
|
212
|
+
background: #0f172a;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:where(.dark, .dark *) ::-webkit-scrollbar-thumb,
|
|
216
|
+
.dark ::-webkit-scrollbar-thumb,
|
|
217
|
+
.dark::-webkit-scrollbar-thumb {
|
|
218
|
+
background: #334155;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:where(.dark, .dark *) ::-webkit-scrollbar-thumb:hover,
|
|
222
|
+
.dark ::-webkit-scrollbar-thumb:hover,
|
|
223
|
+
.dark::-webkit-scrollbar-thumb:hover {
|
|
224
|
+
background: #475569;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@media (prefers-color-scheme: dark) {
|
|
228
|
+
:root:not(.light) ::-webkit-scrollbar-track {
|
|
229
|
+
background: #0f172a;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:root:not(.light) ::-webkit-scrollbar-thumb {
|
|
233
|
+
background: #334155;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:root:not(.light) ::-webkit-scrollbar-thumb:hover {
|
|
237
|
+
background: #475569;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
package/dist/styles/theme.js
CHANGED
|
@@ -1,20 +1,44 @@
|
|
|
1
1
|
import { createTheme } from '@mui/material/styles';
|
|
2
2
|
export function createAppTheme(mode = 'light', themeConfig) {
|
|
3
3
|
const isDark = mode === 'dark';
|
|
4
|
-
const resolvedPrimary = themeConfig?.primary ?? (isDark ? '#
|
|
5
|
-
const resolvedSecondary = themeConfig?.secondary ?? (isDark ? '#
|
|
4
|
+
const resolvedPrimary = themeConfig?.primary ?? (isDark ? '#FFFFFF' : '#5A5A5A');
|
|
5
|
+
const resolvedSecondary = themeConfig?.secondary ?? (isDark ? '#F5F5F5' : '#7A7A7A');
|
|
6
6
|
const palette = {
|
|
7
7
|
dark: {
|
|
8
8
|
primary: resolvedPrimary,
|
|
9
9
|
secondary: resolvedSecondary,
|
|
10
10
|
background: '#111111',
|
|
11
11
|
paper: '#1C1C1C',
|
|
12
|
-
text: '#
|
|
13
|
-
textSecondary: '#
|
|
12
|
+
text: '#FFFFFF',
|
|
13
|
+
textSecondary: '#CBD5E1',
|
|
14
14
|
border: 'rgba(255, 255, 255, 0.16)',
|
|
15
15
|
borderSoft: 'rgba(255, 255, 255, 0.10)',
|
|
16
16
|
shadow: '0 12px 40px rgba(0, 0, 0, 0.35)',
|
|
17
17
|
buttonShadow: '0 12px 30px rgba(0, 0, 0, 0.4)',
|
|
18
|
+
error: {
|
|
19
|
+
main: '#F87171',
|
|
20
|
+
light: '#FCA5A5',
|
|
21
|
+
dark: '#EF4444',
|
|
22
|
+
contrastText: '#0F172A',
|
|
23
|
+
},
|
|
24
|
+
warning: {
|
|
25
|
+
main: '#FBBF24',
|
|
26
|
+
light: '#FDE047',
|
|
27
|
+
dark: '#F59E0B',
|
|
28
|
+
contrastText: '#0F172A',
|
|
29
|
+
},
|
|
30
|
+
info: {
|
|
31
|
+
main: '#38BDF8',
|
|
32
|
+
light: '#7DD3FC',
|
|
33
|
+
dark: '#0284C7',
|
|
34
|
+
contrastText: '#0F172A',
|
|
35
|
+
},
|
|
36
|
+
success: {
|
|
37
|
+
main: '#4ADE80',
|
|
38
|
+
light: '#86EFAC',
|
|
39
|
+
dark: '#22C55E',
|
|
40
|
+
contrastText: '#0F172A',
|
|
41
|
+
},
|
|
18
42
|
},
|
|
19
43
|
light: {
|
|
20
44
|
primary: resolvedPrimary,
|
|
@@ -27,6 +51,30 @@ export function createAppTheme(mode = 'light', themeConfig) {
|
|
|
27
51
|
borderSoft: 'rgba(31, 31, 31, 0.08)',
|
|
28
52
|
shadow: '0 12px 40px rgba(31, 31, 31, 0.12)',
|
|
29
53
|
buttonShadow: '0 12px 30px rgba(31, 31, 31, 0.18)',
|
|
54
|
+
error: {
|
|
55
|
+
main: '#DC2626',
|
|
56
|
+
light: '#EF4444',
|
|
57
|
+
dark: '#991B1B',
|
|
58
|
+
contrastText: '#FFFFFF',
|
|
59
|
+
},
|
|
60
|
+
warning: {
|
|
61
|
+
main: '#D97706',
|
|
62
|
+
light: '#F59E0B',
|
|
63
|
+
dark: '#92400E',
|
|
64
|
+
contrastText: '#FFFFFF',
|
|
65
|
+
},
|
|
66
|
+
info: {
|
|
67
|
+
main: '#2563EB',
|
|
68
|
+
light: '#3B82F6',
|
|
69
|
+
dark: '#1E40AF',
|
|
70
|
+
contrastText: '#FFFFFF',
|
|
71
|
+
},
|
|
72
|
+
success: {
|
|
73
|
+
main: '#16A34A',
|
|
74
|
+
light: '#22C55E',
|
|
75
|
+
dark: '#166534',
|
|
76
|
+
contrastText: '#FFFFFF',
|
|
77
|
+
},
|
|
30
78
|
},
|
|
31
79
|
}[mode];
|
|
32
80
|
const resolvedPalette = {
|
|
@@ -47,6 +95,10 @@ export function createAppTheme(mode = 'light', themeConfig) {
|
|
|
47
95
|
main: resolvedPalette.secondary,
|
|
48
96
|
contrastText: isDark ? '#111111' : '#FFFFFF',
|
|
49
97
|
},
|
|
98
|
+
error: palette.error,
|
|
99
|
+
warning: palette.warning,
|
|
100
|
+
info: palette.info,
|
|
101
|
+
success: palette.success,
|
|
50
102
|
background: {
|
|
51
103
|
default: resolvedPalette.background,
|
|
52
104
|
paper: resolvedPalette.paper,
|
|
@@ -89,6 +141,26 @@ export function createAppTheme(mode = 'light', themeConfig) {
|
|
|
89
141
|
}
|
|
90
142
|
},
|
|
91
143
|
components: {
|
|
144
|
+
MuiFormHelperText: {
|
|
145
|
+
styleOverrides: {
|
|
146
|
+
root: {
|
|
147
|
+
'&.Mui-error': {
|
|
148
|
+
color: isDark ? '#FCA5A5' : '#DC2626',
|
|
149
|
+
fontWeight: 500,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
MuiInputBase: {
|
|
155
|
+
styleOverrides: {
|
|
156
|
+
root: {
|
|
157
|
+
backgroundColor: isDark ? '#1E293B' : undefined,
|
|
158
|
+
'&.Mui-error .MuiOutlinedInput-notchedOutline': {
|
|
159
|
+
borderColor: isDark ? '#F87171' : '#DC2626',
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
92
164
|
MuiButton: {
|
|
93
165
|
styleOverrides: {
|
|
94
166
|
root: {
|
package/dist/styles/tokens.css
CHANGED
|
@@ -106,4 +106,69 @@
|
|
|
106
106
|
--border-input-hover: rgba(30, 28, 52, 0.42);
|
|
107
107
|
--border-input-focus: var(--nx-clay);
|
|
108
108
|
--focus-ring: var(--nx-clay);
|
|
109
|
+
--nx-error: #dc2626;
|
|
110
|
+
--nx-error-bg: rgba(220, 38, 38, 0.08);
|
|
111
|
+
--nx-error-border: rgba(220, 38, 38, 0.3);
|
|
112
|
+
--nx-error-text: #991b1b;
|
|
113
|
+
--nx-warning: #d97706;
|
|
114
|
+
--nx-warning-bg: rgba(217, 119, 6, 0.08);
|
|
115
|
+
--nx-warning-border: rgba(217, 119, 6, 0.3);
|
|
116
|
+
--nx-warning-text: #92400e;
|
|
117
|
+
--nx-success: #16a34a;
|
|
118
|
+
--nx-success-bg: rgba(22, 163, 74, 0.08);
|
|
119
|
+
--nx-success-border: rgba(22, 163, 74, 0.3);
|
|
120
|
+
--nx-success-text: #166534;
|
|
121
|
+
--nx-info: #2563eb;
|
|
122
|
+
--nx-info-bg: rgba(37, 99, 235, 0.08);
|
|
123
|
+
--nx-info-border: rgba(37, 99, 235, 0.3);
|
|
124
|
+
--nx-info-text: #1e40af;
|
|
109
125
|
}
|
|
126
|
+
|
|
127
|
+
:where(.dark, .dark *),
|
|
128
|
+
.dark,
|
|
129
|
+
[data-theme="dark"] {
|
|
130
|
+
color-scheme: dark;
|
|
131
|
+
--nx-ink: #ffffff;
|
|
132
|
+
--nx-ink-logo: #ffffff;
|
|
133
|
+
--nx-dusty: #f8fafc;
|
|
134
|
+
--nx-body: #f8fafc;
|
|
135
|
+
--nx-sign: #f1f5f9;
|
|
136
|
+
--nx-ash: #e2e8f0;
|
|
137
|
+
--nx-muted: #cbd5e1;
|
|
138
|
+
--nx-fog: #cbd5e1;
|
|
139
|
+
--nx-parchment: #0f172a;
|
|
140
|
+
--nx-paper: #1e293b;
|
|
141
|
+
--nx-oat: #334155;
|
|
142
|
+
--nx-clay: #60a5fa;
|
|
143
|
+
--nx-line: rgba(255, 255, 255, 0.16);
|
|
144
|
+
--nx-line-soft: rgba(255, 255, 255, 0.10);
|
|
145
|
+
--nx-glass: rgba(30, 41, 59, 0.72);
|
|
146
|
+
--nx-glass-hi: rgba(51, 65, 85, 0.82);
|
|
147
|
+
--nx-tile: rgba(30, 41, 59, 0.86);
|
|
148
|
+
--nx-scrim: rgba(15, 23, 42, 0.95);
|
|
149
|
+
--surface-input: rgba(30, 41, 59, 0.92);
|
|
150
|
+
--surface-input-hover: #334155;
|
|
151
|
+
--surface-input-focus: #475569;
|
|
152
|
+
--surface-input-disabled: #1e293b;
|
|
153
|
+
--border-input: rgba(255, 255, 255, 0.22);
|
|
154
|
+
--border-input-hover: rgba(255, 255, 255, 0.32);
|
|
155
|
+
--border-input-focus: #ffffff;
|
|
156
|
+
--focus-ring: #ffffff;
|
|
157
|
+
--nx-error: #f87171;
|
|
158
|
+
--nx-error-bg: rgba(248, 113, 113, 0.15);
|
|
159
|
+
--nx-error-border: rgba(248, 113, 113, 0.4);
|
|
160
|
+
--nx-error-text: #fca5a5;
|
|
161
|
+
--nx-warning: #fbbf24;
|
|
162
|
+
--nx-warning-bg: rgba(251, 191, 36, 0.15);
|
|
163
|
+
--nx-warning-border: rgba(251, 191, 36, 0.4);
|
|
164
|
+
--nx-warning-text: #fde047;
|
|
165
|
+
--nx-success: #4ade80;
|
|
166
|
+
--nx-success-bg: rgba(74, 222, 128, 0.15);
|
|
167
|
+
--nx-success-border: rgba(74, 222, 128, 0.4);
|
|
168
|
+
--nx-success-text: #86efac;
|
|
169
|
+
--nx-info: #60a5fa;
|
|
170
|
+
--nx-info-bg: rgba(96, 165, 250, 0.15);
|
|
171
|
+
--nx-info-border: rgba(96, 165, 250, 0.4);
|
|
172
|
+
--nx-info-text: #93c5fd;
|
|
173
|
+
}
|
|
174
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldlabelapps/theme",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.8",
|
|
4
4
|
"description": "NX° theme tokens, UI primitives, and layout showcase blocks",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
45
|
-
"build": "tsc -p tsconfig.build.json && mkdir -p dist/styles && cp src/styles/*.css dist/styles/",
|
|
45
|
+
"build": "pnpm --dir ../flash build && tsc -p tsconfig.build.json && mkdir -p dist/styles && cp src/styles/*.css dist/styles/",
|
|
46
46
|
"type-check": "tsc --noEmit",
|
|
47
47
|
"test": "vitest run",
|
|
48
|
-
"lint": "
|
|
48
|
+
"lint": "eslint .",
|
|
49
49
|
"clean": "rm -rf dist"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
@@ -56,10 +56,12 @@
|
|
|
56
56
|
"react-dom": ">=18.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@goldlabelapps/flash": "workspace:*",
|
|
59
60
|
"canvas-confetti": "^1.9.4",
|
|
60
61
|
"clsx": "^2.1.1",
|
|
61
62
|
"framer-motion": "^13.1.1",
|
|
62
63
|
"lucide-react": "^1.34.0",
|
|
64
|
+
"react-markdown": "^10.1.0",
|
|
63
65
|
"react-share": "^5.3.0",
|
|
64
66
|
"tailwind-merge": "^3.6.0"
|
|
65
67
|
},
|