@nexa-ui-kit/theme-default 1.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/README.md +50 -0
- package/components/accordion.css +29 -0
- package/components/alert-dialog.css +33 -0
- package/components/alert.css +33 -0
- package/components/aspect-ratio.css +15 -0
- package/components/avatar-group.css +30 -0
- package/components/avatar.css +25 -0
- package/components/badge.css +21 -0
- package/components/breadcrumb.css +35 -0
- package/components/button.css +47 -0
- package/components/calendar.css +124 -0
- package/components/card.css +25 -0
- package/components/carousel.css +79 -0
- package/components/chart.css +124 -0
- package/components/checkbox.css +13 -0
- package/components/collapsible.css +5 -0
- package/components/combobox.css +13 -0
- package/components/command.css +49 -0
- package/components/context-menu.css +87 -0
- package/components/date-picker.css +13 -0
- package/components/dialog.css +29 -0
- package/components/dropdown-menu.css +98 -0
- package/components/empty-state.css +21 -0
- package/components/field.css +145 -0
- package/components/form.css +26 -0
- package/components/hover-card.css +5 -0
- package/components/index.css +78 -0
- package/components/input-group.css +91 -0
- package/components/input-otp.css +25 -0
- package/components/input.css +5 -0
- package/components/item.css +75 -0
- package/components/kbd.css +9 -0
- package/components/label.css +5 -0
- package/components/menubar.css +100 -0
- package/components/multi-select.css +37 -0
- package/components/navigation-menu.css +37 -0
- package/components/number-input.css +26 -0
- package/components/pagination.css +29 -0
- package/components/popover.css +30 -0
- package/components/progress.css +28 -0
- package/components/radio-group.css +17 -0
- package/components/scroll-area.css +25 -0
- package/components/scrollytelling.css +418 -0
- package/components/select.css +74 -0
- package/components/separator.css +5 -0
- package/components/sheet.css +45 -0
- package/components/sidebar.css +65 -0
- package/components/skeleton.css +5 -0
- package/components/slider.css +49 -0
- package/components/sonner.css +103 -0
- package/components/spinner.css +5 -0
- package/components/stat-card.css +33 -0
- package/components/stepper.css +137 -0
- package/components/switch.css +9 -0
- package/components/table.css +42 -0
- package/components/tabs.css +37 -0
- package/components/textarea.css +17 -0
- package/components/toast.css +45 -0
- package/components/toggle-group.css +25 -0
- package/components/toggle.css +21 -0
- package/components/toolbar.css +25 -0
- package/components/tooltip.css +9 -0
- package/package.json +85 -0
- package/tailwind.config.mjs +83 -0
- package/tokens/colors.css +93 -0
- package/tokens/index.css +18 -0
- package/tokens/spacing.css +36 -0
- package/tokens/typography.css +38 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
export default {
|
|
3
|
+
darkMode: ["class"],
|
|
4
|
+
theme: {
|
|
5
|
+
extend: {
|
|
6
|
+
colors: {
|
|
7
|
+
background: "hsl(var(--background))",
|
|
8
|
+
foreground: "hsl(var(--foreground))",
|
|
9
|
+
card: {
|
|
10
|
+
DEFAULT: "hsl(var(--card))",
|
|
11
|
+
foreground: "hsl(var(--card-foreground))",
|
|
12
|
+
},
|
|
13
|
+
popover: {
|
|
14
|
+
DEFAULT: "hsl(var(--popover))",
|
|
15
|
+
foreground: "hsl(var(--popover-foreground))",
|
|
16
|
+
},
|
|
17
|
+
primary: {
|
|
18
|
+
DEFAULT: "hsl(var(--primary))",
|
|
19
|
+
foreground: "hsl(var(--primary-foreground))",
|
|
20
|
+
},
|
|
21
|
+
secondary: {
|
|
22
|
+
DEFAULT: "hsl(var(--secondary))",
|
|
23
|
+
foreground: "hsl(var(--secondary-foreground))",
|
|
24
|
+
},
|
|
25
|
+
muted: {
|
|
26
|
+
DEFAULT: "hsl(var(--muted))",
|
|
27
|
+
foreground: "hsl(var(--muted-foreground))",
|
|
28
|
+
},
|
|
29
|
+
accent: {
|
|
30
|
+
DEFAULT: "hsl(var(--accent))",
|
|
31
|
+
foreground: "hsl(var(--accent-foreground))",
|
|
32
|
+
},
|
|
33
|
+
destructive: {
|
|
34
|
+
DEFAULT: "hsl(var(--destructive))",
|
|
35
|
+
foreground: "hsl(var(--destructive-foreground))",
|
|
36
|
+
},
|
|
37
|
+
border: "hsl(var(--border))",
|
|
38
|
+
input: "hsl(var(--input))",
|
|
39
|
+
ring: "hsl(var(--ring))",
|
|
40
|
+
chart: {
|
|
41
|
+
1: "hsl(var(--chart-1))",
|
|
42
|
+
2: "hsl(var(--chart-2))",
|
|
43
|
+
3: "hsl(var(--chart-3))",
|
|
44
|
+
4: "hsl(var(--chart-4))",
|
|
45
|
+
5: "hsl(var(--chart-5))",
|
|
46
|
+
},
|
|
47
|
+
sidebar: {
|
|
48
|
+
DEFAULT: "hsl(var(--sidebar-background))",
|
|
49
|
+
foreground: "hsl(var(--sidebar-foreground))",
|
|
50
|
+
primary: "hsl(var(--sidebar-primary))",
|
|
51
|
+
"primary-foreground": "hsl(var(--sidebar-primary-foreground))",
|
|
52
|
+
accent: "hsl(var(--sidebar-accent))",
|
|
53
|
+
"accent-foreground": "hsl(var(--sidebar-accent-foreground))",
|
|
54
|
+
border: "hsl(var(--sidebar-border))",
|
|
55
|
+
ring: "hsl(var(--sidebar-ring))",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
borderRadius: {
|
|
59
|
+
lg: "var(--radius)",
|
|
60
|
+
md: "calc(var(--radius) - 2px)",
|
|
61
|
+
sm: "calc(var(--radius) - 4px)",
|
|
62
|
+
},
|
|
63
|
+
fontFamily: {
|
|
64
|
+
sans: ["var(--font-sans)"],
|
|
65
|
+
mono: ["var(--font-mono)"],
|
|
66
|
+
},
|
|
67
|
+
keyframes: {
|
|
68
|
+
"accordion-down": {
|
|
69
|
+
from: { height: "0" },
|
|
70
|
+
to: { height: "var(--radix-accordion-content-height)" },
|
|
71
|
+
},
|
|
72
|
+
"accordion-up": {
|
|
73
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
74
|
+
to: { height: "0" },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
animation: {
|
|
78
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
79
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* Nexa UI Default Theme - Color Tokens */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* Background & Foreground */
|
|
5
|
+
--background: 0 0% 100%;
|
|
6
|
+
--foreground: 222.2 84% 4.9%;
|
|
7
|
+
|
|
8
|
+
/* Card */
|
|
9
|
+
--card: 0 0% 100%;
|
|
10
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
11
|
+
|
|
12
|
+
/* Popover */
|
|
13
|
+
--popover: 0 0% 100%;
|
|
14
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
15
|
+
|
|
16
|
+
/* Primary */
|
|
17
|
+
--primary: 221.2 83.2% 53.3%;
|
|
18
|
+
--primary-foreground: 210 40% 98%;
|
|
19
|
+
|
|
20
|
+
/* Secondary */
|
|
21
|
+
--secondary: 210 40% 96.1%;
|
|
22
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
23
|
+
|
|
24
|
+
/* Muted */
|
|
25
|
+
--muted: 210 40% 96.1%;
|
|
26
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
27
|
+
|
|
28
|
+
/* Accent */
|
|
29
|
+
--accent: 210 40% 96.1%;
|
|
30
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
31
|
+
|
|
32
|
+
/* Destructive */
|
|
33
|
+
--destructive: 0 84.2% 60.2%;
|
|
34
|
+
--destructive-foreground: 210 40% 98%;
|
|
35
|
+
|
|
36
|
+
/* Border & Input & Ring */
|
|
37
|
+
--border: 214.3 31.8% 91.4%;
|
|
38
|
+
--input: 214.3 31.8% 91.4%;
|
|
39
|
+
--ring: 221.2 83.2% 53.3%;
|
|
40
|
+
|
|
41
|
+
/* Chart colors */
|
|
42
|
+
--chart-1: 12 76% 61%;
|
|
43
|
+
--chart-2: 173 58% 39%;
|
|
44
|
+
--chart-3: 197 37% 24%;
|
|
45
|
+
--chart-4: 43 74% 66%;
|
|
46
|
+
--chart-5: 27 87% 67%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dark {
|
|
50
|
+
/* Background & Foreground */
|
|
51
|
+
--background: 222.2 84% 4.9%;
|
|
52
|
+
--foreground: 210 40% 98%;
|
|
53
|
+
|
|
54
|
+
/* Card */
|
|
55
|
+
--card: 222.2 84% 4.9%;
|
|
56
|
+
--card-foreground: 210 40% 98%;
|
|
57
|
+
|
|
58
|
+
/* Popover */
|
|
59
|
+
--popover: 222.2 84% 4.9%;
|
|
60
|
+
--popover-foreground: 210 40% 98%;
|
|
61
|
+
|
|
62
|
+
/* Primary */
|
|
63
|
+
--primary: 217.2 91.2% 59.8%;
|
|
64
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
65
|
+
|
|
66
|
+
/* Secondary */
|
|
67
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
68
|
+
--secondary-foreground: 210 40% 98%;
|
|
69
|
+
|
|
70
|
+
/* Muted */
|
|
71
|
+
--muted: 217.2 32.6% 17.5%;
|
|
72
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
73
|
+
|
|
74
|
+
/* Accent */
|
|
75
|
+
--accent: 217.2 32.6% 17.5%;
|
|
76
|
+
--accent-foreground: 210 40% 98%;
|
|
77
|
+
|
|
78
|
+
/* Destructive */
|
|
79
|
+
--destructive: 0 62.8% 30.6%;
|
|
80
|
+
--destructive-foreground: 210 40% 98%;
|
|
81
|
+
|
|
82
|
+
/* Border & Input & Ring */
|
|
83
|
+
--border: 217.2 32.6% 17.5%;
|
|
84
|
+
--input: 217.2 32.6% 17.5%;
|
|
85
|
+
--ring: 224.3 76.3% 48%;
|
|
86
|
+
|
|
87
|
+
/* Chart colors (dark) */
|
|
88
|
+
--chart-1: 220 70% 50%;
|
|
89
|
+
--chart-2: 160 60% 45%;
|
|
90
|
+
--chart-3: 30 80% 55%;
|
|
91
|
+
--chart-4: 280 65% 60%;
|
|
92
|
+
--chart-5: 340 75% 55%;
|
|
93
|
+
}
|
package/tokens/index.css
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* Nexa UI Default Theme - All Tokens */
|
|
2
|
+
|
|
3
|
+
@import './colors.css';
|
|
4
|
+
@import './typography.css';
|
|
5
|
+
@import './spacing.css';
|
|
6
|
+
|
|
7
|
+
/* Base layer resets */
|
|
8
|
+
*,
|
|
9
|
+
*::before,
|
|
10
|
+
*::after {
|
|
11
|
+
border-color: hsl(var(--border));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
background-color: hsl(var(--background));
|
|
16
|
+
color: hsl(var(--foreground));
|
|
17
|
+
font-family: var(--font-sans);
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Nexa UI Default Theme - Spacing & Layout Tokens */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* Border Radius */
|
|
5
|
+
--radius-sm: 0.25rem;
|
|
6
|
+
--radius-md: 0.375rem;
|
|
7
|
+
--radius-lg: 0.5rem;
|
|
8
|
+
--radius-xl: 0.75rem;
|
|
9
|
+
--radius-2xl: 1rem;
|
|
10
|
+
--radius-full: 9999px;
|
|
11
|
+
|
|
12
|
+
/* Default radius for components */
|
|
13
|
+
--radius: 0.5rem;
|
|
14
|
+
|
|
15
|
+
/* Sidebar (for layout components) */
|
|
16
|
+
--sidebar-background: 0 0% 98%;
|
|
17
|
+
--sidebar-foreground: 240 5.3% 26.1%;
|
|
18
|
+
--sidebar-primary: 240 5.9% 10%;
|
|
19
|
+
--sidebar-primary-foreground: 0 0% 98%;
|
|
20
|
+
--sidebar-accent: 240 4.8% 95.9%;
|
|
21
|
+
--sidebar-accent-foreground: 240 5.9% 10%;
|
|
22
|
+
--sidebar-border: 220 13% 91%;
|
|
23
|
+
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dark {
|
|
27
|
+
/* Sidebar (dark mode) */
|
|
28
|
+
--sidebar-background: 240 5.9% 10%;
|
|
29
|
+
--sidebar-foreground: 240 4.8% 95.9%;
|
|
30
|
+
--sidebar-primary: 224.3 76.3% 48%;
|
|
31
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
32
|
+
--sidebar-accent: 240 3.7% 15.9%;
|
|
33
|
+
--sidebar-accent-foreground: 240 4.8% 95.9%;
|
|
34
|
+
--sidebar-border: 240 3.7% 15.9%;
|
|
35
|
+
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
36
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* Nexa UI Default Theme - Typography Tokens */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* Font Families */
|
|
5
|
+
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
6
|
+
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
|
|
7
|
+
|
|
8
|
+
/* Font Sizes */
|
|
9
|
+
--text-xs: 0.75rem;
|
|
10
|
+
--text-sm: 0.875rem;
|
|
11
|
+
--text-base: 1rem;
|
|
12
|
+
--text-lg: 1.125rem;
|
|
13
|
+
--text-xl: 1.25rem;
|
|
14
|
+
--text-2xl: 1.5rem;
|
|
15
|
+
--text-3xl: 1.875rem;
|
|
16
|
+
--text-4xl: 2.25rem;
|
|
17
|
+
|
|
18
|
+
/* Line Heights */
|
|
19
|
+
--leading-none: 1;
|
|
20
|
+
--leading-tight: 1.25;
|
|
21
|
+
--leading-snug: 1.375;
|
|
22
|
+
--leading-normal: 1.5;
|
|
23
|
+
--leading-relaxed: 1.625;
|
|
24
|
+
--leading-loose: 2;
|
|
25
|
+
|
|
26
|
+
/* Font Weights */
|
|
27
|
+
--font-normal: 400;
|
|
28
|
+
--font-medium: 500;
|
|
29
|
+
--font-semibold: 600;
|
|
30
|
+
--font-bold: 700;
|
|
31
|
+
|
|
32
|
+
/* Letter Spacing */
|
|
33
|
+
--tracking-tighter: -0.05em;
|
|
34
|
+
--tracking-tight: -0.025em;
|
|
35
|
+
--tracking-normal: 0em;
|
|
36
|
+
--tracking-wide: 0.025em;
|
|
37
|
+
--tracking-wider: 0.05em;
|
|
38
|
+
}
|