wonderui-tokens 0.0.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/base.css +13 -0
- package/dist/tokens.css +144 -0
- package/dist/typography.css +29 -0
- package/package.json +16 -0
package/dist/base.css
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* WonderUI Base (optional) - minimal globals */
|
|
2
|
+
|
|
3
|
+
html {
|
|
4
|
+
font-size: 16px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
font-family: var(--font-sans);
|
|
9
|
+
background: var(--background);
|
|
10
|
+
color: var(--foreground);
|
|
11
|
+
-webkit-font-smoothing: antialiased;
|
|
12
|
+
-moz-osx-font-smoothing: grayscale;
|
|
13
|
+
}
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary-50: #f0f4ff;
|
|
3
|
+
--color-primary-100: #e0e9ff;
|
|
4
|
+
--color-primary-200: #c7d7ff;
|
|
5
|
+
--color-primary-300: #a3b9ff;
|
|
6
|
+
--color-primary-400: #7b92ff;
|
|
7
|
+
--color-primary-500: #5b6eff;
|
|
8
|
+
--color-primary-600: #4649f5;
|
|
9
|
+
--color-primary-700: #3c3bd8;
|
|
10
|
+
--color-primary-800: #3133ae;
|
|
11
|
+
--color-primary-900: #2e3089;
|
|
12
|
+
|
|
13
|
+
--color-neutral-50: #f9fafb;
|
|
14
|
+
--color-neutral-100: #f3f4f6;
|
|
15
|
+
--color-neutral-200: #e5e7eb;
|
|
16
|
+
--color-neutral-300: #d1d5db;
|
|
17
|
+
--color-neutral-400: #9ca3af;
|
|
18
|
+
--color-neutral-500: #6b7280;
|
|
19
|
+
--color-neutral-600: #4b5563;
|
|
20
|
+
--color-neutral-700: #374151;
|
|
21
|
+
--color-neutral-800: #1f2937;
|
|
22
|
+
--color-neutral-900: #111827;
|
|
23
|
+
|
|
24
|
+
--color-success-50: #f0fdf4;
|
|
25
|
+
--color-success-500: #22c55e;
|
|
26
|
+
--color-success-700: #15803d;
|
|
27
|
+
|
|
28
|
+
--color-warning-50: #fffbeb;
|
|
29
|
+
--color-warning-500: #f59e0b;
|
|
30
|
+
--color-warning-700: #b45309;
|
|
31
|
+
|
|
32
|
+
--color-error-50: #fef2f2;
|
|
33
|
+
--color-error-500: #ef4444;
|
|
34
|
+
--color-error-700: #b91c1c;
|
|
35
|
+
|
|
36
|
+
--color-info-50: #eff6ff;
|
|
37
|
+
--color-info-500: #3b82f6;
|
|
38
|
+
--color-info-700: #1d4ed8;
|
|
39
|
+
|
|
40
|
+
--space-0: 0px;
|
|
41
|
+
--space-1: 0.25rem; /* 4px */
|
|
42
|
+
--space-2: 0.5rem; /* 8px */
|
|
43
|
+
--space-3: 0.75rem; /* 12px */
|
|
44
|
+
--space-4: 1rem; /* 16px */
|
|
45
|
+
--space-5: 1.25rem; /* 20px */
|
|
46
|
+
--space-6: 1.5rem; /* 24px */
|
|
47
|
+
--space-8: 2rem; /* 32px */
|
|
48
|
+
--space-10: 2.5rem; /* 40px */
|
|
49
|
+
--space-12: 3rem; /* 48px */
|
|
50
|
+
--space-16: 4rem; /* 64px */
|
|
51
|
+
--space-20: 5rem; /* 80px */
|
|
52
|
+
--space-24: 6rem; /* 96px */
|
|
53
|
+
|
|
54
|
+
--font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
55
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
56
|
+
|
|
57
|
+
--font-weight-light: 300;
|
|
58
|
+
--font-weight-normal: 400;
|
|
59
|
+
--font-weight-medium: 500;
|
|
60
|
+
--font-weight-semibold: 600;
|
|
61
|
+
--font-weight-bold: 700;
|
|
62
|
+
|
|
63
|
+
--text-xs: 0.75rem; /* 12px */
|
|
64
|
+
--text-sm: 0.875rem; /* 14px */
|
|
65
|
+
--text-base: 1rem; /* 16px */
|
|
66
|
+
--text-lg: 1.125rem; /* 18px */
|
|
67
|
+
--text-xl: 1.25rem; /* 20px */
|
|
68
|
+
--text-2xl: 1.5rem; /* 24px */
|
|
69
|
+
--text-3xl: 1.875rem; /* 30px */
|
|
70
|
+
--text-4xl: 2.25rem; /* 36px */
|
|
71
|
+
--text-5xl: 3rem; /* 48px */
|
|
72
|
+
|
|
73
|
+
--leading-tight: 1.25;
|
|
74
|
+
--leading-normal: 1.5;
|
|
75
|
+
--leading-relaxed: 1.75;
|
|
76
|
+
|
|
77
|
+
--radius-none: 0px;
|
|
78
|
+
--radius-sm: 0.25rem; /* 4px */
|
|
79
|
+
--radius-md: 0.5rem; /* 8px */
|
|
80
|
+
--radius-lg: 0.75rem; /* 12px */
|
|
81
|
+
--radius-xl: 1rem; /* 16px */
|
|
82
|
+
--radius-2xl: 1.5rem; /* 24px */
|
|
83
|
+
--radius-full: 9999px;
|
|
84
|
+
|
|
85
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
86
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
87
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
88
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
89
|
+
|
|
90
|
+
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
91
|
+
--transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
92
|
+
--transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
93
|
+
|
|
94
|
+
--z-dropdown: 1000;
|
|
95
|
+
--z-modal: 1050;
|
|
96
|
+
--z-popover: 1060;
|
|
97
|
+
--z-tooltip: 1070;
|
|
98
|
+
|
|
99
|
+
--background: var(--color-neutral-50);
|
|
100
|
+
--foreground: var(--color-neutral-900);
|
|
101
|
+
|
|
102
|
+
--card: #ffffff;
|
|
103
|
+
--card-foreground: var(--color-neutral-900);
|
|
104
|
+
|
|
105
|
+
--primary: var(--color-primary-600);
|
|
106
|
+
--primary-foreground: #ffffff;
|
|
107
|
+
|
|
108
|
+
--secondary: var(--color-neutral-100);
|
|
109
|
+
--secondary-foreground: var(--color-neutral-900);
|
|
110
|
+
|
|
111
|
+
--muted: var(--color-neutral-100);
|
|
112
|
+
--muted-foreground: var(--color-neutral-500);
|
|
113
|
+
|
|
114
|
+
--destructive: var(--color-error-500);
|
|
115
|
+
--destructive-foreground: #ffffff;
|
|
116
|
+
|
|
117
|
+
--border: var(--color-neutral-200);
|
|
118
|
+
--ring: var(--color-primary-500);
|
|
119
|
+
|
|
120
|
+
--radius: var(--radius-lg);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.dark {
|
|
124
|
+
--background: var(--color-neutral-900);
|
|
125
|
+
--foreground: var(--color-neutral-50);
|
|
126
|
+
|
|
127
|
+
--card: var(--color-neutral-800);
|
|
128
|
+
--card-foreground: var(--color-neutral-50);
|
|
129
|
+
|
|
130
|
+
--primary: var(--color-primary-500);
|
|
131
|
+
--primary-foreground: var(--color-neutral-900);
|
|
132
|
+
|
|
133
|
+
--secondary: var(--color-neutral-800);
|
|
134
|
+
--secondary-foreground: var(--color-neutral-50);
|
|
135
|
+
|
|
136
|
+
--muted: var(--color-neutral-800);
|
|
137
|
+
--muted-foreground: var(--color-neutral-400);
|
|
138
|
+
|
|
139
|
+
--destructive: var(--color-error-700);
|
|
140
|
+
--destructive-foreground: var(--color-error-50);
|
|
141
|
+
|
|
142
|
+
--border: var(--color-neutral-700);
|
|
143
|
+
--ring: var(--color-primary-400);
|
|
144
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.wui-typography h1 {
|
|
2
|
+
font-size: var(--text-3xl);
|
|
3
|
+
line-height: var(--leading-normal);
|
|
4
|
+
font-weight: var(--font-weight-semibold);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.wui-typography h2 {
|
|
8
|
+
font-size: var(--text-2xl);
|
|
9
|
+
line-height: var(--leading-normal);
|
|
10
|
+
font-weight: var(--font-weight-semibold);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wui-typography h3 {
|
|
14
|
+
font-size: var(--text-xl);
|
|
15
|
+
line-height: var(--leading-normal);
|
|
16
|
+
font-weight: var(--font-weight-medium);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wui-typography p {
|
|
20
|
+
font-size: var(--text-base);
|
|
21
|
+
line-height: var(--leading-normal);
|
|
22
|
+
font-weight: var(--font-weight-normal);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.wui-typography label {
|
|
26
|
+
font-size: var(--text-sm);
|
|
27
|
+
line-height: var(--leading-normal);
|
|
28
|
+
font-weight: var(--font-weight-medium);
|
|
29
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wonderui-tokens",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": ["dist"],
|
|
7
|
+
"sideEffects": ["**/*.css"],
|
|
8
|
+
"exports": {
|
|
9
|
+
"./tokens.css": "./dist/tokens.css",
|
|
10
|
+
"./base.css": "./dist/base.css",
|
|
11
|
+
"./typography.css": "./dist/typography.css"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "node ./scripts/build.mjs"
|
|
15
|
+
}
|
|
16
|
+
}
|