@music-vine/cadence 2.7.0 → 3.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 +5 -44
- package/dist/components/accordion.js +2 -2
- package/dist/components/accordion.js.map +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/button.js +3 -3
- package/dist/components/button.js.map +1 -1
- package/dist/components/carousel-dots.js +1 -1
- package/dist/components/carousel-dots.js.map +1 -1
- package/dist/components/carousel.js +2 -2
- package/dist/components/carousel.js.map +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/context-menu.js +6 -6
- package/dist/components/context-menu.js.map +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/input.js.map +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/scroll-drum.js +1 -1
- package/dist/components/scroll-drum.js.map +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.js.map +1 -1
- package/dist/components/stacking-card.js +1 -1
- package/dist/components/stacking-card.js.map +1 -1
- package/dist/components/tabs.js +2 -2
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.js.map +1 -1
- package/dist/components/typography/list.js +1 -1
- package/dist/components/typography/list.js.map +2 -2
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +7 -17
- package/dist/lib/utils.js.map +2 -2
- package/dist/styles/index.css +16 -3
- package/package.json +3 -9
- package/{tailwind.config.v4.css → tailwind.config.css} +35 -14
- package/dist/styles/index.v4.css +0 -49
- package/tailwind.config.ts +0 -313
package/dist/styles/index.v4.css
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cadence Design System - Tailwind CSS v4 Entry Point
|
|
3
|
-
*
|
|
4
|
-
* This is the main stylesheet for Cadence when using Tailwind CSS v4.
|
|
5
|
-
* Import this in your application after importing the Tailwind v4 config.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* // app.css
|
|
9
|
-
* @import "tailwindcss";
|
|
10
|
-
* @import "@music-vine/cadence/tailwind.config.v4";
|
|
11
|
-
* @import "@music-vine/cadence/styles.v4";
|
|
12
|
-
*
|
|
13
|
-
* @source "./src/**\/*.{js,ts,jsx,tsx}";
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/* ================================
|
|
17
|
-
Base Layer - CSS Variables
|
|
18
|
-
================================ */
|
|
19
|
-
@layer base {
|
|
20
|
-
:root {
|
|
21
|
-
/* Brand Colors - Themeable */
|
|
22
|
-
--brand-primary: #f23d75;
|
|
23
|
-
--brand-primary-hover: #df1f64;
|
|
24
|
-
--brand-primary-active: #bc1454;
|
|
25
|
-
--brand-secondary: #fff1f4;
|
|
26
|
-
--brand-secondary-hover: #ffe4ea;
|
|
27
|
-
--background: #fff;
|
|
28
|
-
--foreground: #151a20;
|
|
29
|
-
|
|
30
|
-
/* Focus Ring - Follows brand color */
|
|
31
|
-
--focus-ring: var(--brand-primary);
|
|
32
|
-
--focus-ring-offset: var(--background);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.theme-dark {
|
|
36
|
-
/* Brand Colors (same in dark mode) */
|
|
37
|
-
--brand-primary: #f23d75;
|
|
38
|
-
--brand-primary-hover: #df1f64;
|
|
39
|
-
--brand-primary-active: #bc1454;
|
|
40
|
-
--brand-secondary: #461f34;
|
|
41
|
-
--brand-secondary-hover: #5f152e;
|
|
42
|
-
--background: #151a20;
|
|
43
|
-
--foreground: #fff;
|
|
44
|
-
|
|
45
|
-
/* Focus Ring - Follows brand color */
|
|
46
|
-
--focus-ring: var(--brand-primary);
|
|
47
|
-
--focus-ring-offset: var(--background);
|
|
48
|
-
}
|
|
49
|
-
}
|
package/tailwind.config.ts
DELETED
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import * as containerQueries from "@tailwindcss/container-queries";
|
|
2
|
-
import * as animate from "tailwindcss-animate";
|
|
3
|
-
import type { Config } from "tailwindcss-v3";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Cadence Design System - Tailwind Configuration
|
|
7
|
-
*
|
|
8
|
-
* This config can be used as a preset in consuming applications:
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* // tailwind.config.ts
|
|
12
|
-
* import cadencePreset from '@music-vine/cadence/tailwind.config';
|
|
13
|
-
*
|
|
14
|
-
* export default {
|
|
15
|
-
* presets: [cadencePreset],
|
|
16
|
-
* content: ['./src/**\/*.{ts,tsx}'],
|
|
17
|
-
* } satisfies Config;
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
const cadenceConfig: Config = {
|
|
21
|
-
content: ["./src/**/*.{ts,tsx}"],
|
|
22
|
-
darkMode: ["selector", ".theme-dark"],
|
|
23
|
-
theme: {
|
|
24
|
-
screens: {
|
|
25
|
-
xxs: "24rem",
|
|
26
|
-
xs: "36rem",
|
|
27
|
-
sm: "40rem",
|
|
28
|
-
md: "48rem",
|
|
29
|
-
lg: "64rem",
|
|
30
|
-
xl: "80rem",
|
|
31
|
-
"2xl": "96rem",
|
|
32
|
-
"3xl": "125rem",
|
|
33
|
-
},
|
|
34
|
-
fontSize: {
|
|
35
|
-
xxs: [
|
|
36
|
-
"0.625rem",
|
|
37
|
-
{
|
|
38
|
-
lineHeight: "1rem",
|
|
39
|
-
letterSpacing: "0rem",
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
xs: [
|
|
43
|
-
"0.75rem",
|
|
44
|
-
{
|
|
45
|
-
lineHeight: "1rem",
|
|
46
|
-
letterSpacing: "0.004rem",
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
sm: [
|
|
50
|
-
"0.875rem",
|
|
51
|
-
{
|
|
52
|
-
lineHeight: "1.25rem",
|
|
53
|
-
letterSpacing: "0.0025rem",
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
base: [
|
|
57
|
-
"1rem",
|
|
58
|
-
{
|
|
59
|
-
lineHeight: "1.5rem",
|
|
60
|
-
letterSpacing: "0.005rem",
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
lg: [
|
|
64
|
-
"1.125rem",
|
|
65
|
-
{
|
|
66
|
-
lineHeight: "1.75rem",
|
|
67
|
-
letterSpacing: "0.0015rem",
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
xl: [
|
|
71
|
-
"1.25rem",
|
|
72
|
-
{
|
|
73
|
-
lineHeight: "2rem",
|
|
74
|
-
letterSpacing: "0rem",
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
"2xl": [
|
|
78
|
-
"1.5rem",
|
|
79
|
-
{
|
|
80
|
-
lineHeight: "2rem",
|
|
81
|
-
letterSpacing: "0rem",
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
"3xl": [
|
|
85
|
-
"1.875rem",
|
|
86
|
-
{
|
|
87
|
-
lineHeight: "2.25rem",
|
|
88
|
-
letterSpacing: "0rem",
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
"4xl": [
|
|
92
|
-
"2.25rem",
|
|
93
|
-
{
|
|
94
|
-
lineHeight: "2.5rem",
|
|
95
|
-
letterSpacing: "-0.063rem",
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
"5xl": [
|
|
99
|
-
"3rem",
|
|
100
|
-
{
|
|
101
|
-
lineHeight: "3.25rem",
|
|
102
|
-
letterSpacing: "-0.125rem",
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
"6xl": [
|
|
106
|
-
"3.75rem",
|
|
107
|
-
{
|
|
108
|
-
lineHeight: "4.25rem",
|
|
109
|
-
letterSpacing: "-0.125rem",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
"7xl": [
|
|
113
|
-
"4.5rem",
|
|
114
|
-
{
|
|
115
|
-
lineHeight: "5rem",
|
|
116
|
-
letterSpacing: "-0.125rem",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
"8xl": [
|
|
120
|
-
"6rem",
|
|
121
|
-
{
|
|
122
|
-
lineHeight: "6.5rem",
|
|
123
|
-
letterSpacing: "-0.188rem",
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
"9xl": [
|
|
127
|
-
"8rem",
|
|
128
|
-
{
|
|
129
|
-
lineHeight: "8rem",
|
|
130
|
-
letterSpacing: "-0.015rem",
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
},
|
|
134
|
-
colors: {
|
|
135
|
-
inherit: "inherit",
|
|
136
|
-
current: "currentColor",
|
|
137
|
-
transparent: "transparent",
|
|
138
|
-
black: "#151A20",
|
|
139
|
-
white: "#FFF",
|
|
140
|
-
|
|
141
|
-
// Brand colors - themeable via CSS variables
|
|
142
|
-
brand: {
|
|
143
|
-
primary: "var(--brand-primary, #F23D75)",
|
|
144
|
-
"primary-hover": "var(--brand-primary-hover, #DF1F64)",
|
|
145
|
-
"primary-active": "var(--brand-primary-active, #BC1454)",
|
|
146
|
-
secondary: "var(--brand-secondary, #FFF1F4)",
|
|
147
|
-
"secondary-hover": "var(--brand-secondary-hover, #FFE4EA)",
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
// Color scales - direct hex values for proper dark mode support
|
|
151
|
-
gray: {
|
|
152
|
-
50: "#F5F6F7",
|
|
153
|
-
100: "#EDEEF0",
|
|
154
|
-
150: "#E3E5E7",
|
|
155
|
-
200: "#D9DBDE",
|
|
156
|
-
300: "#C5C7CB",
|
|
157
|
-
400: "#B4B6BA",
|
|
158
|
-
500: "#A3A6AB",
|
|
159
|
-
600: "#7B818A",
|
|
160
|
-
700: "#5A646F",
|
|
161
|
-
800: "#3D4653",
|
|
162
|
-
850: "#323A45",
|
|
163
|
-
875: "#292F38",
|
|
164
|
-
900: "#1D232C",
|
|
165
|
-
950: "#151A20",
|
|
166
|
-
},
|
|
167
|
-
pink: {
|
|
168
|
-
50: "#FFF1F4",
|
|
169
|
-
100: "#FFE4EA",
|
|
170
|
-
200: "#FECDDA",
|
|
171
|
-
300: "#FCA5BC",
|
|
172
|
-
400: "#F47299",
|
|
173
|
-
500: "#F23D75",
|
|
174
|
-
600: "#DF1F64",
|
|
175
|
-
700: "#BC1454",
|
|
176
|
-
800: "#871447",
|
|
177
|
-
900: "#5F152E",
|
|
178
|
-
950: "#461F34",
|
|
179
|
-
},
|
|
180
|
-
green: {
|
|
181
|
-
light: "#DEF7EA",
|
|
182
|
-
DEFAULT: "#33CA7F",
|
|
183
|
-
dark: "#2CAF6E",
|
|
184
|
-
50: "#E9FADA",
|
|
185
|
-
100: "#D4F6C1",
|
|
186
|
-
200: "#A5E4C8",
|
|
187
|
-
300: "#7AD6B0",
|
|
188
|
-
400: "#A1D879",
|
|
189
|
-
500: "#67994D",
|
|
190
|
-
600: "#4D7A33",
|
|
191
|
-
650: "#3F672A",
|
|
192
|
-
700: "#355222",
|
|
193
|
-
800: "#064C38",
|
|
194
|
-
900: "#253D17",
|
|
195
|
-
950: "#1A2810",
|
|
196
|
-
},
|
|
197
|
-
red: {
|
|
198
|
-
DEFAULT: "#FC5252",
|
|
199
|
-
50: "#FDECEC",
|
|
200
|
-
100: "#FFC9C9",
|
|
201
|
-
200: "#FFA8A8",
|
|
202
|
-
300: "#FF6B6B",
|
|
203
|
-
400: "#FF7B73",
|
|
204
|
-
500: "#E15757",
|
|
205
|
-
600: "#C03E3E",
|
|
206
|
-
700: "#9B2828",
|
|
207
|
-
800: "#800E0E",
|
|
208
|
-
900: "#721B1B",
|
|
209
|
-
950: "#4D1212",
|
|
210
|
-
},
|
|
211
|
-
blue: {
|
|
212
|
-
special: {
|
|
213
|
-
light: "#EAF3FE",
|
|
214
|
-
dark: "#5C98F3",
|
|
215
|
-
},
|
|
216
|
-
50: "#EAF3FE",
|
|
217
|
-
100: "#DFF9FD",
|
|
218
|
-
200: "#D6F7FB",
|
|
219
|
-
300: "#CCF4FC",
|
|
220
|
-
400: "#8AB8FF",
|
|
221
|
-
500: "#5C98F3",
|
|
222
|
-
600: "#18BADB",
|
|
223
|
-
700: "#129BC0",
|
|
224
|
-
800: "#0D86A9",
|
|
225
|
-
900: "#097495",
|
|
226
|
-
950: "#1E324D",
|
|
227
|
-
},
|
|
228
|
-
purple: {
|
|
229
|
-
50: "#F8EAFE",
|
|
230
|
-
400: "#DDA5FB",
|
|
231
|
-
500: "#8F5DAF",
|
|
232
|
-
950: "#473D57",
|
|
233
|
-
},
|
|
234
|
-
yellow: {
|
|
235
|
-
50: "#FFF3D1",
|
|
236
|
-
400: "#FFD34C",
|
|
237
|
-
500: "#FFB452",
|
|
238
|
-
950: "#443F29",
|
|
239
|
-
},
|
|
240
|
-
free: {
|
|
241
|
-
lighter: "#e6fcff",
|
|
242
|
-
light: "#D1F7FF80",
|
|
243
|
-
DEFAULT: "#37CFED",
|
|
244
|
-
dark: "#0AAFD0",
|
|
245
|
-
},
|
|
246
|
-
explicit: "#A72525",
|
|
247
|
-
credit: "#37CFED",
|
|
248
|
-
},
|
|
249
|
-
extend: {
|
|
250
|
-
borderRadius: {
|
|
251
|
-
sm: "4px",
|
|
252
|
-
},
|
|
253
|
-
fontFamily: {
|
|
254
|
-
sans: ["DM Sans", "system-ui", "sans-serif"],
|
|
255
|
-
// --font-heading should be defined by the consuming app (e.g., "Aeonik Fono Pro")
|
|
256
|
-
// Falls back to DM Sans if not defined
|
|
257
|
-
heading: [
|
|
258
|
-
'var(--font-heading, "DM Sans")',
|
|
259
|
-
"DM Sans",
|
|
260
|
-
"system-ui",
|
|
261
|
-
"sans-serif",
|
|
262
|
-
],
|
|
263
|
-
},
|
|
264
|
-
keyframes: {
|
|
265
|
-
"accordion-down": {
|
|
266
|
-
from: { height: "0" },
|
|
267
|
-
to: { height: "var(--radix-accordion-content-height)" },
|
|
268
|
-
},
|
|
269
|
-
"accordion-up": {
|
|
270
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
271
|
-
to: { height: "0" },
|
|
272
|
-
},
|
|
273
|
-
fadeIn: {
|
|
274
|
-
from: { opacity: "0" },
|
|
275
|
-
to: { opacity: "1" },
|
|
276
|
-
},
|
|
277
|
-
fadeOut: {
|
|
278
|
-
from: { opacity: "1" },
|
|
279
|
-
to: { opacity: "0" },
|
|
280
|
-
},
|
|
281
|
-
slideDownAndFade: {
|
|
282
|
-
from: { opacity: "0", transform: "translateY(-2px)" },
|
|
283
|
-
to: { opacity: "1", transform: "translateY(0)" },
|
|
284
|
-
},
|
|
285
|
-
slideUpAndFade: {
|
|
286
|
-
from: { opacity: "0", transform: "translateY(2px)" },
|
|
287
|
-
to: { opacity: "1", transform: "translateY(0)" },
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
animation: {
|
|
291
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
292
|
-
"accordion-up": "accordion-up 0.2s ease-out",
|
|
293
|
-
fadeIn: "fadeIn 350ms cubic-bezier(0.25, 0.1, 0.25, 1.0) forwards",
|
|
294
|
-
fadeOut: "fadeOut 350ms cubic-bezier(0.25, 0.1, 0.25, 1.0) forwards",
|
|
295
|
-
slideDownAndFade:
|
|
296
|
-
"slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
297
|
-
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
298
|
-
},
|
|
299
|
-
boxShadow: {
|
|
300
|
-
card: "0px 1px 8px 0px rgba(0, 0, 0, 0.05)",
|
|
301
|
-
glow: "0px 1px 4px 0.5px #F23D75",
|
|
302
|
-
50: "0 1px 4px 0 rgba(21, 26, 32, 0.04)",
|
|
303
|
-
100: "0 6px 12px 0 rgba(21, 26, 32, 0.12)",
|
|
304
|
-
},
|
|
305
|
-
borderWidth: {
|
|
306
|
-
1: "1px",
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
plugins: [animate, containerQueries],
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
export default cadenceConfig;
|