@owodesign/owoui 0.1.4 → 0.1.5
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 +19 -9
- package/dist/preset-default.css +143 -0
- package/dist/preset-elevated.css +164 -0
- package/dist/preset-flat.css +144 -0
- package/dist/preset-glass.css +173 -0
- package/dist/storybook-static/app.css +609 -829
- package/dist/storybook-static/assets/main.css +2 -2
- package/dist/storybook-static/assets/main.js +12 -12
- package/dist/style.css +2988 -0
- package/dist/theme-dark.css +230 -0
- package/{src/styles/tokens.css → dist/theme-light.css} +109 -149
- package/dist/tokens.css +118 -0
- package/dist/tokens.d.ts +4 -1
- package/dist/tokens.min.js +1 -1
- package/package.json +25 -30
- package/src/preset-default.css +0 -27
- package/src/preset-elevated.css +0 -27
- package/src/preset-flat.css +0 -27
- package/src/preset-glass.css +0 -27
- package/src/style.css +0 -22
- package/src/styles/ui/avatar.css +0 -13
- package/src/styles/ui/badge.css +0 -52
- package/src/styles/ui/button.css +0 -49
- package/src/styles/ui/collapsible.css +0 -13
- package/src/styles/ui/dialog.css +0 -37
- package/src/styles/ui/drawer.css +0 -15
- package/src/styles/ui/dropdown-menu.css +0 -132
- package/src/styles/ui/field.css +0 -12
- package/src/styles/ui/icon-button.css +0 -29
- package/src/styles/ui/input.css +0 -16
- package/src/styles/ui/panel.css +0 -23
- package/src/styles/ui/segmented-control.css +0 -28
- package/src/styles/ui/select.css +0 -52
- package/src/styles/ui/skeleton.css +0 -99
- package/src/styles/ui/status-notice.css +0 -49
- package/src/styles/ui/switch.css +0 -17
- package/src/styles/ui/tabs.css +0 -33
- package/src/styles/ui/textarea.css +0 -8
- package/src/styles/ui/toast.css +0 -57
- package/src/styles/ui/tooltip.css +0 -31
- package/src/theme-dark.css +0 -87
- package/src/theme-light.css +0 -103
- package/src/tokens.css +0 -1
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
+
:root, :host {
|
|
3
|
+
--owo-ref-shadow-raised: 0 10px 20px rgba(15, 23, 42, 0.08);
|
|
4
|
+
--owo-ref-shadow-popover: 0 18px 40px rgba(15, 23, 42, 0.10);
|
|
5
|
+
--owo-ref-font-heading: var(--font-source-serif-pro), var(--font-noto-serif-sc), "Source Serif 4", Georgia, "Times New Roman", serif;
|
|
6
|
+
--owo-ref-radius-sm: 0.5rem;
|
|
7
|
+
--owo-ref-radius-md: 0.75rem;
|
|
8
|
+
--owo-ref-radius-lg: 1rem;
|
|
9
|
+
--owo-ref-radius-xl: 1.5rem;
|
|
10
|
+
--owo-ref-radius-2xl: 2rem;
|
|
11
|
+
--owo-ref-radius-full: 9999px;
|
|
12
|
+
--owo-ref-motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
13
|
+
--owo-ref-motion-ease-decelerate: cubic-bezier(0, 0, 0, 1);
|
|
14
|
+
--owo-ref-motion-ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
|
|
15
|
+
}
|
|
16
|
+
:root {
|
|
17
|
+
--owo-sys-preset-surface-bg: var(--owo-sys-theme-surface-base);
|
|
18
|
+
--owo-sys-preset-surface-bg-subtle: var(--owo-sys-theme-surface-subtle);
|
|
19
|
+
--owo-sys-preset-surface-bg-raised: var(--owo-sys-theme-surface-raised);
|
|
20
|
+
--owo-sys-preset-surface-bg-inset: var(--owo-sys-theme-surface-inset);
|
|
21
|
+
--owo-sys-preset-surface-border: var(--owo-sys-theme-surface-border);
|
|
22
|
+
--owo-sys-preset-surface-border-muted: var(--owo-sys-theme-surface-border-muted);
|
|
23
|
+
--owo-sys-preset-surface-border-strong: var(--owo-sys-theme-surface-border-strong);
|
|
24
|
+
--owo-sys-preset-surface-shadow: var(--owo-ref-shadow-raised);
|
|
25
|
+
--owo-sys-preset-surface-shadow-strong: var(--owo-ref-shadow-popover);
|
|
26
|
+
--owo-sys-preset-surface-blur: 0px;
|
|
27
|
+
--owo-sys-preset-canvas-bg: var(--owo-sys-theme-surface-canvas);
|
|
28
|
+
--owo-sys-preset-canvas-bg-subtle: var(--owo-sys-theme-canvas-bg-subtle);
|
|
29
|
+
--owo-sys-preset-surface-container: var(--owo-sys-theme-surface-container);
|
|
30
|
+
--owo-sys-preset-surface-container-high: var(--owo-sys-theme-surface-container-high);
|
|
31
|
+
--owo-sys-preset-surface-container-highest: var(--owo-sys-theme-surface-container-highest);
|
|
32
|
+
--owo-sys-preset-control-radius-sm: var(--owo-ref-radius-sm);
|
|
33
|
+
--owo-sys-preset-control-radius-md: var(--owo-ref-radius-md);
|
|
34
|
+
--owo-sys-preset-control-radius-lg: var(--owo-ref-radius-lg);
|
|
35
|
+
--owo-sys-preset-control-radius-xl: var(--owo-ref-radius-xl);
|
|
36
|
+
--owo-sys-preset-control-radius-2xl: var(--owo-ref-radius-2xl);
|
|
37
|
+
--owo-sys-preset-control-radius-full: var(--owo-ref-radius-full);
|
|
38
|
+
--owo-sys-preset-control-border-width: 1px;
|
|
39
|
+
--owo-cmp-surface-bg: var(--owo-sys-preset-surface-bg);
|
|
40
|
+
--owo-cmp-surface-bg-subtle: var(--owo-sys-preset-surface-bg-subtle);
|
|
41
|
+
--owo-cmp-surface-bg-raised: var(--owo-sys-preset-surface-bg-raised);
|
|
42
|
+
--owo-cmp-surface-bg-inset: var(--owo-sys-preset-surface-bg-inset);
|
|
43
|
+
--owo-cmp-surface-border: var(--owo-sys-preset-surface-border);
|
|
44
|
+
--owo-cmp-surface-border-muted: var(--owo-sys-preset-surface-border-muted);
|
|
45
|
+
--owo-cmp-surface-border-strong: var(--owo-sys-preset-surface-border-strong);
|
|
46
|
+
--owo-cmp-surface-shadow: var(--owo-sys-preset-surface-shadow);
|
|
47
|
+
--owo-cmp-surface-shadow-strong: var(--owo-sys-preset-surface-shadow-strong);
|
|
48
|
+
--owo-cmp-surface-blur: var(--owo-sys-preset-surface-blur);
|
|
49
|
+
--owo-cmp-canvas-bg: var(--owo-sys-preset-canvas-bg);
|
|
50
|
+
--owo-cmp-canvas-bg-subtle: var(--owo-sys-preset-canvas-bg-subtle);
|
|
51
|
+
--owo-cmp-surface-container: var(--owo-sys-preset-surface-container);
|
|
52
|
+
--owo-cmp-surface-container-high: var(--owo-sys-preset-surface-container-high);
|
|
53
|
+
--owo-cmp-surface-container-highest: var(--owo-sys-preset-surface-container-highest);
|
|
54
|
+
--owo-cmp-text-primary: var(--owo-sys-theme-text-primary);
|
|
55
|
+
--owo-cmp-text-secondary: var(--owo-sys-theme-text-secondary);
|
|
56
|
+
--owo-cmp-text-muted: var(--owo-sys-theme-text-muted);
|
|
57
|
+
--owo-cmp-text-on-accent: var(--owo-sys-theme-text-on-accent);
|
|
58
|
+
--owo-cmp-accent-bg: var(--owo-sys-theme-accent-bg);
|
|
59
|
+
--owo-cmp-accent-bg-hover: var(--owo-sys-theme-accent-bg-hover);
|
|
60
|
+
--owo-cmp-accent-bg-muted: var(--owo-sys-theme-accent-bg-muted);
|
|
61
|
+
--owo-cmp-accent-text: var(--owo-sys-theme-text-on-accent);
|
|
62
|
+
--owo-cmp-accent-border: var(--owo-sys-theme-accent-border);
|
|
63
|
+
--owo-cmp-success-bg: var(--owo-sys-theme-success-bg);
|
|
64
|
+
--owo-cmp-success-border: var(--owo-sys-theme-success-border);
|
|
65
|
+
--owo-cmp-success-text: var(--owo-sys-theme-success-text);
|
|
66
|
+
--owo-cmp-warning-bg: var(--owo-sys-theme-warning-bg);
|
|
67
|
+
--owo-cmp-warning-border: var(--owo-sys-theme-warning-border);
|
|
68
|
+
--owo-cmp-warning-text: var(--owo-sys-theme-warning-text);
|
|
69
|
+
--owo-cmp-danger-bg: var(--owo-sys-theme-danger-bg);
|
|
70
|
+
--owo-cmp-danger-bg-emphasis: var(--owo-sys-theme-danger-bg-emphasis);
|
|
71
|
+
--owo-cmp-danger-border: var(--owo-sys-theme-danger-border);
|
|
72
|
+
--owo-cmp-danger-text: var(--owo-sys-theme-danger-text);
|
|
73
|
+
--owo-cmp-info-bg: var(--owo-sys-theme-info-bg);
|
|
74
|
+
--owo-cmp-info-border: var(--owo-sys-theme-info-border);
|
|
75
|
+
--owo-cmp-info-text: var(--owo-sys-theme-info-text);
|
|
76
|
+
--owo-cmp-control-radius-sm: var(--owo-sys-preset-control-radius-sm);
|
|
77
|
+
--owo-cmp-control-radius-md: var(--owo-sys-preset-control-radius-md);
|
|
78
|
+
--owo-cmp-control-radius-lg: var(--owo-sys-preset-control-radius-lg);
|
|
79
|
+
--owo-cmp-control-radius-xl: var(--owo-sys-preset-control-radius-xl);
|
|
80
|
+
--owo-cmp-control-radius-2xl: var(--owo-sys-preset-control-radius-2xl);
|
|
81
|
+
--owo-cmp-control-radius-full: var(--owo-sys-preset-control-radius-full);
|
|
82
|
+
--owo-cmp-control-border-width: var(--owo-sys-preset-control-border-width);
|
|
83
|
+
--owo-cmp-control-focus-ring: var(--owo-sys-theme-control-focus-ring);
|
|
84
|
+
--owo-cmp-control-focus-ring-offset: var(--owo-sys-theme-control-focus-ring-offset);
|
|
85
|
+
--owo-cmp-font-heading: var(--owo-ref-font-heading);
|
|
86
|
+
--owo-cmp-motion-duration-fast: 0.15s;
|
|
87
|
+
--owo-cmp-motion-duration-default: 0.2s;
|
|
88
|
+
--owo-cmp-motion-ease-standard: var(--owo-ref-motion-ease-standard);
|
|
89
|
+
--owo-cmp-motion-ease-decelerate: var(--owo-ref-motion-ease-decelerate);
|
|
90
|
+
--owo-cmp-motion-ease-accelerate: var(--owo-ref-motion-ease-accelerate);
|
|
91
|
+
--owo-cmp-density-compact: 0.875;
|
|
92
|
+
--owo-cmp-density-default: 1;
|
|
93
|
+
--owo-cmp-density-comfortable: 1.125;
|
|
94
|
+
--owo-cmp-overlay-bg: var(--owo-sys-theme-overlay-bg);
|
|
95
|
+
--owo-cmp-z-dropdown: 1000;
|
|
96
|
+
--owo-cmp-z-modal: 1100;
|
|
97
|
+
--owo-cmp-z-toast: 1200;
|
|
98
|
+
--owo-feedback-neutral-bg: var(--owo-cmp-surface-bg-raised);
|
|
99
|
+
--owo-feedback-neutral-border: var(--owo-cmp-surface-border);
|
|
100
|
+
--owo-feedback-neutral-text: var(--owo-cmp-text-primary);
|
|
101
|
+
--owo-feedback-neutral-icon: var(--owo-cmp-text-secondary);
|
|
102
|
+
--owo-feedback-info-bg: var(--owo-cmp-info-bg);
|
|
103
|
+
--owo-feedback-info-border: var(--owo-cmp-info-border);
|
|
104
|
+
--owo-feedback-info-text: var(--owo-cmp-info-text);
|
|
105
|
+
--owo-feedback-info-icon: var(--owo-cmp-info-text);
|
|
106
|
+
--owo-feedback-success-bg: var(--owo-cmp-success-bg);
|
|
107
|
+
--owo-feedback-success-border: var(--owo-cmp-success-border);
|
|
108
|
+
--owo-feedback-success-text: var(--owo-cmp-success-text);
|
|
109
|
+
--owo-feedback-success-icon: var(--owo-cmp-success-text);
|
|
110
|
+
--owo-feedback-warning-bg: var(--owo-cmp-warning-bg);
|
|
111
|
+
--owo-feedback-warning-border: var(--owo-cmp-warning-border);
|
|
112
|
+
--owo-feedback-warning-text: var(--owo-cmp-warning-text);
|
|
113
|
+
--owo-feedback-warning-icon: var(--owo-cmp-warning-text);
|
|
114
|
+
--owo-feedback-danger-bg: var(--owo-cmp-danger-bg);
|
|
115
|
+
--owo-feedback-danger-border: var(--owo-cmp-danger-border);
|
|
116
|
+
--owo-feedback-danger-text: var(--owo-cmp-danger-text);
|
|
117
|
+
--owo-feedback-danger-icon: var(--owo-cmp-danger-text);
|
|
118
|
+
}
|
package/dist/tokens.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** Raw foundational neutral scale — palette primitives, not component semantics. */
|
|
2
|
+
declare const foundationNeutralKeys: readonly ["--owo-ref-color-neutral-900", "--owo-ref-color-neutral-800", "--owo-ref-color-neutral-700", "--owo-ref-color-neutral-600", "--owo-ref-color-neutral-500", "--owo-ref-color-neutral-400", "--owo-ref-color-neutral-300", "--owo-ref-color-neutral-200", "--owo-ref-color-neutral-100"];
|
|
3
|
+
type FoundationNeutralKey = (typeof foundationNeutralKeys)[number];
|
|
1
4
|
declare const semanticTokenKeys: readonly ["--owo-cmp-surface-bg", "--owo-cmp-surface-bg-subtle", "--owo-cmp-surface-bg-raised", "--owo-cmp-surface-bg-inset", "--owo-cmp-surface-border", "--owo-cmp-surface-border-muted", "--owo-cmp-surface-border-strong", "--owo-cmp-surface-shadow", "--owo-cmp-surface-shadow-strong", "--owo-cmp-surface-blur", "--owo-cmp-canvas-bg", "--owo-cmp-canvas-bg-subtle", "--owo-cmp-surface-container", "--owo-cmp-surface-container-high", "--owo-cmp-surface-container-highest", "--owo-cmp-overlay-bg", "--owo-cmp-text-primary", "--owo-cmp-text-secondary", "--owo-cmp-text-muted", "--owo-cmp-text-on-accent", "--owo-cmp-accent-bg", "--owo-cmp-accent-bg-hover", "--owo-cmp-accent-bg-muted", "--owo-cmp-accent-text", "--owo-cmp-accent-border", "--owo-cmp-success-bg", "--owo-cmp-success-border", "--owo-cmp-success-text", "--owo-cmp-warning-bg", "--owo-cmp-warning-border", "--owo-cmp-warning-text", "--owo-cmp-danger-bg", "--owo-cmp-danger-bg-emphasis", "--owo-cmp-danger-border", "--owo-cmp-danger-text", "--owo-cmp-info-bg", "--owo-cmp-info-border", "--owo-cmp-info-text", "--owo-cmp-control-radius-sm", "--owo-cmp-control-radius-md", "--owo-cmp-control-radius-lg", "--owo-cmp-control-radius-xl", "--owo-cmp-control-radius-2xl", "--owo-cmp-control-radius-full", "--owo-cmp-control-border-width", "--owo-cmp-control-focus-ring", "--owo-cmp-control-focus-ring-offset", "--owo-cmp-font-heading", "--owo-cmp-motion-duration-fast", "--owo-cmp-motion-duration-default", "--owo-cmp-motion-ease-standard", "--owo-cmp-motion-ease-decelerate", "--owo-cmp-motion-ease-accelerate", "--owo-cmp-density-compact", "--owo-cmp-density-default", "--owo-cmp-density-comfortable", "--owo-cmp-z-dropdown", "--owo-cmp-z-modal", "--owo-cmp-z-toast"];
|
|
2
5
|
type SemanticTokenKey = (typeof semanticTokenKeys)[number];
|
|
3
6
|
declare const themeNames: readonly ["light", "dark"];
|
|
@@ -39,4 +42,4 @@ declare const presetNames: readonly ["default", "flat", "elevated", "glass"];
|
|
|
39
42
|
type OwoUiPresetName = (typeof presetNames)[number];
|
|
40
43
|
declare const tokenDescriptions: Record<SemanticTokenKey, string>;
|
|
41
44
|
|
|
42
|
-
export { type OwoUiPresetName, type OwoUiThemeName, type SemanticTokenKey, presetNames, semanticTokenKeys, themeNames, tokenDescriptions, tokenGroups };
|
|
45
|
+
export { type FoundationNeutralKey, type OwoUiPresetName, type OwoUiThemeName, type SemanticTokenKey, foundationNeutralKeys, presetNames, semanticTokenKeys, themeNames, tokenDescriptions, tokenGroups };
|
package/dist/tokens.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var o=["--owo-cmp-surface-bg","--owo-cmp-surface-bg-subtle","--owo-cmp-surface-bg-raised","--owo-cmp-surface-bg-inset","--owo-cmp-surface-border","--owo-cmp-surface-border-muted","--owo-cmp-surface-border-strong","--owo-cmp-surface-shadow","--owo-cmp-surface-shadow-strong","--owo-cmp-surface-blur","--owo-cmp-canvas-bg","--owo-cmp-canvas-bg-subtle","--owo-cmp-surface-container","--owo-cmp-surface-container-high","--owo-cmp-surface-container-highest","--owo-cmp-overlay-bg","--owo-cmp-text-primary","--owo-cmp-text-secondary","--owo-cmp-text-muted","--owo-cmp-text-on-accent","--owo-cmp-accent-bg","--owo-cmp-accent-bg-hover","--owo-cmp-accent-bg-muted","--owo-cmp-accent-text","--owo-cmp-accent-border","--owo-cmp-success-bg","--owo-cmp-success-border","--owo-cmp-success-text","--owo-cmp-warning-bg","--owo-cmp-warning-border","--owo-cmp-warning-text","--owo-cmp-danger-bg","--owo-cmp-danger-bg-emphasis","--owo-cmp-danger-border","--owo-cmp-danger-text","--owo-cmp-info-bg","--owo-cmp-info-border","--owo-cmp-info-text","--owo-cmp-control-radius-sm","--owo-cmp-control-radius-md","--owo-cmp-control-radius-lg","--owo-cmp-control-radius-xl","--owo-cmp-control-radius-2xl","--owo-cmp-control-radius-full","--owo-cmp-control-border-width","--owo-cmp-control-focus-ring","--owo-cmp-control-focus-ring-offset","--owo-cmp-font-heading","--owo-cmp-motion-duration-fast","--owo-cmp-motion-duration-default","--owo-cmp-motion-ease-standard","--owo-cmp-motion-ease-decelerate","--owo-cmp-motion-ease-accelerate","--owo-cmp-density-compact","--owo-cmp-density-default","--owo-cmp-density-comfortable","--owo-cmp-z-dropdown","--owo-cmp-z-modal","--owo-cmp-z-toast"],
|
|
1
|
+
var o=["--owo-ref-color-neutral-900","--owo-ref-color-neutral-800","--owo-ref-color-neutral-700","--owo-ref-color-neutral-600","--owo-ref-color-neutral-500","--owo-ref-color-neutral-400","--owo-ref-color-neutral-300","--owo-ref-color-neutral-200","--owo-ref-color-neutral-100"],e=["--owo-cmp-surface-bg","--owo-cmp-surface-bg-subtle","--owo-cmp-surface-bg-raised","--owo-cmp-surface-bg-inset","--owo-cmp-surface-border","--owo-cmp-surface-border-muted","--owo-cmp-surface-border-strong","--owo-cmp-surface-shadow","--owo-cmp-surface-shadow-strong","--owo-cmp-surface-blur","--owo-cmp-canvas-bg","--owo-cmp-canvas-bg-subtle","--owo-cmp-surface-container","--owo-cmp-surface-container-high","--owo-cmp-surface-container-highest","--owo-cmp-overlay-bg","--owo-cmp-text-primary","--owo-cmp-text-secondary","--owo-cmp-text-muted","--owo-cmp-text-on-accent","--owo-cmp-accent-bg","--owo-cmp-accent-bg-hover","--owo-cmp-accent-bg-muted","--owo-cmp-accent-text","--owo-cmp-accent-border","--owo-cmp-success-bg","--owo-cmp-success-border","--owo-cmp-success-text","--owo-cmp-warning-bg","--owo-cmp-warning-border","--owo-cmp-warning-text","--owo-cmp-danger-bg","--owo-cmp-danger-bg-emphasis","--owo-cmp-danger-border","--owo-cmp-danger-text","--owo-cmp-info-bg","--owo-cmp-info-border","--owo-cmp-info-text","--owo-cmp-control-radius-sm","--owo-cmp-control-radius-md","--owo-cmp-control-radius-lg","--owo-cmp-control-radius-xl","--owo-cmp-control-radius-2xl","--owo-cmp-control-radius-full","--owo-cmp-control-border-width","--owo-cmp-control-focus-ring","--owo-cmp-control-focus-ring-offset","--owo-cmp-font-heading","--owo-cmp-motion-duration-fast","--owo-cmp-motion-duration-default","--owo-cmp-motion-ease-standard","--owo-cmp-motion-ease-decelerate","--owo-cmp-motion-ease-accelerate","--owo-cmp-density-compact","--owo-cmp-density-default","--owo-cmp-density-comfortable","--owo-cmp-z-dropdown","--owo-cmp-z-modal","--owo-cmp-z-toast"],r=["light","dark"],c=[{id:"surface",label:"Surface",tokens:["--owo-cmp-surface-bg","--owo-cmp-surface-bg-subtle","--owo-cmp-surface-bg-raised","--owo-cmp-surface-bg-inset","--owo-cmp-surface-border","--owo-cmp-surface-border-muted","--owo-cmp-surface-border-strong","--owo-cmp-surface-shadow","--owo-cmp-surface-shadow-strong","--owo-cmp-surface-blur","--owo-cmp-canvas-bg","--owo-cmp-canvas-bg-subtle","--owo-cmp-surface-container","--owo-cmp-surface-container-high","--owo-cmp-surface-container-highest","--owo-cmp-overlay-bg"]},{id:"text",label:"Text",tokens:["--owo-cmp-text-primary","--owo-cmp-text-secondary","--owo-cmp-text-muted","--owo-cmp-text-on-accent"]},{id:"accent",label:"Accent",tokens:["--owo-cmp-accent-bg","--owo-cmp-accent-bg-hover","--owo-cmp-accent-bg-muted","--owo-cmp-accent-text","--owo-cmp-accent-border"]},{id:"feedback",label:"Feedback",tokens:["--owo-cmp-success-bg","--owo-cmp-success-border","--owo-cmp-success-text","--owo-cmp-warning-bg","--owo-cmp-warning-border","--owo-cmp-warning-text","--owo-cmp-danger-bg","--owo-cmp-danger-bg-emphasis","--owo-cmp-danger-border","--owo-cmp-danger-text","--owo-cmp-info-bg","--owo-cmp-info-border","--owo-cmp-info-text"]},{id:"control",label:"Control",tokens:["--owo-cmp-control-radius-sm","--owo-cmp-control-radius-md","--owo-cmp-control-radius-lg","--owo-cmp-control-radius-xl","--owo-cmp-control-radius-2xl","--owo-cmp-control-radius-full","--owo-cmp-control-border-width","--owo-cmp-control-focus-ring","--owo-cmp-control-focus-ring-offset"]},{id:"typography",label:"Typography",tokens:["--owo-cmp-font-heading"]},{id:"motion-density",label:"Motion & Density",tokens:["--owo-cmp-motion-duration-fast","--owo-cmp-motion-duration-default","--owo-cmp-motion-ease-standard","--owo-cmp-motion-ease-decelerate","--owo-cmp-motion-ease-accelerate","--owo-cmp-density-compact","--owo-cmp-density-default","--owo-cmp-density-comfortable"]},{id:"layering",label:"Layering",tokens:["--owo-cmp-z-dropdown","--owo-cmp-z-modal","--owo-cmp-z-toast"]}],a=["default","flat","elevated","glass"],t={"--owo-cmp-surface-bg":"Default component surface background.","--owo-cmp-surface-bg-subtle":"Lower-emphasis surface background.","--owo-cmp-surface-bg-raised":"Raised surface background for floating or elevated panels.","--owo-cmp-surface-bg-inset":"Inset surface background for inputs and compact controls.","--owo-cmp-surface-border":"Default component border color.","--owo-cmp-surface-border-muted":"Lowest-emphasis border for subtle separators and dividers.","--owo-cmp-surface-border-strong":"Higher-emphasis border or focus-adjacent border color.","--owo-cmp-surface-shadow":"Default surface shadow for raised UI.","--owo-cmp-surface-shadow-strong":"Higher-emphasis shadow for popovers and overlays.","--owo-cmp-surface-blur":"Backdrop blur amount for translucent surface styles.","--owo-cmp-canvas-bg":"Page-level canvas background, distinct from component surfaces.","--owo-cmp-canvas-bg-subtle":"Subtle canvas background for secondary page regions.","--owo-cmp-surface-container":"Container background for sidebars, panels, and layout regions.","--owo-cmp-surface-container-high":"Higher-emphasis container background for nested panels.","--owo-cmp-surface-container-highest":"Highest-emphasis container background for deeply nested panels.","--owo-cmp-overlay-bg":"Shared overlay or backdrop background treatment.","--owo-cmp-text-primary":"Primary readable foreground text color.","--owo-cmp-text-secondary":"Secondary readable foreground text color.","--owo-cmp-text-muted":"Muted or tertiary text color.","--owo-cmp-text-on-accent":"Readable text color when placed on accent surfaces.","--owo-cmp-accent-bg":"Primary accent background color.","--owo-cmp-accent-bg-hover":"Primary accent hover color.","--owo-cmp-accent-bg-muted":"Muted accent background for hover, selected, and highlighted states.","--owo-cmp-accent-text":"Readable text color used on accent backgrounds.","--owo-cmp-accent-border":"Accent-tinted border for active indicators and emphasis separators.","--owo-cmp-success-bg":"Success background treatment.","--owo-cmp-success-border":"Success border treatment.","--owo-cmp-success-text":"Success foreground text color.","--owo-cmp-warning-bg":"Warning background treatment.","--owo-cmp-warning-border":"Warning border treatment.","--owo-cmp-warning-text":"Warning foreground text color.","--owo-cmp-danger-bg":"Danger background treatment.","--owo-cmp-danger-bg-emphasis":"Stronger danger background for hover, active, or destructive emphasis.","--owo-cmp-danger-border":"Danger border treatment.","--owo-cmp-danger-text":"Danger foreground text color.","--owo-cmp-info-bg":"Info background treatment.","--owo-cmp-info-border":"Info border treatment.","--owo-cmp-info-text":"Info foreground text color.","--owo-cmp-control-radius-sm":"Small control radius.","--owo-cmp-control-radius-md":"Default control radius.","--owo-cmp-control-radius-lg":"Large control radius.","--owo-cmp-control-radius-xl":"Extra-large radius for drawers, dialogs, and large containers.","--owo-cmp-control-radius-2xl":"Double extra-large radius for sheets and full-page overlays.","--owo-cmp-control-radius-full":"Fully rounded radius for pills, badges, avatars, and circular controls.","--owo-cmp-control-border-width":"Default border width for controls.","--owo-cmp-control-focus-ring":"Focus ring color.","--owo-cmp-control-focus-ring-offset":"Focus ring offset base color.","--owo-cmp-font-heading":"Heading font family stack.","--owo-cmp-motion-duration-fast":"Fast motion duration.","--owo-cmp-motion-duration-default":"Default motion duration.","--owo-cmp-motion-ease-standard":"Default motion easing curve.","--owo-cmp-motion-ease-decelerate":"Entrance-friendly motion easing curve.","--owo-cmp-motion-ease-accelerate":"Exit-friendly motion easing curve.","--owo-cmp-density-compact":"Compact density scale.","--owo-cmp-density-default":"Default density scale.","--owo-cmp-density-comfortable":"Comfortable density scale.","--owo-cmp-z-dropdown":"Dropdown and popover layering index.","--owo-cmp-z-modal":"Modal and drawer layering index.","--owo-cmp-z-toast":"Toast and high-priority overlay layering index."};export{o as foundationNeutralKeys,a as presetNames,e as semanticTokenKeys,r as themeNames,t as tokenDescriptions,c as tokenGroups};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owodesign/owoui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Reusable React UI foundation components and theme presets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.min.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"types": "./dist/tokens.d.ts",
|
|
28
28
|
"import": "./dist/tokens.min.js"
|
|
29
29
|
},
|
|
30
|
-
"./tokens.css": "./
|
|
30
|
+
"./tokens.css": "./dist/tokens.css",
|
|
31
31
|
"./storybook": {
|
|
32
32
|
"types": "./dist/storybook/index.d.ts",
|
|
33
33
|
"import": "./dist/storybook/index.min.js"
|
|
@@ -37,41 +37,32 @@
|
|
|
37
37
|
"import": "./dist/storybook/catalog.js"
|
|
38
38
|
},
|
|
39
39
|
"./storybook/catalog.json": "./dist/storybook/catalog.json",
|
|
40
|
-
"./style.css": "./
|
|
41
|
-
"./theme-light.css": "./
|
|
42
|
-
"./theme-dark.css": "./
|
|
43
|
-
"./preset-default.css": "./
|
|
44
|
-
"./preset-flat.css": "./
|
|
45
|
-
"./preset-elevated.css": "./
|
|
46
|
-
"./preset-glass.css": "./
|
|
40
|
+
"./style.css": "./dist/style.css",
|
|
41
|
+
"./theme-light.css": "./dist/theme-light.css",
|
|
42
|
+
"./theme-dark.css": "./dist/theme-dark.css",
|
|
43
|
+
"./preset-default.css": "./dist/preset-default.css",
|
|
44
|
+
"./preset-flat.css": "./dist/preset-flat.css",
|
|
45
|
+
"./preset-elevated.css": "./dist/preset-elevated.css",
|
|
46
|
+
"./preset-glass.css": "./dist/preset-glass.css"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
|
-
"dist"
|
|
50
|
-
"src/style.css",
|
|
51
|
-
"src/tokens.css",
|
|
52
|
-
"src/theme-light.css",
|
|
53
|
-
"src/theme-dark.css",
|
|
54
|
-
"src/preset-default.css",
|
|
55
|
-
"src/preset-flat.css",
|
|
56
|
-
"src/preset-elevated.css",
|
|
57
|
-
"src/preset-glass.css",
|
|
58
|
-
"src/styles"
|
|
49
|
+
"dist"
|
|
59
50
|
],
|
|
60
51
|
"sideEffects": [
|
|
61
|
-
"./
|
|
62
|
-
"./
|
|
63
|
-
"./
|
|
64
|
-
"./
|
|
65
|
-
"./
|
|
66
|
-
"./
|
|
67
|
-
"./
|
|
68
|
-
"./
|
|
69
|
-
"./src/styles/**/*.css",
|
|
52
|
+
"./dist/style.css",
|
|
53
|
+
"./dist/tokens.css",
|
|
54
|
+
"./dist/theme-light.css",
|
|
55
|
+
"./dist/theme-dark.css",
|
|
56
|
+
"./dist/preset-default.css",
|
|
57
|
+
"./dist/preset-flat.css",
|
|
58
|
+
"./dist/preset-elevated.css",
|
|
59
|
+
"./dist/preset-glass.css",
|
|
70
60
|
"./src/storybook/**/*.ts",
|
|
71
61
|
"./src/storybook/**/*.tsx"
|
|
72
62
|
],
|
|
73
63
|
"scripts": {
|
|
74
|
-
"build": "npm run build:lib && npm run build:storybook && npm run build:storybook:catalog && npm run build:storybook:static",
|
|
64
|
+
"build": "npm run build:lib && npm run build:css && npm run build:storybook && npm run build:storybook:catalog && npm run build:storybook:static",
|
|
65
|
+
"build:css": "node scripts/build-css.mjs",
|
|
75
66
|
"build:lib": "tsup",
|
|
76
67
|
"build:storybook": "tsup --config tsup.storybook.config.ts",
|
|
77
68
|
"build:storybook:catalog": "node scripts/build-storybook-catalog.mjs",
|
|
@@ -81,8 +72,11 @@
|
|
|
81
72
|
"preview:storybook": "vite preview --config vite.config.ts",
|
|
82
73
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
83
74
|
"consumer:smoke": "node examples/consumer-smoke.mjs",
|
|
75
|
+
"consumer:tarball": "node scripts/verify-tarball-consumer.mjs",
|
|
76
|
+
"clean": "rm -rf dist",
|
|
84
77
|
"pack:inspect": "npm_config_cache=/tmp/owoui-npm-cache npm pack --dry-run --json .",
|
|
85
|
-
"release:check": "npm run build && npm run typecheck && npm run consumer:smoke && npm run pack:inspect"
|
|
78
|
+
"release:check": "npm run build && npm run typecheck && npm run consumer:smoke && npm run consumer:tarball && npm run pack:inspect",
|
|
79
|
+
"release:publish": "npm run release:check && npm publish --access public"
|
|
86
80
|
},
|
|
87
81
|
"publishConfig": {
|
|
88
82
|
"access": "public"
|
|
@@ -105,6 +99,7 @@
|
|
|
105
99
|
"react": "^19.2.4",
|
|
106
100
|
"react-dom": "^19.2.4",
|
|
107
101
|
"tailwindcss": "^4.2.1",
|
|
102
|
+
"typescript": "^5.9.3",
|
|
108
103
|
"tsup": "^8.5.1",
|
|
109
104
|
"vite": "^8.0.3"
|
|
110
105
|
}
|
package/src/preset-default.css
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@import "./tokens.css";
|
|
2
|
-
|
|
3
|
-
:root[data-preset="default"],
|
|
4
|
-
.owoui-preset-default {
|
|
5
|
-
--owo-sys-preset-surface-bg: var(--owo-sys-theme-surface-base);
|
|
6
|
-
--owo-sys-preset-surface-bg-subtle: var(--owo-sys-theme-surface-subtle);
|
|
7
|
-
--owo-sys-preset-surface-bg-raised: var(--owo-sys-theme-surface-raised);
|
|
8
|
-
--owo-sys-preset-surface-bg-inset: var(--owo-sys-theme-surface-inset);
|
|
9
|
-
--owo-sys-preset-surface-border: var(--owo-sys-theme-surface-border);
|
|
10
|
-
--owo-sys-preset-surface-border-muted: var(--owo-sys-theme-surface-border-muted);
|
|
11
|
-
--owo-sys-preset-surface-border-strong: var(--owo-sys-theme-surface-border-strong);
|
|
12
|
-
--owo-sys-preset-surface-shadow: var(--owo-ref-shadow-raised);
|
|
13
|
-
--owo-sys-preset-surface-shadow-strong: var(--owo-ref-shadow-popover);
|
|
14
|
-
--owo-sys-preset-surface-blur: 0px;
|
|
15
|
-
--owo-sys-preset-canvas-bg: var(--owo-sys-theme-surface-canvas);
|
|
16
|
-
--owo-sys-preset-canvas-bg-subtle: var(--owo-sys-theme-canvas-bg-subtle);
|
|
17
|
-
--owo-sys-preset-surface-container: var(--owo-sys-theme-surface-container);
|
|
18
|
-
--owo-sys-preset-surface-container-high: var(--owo-sys-theme-surface-container-high);
|
|
19
|
-
--owo-sys-preset-surface-container-highest: var(--owo-sys-theme-surface-container-highest);
|
|
20
|
-
--owo-sys-preset-control-radius-sm: var(--owo-ref-radius-sm);
|
|
21
|
-
--owo-sys-preset-control-radius-md: var(--owo-ref-radius-md);
|
|
22
|
-
--owo-sys-preset-control-radius-lg: var(--owo-ref-radius-lg);
|
|
23
|
-
--owo-sys-preset-control-radius-xl: var(--owo-ref-radius-xl);
|
|
24
|
-
--owo-sys-preset-control-radius-2xl: var(--owo-ref-radius-2xl);
|
|
25
|
-
--owo-sys-preset-control-radius-full: var(--owo-ref-radius-full);
|
|
26
|
-
--owo-sys-preset-control-border-width: 1px;
|
|
27
|
-
}
|
package/src/preset-elevated.css
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@import "./tokens.css";
|
|
2
|
-
|
|
3
|
-
:root[data-preset="elevated"],
|
|
4
|
-
.owoui-preset-elevated {
|
|
5
|
-
--owo-sys-preset-surface-bg: color-mix(in srgb, var(--owo-sys-theme-surface-base) 96%, var(--owo-sys-theme-surface-border-strong));
|
|
6
|
-
--owo-sys-preset-surface-bg-subtle: color-mix(in srgb, var(--owo-sys-theme-surface-subtle) 96%, var(--owo-sys-theme-surface-border-strong));
|
|
7
|
-
--owo-sys-preset-surface-bg-raised: color-mix(in srgb, var(--owo-sys-theme-surface-raised) 94%, var(--owo-sys-theme-surface-border-strong));
|
|
8
|
-
--owo-sys-preset-surface-bg-inset: var(--owo-sys-theme-surface-inset);
|
|
9
|
-
--owo-sys-preset-surface-border: color-mix(in srgb, var(--owo-sys-theme-surface-border) 88%, var(--owo-sys-theme-surface-border-strong));
|
|
10
|
-
--owo-sys-preset-surface-border-muted: var(--owo-sys-theme-surface-border-muted);
|
|
11
|
-
--owo-sys-preset-surface-border-strong: var(--owo-sys-theme-surface-border-strong);
|
|
12
|
-
--owo-sys-preset-surface-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
|
|
13
|
-
--owo-sys-preset-surface-shadow-strong: 0 28px 60px rgba(15, 23, 42, 0.18);
|
|
14
|
-
--owo-sys-preset-surface-blur: 0px;
|
|
15
|
-
--owo-sys-preset-canvas-bg: var(--owo-sys-theme-surface-canvas);
|
|
16
|
-
--owo-sys-preset-canvas-bg-subtle: var(--owo-sys-theme-canvas-bg-subtle);
|
|
17
|
-
--owo-sys-preset-surface-container: color-mix(in srgb, var(--owo-sys-theme-surface-container) 94%, var(--owo-sys-theme-surface-border-strong));
|
|
18
|
-
--owo-sys-preset-surface-container-high: color-mix(in srgb, var(--owo-sys-theme-surface-container-high) 94%, var(--owo-sys-theme-surface-border-strong));
|
|
19
|
-
--owo-sys-preset-surface-container-highest: color-mix(in srgb, var(--owo-sys-theme-surface-container-highest) 92%, var(--owo-sys-theme-surface-border-strong));
|
|
20
|
-
--owo-sys-preset-control-radius-sm: calc(var(--owo-ref-radius-sm) + 0.125rem);
|
|
21
|
-
--owo-sys-preset-control-radius-md: calc(var(--owo-ref-radius-md) + 0.125rem);
|
|
22
|
-
--owo-sys-preset-control-radius-lg: calc(var(--owo-ref-radius-lg) + 0.125rem);
|
|
23
|
-
--owo-sys-preset-control-radius-xl: calc(var(--owo-ref-radius-xl) + 0.125rem);
|
|
24
|
-
--owo-sys-preset-control-radius-2xl: calc(var(--owo-ref-radius-2xl) + 0.125rem);
|
|
25
|
-
--owo-sys-preset-control-radius-full: var(--owo-ref-radius-full);
|
|
26
|
-
--owo-sys-preset-control-border-width: 1px;
|
|
27
|
-
}
|
package/src/preset-flat.css
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@import "./tokens.css";
|
|
2
|
-
|
|
3
|
-
:root[data-preset="flat"],
|
|
4
|
-
.owoui-preset-flat {
|
|
5
|
-
--owo-sys-preset-surface-bg: var(--owo-sys-theme-surface-base);
|
|
6
|
-
--owo-sys-preset-surface-bg-subtle: var(--owo-sys-theme-surface-subtle);
|
|
7
|
-
--owo-sys-preset-surface-bg-raised: var(--owo-sys-theme-surface-base);
|
|
8
|
-
--owo-sys-preset-surface-bg-inset: var(--owo-sys-theme-surface-inset);
|
|
9
|
-
--owo-sys-preset-surface-border: var(--owo-sys-theme-surface-border);
|
|
10
|
-
--owo-sys-preset-surface-border-muted: var(--owo-sys-theme-surface-border-muted);
|
|
11
|
-
--owo-sys-preset-surface-border-strong: var(--owo-sys-theme-surface-border-strong);
|
|
12
|
-
--owo-sys-preset-surface-shadow: none;
|
|
13
|
-
--owo-sys-preset-surface-shadow-strong: none;
|
|
14
|
-
--owo-sys-preset-surface-blur: 0px;
|
|
15
|
-
--owo-sys-preset-canvas-bg: var(--owo-sys-theme-surface-canvas);
|
|
16
|
-
--owo-sys-preset-canvas-bg-subtle: var(--owo-sys-theme-canvas-bg-subtle);
|
|
17
|
-
--owo-sys-preset-surface-container: var(--owo-sys-theme-surface-container);
|
|
18
|
-
--owo-sys-preset-surface-container-high: var(--owo-sys-theme-surface-container);
|
|
19
|
-
--owo-sys-preset-surface-container-highest: var(--owo-sys-theme-surface-container-high);
|
|
20
|
-
--owo-sys-preset-control-radius-sm: var(--owo-ref-radius-xs);
|
|
21
|
-
--owo-sys-preset-control-radius-md: calc(var(--owo-ref-radius-sm) + 0.125rem);
|
|
22
|
-
--owo-sys-preset-control-radius-lg: calc(var(--owo-ref-radius-md) + 0.125rem);
|
|
23
|
-
--owo-sys-preset-control-radius-xl: calc(var(--owo-ref-radius-lg) + 0.25rem);
|
|
24
|
-
--owo-sys-preset-control-radius-2xl: var(--owo-ref-radius-xl);
|
|
25
|
-
--owo-sys-preset-control-radius-full: var(--owo-ref-radius-full);
|
|
26
|
-
--owo-sys-preset-control-border-width: 1px;
|
|
27
|
-
}
|
package/src/preset-glass.css
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@import "./tokens.css";
|
|
2
|
-
|
|
3
|
-
:root[data-preset="glass"],
|
|
4
|
-
.owoui-preset-glass {
|
|
5
|
-
--owo-sys-preset-surface-bg: color-mix(in srgb, var(--owo-sys-theme-surface-base) 62%, transparent);
|
|
6
|
-
--owo-sys-preset-surface-bg-subtle: color-mix(in srgb, var(--owo-sys-theme-surface-subtle) 48%, transparent);
|
|
7
|
-
--owo-sys-preset-surface-bg-raised: color-mix(in srgb, var(--owo-sys-theme-surface-raised) 72%, transparent);
|
|
8
|
-
--owo-sys-preset-surface-bg-inset: color-mix(in srgb, var(--owo-sys-theme-surface-inset) 82%, transparent);
|
|
9
|
-
--owo-sys-preset-surface-border: color-mix(in srgb, var(--owo-sys-theme-surface-border-strong) 55%, transparent);
|
|
10
|
-
--owo-sys-preset-surface-border-muted: color-mix(in srgb, var(--owo-sys-theme-surface-border-muted) 60%, transparent);
|
|
11
|
-
--owo-sys-preset-surface-border-strong: color-mix(in srgb, var(--owo-sys-theme-surface-border-strong) 78%, transparent);
|
|
12
|
-
--owo-sys-preset-surface-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
|
|
13
|
-
--owo-sys-preset-surface-shadow-strong: 0 24px 64px rgba(15, 23, 42, 0.14);
|
|
14
|
-
--owo-sys-preset-surface-blur: 18px;
|
|
15
|
-
--owo-sys-preset-canvas-bg: var(--owo-sys-theme-surface-canvas);
|
|
16
|
-
--owo-sys-preset-canvas-bg-subtle: var(--owo-sys-theme-canvas-bg-subtle);
|
|
17
|
-
--owo-sys-preset-surface-container: color-mix(in srgb, var(--owo-sys-theme-surface-container) 70%, transparent);
|
|
18
|
-
--owo-sys-preset-surface-container-high: color-mix(in srgb, var(--owo-sys-theme-surface-container-high) 74%, transparent);
|
|
19
|
-
--owo-sys-preset-surface-container-highest: color-mix(in srgb, var(--owo-sys-theme-surface-container-highest) 78%, transparent);
|
|
20
|
-
--owo-sys-preset-control-radius-sm: var(--owo-ref-radius-md);
|
|
21
|
-
--owo-sys-preset-control-radius-md: var(--owo-ref-radius-lg);
|
|
22
|
-
--owo-sys-preset-control-radius-lg: calc(var(--owo-ref-radius-lg) + 0.25rem);
|
|
23
|
-
--owo-sys-preset-control-radius-xl: calc(var(--owo-ref-radius-xl) + 0.25rem);
|
|
24
|
-
--owo-sys-preset-control-radius-2xl: calc(var(--owo-ref-radius-2xl) + 0.25rem);
|
|
25
|
-
--owo-sys-preset-control-radius-full: var(--owo-ref-radius-full);
|
|
26
|
-
--owo-sys-preset-control-border-width: 1px;
|
|
27
|
-
}
|
package/src/style.css
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
@import "./styles/tokens.css";
|
|
3
|
-
@import "./styles/ui/avatar.css";
|
|
4
|
-
@import "./styles/ui/badge.css";
|
|
5
|
-
@import "./styles/ui/button.css";
|
|
6
|
-
@import "./styles/ui/collapsible.css";
|
|
7
|
-
@import "./styles/ui/dialog.css";
|
|
8
|
-
@import "./styles/ui/dropdown-menu.css";
|
|
9
|
-
@import "./styles/ui/drawer.css";
|
|
10
|
-
@import "./styles/ui/field.css";
|
|
11
|
-
@import "./styles/ui/icon-button.css";
|
|
12
|
-
@import "./styles/ui/input.css";
|
|
13
|
-
@import "./styles/ui/panel.css";
|
|
14
|
-
@import "./styles/ui/segmented-control.css";
|
|
15
|
-
@import "./styles/ui/select.css";
|
|
16
|
-
@import "./styles/ui/skeleton.css";
|
|
17
|
-
@import "./styles/ui/status-notice.css";
|
|
18
|
-
@import "./styles/ui/switch.css";
|
|
19
|
-
@import "./styles/ui/tabs.css";
|
|
20
|
-
@import "./styles/ui/textarea.css";
|
|
21
|
-
@import "./styles/ui/toast.css";
|
|
22
|
-
@import "./styles/ui/tooltip.css";
|
package/src/styles/ui/avatar.css
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
.owo-avatar {
|
|
2
|
-
--avatar-bg: var(--owo-cmp-surface-bg-inset);
|
|
3
|
-
--avatar-text: var(--owo-cmp-text-secondary);
|
|
4
|
-
--avatar-border: transparent;
|
|
5
|
-
background: var(--avatar-bg);
|
|
6
|
-
color: var(--avatar-text);
|
|
7
|
-
border: 1px solid var(--avatar-border);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.owo-avatar[data-tone="subtle"] {
|
|
11
|
-
--avatar-bg: var(--owo-cmp-surface-bg-subtle);
|
|
12
|
-
--avatar-text: var(--owo-cmp-text-muted);
|
|
13
|
-
}
|
package/src/styles/ui/badge.css
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
.owo-badge {
|
|
2
|
-
--badge-bg: var(--owo-cmp-surface-bg-inset);
|
|
3
|
-
--badge-text: var(--owo-cmp-text-secondary);
|
|
4
|
-
--badge-border: transparent;
|
|
5
|
-
background: var(--badge-bg);
|
|
6
|
-
border-color: var(--badge-border);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.owo-badge[data-variant="outline"] {
|
|
10
|
-
--badge-bg: transparent;
|
|
11
|
-
--badge-border: var(--owo-cmp-surface-border);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.owo-badge[data-tone="info"] {
|
|
15
|
-
--badge-bg: var(--owo-cmp-info-bg);
|
|
16
|
-
--badge-text: var(--owo-cmp-info-text);
|
|
17
|
-
--badge-border: var(--owo-cmp-info-border);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.owo-badge[data-tone="info"][data-variant="outline"] {
|
|
21
|
-
--badge-bg: transparent;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.owo-badge[data-tone="success"] {
|
|
25
|
-
--badge-bg: var(--owo-cmp-success-bg);
|
|
26
|
-
--badge-text: var(--owo-cmp-success-text);
|
|
27
|
-
--badge-border: var(--owo-cmp-success-border);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.owo-badge[data-tone="success"][data-variant="outline"] {
|
|
31
|
-
--badge-bg: transparent;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.owo-badge[data-tone="warning"] {
|
|
35
|
-
--badge-bg: var(--owo-cmp-warning-bg);
|
|
36
|
-
--badge-text: var(--owo-cmp-warning-text);
|
|
37
|
-
--badge-border: var(--owo-cmp-warning-border);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.owo-badge[data-tone="warning"][data-variant="outline"] {
|
|
41
|
-
--badge-bg: transparent;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.owo-badge[data-tone="danger"] {
|
|
45
|
-
--badge-bg: var(--owo-cmp-danger-bg);
|
|
46
|
-
--badge-text: var(--owo-cmp-danger-text);
|
|
47
|
-
--badge-border: var(--owo-cmp-danger-border);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.owo-badge[data-tone="danger"][data-variant="outline"] {
|
|
51
|
-
--badge-bg: transparent;
|
|
52
|
-
}
|
package/src/styles/ui/button.css
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
.owo-button {
|
|
2
|
-
--button-bg: var(--owo-cmp-surface-bg);
|
|
3
|
-
--button-bg-hover: var(--owo-cmp-surface-bg-inset);
|
|
4
|
-
--button-bg-active: var(--owo-cmp-surface-bg-subtle);
|
|
5
|
-
--button-text: var(--owo-cmp-text-primary);
|
|
6
|
-
--button-border: var(--owo-cmp-surface-border);
|
|
7
|
-
--button-ring: var(--owo-cmp-control-focus-ring);
|
|
8
|
-
--button-disabled-opacity: 0.5;
|
|
9
|
-
background: var(--button-bg);
|
|
10
|
-
color: var(--button-text);
|
|
11
|
-
border-color: var(--button-border);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.owo-button:hover {
|
|
15
|
-
background: var(--button-bg-hover);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.owo-button:active {
|
|
19
|
-
background: var(--button-bg-active);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.owo-button:focus-visible {
|
|
23
|
-
--tw-ring-color: var(--button-ring);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.owo-button[data-variant="primary"] {
|
|
27
|
-
--button-bg: var(--owo-cmp-accent-bg);
|
|
28
|
-
--button-bg-hover: var(--owo-cmp-accent-bg-hover);
|
|
29
|
-
--button-bg-active: color-mix(in srgb, var(--owo-cmp-accent-bg-hover) 88%, black);
|
|
30
|
-
--button-text: var(--owo-cmp-accent-text);
|
|
31
|
-
--button-border: transparent;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.owo-button[data-variant="ghost"] {
|
|
35
|
-
--button-bg: transparent;
|
|
36
|
-
--button-bg-hover: var(--owo-cmp-surface-bg-inset);
|
|
37
|
-
--button-bg-active: var(--owo-cmp-surface-bg-subtle);
|
|
38
|
-
--button-text: var(--owo-cmp-text-secondary);
|
|
39
|
-
--button-border: transparent;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.owo-button[data-variant="danger"] {
|
|
43
|
-
--button-bg: var(--owo-cmp-danger-bg);
|
|
44
|
-
--button-bg-hover: color-mix(in srgb, var(--owo-cmp-danger-bg) 92%, var(--owo-cmp-danger-border));
|
|
45
|
-
--button-bg-active: color-mix(in srgb, var(--owo-cmp-danger-bg) 84%, var(--owo-cmp-danger-border));
|
|
46
|
-
--button-text: var(--owo-cmp-danger-text);
|
|
47
|
-
--button-border: var(--owo-cmp-danger-border);
|
|
48
|
-
--button-ring: var(--owo-cmp-danger-border);
|
|
49
|
-
}
|
package/src/styles/ui/dialog.css
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
.owo-dialog-backdrop {
|
|
2
|
-
animation: dialog-backdrop-in 0.2s var(--owo-cmp-motion-ease-standard);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.owo-dialog {
|
|
6
|
-
background: var(--owo-cmp-surface-bg-raised);
|
|
7
|
-
border: 1px solid var(--owo-cmp-surface-border);
|
|
8
|
-
color: var(--owo-cmp-text-primary);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.owo-dialog__header {
|
|
12
|
-
color: var(--owo-cmp-text-primary);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.owo-dialog__body {
|
|
16
|
-
color: var(--owo-cmp-text-secondary);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes dialog-in {
|
|
20
|
-
from {
|
|
21
|
-
opacity: 0;
|
|
22
|
-
transform: scale(0.95) translateY(4px);
|
|
23
|
-
}
|
|
24
|
-
to {
|
|
25
|
-
opacity: 1;
|
|
26
|
-
transform: scale(1) translateY(0);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@keyframes dialog-backdrop-in {
|
|
31
|
-
from {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
}
|
|
34
|
-
to {
|
|
35
|
-
opacity: 1;
|
|
36
|
-
}
|
|
37
|
-
}
|
package/src/styles/ui/drawer.css
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.owo-drawer {
|
|
2
|
-
--drawer-surface: var(--owo-cmp-surface-bg-raised);
|
|
3
|
-
--drawer-border: var(--owo-cmp-surface-border);
|
|
4
|
-
--drawer-shadow: var(--drawer-panel-shadow);
|
|
5
|
-
will-change: transform;
|
|
6
|
-
background: var(--drawer-surface);
|
|
7
|
-
border-color: var(--drawer-border);
|
|
8
|
-
box-shadow: var(--drawer-shadow);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.owo-drawer-backdrop {
|
|
12
|
-
--drawer-backdrop: var(--owo-cmp-overlay-bg);
|
|
13
|
-
border: 0;
|
|
14
|
-
background: var(--drawer-backdrop);
|
|
15
|
-
}
|