doom-design-system 0.2.1 → 0.3.1
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/dist/components/ActionRow/ActionRow.module.css +1 -0
- package/dist/components/Alert/Alert.module.css +2 -2
- package/dist/components/Button/Button.module.css +5 -2
- package/dist/components/Checkbox/Checkbox.module.css +1 -1
- package/dist/components/Drawer/Drawer.d.ts +2 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Drawer/Drawer.module.css +74 -8
- package/dist/components/Input/Input.module.css +1 -1
- package/dist/components/Modal/Modal.d.ts +2 -1
- package/dist/components/Modal/Modal.js +4 -2
- package/dist/components/Modal/Modal.module.css +56 -7
- package/dist/components/Select/Select.module.css +1 -1
- package/dist/components/Sheet/Sheet.d.ts +3 -1
- package/dist/components/Sheet/Sheet.js +2 -2
- package/dist/components/Sheet/Sheet.module.css +98 -12
- package/dist/components/Slider/Slider.d.ts +4 -4
- package/dist/components/Slider/Slider.js +46 -9
- package/dist/components/Slider/Slider.module.css +60 -68
- package/dist/components/SplitButton/SplitButton.js +1 -1
- package/dist/components/SplitButton/SplitButton.module.css +7 -2
- package/dist/components/Table/Table.d.ts +4 -4
- package/dist/components/Table/Table.js +40 -41
- package/dist/components/Table/Table.module.css +11 -8
- package/dist/components/Textarea/Textarea.module.css +1 -1
- package/dist/styles/globals.css +19 -0
- package/dist/styles/themes/definitions.d.ts +91 -59
- package/dist/styles/themes/definitions.js +5 -67
- package/dist/styles/tokens.d.ts +171 -0
- package/dist/styles/tokens.js +185 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
export const palette = {
|
|
2
|
+
common: {
|
|
3
|
+
black: "#000000",
|
|
4
|
+
white: "#ffffff",
|
|
5
|
+
},
|
|
6
|
+
slate: {
|
|
7
|
+
50: "#F8FAFC",
|
|
8
|
+
100: "#f1f5f9",
|
|
9
|
+
200: "#e2e8f0",
|
|
10
|
+
300: "#cbd5e1",
|
|
11
|
+
400: "#94a3b8",
|
|
12
|
+
500: "#64748b",
|
|
13
|
+
600: "#475569",
|
|
14
|
+
700: "#334155",
|
|
15
|
+
800: "#1e293b",
|
|
16
|
+
900: "#0f172a",
|
|
17
|
+
950: "#020617",
|
|
18
|
+
},
|
|
19
|
+
purple: {
|
|
20
|
+
50: "#faf5ff",
|
|
21
|
+
100: "#f3e8ff",
|
|
22
|
+
200: "#e9d5ff",
|
|
23
|
+
300: "#d8b4fe",
|
|
24
|
+
400: "#c084fc",
|
|
25
|
+
500: "#a855f7",
|
|
26
|
+
600: "#9333ea",
|
|
27
|
+
700: "#7e22ce",
|
|
28
|
+
800: "#6b21a8",
|
|
29
|
+
900: "#581c87",
|
|
30
|
+
},
|
|
31
|
+
navy: {
|
|
32
|
+
50: "#f0fdfa",
|
|
33
|
+
100: "#ccfbf1",
|
|
34
|
+
200: "#99f6e4",
|
|
35
|
+
300: "#5eead4",
|
|
36
|
+
400: "#2dd4bf",
|
|
37
|
+
500: "#002D72",
|
|
38
|
+
600: "#002D72",
|
|
39
|
+
700: "#1E3A8A",
|
|
40
|
+
800: "#001533",
|
|
41
|
+
900: "#0F172A",
|
|
42
|
+
},
|
|
43
|
+
blue: {
|
|
44
|
+
50: "#eff6ff",
|
|
45
|
+
100: "#dbeafe",
|
|
46
|
+
200: "#bfdbfe",
|
|
47
|
+
300: "#93c5fd",
|
|
48
|
+
400: "#60a5fa",
|
|
49
|
+
500: "#3B82F6",
|
|
50
|
+
600: "#2563eb",
|
|
51
|
+
700: "#1d4ed8",
|
|
52
|
+
800: "#1e40af",
|
|
53
|
+
900: "#1e3a8a",
|
|
54
|
+
},
|
|
55
|
+
yellow: {
|
|
56
|
+
50: "#fefce8",
|
|
57
|
+
100: "#fef9c3",
|
|
58
|
+
200: "#fde047",
|
|
59
|
+
300: "#fcd34d",
|
|
60
|
+
400: "#fbbf24",
|
|
61
|
+
500: "#f59e0b",
|
|
62
|
+
600: "#F7B731",
|
|
63
|
+
700: "#F5A623",
|
|
64
|
+
800: "#b45309",
|
|
65
|
+
900: "#78350f",
|
|
66
|
+
},
|
|
67
|
+
green: {
|
|
68
|
+
50: "#f0fdf4",
|
|
69
|
+
100: "#dcfce7",
|
|
70
|
+
200: "#bbf7d0",
|
|
71
|
+
300: "#86efac",
|
|
72
|
+
400: "#4ade80",
|
|
73
|
+
500: "#22c55e",
|
|
74
|
+
600: "#10b981",
|
|
75
|
+
700: "#059669",
|
|
76
|
+
800: "#15803D",
|
|
77
|
+
900: "#14532d",
|
|
78
|
+
},
|
|
79
|
+
red: {
|
|
80
|
+
50: "#fef2f2",
|
|
81
|
+
100: "#fee2e2",
|
|
82
|
+
200: "#fecaca",
|
|
83
|
+
300: "#fca5a5",
|
|
84
|
+
400: "#f87171",
|
|
85
|
+
500: "#ef4444",
|
|
86
|
+
600: "#b91c1c",
|
|
87
|
+
700: "#F56565",
|
|
88
|
+
800: "#991b1b",
|
|
89
|
+
900: "#7f1d1d",
|
|
90
|
+
},
|
|
91
|
+
gray: {
|
|
92
|
+
50: "#f9fafb",
|
|
93
|
+
100: "#f3f4f6",
|
|
94
|
+
200: "#e5e7eb",
|
|
95
|
+
300: "#d1d5db",
|
|
96
|
+
400: "#9ca3af",
|
|
97
|
+
500: "#6b7280",
|
|
98
|
+
600: "#4b5563",
|
|
99
|
+
700: "#374151",
|
|
100
|
+
800: "#1f2937",
|
|
101
|
+
900: "#111827",
|
|
102
|
+
950: "#0F1419",
|
|
103
|
+
975: "#1A1F29",
|
|
104
|
+
990: "#2D3748",
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
export const baseVariables = {
|
|
108
|
+
// Typography Scale
|
|
109
|
+
"--text-xs": "0.75rem",
|
|
110
|
+
"--text-sm": "0.875rem",
|
|
111
|
+
"--text-base": "1rem",
|
|
112
|
+
"--text-lg": "1.125rem",
|
|
113
|
+
"--text-xl": "1.25rem",
|
|
114
|
+
"--text-2xl": "1.5rem",
|
|
115
|
+
"--text-3xl": "1.875rem",
|
|
116
|
+
"--text-4xl": "2.25rem",
|
|
117
|
+
"--text-5xl": "3rem",
|
|
118
|
+
"--text-6xl": "3.75rem",
|
|
119
|
+
// Font Weights
|
|
120
|
+
"--font-thin": "100",
|
|
121
|
+
"--font-extralight": "200",
|
|
122
|
+
"--font-light": "300",
|
|
123
|
+
"--font-regular": "400",
|
|
124
|
+
"--font-medium": "500",
|
|
125
|
+
"--font-semibold": "600",
|
|
126
|
+
"--font-bold": "700",
|
|
127
|
+
"--font-extrabold": "800",
|
|
128
|
+
"--font-black": "900",
|
|
129
|
+
// Spacing Scale
|
|
130
|
+
"--spacing-xs": "0.25rem",
|
|
131
|
+
"--spacing-sm": "0.5rem",
|
|
132
|
+
"--spacing-md": "1rem",
|
|
133
|
+
"--spacing-lg": "1.5rem",
|
|
134
|
+
"--spacing-xl": "2rem",
|
|
135
|
+
"--spacing-2xl": "3rem",
|
|
136
|
+
// Z-Indices
|
|
137
|
+
"--z-base": "0",
|
|
138
|
+
"--z-elevated": "10",
|
|
139
|
+
"--z-header": "40",
|
|
140
|
+
"--z-dropdown": "50",
|
|
141
|
+
"--z-modal": "100",
|
|
142
|
+
"--z-overlay": "150",
|
|
143
|
+
"--z-drawer": "200",
|
|
144
|
+
"--z-tooltip": "500",
|
|
145
|
+
// Motion
|
|
146
|
+
"--duration-fast": "150ms",
|
|
147
|
+
"--duration-normal": "250ms",
|
|
148
|
+
"--duration-slow": "350ms",
|
|
149
|
+
"--ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
150
|
+
"--ease-out": "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
151
|
+
"--ease-in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
152
|
+
// Border Radius
|
|
153
|
+
"--radius-pill": "9999px",
|
|
154
|
+
"--radius-full": "50%",
|
|
155
|
+
// Outline
|
|
156
|
+
"--outline-width": "2px",
|
|
157
|
+
"--outline-offset": "2px",
|
|
158
|
+
// Overlay
|
|
159
|
+
"--overlay-opacity": "0.5",
|
|
160
|
+
// Common Sizes
|
|
161
|
+
"--size-icon-sm": "20px",
|
|
162
|
+
"--size-icon-md": "24px",
|
|
163
|
+
"--size-icon-lg": "32px",
|
|
164
|
+
"--size-touch-target": "44px",
|
|
165
|
+
// Common Colors
|
|
166
|
+
"--common-black": palette.common.black,
|
|
167
|
+
"--common-white": palette.common.white,
|
|
168
|
+
// Functional Tokens (Structure)
|
|
169
|
+
"--border-strong": palette.common.black,
|
|
170
|
+
// Structural Standards (Global)
|
|
171
|
+
"--border-width": "2px",
|
|
172
|
+
"--radius": "4px",
|
|
173
|
+
"--shadow-hard": "4px 4px 0px 0px var(--border-strong)",
|
|
174
|
+
"--shadow-hover": "8px 8px 0px 0px var(--border-strong)",
|
|
175
|
+
// Typography Standards (Global)
|
|
176
|
+
"--font-heading": "var(--font-montserrat)",
|
|
177
|
+
"--heading-transform": "uppercase",
|
|
178
|
+
"--heading-weight": "800",
|
|
179
|
+
// Shadows (consistent relative to theme colors)
|
|
180
|
+
"--shadow-sm": "2px 2px 0px 0px var(--card-border)",
|
|
181
|
+
"--shadow-sm-hover": "4px 4px 0px 0px var(--card-border)",
|
|
182
|
+
"--shadow-sm-checked": "4px 4px 0px 0px var(--card-border)",
|
|
183
|
+
"--shadow-sm-checked-hover": "6px 6px 0px 0px var(--card-border)",
|
|
184
|
+
"--shadow-lg": "8px 8px 0px 0px var(--card-border)",
|
|
185
|
+
};
|