@tydavidson/design-system 1.1.6 → 1.1.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 +59 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +351 -177
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +343 -174
- package/dist/index.mjs.map +1 -1
- package/dist/themes/index.d.mts +40 -1
- package/dist/themes/index.d.ts +40 -1
- package/dist/themes/index.js +192 -60
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/index.mjs +183 -56
- package/dist/themes/index.mjs.map +1 -1
- package/docs/component-colors.ts +94 -0
- package/docs/component-specific-colors.md +253 -0
- package/docs/setup-guide.md +373 -0
- package/docs/theme-usage.md +668 -0
- package/docs/troubleshooting.md +148 -0
- package/package.json +3 -2
package/dist/themes/index.mjs
CHANGED
@@ -1,15 +1,34 @@
|
|
1
|
+
import * as React from 'react';
|
1
2
|
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1 } from 'next-themes';
|
2
3
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
3
|
-
import * as React from 'react';
|
4
4
|
import { clsx } from 'clsx';
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
6
6
|
import { IconSun, IconMoon } from '@tabler/icons-react';
|
7
|
+
import dynamic from 'next/dynamic';
|
8
|
+
|
9
|
+
var __defProp = Object.defineProperty;
|
10
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
11
|
+
var __esm = (fn, res) => function __init() {
|
12
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
13
|
+
};
|
14
|
+
var __export = (target, all) => {
|
15
|
+
for (var name in all)
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
17
|
+
};
|
7
18
|
|
8
19
|
// src/themes/theme-provider.tsx
|
20
|
+
var theme_provider_exports = {};
|
21
|
+
__export(theme_provider_exports, {
|
22
|
+
ThemeProvider: () => ThemeProvider,
|
23
|
+
ThemeProviderNoSSR: () => ThemeProviderNoSSR
|
24
|
+
});
|
9
25
|
function ThemeProvider({
|
10
26
|
children,
|
11
27
|
...props
|
12
28
|
}) {
|
29
|
+
if (typeof window === "undefined") {
|
30
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
31
|
+
}
|
13
32
|
return /* @__PURE__ */ jsx(
|
14
33
|
ThemeProvider$1,
|
15
34
|
{
|
@@ -22,64 +41,96 @@ function ThemeProvider({
|
|
22
41
|
}
|
23
42
|
);
|
24
43
|
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
return "secondary";
|
36
|
-
// Will need additional classes
|
37
|
-
default:
|
38
|
-
return "default";
|
44
|
+
function ThemeProviderNoSSR({
|
45
|
+
children,
|
46
|
+
...props
|
47
|
+
}) {
|
48
|
+
const [mounted, setMounted] = React.useState(false);
|
49
|
+
React.useEffect(() => {
|
50
|
+
setMounted(true);
|
51
|
+
}, []);
|
52
|
+
if (!mounted) {
|
53
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
39
54
|
}
|
40
|
-
};
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
case "secondary":
|
46
|
-
return "outline";
|
47
|
-
case "tertiary":
|
48
|
-
return "ghost";
|
49
|
-
default:
|
50
|
-
return "default";
|
55
|
+
return /* @__PURE__ */ jsx(ThemeProvider, { ...props, children });
|
56
|
+
}
|
57
|
+
var init_theme_provider = __esm({
|
58
|
+
"src/themes/theme-provider.tsx"() {
|
59
|
+
"use client";
|
51
60
|
}
|
52
|
-
};
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
61
|
+
});
|
62
|
+
|
63
|
+
// src/lib/theme-utils.ts
|
64
|
+
var mapColorToShadcnVariant, mapVariantToShadcnVariant, getColorVariantClasses, isDarkTheme;
|
65
|
+
var init_theme_utils = __esm({
|
66
|
+
"src/lib/theme-utils.ts"() {
|
67
|
+
mapColorToShadcnVariant = (color) => {
|
68
|
+
switch (color) {
|
69
|
+
case "brand":
|
70
|
+
return "default";
|
71
|
+
case "error":
|
72
|
+
return "destructive";
|
73
|
+
case "warning":
|
74
|
+
case "success":
|
75
|
+
return "secondary";
|
76
|
+
// Will need additional classes
|
77
|
+
default:
|
78
|
+
return "default";
|
79
|
+
}
|
80
|
+
};
|
81
|
+
mapVariantToShadcnVariant = (variant) => {
|
82
|
+
switch (variant) {
|
83
|
+
case "primary":
|
84
|
+
return "default";
|
85
|
+
case "secondary":
|
86
|
+
return "outline";
|
87
|
+
case "tertiary":
|
88
|
+
return "ghost";
|
89
|
+
default:
|
90
|
+
return "default";
|
91
|
+
}
|
92
|
+
};
|
93
|
+
getColorVariantClasses = (color, variant) => {
|
94
|
+
const colorVariantMap = {
|
95
|
+
primary: {
|
96
|
+
brand: "bg-brand-600 hover:bg-brand-700 text-white focus-visible:ring-brand-500",
|
97
|
+
error: "bg-error-600 hover:bg-error-700 text-white focus-visible:ring-error-500",
|
98
|
+
warning: "bg-warning-600 hover:bg-warning-700 text-white focus-visible:ring-warning-500",
|
99
|
+
success: "bg-success-600 hover:bg-success-700 text-white focus-visible:ring-success-500"
|
100
|
+
},
|
101
|
+
secondary: {
|
102
|
+
brand: "border-brand-300 text-brand-700 hover:bg-brand-50 focus-visible:ring-brand-500",
|
103
|
+
error: "border-error-300 text-error-700 hover:bg-error-50 focus-visible:ring-error-500",
|
104
|
+
warning: "border-warning-300 text-warning-700 hover:bg-warning-50 focus-visible:ring-warning-500",
|
105
|
+
success: "border-success-300 text-success-700 hover:bg-success-50 focus-visible:ring-success-500"
|
106
|
+
},
|
107
|
+
tertiary: {
|
108
|
+
brand: "text-brand-700 hover:bg-brand-50 focus-visible:ring-brand-500",
|
109
|
+
error: "text-error-700 hover:bg-error-50 focus-visible:ring-error-500",
|
110
|
+
warning: "text-warning-700 hover:bg-warning-50 focus-visible:ring-warning-500",
|
111
|
+
success: "text-success-700 hover:bg-success-50 focus-visible:ring-success-500"
|
112
|
+
}
|
113
|
+
};
|
114
|
+
return colorVariantMap[variant]?.[color] || "";
|
115
|
+
};
|
116
|
+
isDarkTheme = (theme, systemTheme) => {
|
117
|
+
if (theme === "system") {
|
118
|
+
return systemTheme === "dark";
|
119
|
+
}
|
120
|
+
return theme === "dark";
|
121
|
+
};
|
79
122
|
}
|
80
|
-
|
81
|
-
};
|
123
|
+
});
|
82
124
|
function useTheme() {
|
125
|
+
if (typeof window === "undefined") {
|
126
|
+
return {
|
127
|
+
theme: "system",
|
128
|
+
setTheme: () => {
|
129
|
+
},
|
130
|
+
resolvedTheme: "light",
|
131
|
+
isDark: false
|
132
|
+
};
|
133
|
+
}
|
83
134
|
const { theme, setTheme, resolvedTheme, systemTheme } = useTheme$1();
|
84
135
|
const isDark = isDarkTheme(theme, systemTheme);
|
85
136
|
return {
|
@@ -89,14 +140,33 @@ function useTheme() {
|
|
89
140
|
isDark
|
90
141
|
};
|
91
142
|
}
|
143
|
+
function useThemeServer() {
|
144
|
+
return {
|
145
|
+
theme: "system",
|
146
|
+
setTheme: () => {
|
147
|
+
},
|
148
|
+
resolvedTheme: "light",
|
149
|
+
isDark: false
|
150
|
+
};
|
151
|
+
}
|
92
152
|
function ThemeContextProvider({
|
93
153
|
children
|
94
154
|
}) {
|
95
155
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
96
156
|
}
|
157
|
+
var init_theme_context = __esm({
|
158
|
+
"src/themes/theme-context.tsx"() {
|
159
|
+
"use client";
|
160
|
+
init_theme_utils();
|
161
|
+
}
|
162
|
+
});
|
97
163
|
function cn(...inputs) {
|
98
164
|
return twMerge(clsx(inputs));
|
99
165
|
}
|
166
|
+
var init_utils = __esm({
|
167
|
+
"src/lib/utils.ts"() {
|
168
|
+
}
|
169
|
+
});
|
100
170
|
function ThemeToggle({
|
101
171
|
className,
|
102
172
|
variant = "icon",
|
@@ -184,7 +254,64 @@ function ThemeToggle({
|
|
184
254
|
}
|
185
255
|
);
|
186
256
|
}
|
257
|
+
var init_theme_toggle = __esm({
|
258
|
+
"src/components/ui/theme-toggle/theme-toggle.tsx"() {
|
259
|
+
"use client";
|
260
|
+
init_theme_context();
|
261
|
+
init_utils();
|
262
|
+
}
|
263
|
+
});
|
264
|
+
|
265
|
+
// src/components/ui/theme-toggle/index.ts
|
266
|
+
var theme_toggle_exports = {};
|
267
|
+
__export(theme_toggle_exports, {
|
268
|
+
ThemeToggle: () => ThemeToggle
|
269
|
+
});
|
270
|
+
var init_theme_toggle2 = __esm({
|
271
|
+
"src/components/ui/theme-toggle/index.ts"() {
|
272
|
+
init_theme_toggle();
|
273
|
+
}
|
274
|
+
});
|
275
|
+
|
276
|
+
// src/themes/index.ts
|
277
|
+
init_theme_provider();
|
278
|
+
init_theme_context();
|
279
|
+
init_theme_toggle2();
|
280
|
+
var DynamicThemeProvider = dynamic(
|
281
|
+
() => Promise.resolve().then(() => (init_theme_provider(), theme_provider_exports)).then((mod) => ({ default: mod.ThemeProvider })),
|
282
|
+
{
|
283
|
+
ssr: false,
|
284
|
+
loading: () => /* @__PURE__ */ jsx("div", { style: { visibility: "hidden" } })
|
285
|
+
}
|
286
|
+
);
|
287
|
+
var DynamicThemeProviderNoSSR = dynamic(
|
288
|
+
() => Promise.resolve().then(() => (init_theme_provider(), theme_provider_exports)).then((mod) => ({ default: mod.ThemeProviderNoSSR })),
|
289
|
+
{
|
290
|
+
ssr: false,
|
291
|
+
loading: () => /* @__PURE__ */ jsx("div", { style: { visibility: "hidden" } })
|
292
|
+
}
|
293
|
+
);
|
294
|
+
var DynamicThemeToggle = dynamic(
|
295
|
+
() => Promise.resolve().then(() => (init_theme_toggle2(), theme_toggle_exports)).then((mod) => ({ default: mod.ThemeToggle })),
|
296
|
+
{
|
297
|
+
ssr: false,
|
298
|
+
loading: () => /* @__PURE__ */ jsx("div", { style: { visibility: "hidden" } })
|
299
|
+
}
|
300
|
+
);
|
301
|
+
function SafeThemeProvider({
|
302
|
+
children,
|
303
|
+
noSSR = false,
|
304
|
+
...props
|
305
|
+
}) {
|
306
|
+
if (noSSR) {
|
307
|
+
return /* @__PURE__ */ jsx(DynamicThemeProviderNoSSR, { ...props, children });
|
308
|
+
}
|
309
|
+
return /* @__PURE__ */ jsx(DynamicThemeProvider, { ...props, children });
|
310
|
+
}
|
311
|
+
|
312
|
+
// src/themes/index.ts
|
313
|
+
init_theme_utils();
|
187
314
|
|
188
|
-
export { ThemeContextProvider, ThemeProvider, ThemeToggle, getColorVariantClasses, isDarkTheme, mapColorToShadcnVariant, mapVariantToShadcnVariant, useTheme };
|
315
|
+
export { DynamicThemeProvider, DynamicThemeProviderNoSSR, DynamicThemeToggle, SafeThemeProvider, ThemeContextProvider, ThemeProvider, ThemeProviderNoSSR, ThemeToggle, getColorVariantClasses, isDarkTheme, mapColorToShadcnVariant, mapVariantToShadcnVariant, useTheme, useThemeServer };
|
189
316
|
//# sourceMappingURL=index.mjs.map
|
190
317
|
//# sourceMappingURL=index.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/themes/theme-provider.tsx","../../src/lib/theme-utils.ts","../../src/themes/theme-context.tsx","../../src/lib/utils.ts","../../src/components/ui/theme-toggle/theme-toggle.tsx"],"names":["NextThemesProvider","useNextTheme","jsx"],"mappings":";;;;;;;;AAYO,SAAS,aAAA,CAAc;AAAA,EAC5B,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAuB;AACrB,EAAA,uBACE,GAAA;AAAA,IAACA,eAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAU,OAAA;AAAA,MACV,YA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,WAAA;AAAA,QACT,SAAA,EAAW,EAAA;AAAA,UACT,gGAAA;AAAA,UACA,gBAAgB,IAAI,CAAA;AAAA,UACpB,8CAAA;AAAA,UACA;AAAA,SACF;AAAA,QACC,GAAG,KAAA;AAAA,QAEH,QAAA,EAAA,aAAA,KAAkB,SAAS,YAAA,GAAe;AAAA;AAAA,KAC7C;AAAA,EAEJ;AAGA,EAAA,uBACEA,GAAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,IAAA,EAAK,QAAA;AAAA,MACL,OAAA,EAAS,WAAA;AAAA,MACT,SAAA,EAAW,EAAA;AAAA,QACT,oKAAA;AAAA,QACA,gBAAgB,IAAI,CAAA;AAAA,QACpB,aAAA,KAAkB,SACd,qDAAA,GACA,kDAAA;AAAA,QACJ;AAAA,OACF;AAAA,MACA,YAAA,EAAY,aAAA,KAAkB,MAAA,GAAS,uBAAA,GAA0B,sBAAA;AAAA,MAChE,GAAG,KAAA;AAAA,MAEH,QAAA,EAAA,aAAA,KAAkB,MAAA,mBACjB,IAAA,CAAC,MAAA,EAAA,EAAK,WAAU,mBAAA,EACd,QAAA,EAAA;AAAA,wBAAAA,GAAAA,CAAC,WAAQ,IAAA,EAAM,QAAA,CAAS,IAAI,CAAA,EAAG,MAAA,EAAQ,GAAA,EAAK,SAAA,EAAU,MAAA,EAAO,CAAA;AAAA,QAAE;AAAA,OAAA,EAEjE,CAAA,mBAEA,IAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,mBAAA,EACd,QAAA,EAAA;AAAA,wBAAAA,GAAAA,CAAC,YAAS,IAAA,EAAM,QAAA,CAAS,IAAI,CAAA,EAAG,MAAA,EAAQ,GAAA,EAAK,SAAA,EAAU,MAAA,EAAO,CAAA;AAAA,QAAE;AAAA,OAAA,EAElE;AAAA;AAAA,GAEJ;AAEJ","file":"index.mjs","sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\"\nimport type { ThemeProviderProps } from \"next-themes/dist/types\"\n\n/**\n * ThemeProvider component for handling theme state\n * \n * This wraps the next-themes provider with sensible defaults\n * for handling light/dark themes and system preferences\n */\nexport function ThemeProvider({ \n children, \n ...props \n}: ThemeProviderProps) {\n return (\n <NextThemesProvider\n attribute=\"class\"\n defaultTheme=\"system\"\n enableSystem\n disableTransitionOnChange\n {...props}\n >\n {children}\n </NextThemesProvider>\n )\n}","/**\n * Utility functions for theme handling\n */\n\n/**\n * Supported color theme values\n */\nexport type ThemeColor = 'brand' | 'error' | 'warning' | 'success';\n\n/**\n * Supported component variant types\n */\nexport type ComponentVariant = 'primary' | 'secondary' | 'tertiary';\n\n/**\n * Map design system colors to shadcn variants\n * \n * @param color - The design system color\n * @returns The corresponding shadcn variant\n */\nexport const mapColorToShadcnVariant = (color: ThemeColor) => {\n switch (color) {\n case 'brand': return 'default';\n case 'error': return 'destructive';\n case 'warning':\n case 'success':\n return 'secondary'; // Will need additional classes\n default: return 'default';\n }\n};\n\n/**\n * Map design system variants to shadcn variants\n * \n * @param variant - The design system variant\n * @returns The corresponding shadcn variant\n */\nexport const mapVariantToShadcnVariant = (variant: ComponentVariant) => {\n switch (variant) {\n case 'primary': return 'default';\n case 'secondary': return 'outline';\n case 'tertiary': return 'ghost';\n default: return 'default';\n }\n};\n\n/**\n * Generate Tailwind classes for color/variant combinations\n * \n * @param color - The design system color\n * @param variant - The design system variant\n * @returns String of Tailwind classes\n */\nexport const getColorVariantClasses = (\n color: ThemeColor, \n variant: ComponentVariant\n): string => {\n const colorVariantMap: Record<ComponentVariant, Record<ThemeColor, string>> = {\n primary: {\n brand: 'bg-brand-600 hover:bg-brand-700 text-white focus-visible:ring-brand-500',\n error: 'bg-error-600 hover:bg-error-700 text-white focus-visible:ring-error-500',\n warning: 'bg-warning-600 hover:bg-warning-700 text-white focus-visible:ring-warning-500',\n success: 'bg-success-600 hover:bg-success-700 text-white focus-visible:ring-success-500',\n },\n secondary: {\n brand: 'border-brand-300 text-brand-700 hover:bg-brand-50 focus-visible:ring-brand-500',\n error: 'border-error-300 text-error-700 hover:bg-error-50 focus-visible:ring-error-500',\n warning: 'border-warning-300 text-warning-700 hover:bg-warning-50 focus-visible:ring-warning-500',\n success: 'border-success-300 text-success-700 hover:bg-success-50 focus-visible:ring-success-500',\n },\n tertiary: {\n brand: 'text-brand-700 hover:bg-brand-50 focus-visible:ring-brand-500',\n error: 'text-error-700 hover:bg-error-50 focus-visible:ring-error-500',\n warning: 'text-warning-700 hover:bg-warning-50 focus-visible:ring-warning-500',\n success: 'text-success-700 hover:bg-success-50 focus-visible:ring-success-500',\n }\n };\n\n return colorVariantMap[variant]?.[color] || '';\n};\n\n/**\n * Determine if the current theme is dark\n * \n * @param theme - The current theme\n * @param systemTheme - The system theme\n * @returns True if the theme is dark\n */\nexport const isDarkTheme = (theme: string | undefined, systemTheme: string | undefined): boolean => {\n if (theme === 'system') {\n return systemTheme === 'dark';\n }\n return theme === 'dark';\n};","\"use client\"\n\nimport { useTheme as useNextTheme } from \"next-themes\"\nimport { isDarkTheme } from \"../lib/theme-utils\"\n\n/**\n * Enhanced useTheme hook that works directly with next-themes\n * \n * This hook provides a simplified interface to next-themes with additional\n * utility properties for better compatibility with Next.js App Router\n */\nexport function useTheme() {\n const { theme, setTheme, resolvedTheme, systemTheme } = useNextTheme();\n \n // Determine if the theme is dark\n const isDark = isDarkTheme(theme, systemTheme);\n \n return {\n theme: theme || \"system\",\n setTheme,\n resolvedTheme: resolvedTheme || \"light\",\n isDark,\n };\n}\n\n/**\n * @deprecated Use ThemeProvider from './theme-provider' instead\n * This component is kept for backward compatibility but is no longer needed\n */\nexport function ThemeContextProvider({ \n children \n}: { \n children: React.ReactNode \n}) {\n // This is now a no-op wrapper for backward compatibility\n return <>{children}</>;\n}","import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Combines multiple class values into a single className string\n * with proper Tailwind CSS class merging.\n * \n * @param inputs - Class values to merge\n * @returns Merged className string\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\n/**\n * Utility function to generate a unique ID.\n * Useful for ensuring unique IDs for form elements.\n * \n * @param prefix - Optional prefix for the ID\n * @returns A unique ID string\n */\nexport function generateId(prefix = 'id'): string {\n const randomId = Math.random().toString(36).substring(2, 9);\n return `${prefix}-${randomId}`;\n}\n\n/**\n * Type guard to check if a value is not null or undefined\n * \n * @param value - Value to check\n * @returns True if value is not null or undefined\n */\nexport function isNotNullOrUndefined<T>(value: T | null | undefined): value is T {\n return value !== null && value !== undefined;\n}\n\n/**\n * Returns only the props that are safe to spread onto a DOM element\n * by filtering out custom props\n * \n * @param props - The props object\n * @param propNames - Names of custom props to filter out\n * @returns Object with only DOM-safe props\n */\nexport function filterDOMProps<T extends Record<string, any>, K extends keyof T>(\n props: T, \n propNames: K[]\n): Omit<T, K> {\n const result = { ...props };\n propNames.forEach(name => delete result[name]);\n return result;\n}","\"use client\"\n\nimport * as React from \"react\"\nimport { useTheme } from \"../../../themes/theme-context\"\nimport { cn } from \"../../../lib/utils\"\nimport { IconMoon, IconSun } from \"@tabler/icons-react\"\n\n/**\n * Props for the ThemeToggle component\n */\nexport interface ThemeToggleProps extends React.HTMLAttributes<HTMLButtonElement> {\n /**\n * Variant of the toggle\n * @default 'icon'\n */\n variant?: 'icon' | 'switch' | 'button';\n \n /**\n * Size of the toggle\n * @default 'md'\n */\n size?: 'sm' | 'md' | 'lg';\n}\n\n/**\n * ThemeToggle component to switch between light and dark themes\n */\nexport function ThemeToggle({ \n className, \n variant = 'icon', \n size = 'md',\n ...props \n}: ThemeToggleProps) {\n const { theme, setTheme, resolvedTheme } = useTheme()\n const [mounted, setMounted] = React.useState(false)\n\n // Handle hydration mismatch\n React.useEffect(() => {\n setMounted(true)\n }, [])\n\n // Only render on client to prevent hydration mismatch\n if (!mounted) return null;\n\n // Toggle between light and dark\n const toggleTheme = () => {\n setTheme(resolvedTheme === \"dark\" ? \"light\" : \"dark\")\n }\n\n // Size mapping for Tabler icons\n const iconSize = {\n sm: 16,\n md: 20,\n lg: 24,\n }\n\n // Size classes for button\n const sizeClasses = {\n sm: 'h-8 w-8',\n md: 'h-10 w-10',\n lg: 'h-12 w-12',\n }\n\n // Text size classes\n const textSizeClasses = {\n sm: 'text-xs',\n md: 'text-sm',\n lg: 'text-base',\n }\n\n // Variant specific rendering\n if (variant === 'icon') {\n return (\n <button\n type=\"button\"\n onClick={toggleTheme}\n className={cn(\n \"inline-flex items-center justify-center rounded-md border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n sizeClasses[size],\n className\n )}\n aria-label={resolvedTheme === \"dark\" ? \"Switch to light theme\" : \"Switch to dark theme\"}\n {...props}\n >\n {resolvedTheme === \"dark\" ? (\n <IconSun size={iconSize[size]} stroke={1.5} />\n ) : (\n <IconMoon size={iconSize[size]} stroke={1.5} />\n )}\n </button>\n )\n }\n \n // Button variant\n if (variant === 'button') {\n return (\n <button\n type=\"button\"\n onClick={toggleTheme}\n className={cn(\n \"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2\",\n textSizeClasses[size],\n \"hover:bg-accent hover:text-accent-foreground\",\n className\n )}\n {...props}\n >\n {resolvedTheme === \"dark\" ? \"Light Mode\" : \"Dark Mode\"}\n </button>\n )\n }\n \n // Switch variant\n return (\n <button\n type=\"button\"\n onClick={toggleTheme}\n className={cn(\n \"inline-flex items-center justify-center rounded-md px-3 py-2 font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n textSizeClasses[size],\n resolvedTheme === \"dark\" \n ? \"bg-accent text-accent-foreground hover:bg-accent/80\" \n : \"bg-muted text-muted-foreground hover:bg-muted/80\",\n className\n )}\n aria-label={resolvedTheme === \"dark\" ? \"Switch to light theme\" : \"Switch to dark theme\"}\n {...props}\n >\n {resolvedTheme === \"dark\" ? (\n <span className=\"flex items-center\">\n <IconSun size={iconSize[size]} stroke={1.5} className=\"mr-2\" />\n Light\n </span>\n ) : (\n <span className=\"flex items-center\">\n <IconMoon size={iconSize[size]} stroke={1.5} className=\"mr-2\" />\n Dark\n </span>\n )}\n </button>\n )\n}"]}
|
1
|
+
{"version":3,"sources":["../../src/themes/theme-provider.tsx","../../src/lib/theme-utils.ts","../../src/themes/theme-context.tsx","../../src/lib/utils.ts","../../src/components/ui/theme-toggle/theme-toggle.tsx","../../src/components/ui/theme-toggle/index.ts","../../src/themes/index.ts","../../src/themes/dynamic-imports.tsx"],"names":["NextThemesProvider","useNextTheme","jsx","Fragment","React2","init_theme_toggle"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAA,sBAAA,GAAA,EAAA;AAAA,QAAA,CAAA,sBAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,kBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAeO,SAAS,aAAA,CAAc;AAAA,EAC5B,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAuB;AAErB,EAAA,IAAI,OAAO,WAAW,WAAA,EAAa;AAEjC,IAAA,uCAAU,QAAA,EAAS,CAAA;AAAA,EACrB;AAEA,EAAA,uBACE,GAAA;AAAA,IAACA,eAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAU,OAAA;AAAA,MACV,YAAA,EAAa,QAAA;AAAA,MACb,YAAA,EAAY,IAAA;AAAA,MACZ,yBAAA,EAAyB,IAAA;AAAA,MACxB,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ;AAMO,SAAS,kBAAA,CAAmB;AAAA,EACjC,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAuB;AACrB,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,CAAA,GAAU,eAAS,KAAK,CAAA;AAElD,EAAM,gBAAU,MAAM;AACpB,IAAA,UAAA,CAAW,IAAI,CAAA;AAAA,EACjB,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,uCAAU,QAAA,EAAS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AA;AACpD;;;ADzCA,gBAAA,EAAA","file":"index.mjs","sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\"\nimport type { ThemeProviderProps } from \"next-themes/dist/types\"\n\n/**\n * ThemeProvider component for handling theme state\n * \n * This wraps the next-themes provider with sensible defaults\n * for handling light/dark themes and system preferences\n * \n * IMPORTANT: This component must be used in a Client Component context.\n * For Server Components, use the NoSSR wrapper or dynamic imports.\n */\nexport function ThemeProvider({ \n children, \n ...props \n}: ThemeProviderProps) {\n // Ensure we're in a client environment\n if (typeof window === 'undefined') {\n // Return children without theme provider in SSR\n return <>{children}</>;\n }\n\n return (\n <NextThemesProvider\n attribute=\"class\"\n defaultTheme=\"system\"\n enableSystem\n disableTransitionOnChange\n {...props}\n >\n {children}\n </NextThemesProvider>\n )\n}\n\n/**\n * NoSSR wrapper for theme provider to prevent SSR issues\n * Use this when you need to ensure the theme provider only renders on the client\n */\nexport function ThemeProviderNoSSR({ \n children, \n ...props \n}: ThemeProviderProps) {\n const [mounted, setMounted] = React.useState(false);\n\n React.useEffect(() => {\n setMounted(true);\n }, []);\n\n if (!mounted) {\n return <>{children}</>;\n }\n\n return (\n <ThemeProvider {...props}>\n {children}\n </ThemeProvider>\n );\n}","/**\n * Utility functions for theme handling\n */\n\n/**\n * Supported color theme values\n */\nexport type ThemeColor = 'brand' | 'error' | 'warning' | 'success';\n\n/**\n * Supported component variant types\n */\nexport type ComponentVariant = 'primary' | 'secondary' | 'tertiary';\n\n/**\n * Map design system colors to shadcn variants\n * \n * @param color - The design system color\n * @returns The corresponding shadcn variant\n */\nexport const mapColorToShadcnVariant = (color: ThemeColor) => {\n switch (color) {\n case 'brand': return 'default';\n case 'error': return 'destructive';\n case 'warning':\n case 'success':\n return 'secondary'; // Will need additional classes\n default: return 'default';\n }\n};\n\n/**\n * Map design system variants to shadcn variants\n * \n * @param variant - The design system variant\n * @returns The corresponding shadcn variant\n */\nexport const mapVariantToShadcnVariant = (variant: ComponentVariant) => {\n switch (variant) {\n case 'primary': return 'default';\n case 'secondary': return 'outline';\n case 'tertiary': return 'ghost';\n default: return 'default';\n }\n};\n\n/**\n * Generate Tailwind classes for color/variant combinations\n * \n * @param color - The design system color\n * @param variant - The design system variant\n * @returns String of Tailwind classes\n */\nexport const getColorVariantClasses = (\n color: ThemeColor, \n variant: ComponentVariant\n): string => {\n const colorVariantMap: Record<ComponentVariant, Record<ThemeColor, string>> = {\n primary: {\n brand: 'bg-brand-600 hover:bg-brand-700 text-white focus-visible:ring-brand-500',\n error: 'bg-error-600 hover:bg-error-700 text-white focus-visible:ring-error-500',\n warning: 'bg-warning-600 hover:bg-warning-700 text-white focus-visible:ring-warning-500',\n success: 'bg-success-600 hover:bg-success-700 text-white focus-visible:ring-success-500',\n },\n secondary: {\n brand: 'border-brand-300 text-brand-700 hover:bg-brand-50 focus-visible:ring-brand-500',\n error: 'border-error-300 text-error-700 hover:bg-error-50 focus-visible:ring-error-500',\n warning: 'border-warning-300 text-warning-700 hover:bg-warning-50 focus-visible:ring-warning-500',\n success: 'border-success-300 text-success-700 hover:bg-success-50 focus-visible:ring-success-500',\n },\n tertiary: {\n brand: 'text-brand-700 hover:bg-brand-50 focus-visible:ring-brand-500',\n error: 'text-error-700 hover:bg-error-50 focus-visible:ring-error-500',\n warning: 'text-warning-700 hover:bg-warning-50 focus-visible:ring-warning-500',\n success: 'text-success-700 hover:bg-success-50 focus-visible:ring-success-500',\n }\n };\n\n return colorVariantMap[variant]?.[color] || '';\n};\n\n/**\n * Determine if the current theme is dark\n * \n * @param theme - The current theme\n * @param systemTheme - The system theme\n * @returns True if the theme is dark\n */\nexport const isDarkTheme = (theme: string | undefined, systemTheme: string | undefined): boolean => {\n if (theme === 'system') {\n return systemTheme === 'dark';\n }\n return theme === 'dark';\n};","\"use client\"\n\nimport { useTheme as useNextTheme } from \"next-themes\"\nimport { isDarkTheme } from \"../lib/theme-utils\"\n\n/**\n * Enhanced useTheme hook that works directly with next-themes\n * \n * This hook provides a simplified interface to next-themes with additional\n * utility properties for better compatibility with Next.js App Router\n * \n * IMPORTANT: This hook must be used within a Client Component.\n * For Server Components, use the useThemeServer hook instead.\n */\nexport function useTheme() {\n // Ensure we're in a client environment\n if (typeof window === 'undefined') {\n // Return default values for SSR\n return {\n theme: \"system\",\n setTheme: () => {},\n resolvedTheme: \"light\",\n isDark: false,\n };\n }\n\n const { theme, setTheme, resolvedTheme, systemTheme } = useNextTheme();\n \n // Determine if the theme is dark\n const isDark = isDarkTheme(theme, systemTheme);\n \n return {\n theme: theme || \"system\",\n setTheme,\n resolvedTheme: resolvedTheme || \"light\",\n isDark,\n };\n}\n\n/**\n * Server-safe theme hook that can be used in Server Components\n * Returns default theme values without accessing client-side APIs\n */\nexport function useThemeServer() {\n return {\n theme: \"system\",\n setTheme: () => {},\n resolvedTheme: \"light\",\n isDark: false,\n };\n}\n\n/**\n * @deprecated Use ThemeProvider from './theme-provider' instead\n * This component is kept for backward compatibility but is no longer needed\n */\nexport function ThemeContextProvider({ \n children \n}: { \n children: React.ReactNode \n}) {\n // This is now a no-op wrapper for backward compatibility\n return <>{children}</>;\n}","import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Combines multiple class values into a single className string\n * with proper Tailwind CSS class merging.\n * \n * @param inputs - Class values to merge\n * @returns Merged className string\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\n/**\n * Utility function to generate a unique ID.\n * Useful for ensuring unique IDs for form elements.\n * \n * @param prefix - Optional prefix for the ID\n * @returns A unique ID string\n */\nexport function generateId(prefix = 'id'): string {\n const randomId = Math.random().toString(36).substring(2, 9);\n return `${prefix}-${randomId}`;\n}\n\n/**\n * Type guard to check if a value is not null or undefined\n * \n * @param value - Value to check\n * @returns True if value is not null or undefined\n */\nexport function isNotNullOrUndefined<T>(value: T | null | undefined): value is T {\n return value !== null && value !== undefined;\n}\n\n/**\n * Returns only the props that are safe to spread onto a DOM element\n * by filtering out custom props\n * \n * @param props - The props object\n * @param propNames - Names of custom props to filter out\n * @returns Object with only DOM-safe props\n */\nexport function filterDOMProps<T extends Record<string, any>, K extends keyof T>(\n props: T, \n propNames: K[]\n): Omit<T, K> {\n const result = { ...props };\n propNames.forEach(name => delete result[name]);\n return result;\n}","\"use client\"\n\nimport * as React from \"react\"\nimport { useTheme } from \"../../../themes/theme-context\"\nimport { cn } from \"../../../lib/utils\"\nimport { IconMoon, IconSun } from \"@tabler/icons-react\"\n\n/**\n * Props for the ThemeToggle component\n */\nexport interface ThemeToggleProps extends React.HTMLAttributes<HTMLButtonElement> {\n /**\n * Variant of the toggle\n * @default 'icon'\n */\n variant?: 'icon' | 'switch' | 'button';\n \n /**\n * Size of the toggle\n * @default 'md'\n */\n size?: 'sm' | 'md' | 'lg';\n}\n\n/**\n * ThemeToggle component to switch between light and dark themes\n */\nexport function ThemeToggle({ \n className, \n variant = 'icon', \n size = 'md',\n ...props \n}: ThemeToggleProps) {\n const { theme, setTheme, resolvedTheme } = useTheme()\n const [mounted, setMounted] = React.useState(false)\n\n // Handle hydration mismatch\n React.useEffect(() => {\n setMounted(true)\n }, [])\n\n // Only render on client to prevent hydration mismatch\n if (!mounted) return null;\n\n // Toggle between light and dark\n const toggleTheme = () => {\n setTheme(resolvedTheme === \"dark\" ? \"light\" : \"dark\")\n }\n\n // Size mapping for Tabler icons\n const iconSize = {\n sm: 16,\n md: 20,\n lg: 24,\n }\n\n // Size classes for button\n const sizeClasses = {\n sm: 'h-8 w-8',\n md: 'h-10 w-10',\n lg: 'h-12 w-12',\n }\n\n // Text size classes\n const textSizeClasses = {\n sm: 'text-xs',\n md: 'text-sm',\n lg: 'text-base',\n }\n\n // Variant specific rendering\n if (variant === 'icon') {\n return (\n <button\n type=\"button\"\n onClick={toggleTheme}\n className={cn(\n \"inline-flex items-center justify-center rounded-md border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n sizeClasses[size],\n className\n )}\n aria-label={resolvedTheme === \"dark\" ? \"Switch to light theme\" : \"Switch to dark theme\"}\n {...props}\n >\n {resolvedTheme === \"dark\" ? (\n <IconSun size={iconSize[size]} stroke={1.5} />\n ) : (\n <IconMoon size={iconSize[size]} stroke={1.5} />\n )}\n </button>\n )\n }\n \n // Button variant\n if (variant === 'button') {\n return (\n <button\n type=\"button\"\n onClick={toggleTheme}\n className={cn(\n \"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2\",\n textSizeClasses[size],\n \"hover:bg-accent hover:text-accent-foreground\",\n className\n )}\n {...props}\n >\n {resolvedTheme === \"dark\" ? \"Light Mode\" : \"Dark Mode\"}\n </button>\n )\n }\n \n // Switch variant\n return (\n <button\n type=\"button\"\n onClick={toggleTheme}\n className={cn(\n \"inline-flex items-center justify-center rounded-md px-3 py-2 font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\",\n textSizeClasses[size],\n resolvedTheme === \"dark\" \n ? \"bg-accent text-accent-foreground hover:bg-accent/80\" \n : \"bg-muted text-muted-foreground hover:bg-muted/80\",\n className\n )}\n aria-label={resolvedTheme === \"dark\" ? \"Switch to light theme\" : \"Switch to dark theme\"}\n {...props}\n >\n {resolvedTheme === \"dark\" ? (\n <span className=\"flex items-center\">\n <IconSun size={iconSize[size]} stroke={1.5} className=\"mr-2\" />\n Light\n </span>\n ) : (\n <span className=\"flex items-center\">\n <IconMoon size={iconSize[size]} stroke={1.5} className=\"mr-2\" />\n Dark\n </span>\n )}\n </button>\n )\n}","export * from './theme-toggle';","// Theme system exports\nexport { ThemeProvider, ThemeProviderNoSSR } from './theme-provider';\nexport { ThemeContextProvider, useTheme, useThemeServer } from './theme-context';\nexport { ThemeToggle } from '../components/ui/theme-toggle/index';\n\n// Dynamic imports for Server Component compatibility\nexport { \n DynamicThemeProvider, \n DynamicThemeProviderNoSSR, \n DynamicThemeToggle,\n SafeThemeProvider \n} from './dynamic-imports';\n\n// Re-export theme utilities\nexport { isDarkTheme, mapColorToShadcnVariant, mapVariantToShadcnVariant, getColorVariantClasses } from '../lib/theme-utils';\n\n// Export types\nexport type { ThemeColor, ComponentVariant } from '../lib/theme-utils';\n","\"use client\"\n\nimport dynamic from 'next/dynamic'\nimport type { ComponentType } from 'react'\n\n/**\n * Dynamically import theme components to prevent SSR issues\n * Use these imports when you need to use theme components in Server Components\n */\n\n// Dynamic import for ThemeProvider\nexport const DynamicThemeProvider = dynamic(\n () => import('./theme-provider').then(mod => ({ default: mod.ThemeProvider })),\n {\n ssr: false,\n loading: () => <div style={{ visibility: 'hidden' }} />,\n }\n) as ComponentType<any>\n\n// Dynamic import for ThemeProviderNoSSR\nexport const DynamicThemeProviderNoSSR = dynamic(\n () => import('./theme-provider').then(mod => ({ default: mod.ThemeProviderNoSSR })),\n {\n ssr: false,\n loading: () => <div style={{ visibility: 'hidden' }} />,\n }\n) as ComponentType<any>\n\n// Dynamic import for ThemeToggle\nexport const DynamicThemeToggle = dynamic(\n () => import('../components/ui/theme-toggle').then(mod => ({ default: mod.ThemeToggle })),\n {\n ssr: false,\n loading: () => <div style={{ visibility: 'hidden' }} />,\n }\n) as ComponentType<any>\n\n/**\n * Safe theme provider for Next.js App Router\n * Automatically handles Server Component compatibility\n */\nexport function SafeThemeProvider({ \n children, \n noSSR = false,\n ...props \n}: {\n children: React.ReactNode\n noSSR?: boolean\n [key: string]: any\n}) {\n if (noSSR) {\n return <DynamicThemeProviderNoSSR {...props}>{children}</DynamicThemeProviderNoSSR>\n }\n \n return <DynamicThemeProvider {...props}>{children}</DynamicThemeProvider>\n} "]}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
|
2
|
+
// export const componentColorsComponentsAppStoreBadgesAppStoreBadgeBorder = '#a6a6a6'
|
3
|
+
// export const componentColorsComponentsApplicationNavigationNavItemButtonIconFg = 'var(--colors-gray-light-mode-500)'
|
4
|
+
// export const componentColorsComponentsApplicationNavigationNavItemButtonIconFg_active = 'var(--colors-gray-light-mode-700)'
|
5
|
+
// export const componentColorsComponentsApplicationNavigationNavItemIconFg = 'var(--colors-gray-light-mode-500)'
|
6
|
+
// export const componentColorsComponentsApplicationNavigationNavItemIconFg_active = 'var(--colors-gray-light-mode-500)'
|
7
|
+
// export const componentColorsComponentsAvatarsAvatarBg = 'var(--colors-gray-light-mode-100)'
|
8
|
+
// export const componentColorsComponentsAvatarsAvatarContrastBorder = '#00000014'
|
9
|
+
// export const componentColorsComponentsAvatarsAvatarFocusBorder = '#98a2b324'
|
10
|
+
// export const componentColorsComponentsAvatarsAvatarProfilePhotoBorder = 'var(--colors-base-white)'
|
11
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbBg_hover = 'var(--colors-gray-light-mode-50)'
|
12
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbBrandBg_hover = 'var(--colors-brand-50)'
|
13
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbBrandFg_hover = 'var(--colors-brand-700)'
|
14
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbBrandIconFg_hover = 'var(--colors-brand-700)'
|
15
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbFg = 'var(--colors-gray-light-mode-600)'
|
16
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbFg_hover = 'var(--colors-gray-light-mode-700)'
|
17
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbIconFg = 'var(--colors-gray-light-mode-500)'
|
18
|
+
// export const componentColorsComponentsBreadcrumbsBreadcrumbIconFg_hover = 'var(--colors-gray-light-mode-700)'
|
19
|
+
export const componentColorsComponentsButtonsPrimaryButtonPrimaryBg = 'var(--colors-brand-700)'
|
20
|
+
export const componentColorsComponentsButtonsPrimaryButtonPrimaryBg_hover = 'var(--colors-brand-800)'
|
21
|
+
export const componentColorsComponentsButtonsPrimaryButtonPrimaryBorder = 'var(--colors-brand-700)'
|
22
|
+
export const componentColorsComponentsButtonsPrimaryButtonPrimaryBorder_hover = 'var(--colors-brand-800)'
|
23
|
+
export const componentColorsComponentsButtonsPrimaryButtonPrimaryFg = 'var(--colors-base-white)'
|
24
|
+
export const componentColorsComponentsButtonsPrimaryButtonPrimaryFg_hover = 'var(--colors-base-white)'
|
25
|
+
export const componentColorsComponentsButtonsPrimaryErrorButtonPrimaryErrorBg = 'var(--colors-error-600)'
|
26
|
+
export const componentColorsComponentsButtonsPrimaryErrorButtonPrimaryErrorBg_hover = 'var(--colors-error-700)'
|
27
|
+
export const componentColorsComponentsButtonsPrimaryErrorButtonPrimaryErrorBorder = 'var(--colors-error-600)'
|
28
|
+
export const componentColorsComponentsButtonsPrimaryErrorButtonPrimaryErrorBorder_hover = 'var(--colors-error-700)'
|
29
|
+
export const componentColorsComponentsButtonsPrimaryErrorButtonPrimaryErrorFg = 'var(--colors-base-white)'
|
30
|
+
export const componentColorsComponentsButtonsPrimaryErrorButtonPrimaryErrorFg_hover = 'var(--colors-base-white)'
|
31
|
+
export const componentColorsComponentsButtonsSecondaryButtonSecondaryBg = 'var(--colors-base-white)'
|
32
|
+
export const componentColorsComponentsButtonsSecondaryButtonSecondaryBg_hover = 'var(--colors-gray-light-mode-50)'
|
33
|
+
export const componentColorsComponentsButtonsSecondaryButtonSecondaryBorder = 'var(--colors-gray-light-mode-300)'
|
34
|
+
export const componentColorsComponentsButtonsSecondaryButtonSecondaryBorder_hover = 'var(--colors-gray-light-mode-300)'
|
35
|
+
export const componentColorsComponentsButtonsSecondaryButtonSecondaryFg = 'var(--colors-gray-light-mode-700)'
|
36
|
+
export const componentColorsComponentsButtonsSecondaryButtonSecondaryFg_hover = 'var(--colors-gray-light-mode-800)'
|
37
|
+
export const componentColorsComponentsButtonsSecondaryColorButtonSecondaryColorBg = 'var(--colors-base-white)'
|
38
|
+
export const componentColorsComponentsButtonsSecondaryColorButtonSecondaryColorBg_hover = 'var(--colors-brand-50)'
|
39
|
+
export const componentColorsComponentsButtonsSecondaryColorButtonSecondaryColorBorder = 'var(--colors-brand-300)'
|
40
|
+
export const componentColorsComponentsButtonsSecondaryColorButtonSecondaryColorBorder_hover = 'var(--colors-brand-300)'
|
41
|
+
export const componentColorsComponentsButtonsSecondaryColorButtonSecondaryColorFg = 'var(--colors-brand-600)'
|
42
|
+
export const componentColorsComponentsButtonsSecondaryColorButtonSecondaryColorFg_hover = 'var(--colors-brand-700)'
|
43
|
+
export const componentColorsComponentsButtonsSecondaryErrorButtonSecondaryErrorBg = 'var(--colors-base-white)'
|
44
|
+
export const componentColorsComponentsButtonsSecondaryErrorButtonSecondaryErrorBg_hover = 'var(--colors-error-50)'
|
45
|
+
export const componentColorsComponentsButtonsSecondaryErrorButtonSecondaryErrorBorder = 'var(--colors-error-300)'
|
46
|
+
export const componentColorsComponentsButtonsSecondaryErrorButtonSecondaryErrorBorder_hover = 'var(--colors-error-300)'
|
47
|
+
export const componentColorsComponentsButtonsSecondaryErrorButtonSecondaryErrorFg = 'var(--colors-error-700)'
|
48
|
+
export const componentColorsComponentsButtonsSecondaryErrorButtonSecondaryErrorFg_hover = 'var(--colors-error-800)'
|
49
|
+
export const componentColorsComponentsButtonsTertiaryButtonTertiaryBg_hover = 'var(--colors-gray-light-mode-50)'
|
50
|
+
export const componentColorsComponentsButtonsTertiaryButtonTertiaryFg = 'var(--colors-gray-light-mode-600)'
|
51
|
+
export const componentColorsComponentsButtonsTertiaryButtonTertiaryFg_hover = 'var(--colors-gray-light-mode-700)'
|
52
|
+
export const componentColorsComponentsButtonsTertiaryColorButtonTertiaryColorBg_hover = 'var(--colors-brand-50)'
|
53
|
+
export const componentColorsComponentsButtonsTertiaryColorButtonTertiaryColorFg = 'var(--colors-brand-700)'
|
54
|
+
export const componentColorsComponentsButtonsTertiaryColorButtonTertiaryColorFg_hover = 'var(--colors-brand-800)'
|
55
|
+
export const componentColorsComponentsButtonsTertiaryErrorButtonTertiaryErrorBg_hover = 'var(--colors-error-50)'
|
56
|
+
export const componentColorsComponentsButtonsTertiaryErrorButtonTertiaryErrorFg = 'var(--colors-error-700)'
|
57
|
+
export const componentColorsComponentsButtonsTertiaryErrorButtonTertiaryErrorFg_hover = 'var(--colors-error-800)'
|
58
|
+
// export const componentColorsComponentsFootersFooterBadgeBg = 'var(--colors-success-50)'
|
59
|
+
// export const componentColorsComponentsFootersFooterBadgeBorder = 'var(--colors-success-200)'
|
60
|
+
// export const componentColorsComponentsFootersFooterBadgeFg = 'var(--colors-success-700)'
|
61
|
+
// export const componentColorsComponentsFootersFooterButtonFg = 'var(--colors-brand-200)'
|
62
|
+
// export const componentColorsComponentsFootersFooterButtonFg_hover = 'var(--colors-base-white)'
|
63
|
+
// export const componentColorsComponentsHeaderSectionsHeaderAbstract100Bg = 'var(--colors-brand-100)'
|
64
|
+
// export const componentColorsComponentsHeaderSectionsHeaderAbstract200Bg = 'var(--colors-brand-200)'
|
65
|
+
// export const componentColorsComponentsHeaderSectionsHeaderAbstract300Bg = 'var(--colors-brand-300)'
|
66
|
+
// export const componentColorsComponentsHeaderSectionsHeaderAbstract50Bg = 'var(--colors-brand-50)'
|
67
|
+
// export const componentColorsComponentsIconsFeaturedIconsDarkFeaturedIconDarkFgBrand = 'var(--colors-base-white)'
|
68
|
+
// export const componentColorsComponentsIconsFeaturedIconsDarkFeaturedIconDarkFgError = 'var(--colors-base-white)'
|
69
|
+
// export const componentColorsComponentsIconsFeaturedIconsDarkFeaturedIconDarkFgGray = 'var(--colors-base-white)'
|
70
|
+
// export const componentColorsComponentsIconsFeaturedIconsDarkFeaturedIconDarkFgSuccess = 'var(--colors-base-white)'
|
71
|
+
// export const componentColorsComponentsIconsFeaturedIconsDarkFeaturedIconDarkFgWarning = 'var(--colors-base-white)'
|
72
|
+
// export const componentColorsComponentsIconsFeaturedIconsLightFeaturedIconLightFgBrand = 'var(--colors-brand-700)'
|
73
|
+
// export const componentColorsComponentsIconsFeaturedIconsLightFeaturedIconLightFgError = 'var(--colors-error-600)'
|
74
|
+
// export const componentColorsComponentsIconsFeaturedIconsLightFeaturedIconLightFgGray = 'var(--colors-gray-light-mode-500)'
|
75
|
+
// export const componentColorsComponentsIconsFeaturedIconsLightFeaturedIconLightFgSuccess = 'var(--colors-success-600)'
|
76
|
+
// export const componentColorsComponentsIconsFeaturedIconsLightFeaturedIconLightFgWarning = 'var(--colors-warning-600)'
|
77
|
+
// export const componentColorsComponentsIconsFeaturedIconsModernFeaturedIconModernBorder = 'var(--colors-gray-light-mode-200)'
|
78
|
+
// export const componentColorsComponentsIconsIconsIconFgBrand = 'var(--colors-brand-700)'
|
79
|
+
// export const componentColorsComponentsIconsIconsIconFgBrand_onBrand = 'var(--colors-brand-200)'
|
80
|
+
// export const componentColorsComponentsIconsSocialIconsSocialIconFgAngellist = 'var(--colors-base-black)'
|
81
|
+
// export const componentColorsComponentsIconsSocialIconsSocialIconFgApple = 'var(--colors-base-black)'
|
82
|
+
// export const componentColorsComponentsIconsSocialIconsSocialIconFgGithub = 'var(--colors-base-black)'
|
83
|
+
// export const componentColorsComponentsIconsSocialIconsSocialIconFgInstagram = '#000100'
|
84
|
+
// export const componentColorsComponentsIconsSocialIconsSocialIconFgTumblr = '#001935'
|
85
|
+
// export const componentColorsComponentsIconsSocialIconsSocialIconFgX = '#242e36'
|
86
|
+
// export const componentColorsComponentsMockupsScreenMockupBorder = 'var(--colors-gray-light-mode-900)'
|
87
|
+
// export const componentColorsComponentsSlidersSliderHandleBg = 'var(--colors-base-white)'
|
88
|
+
// export const componentColorsComponentsSlidersSliderHandleBorder = 'var(--colors-brand-700)'
|
89
|
+
// export const componentColorsComponentsThumbnailThumbnailBadgeBrandFg = 'var(--colors-brand-700)'
|
90
|
+
// export const componentColorsComponentsThumbnailThumbnailBadgeSuccessFg = 'var(--colors-success-700)'
|
91
|
+
// export const componentColorsComponentsTogglesToggleButtonFg_disabled = 'var(--colors-gray-light-mode-50)'
|
92
|
+
// export const componentColorsComponentsTooltipsTooltipSupportingText = 'var(--colors-gray-light-mode-300)'
|
93
|
+
// export const componentColorsComponentsWysiwygEditorWysiwygEditorIconFg = 'var(--colors-gray-light-mode-400)'
|
94
|
+
// export const componentColorsComponentsWysiwygEditorWysiwygEditorIconFg_active = 'var(--colors-gray-light-mode-500)'
|