@vllnt/ui 0.3.0 → 0.4.0-canary.4c6891e
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/display/display.js +22 -0
- package/dist/components/display/index.js +4 -0
- package/dist/components/heading/heading.js +40 -0
- package/dist/components/heading/index.js +4 -0
- package/dist/components/index.js +9 -0
- package/dist/components/prose/index.js +4 -0
- package/dist/components/prose/prose.js +21 -0
- package/dist/components/sidebar/sidebar.js +195 -35
- package/dist/components/text/index.js +5 -0
- package/dist/components/text/text.js +48 -0
- package/dist/index.d.ts +1102 -426
- package/package.json +2 -1
- package/styles.css +30 -0
- package/themes/default.css +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-canary.4c6891e",
|
|
4
4
|
"description": "React component library — 309 components built on Radix UI, Tailwind CSS, and CVA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vllnt",
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
"@vllnt/eslint-config": "^1.0.0",
|
|
138
138
|
"@vllnt/typescript": "^1.0.0",
|
|
139
139
|
"autoprefixer": "^10.4.21",
|
|
140
|
+
"axe-core": "4.11.1",
|
|
140
141
|
"eslint": "^9.39.1",
|
|
141
142
|
"jsdom": "^26.1.0",
|
|
142
143
|
"playwright": "^1.57.0",
|
package/styles.css
CHANGED
|
@@ -31,6 +31,36 @@
|
|
|
31
31
|
--input: 0.9219 0 0;
|
|
32
32
|
--ring: 0.1445 0 0;
|
|
33
33
|
--radius: 0.5rem;
|
|
34
|
+
/* Typography — theme-overridable font tokens (issue #465). Override any of
|
|
35
|
+
these on a theme scope to restyle the Text/Heading/Display/Prose primitives
|
|
36
|
+
without editing the library. Defaults reproduce the house style (sans, 600). */
|
|
37
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
38
|
+
--font-display: var(--font-sans);
|
|
39
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
40
|
+
--font-weight-heading: 600;
|
|
41
|
+
--font-weight-display: 600;
|
|
42
|
+
--font-size-display: 3.75rem;
|
|
43
|
+
--line-height-display: 1.05;
|
|
44
|
+
--font-size-h1: 3rem;
|
|
45
|
+
--line-height-h1: 1.1;
|
|
46
|
+
--font-size-h2: 2.25rem;
|
|
47
|
+
--line-height-h2: 1.2;
|
|
48
|
+
--font-size-h3: 1.875rem;
|
|
49
|
+
--line-height-h3: 1.25;
|
|
50
|
+
--font-size-h4: 1.5rem;
|
|
51
|
+
--line-height-h4: 1.3;
|
|
52
|
+
--font-size-h5: 1.25rem;
|
|
53
|
+
--line-height-h5: 1.4;
|
|
54
|
+
--font-size-h6: 1.125rem;
|
|
55
|
+
--line-height-h6: 1.5;
|
|
56
|
+
--font-size-body-lg: 1.125rem;
|
|
57
|
+
--line-height-body-lg: 1.7;
|
|
58
|
+
--font-size-body: 1rem;
|
|
59
|
+
--line-height-body: 1.6;
|
|
60
|
+
--font-size-body-sm: 0.875rem;
|
|
61
|
+
--line-height-body-sm: 1.5;
|
|
62
|
+
--font-size-caption: 0.75rem;
|
|
63
|
+
--line-height-caption: 1.4;
|
|
34
64
|
}
|
|
35
65
|
.dark {
|
|
36
66
|
--background: 0 0 0;
|
package/themes/default.css
CHANGED
|
@@ -20,6 +20,34 @@
|
|
|
20
20
|
--input: 0.9219 0 0;
|
|
21
21
|
--ring: 0.1445 0 0;
|
|
22
22
|
--radius: 0.5rem;
|
|
23
|
+
/* Typography — theme-overridable font tokens (issue #465). */
|
|
24
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
25
|
+
--font-display: var(--font-sans);
|
|
26
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
27
|
+
--font-weight-heading: 600;
|
|
28
|
+
--font-weight-display: 600;
|
|
29
|
+
--font-size-display: 3.75rem;
|
|
30
|
+
--line-height-display: 1.05;
|
|
31
|
+
--font-size-h1: 3rem;
|
|
32
|
+
--line-height-h1: 1.1;
|
|
33
|
+
--font-size-h2: 2.25rem;
|
|
34
|
+
--line-height-h2: 1.2;
|
|
35
|
+
--font-size-h3: 1.875rem;
|
|
36
|
+
--line-height-h3: 1.25;
|
|
37
|
+
--font-size-h4: 1.5rem;
|
|
38
|
+
--line-height-h4: 1.3;
|
|
39
|
+
--font-size-h5: 1.25rem;
|
|
40
|
+
--line-height-h5: 1.4;
|
|
41
|
+
--font-size-h6: 1.125rem;
|
|
42
|
+
--line-height-h6: 1.5;
|
|
43
|
+
--font-size-body-lg: 1.125rem;
|
|
44
|
+
--line-height-body-lg: 1.7;
|
|
45
|
+
--font-size-body: 1rem;
|
|
46
|
+
--line-height-body: 1.6;
|
|
47
|
+
--font-size-body-sm: 0.875rem;
|
|
48
|
+
--line-height-body-sm: 1.5;
|
|
49
|
+
--font-size-caption: 0.75rem;
|
|
50
|
+
--line-height-caption: 1.4;
|
|
23
51
|
}
|
|
24
52
|
.dark {
|
|
25
53
|
--background: 0 0 0;
|