@blibliki/ui 0.9.2
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 +91 -0
- package/dist/index.d.ts +542 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/eslint/index.js +18 -0
- package/eslint/ui-governance-plugin.js +252 -0
- package/package.json +59 -0
- package/scripts/check-css-palette.mjs +92 -0
- package/src/UIProvider.tsx +38 -0
- package/src/components/badge.tsx +57 -0
- package/src/components/button.tsx +65 -0
- package/src/components/card.tsx +44 -0
- package/src/components/context-menu.tsx +239 -0
- package/src/components/dialog.tsx +127 -0
- package/src/components/divider.tsx +45 -0
- package/src/components/dropdown-menu.tsx +243 -0
- package/src/components/encoder.tsx +323 -0
- package/src/components/fader.tsx +230 -0
- package/src/components/icon-button.tsx +51 -0
- package/src/components/input.tsx +38 -0
- package/src/components/label.tsx +14 -0
- package/src/components/select.tsx +342 -0
- package/src/components/stack.tsx +90 -0
- package/src/components/surface.tsx +88 -0
- package/src/components/switch.tsx +72 -0
- package/src/components/text.tsx +59 -0
- package/src/components/textarea.tsx +43 -0
- package/src/index.ts +120 -0
- package/src/lib/cn.ts +6 -0
- package/src/semantic.ts +72 -0
- package/src/theme.ts +161 -0
- package/styles.css +2041 -0
- package/tokens.css +90 -0
package/tokens.css
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @blibliki/ui default design tokens.
|
|
3
|
+
*
|
|
4
|
+
* These values are package-level fallbacks only.
|
|
5
|
+
* Product-specific palettes belong in app themes (UIProvider + createTheme),
|
|
6
|
+
* not in this file.
|
|
7
|
+
*/
|
|
8
|
+
:root {
|
|
9
|
+
/* Surfaces and borders */
|
|
10
|
+
--ui-color-surface-0: oklch(0.985 0.004 260);
|
|
11
|
+
--ui-color-surface-raised: oklch(0.996 0.002 260);
|
|
12
|
+
--ui-color-surface-raised-hover: oklch(1 0 0);
|
|
13
|
+
--ui-color-surface-1: oklch(0.96 0.006 260);
|
|
14
|
+
--ui-color-surface-2: oklch(0.976 0.005 260);
|
|
15
|
+
--ui-color-border-subtle: oklch(0.84 0.01 260);
|
|
16
|
+
|
|
17
|
+
/* Typography */
|
|
18
|
+
--ui-color-text-primary: oklch(0.18 0.01 260);
|
|
19
|
+
--ui-color-text-secondary: oklch(0.33 0.01 260);
|
|
20
|
+
--ui-color-text-muted: oklch(0.48 0.01 260);
|
|
21
|
+
|
|
22
|
+
/* Semantic colors */
|
|
23
|
+
--ui-color-primary-500: oklch(0.62 0.19 255);
|
|
24
|
+
--ui-color-primary-600: oklch(0.55 0.2 255);
|
|
25
|
+
--ui-color-primary-contrast: oklch(0.98 0 0);
|
|
26
|
+
|
|
27
|
+
--ui-color-secondary-500: oklch(0.62 0.2 300);
|
|
28
|
+
--ui-color-secondary-600: oklch(0.55 0.21 300);
|
|
29
|
+
--ui-color-secondary-contrast: oklch(0.98 0 0);
|
|
30
|
+
|
|
31
|
+
--ui-color-error-500: oklch(0.63 0.24 28);
|
|
32
|
+
--ui-color-error-600: oklch(0.57 0.24 28);
|
|
33
|
+
--ui-color-error-contrast: oklch(0.98 0 0);
|
|
34
|
+
|
|
35
|
+
--ui-color-warning-500: oklch(0.78 0.17 78);
|
|
36
|
+
--ui-color-warning-600: oklch(0.72 0.17 78);
|
|
37
|
+
--ui-color-warning-contrast: oklch(0.2 0.01 260);
|
|
38
|
+
|
|
39
|
+
--ui-color-info-500: oklch(0.66 0.14 220);
|
|
40
|
+
--ui-color-info-600: oklch(0.59 0.15 220);
|
|
41
|
+
--ui-color-info-contrast: oklch(0.98 0 0);
|
|
42
|
+
|
|
43
|
+
--ui-color-success-500: oklch(0.66 0.17 150);
|
|
44
|
+
--ui-color-success-600: oklch(0.59 0.18 150);
|
|
45
|
+
--ui-color-success-contrast: oklch(0.98 0 0);
|
|
46
|
+
|
|
47
|
+
--ui-radius-sm: 4px;
|
|
48
|
+
--ui-radius-md: 8px;
|
|
49
|
+
--ui-radius-lg: 12px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(.dark, [data-theme="dark"]) {
|
|
53
|
+
/* Surfaces and borders */
|
|
54
|
+
--ui-color-surface-0: oklch(0.12 0.01 260);
|
|
55
|
+
--ui-color-surface-raised: oklch(0.2 0.01 260);
|
|
56
|
+
--ui-color-surface-raised-hover: oklch(0.24 0.01 260);
|
|
57
|
+
--ui-color-surface-1: oklch(0.16 0.01 260);
|
|
58
|
+
--ui-color-surface-2: oklch(0.145 0.012 260);
|
|
59
|
+
--ui-color-border-subtle: oklch(0.34 0.01 260);
|
|
60
|
+
|
|
61
|
+
/* Typography */
|
|
62
|
+
--ui-color-text-primary: oklch(0.96 0.01 260);
|
|
63
|
+
--ui-color-text-secondary: oklch(0.76 0.01 260);
|
|
64
|
+
--ui-color-text-muted: oklch(0.62 0.01 260);
|
|
65
|
+
|
|
66
|
+
/* Semantic colors */
|
|
67
|
+
--ui-color-primary-500: oklch(0.67 0.19 255);
|
|
68
|
+
--ui-color-primary-600: oklch(0.6 0.2 255);
|
|
69
|
+
--ui-color-primary-contrast: oklch(0.98 0 0);
|
|
70
|
+
|
|
71
|
+
--ui-color-secondary-500: oklch(0.67 0.2 300);
|
|
72
|
+
--ui-color-secondary-600: oklch(0.6 0.21 300);
|
|
73
|
+
--ui-color-secondary-contrast: oklch(0.98 0 0);
|
|
74
|
+
|
|
75
|
+
--ui-color-error-500: oklch(0.67 0.22 28);
|
|
76
|
+
--ui-color-error-600: oklch(0.6 0.23 28);
|
|
77
|
+
--ui-color-error-contrast: oklch(0.98 0 0);
|
|
78
|
+
|
|
79
|
+
--ui-color-warning-500: oklch(0.79 0.15 78);
|
|
80
|
+
--ui-color-warning-600: oklch(0.73 0.16 78);
|
|
81
|
+
--ui-color-warning-contrast: oklch(0.2 0.01 260);
|
|
82
|
+
|
|
83
|
+
--ui-color-info-500: oklch(0.69 0.13 220);
|
|
84
|
+
--ui-color-info-600: oklch(0.62 0.14 220);
|
|
85
|
+
--ui-color-info-contrast: oklch(0.98 0 0);
|
|
86
|
+
|
|
87
|
+
--ui-color-success-500: oklch(0.69 0.16 150);
|
|
88
|
+
--ui-color-success-600: oklch(0.62 0.17 150);
|
|
89
|
+
--ui-color-success-contrast: oklch(0.98 0 0);
|
|
90
|
+
}
|