@og-ui/tokens 0.0.0-stage → 0.1.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.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/dist/contract.d.ts +141 -0
  3. package/dist/contract.js +16 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +2 -0
  6. package/dist/shared.d.ts +33 -0
  7. package/dist/shared.js +25 -0
  8. package/dist/themes/aurora.css +196 -0
  9. package/dist/themes/aurora.d.ts +3 -0
  10. package/dist/themes/aurora.js +113 -0
  11. package/dist/themes/aurora.scoped.css +145 -0
  12. package/dist/themes/brutal.css +196 -0
  13. package/dist/themes/brutal.d.ts +6 -0
  14. package/dist/themes/brutal.js +114 -0
  15. package/dist/themes/brutal.scoped.css +145 -0
  16. package/dist/themes/clay.css +196 -0
  17. package/dist/themes/clay.d.ts +3 -0
  18. package/dist/themes/clay.js +111 -0
  19. package/dist/themes/clay.scoped.css +145 -0
  20. package/dist/themes/clean.css +196 -0
  21. package/dist/themes/clean.d.ts +3 -0
  22. package/dist/themes/clean.js +111 -0
  23. package/dist/themes/clean.scoped.css +145 -0
  24. package/dist/themes/glass.css +196 -0
  25. package/dist/themes/glass.d.ts +7 -0
  26. package/dist/themes/glass.js +115 -0
  27. package/dist/themes/glass.scoped.css +145 -0
  28. package/dist/themes/index.d.ts +10 -0
  29. package/dist/themes/index.js +10 -0
  30. package/dist/themes/liquid-glass.css +196 -0
  31. package/dist/themes/liquid-glass.d.ts +6 -0
  32. package/dist/themes/liquid-glass.js +114 -0
  33. package/dist/themes/liquid-glass.scoped.css +145 -0
  34. package/dist/themes/neumorphism.css +196 -0
  35. package/dist/themes/neumorphism.d.ts +2 -0
  36. package/dist/themes/neumorphism.js +117 -0
  37. package/dist/themes/neumorphism.scoped.css +145 -0
  38. package/dist/themes.css +1060 -0
  39. package/dist/themes.json +958 -0
  40. package/package.json +36 -3
  41. package/README.md +0 -3
@@ -0,0 +1,145 @@
1
+ /*! OG UI tokens: Glassmorphism 2.0 (scoped). Generated from packages/tokens/src. Do not edit by hand. */
2
+
3
+ /* Glassmorphism 2.0: Frosted translucent panels over colour, with light edges and layered depth. */
4
+ [data-og-theme="glass"] {
5
+ --og-radius-sm: 10px;
6
+ --og-radius-md: 14px;
7
+ --og-radius-lg: 24px;
8
+ --og-radius-full: 9999px;
9
+ --og-radius-control: 14px;
10
+ --og-border-width: 1px;
11
+ --og-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
12
+ --og-font-display: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
13
+ --og-font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
14
+ --og-font-weight-strong: 500;
15
+ --og-tint-strength: 14%;
16
+ --og-press: scale(0.98);
17
+ --og-hover: none;
18
+ --og-duration: 200ms;
19
+ --og-easing: cubic-bezier(0.2, 0.8, 0.2, 1);
20
+ --og-color-bg: #f3eee9;
21
+ --og-color-bg-image: radial-gradient(at 15% 10%, #fdba74 0, transparent 45%), radial-gradient(at 85% 12%, #f9a8d4 0, transparent 40%), radial-gradient(at 65% 92%, #6ee7b7 0, transparent 45%), radial-gradient(at 8% 88%, #a5b4fc 0, transparent 40%);
22
+ --og-color-bg-size: auto;
23
+ --og-color-text: #0f172a;
24
+ --og-color-on-tint: #0f172a;
25
+ --og-color-text-muted: #475569;
26
+ --og-color-border: rgba(255, 255, 255, 0.55);
27
+ --og-color-accent: var(--og-accent, #4f46e5);
28
+ --og-color-accent-contrast: var(--og-accent-contrast, #ffffff);
29
+ --og-color-accent-border: transparent;
30
+ --og-color-focus-ring: var(--og-accent, #4f46e5);
31
+ --og-color-success: #15803d;
32
+ --og-color-warning: #b45309;
33
+ --og-color-danger: #b91c1c;
34
+ --og-palette-1: #2563eb;
35
+ --og-palette-2: #db2777;
36
+ --og-palette-3: #059669;
37
+ --og-palette-4: #d97706;
38
+ --og-palette-5: #7c3aed;
39
+ --og-palette-6: #0891b2;
40
+ --og-effect-glow: 0 0 0 transparent;
41
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.45);
42
+ --og-surface-raised-bg-solid: #f8fafc;
43
+ --og-surface-raised-border: rgba(255, 255, 255, 0.75);
44
+ --og-surface-raised-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.18);
45
+ --og-surface-raised-backdrop: none;
46
+ --og-surface-raised-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
47
+ --og-surface-inset-bg: rgba(255, 255, 255, 0.35);
48
+ --og-surface-inset-bg-solid: #f1f5f9;
49
+ --og-surface-inset-border: rgba(255, 255, 255, 0.6);
50
+ --og-surface-inset-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
51
+ --og-surface-inset-backdrop: none;
52
+ --og-surface-inset-highlight: none;
53
+ --og-surface-overlay-bg: rgba(255, 255, 255, 0.55);
54
+ --og-surface-overlay-bg-solid: #ffffff;
55
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.85);
56
+ --og-surface-overlay-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.3);
57
+ --og-surface-overlay-backdrop: blur(20px) saturate(160%);
58
+ --og-surface-overlay-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 40%);
59
+ }
60
+
61
+ @media (prefers-color-scheme: dark) {
62
+ [data-og-theme="glass"]:not([data-og-mode="light"]) {
63
+ --og-color-bg: #0b1020;
64
+ --og-color-bg-image: radial-gradient(at 18% 12%, #4338ca 0, transparent 45%), radial-gradient(at 85% 8%, #be185d 0, transparent 40%), radial-gradient(at 70% 92%, #0e7490 0, transparent 45%);
65
+ --og-color-bg-size: auto;
66
+ --og-color-text: #e2e8f0;
67
+ --og-color-on-tint: #e2e8f0;
68
+ --og-color-text-muted: #94a3b8;
69
+ --og-color-border: rgba(255, 255, 255, 0.14);
70
+ --og-color-accent: var(--og-accent, #818cf8);
71
+ --og-color-accent-contrast: var(--og-accent-contrast, #0b1020);
72
+ --og-color-accent-border: transparent;
73
+ --og-color-focus-ring: var(--og-accent, #a5b4fc);
74
+ --og-color-success: #22c55e;
75
+ --og-color-warning: #f59e0b;
76
+ --og-color-danger: #fc8181;
77
+ --og-palette-1: #60a5fa;
78
+ --og-palette-2: #f472b6;
79
+ --og-palette-3: #34d399;
80
+ --og-palette-4: #fbbf24;
81
+ --og-palette-5: #a78bfa;
82
+ --og-palette-6: #22d3ee;
83
+ --og-effect-glow: 0 0 0 transparent;
84
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.08);
85
+ --og-surface-raised-bg-solid: #1e2538;
86
+ --og-surface-raised-border: rgba(255, 255, 255, 0.16);
87
+ --og-surface-raised-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
88
+ --og-surface-raised-backdrop: none;
89
+ --og-surface-raised-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%);
90
+ --og-surface-inset-bg: rgba(0, 0, 0, 0.22);
91
+ --og-surface-inset-bg-solid: #141a2b;
92
+ --og-surface-inset-border: rgba(255, 255, 255, 0.12);
93
+ --og-surface-inset-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
94
+ --og-surface-inset-backdrop: none;
95
+ --og-surface-inset-highlight: none;
96
+ --og-surface-overlay-bg: rgba(20, 26, 45, 0.55);
97
+ --og-surface-overlay-bg-solid: #1a2136;
98
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.18);
99
+ --og-surface-overlay-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
100
+ --og-surface-overlay-backdrop: blur(20px) saturate(160%);
101
+ --og-surface-overlay-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 40%);
102
+ }
103
+ }
104
+
105
+ [data-og-theme="glass"][data-og-mode="dark"] {
106
+ --og-color-bg: #0b1020;
107
+ --og-color-bg-image: radial-gradient(at 18% 12%, #4338ca 0, transparent 45%), radial-gradient(at 85% 8%, #be185d 0, transparent 40%), radial-gradient(at 70% 92%, #0e7490 0, transparent 45%);
108
+ --og-color-bg-size: auto;
109
+ --og-color-text: #e2e8f0;
110
+ --og-color-on-tint: #e2e8f0;
111
+ --og-color-text-muted: #94a3b8;
112
+ --og-color-border: rgba(255, 255, 255, 0.14);
113
+ --og-color-accent: var(--og-accent, #818cf8);
114
+ --og-color-accent-contrast: var(--og-accent-contrast, #0b1020);
115
+ --og-color-accent-border: transparent;
116
+ --og-color-focus-ring: var(--og-accent, #a5b4fc);
117
+ --og-color-success: #22c55e;
118
+ --og-color-warning: #f59e0b;
119
+ --og-color-danger: #fc8181;
120
+ --og-palette-1: #60a5fa;
121
+ --og-palette-2: #f472b6;
122
+ --og-palette-3: #34d399;
123
+ --og-palette-4: #fbbf24;
124
+ --og-palette-5: #a78bfa;
125
+ --og-palette-6: #22d3ee;
126
+ --og-effect-glow: 0 0 0 transparent;
127
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.08);
128
+ --og-surface-raised-bg-solid: #1e2538;
129
+ --og-surface-raised-border: rgba(255, 255, 255, 0.16);
130
+ --og-surface-raised-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
131
+ --og-surface-raised-backdrop: none;
132
+ --og-surface-raised-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%);
133
+ --og-surface-inset-bg: rgba(0, 0, 0, 0.22);
134
+ --og-surface-inset-bg-solid: #141a2b;
135
+ --og-surface-inset-border: rgba(255, 255, 255, 0.12);
136
+ --og-surface-inset-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
137
+ --og-surface-inset-backdrop: none;
138
+ --og-surface-inset-highlight: none;
139
+ --og-surface-overlay-bg: rgba(20, 26, 45, 0.55);
140
+ --og-surface-overlay-bg-solid: #1a2136;
141
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.18);
142
+ --og-surface-overlay-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
143
+ --og-surface-overlay-backdrop: blur(20px) saturate(160%);
144
+ --og-surface-overlay-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 40%);
145
+ }
@@ -0,0 +1,10 @@
1
+ import clean from './clean.js';
2
+ import glass from './glass.js';
3
+ import liquidGlass from './liquid-glass.js';
4
+ import neumorphism from './neumorphism.js';
5
+ import clay from './clay.js';
6
+ import brutal from './brutal.js';
7
+ import aurora from './aurora.js';
8
+ /** Every built-in theme. The first one is the default. */
9
+ export declare const themes: import("../contract.js").Theme[];
10
+ export { clean, glass, liquidGlass, neumorphism, clay, brutal, aurora };
@@ -0,0 +1,10 @@
1
+ import clean from './clean.js';
2
+ import glass from './glass.js';
3
+ import liquidGlass from './liquid-glass.js';
4
+ import neumorphism from './neumorphism.js';
5
+ import clay from './clay.js';
6
+ import brutal from './brutal.js';
7
+ import aurora from './aurora.js';
8
+ /** Every built-in theme. The first one is the default. */
9
+ export const themes = [clean, glass, liquidGlass, neumorphism, clay, brutal, aurora];
10
+ export { clean, glass, liquidGlass, neumorphism, clay, brutal, aurora };
@@ -0,0 +1,196 @@
1
+ /*! OG UI tokens: Liquid glass. Generated from packages/tokens/src. Do not edit by hand. */
2
+
3
+ /* Liquid glass: Thick, glossy glass with specular edges and springy, fluid motion. */
4
+ :root, [data-og-theme="liquid-glass"] {
5
+ --og-radius-sm: 12px;
6
+ --og-radius-md: 18px;
7
+ --og-radius-lg: 28px;
8
+ --og-radius-full: 9999px;
9
+ --og-radius-control: 9999px;
10
+ --og-border-width: 1px;
11
+ --og-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
12
+ --og-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
13
+ --og-font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
14
+ --og-font-weight-strong: 600;
15
+ --og-tint-strength: 14%;
16
+ --og-press: scale(0.96);
17
+ --og-hover: scale(1.02);
18
+ --og-duration: 280ms;
19
+ --og-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
20
+ --og-color-bg: #dfe6ee;
21
+ --og-color-bg-image: radial-gradient(at 12% 18%, #fde68a 0, transparent 40%), radial-gradient(at 88% 22%, #fca5a5 0, transparent 40%), radial-gradient(at 30% 90%, #a5b4fc 0, transparent 45%), radial-gradient(at 85% 85%, #67e8f9 0, transparent 40%);
22
+ --og-color-bg-size: auto;
23
+ --og-color-text: #0b0f17;
24
+ --og-color-on-tint: #0b0f17;
25
+ --og-color-text-muted: #4a5466;
26
+ --og-color-border: rgba(255, 255, 255, 0.6);
27
+ --og-color-accent: var(--og-accent, #0071e3);
28
+ --og-color-accent-contrast: var(--og-accent-contrast, #ffffff);
29
+ --og-color-accent-border: transparent;
30
+ --og-color-focus-ring: var(--og-accent, #0071e3);
31
+ --og-color-success: #15803d;
32
+ --og-color-warning: #b45309;
33
+ --og-color-danger: #b91c1c;
34
+ --og-palette-1: #2563eb;
35
+ --og-palette-2: #db2777;
36
+ --og-palette-3: #059669;
37
+ --og-palette-4: #d97706;
38
+ --og-palette-5: #7c3aed;
39
+ --og-palette-6: #0891b2;
40
+ --og-effect-glow: 0 0 0 transparent;
41
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.2);
42
+ --og-surface-raised-bg-solid: #f5f7fa;
43
+ --og-surface-raised-border: rgba(255, 255, 255, 0.65);
44
+ --og-surface-raised-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px -6px rgba(0, 0, 0, 0.25);
45
+ --og-surface-raised-backdrop: none;
46
+ --og-surface-raised-highlight: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 50%);
47
+ --og-surface-inset-bg: rgba(255, 255, 255, 0.2);
48
+ --og-surface-inset-bg-solid: #eef2f6;
49
+ --og-surface-inset-border: rgba(255, 255, 255, 0.45);
50
+ --og-surface-inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
51
+ --og-surface-inset-backdrop: none;
52
+ --og-surface-inset-highlight: none;
53
+ --og-surface-overlay-bg: rgba(255, 255, 255, 0.32);
54
+ --og-surface-overlay-bg-solid: #ffffff;
55
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.75);
56
+ --og-surface-overlay-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 60px -20px rgba(0, 0, 0, 0.35);
57
+ --og-surface-overlay-backdrop: blur(24px) saturate(180%);
58
+ --og-surface-overlay-highlight: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%);
59
+ }
60
+
61
+ @media (prefers-color-scheme: dark) {
62
+ :root:not([data-og-mode="light"]), [data-og-theme="liquid-glass"]:not([data-og-mode="light"]) {
63
+ --og-color-bg: #05070d;
64
+ --og-color-bg-image: radial-gradient(at 15% 20%, #7c3aed 0, transparent 40%), radial-gradient(at 85% 30%, #db2777 0, transparent 40%), radial-gradient(at 50% 95%, #0891b2 0, transparent 45%);
65
+ --og-color-bg-size: auto;
66
+ --og-color-text: #f8fafc;
67
+ --og-color-on-tint: #f8fafc;
68
+ --og-color-text-muted: #a5b0c2;
69
+ --og-color-border: rgba(255, 255, 255, 0.18);
70
+ --og-color-accent: var(--og-accent, #0071e3);
71
+ --og-color-accent-contrast: var(--og-accent-contrast, #ffffff);
72
+ --og-color-accent-border: transparent;
73
+ --og-color-focus-ring: var(--og-accent, #64d2ff);
74
+ --og-color-success: #22c55e;
75
+ --og-color-warning: #f59e0b;
76
+ --og-color-danger: #fc8181;
77
+ --og-palette-1: #60a5fa;
78
+ --og-palette-2: #f472b6;
79
+ --og-palette-3: #34d399;
80
+ --og-palette-4: #fbbf24;
81
+ --og-palette-5: #a78bfa;
82
+ --og-palette-6: #22d3ee;
83
+ --og-effect-glow: 0 0 0 transparent;
84
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.07);
85
+ --og-surface-raised-bg-solid: #1c2230;
86
+ --og-surface-raised-border: rgba(255, 255, 255, 0.22);
87
+ --og-surface-raised-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
88
+ --og-surface-raised-backdrop: none;
89
+ --og-surface-raised-highlight: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%);
90
+ --og-surface-inset-bg: rgba(0, 0, 0, 0.25);
91
+ --og-surface-inset-bg-solid: #121722;
92
+ --og-surface-inset-border: rgba(255, 255, 255, 0.12);
93
+ --og-surface-inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
94
+ --og-surface-inset-backdrop: none;
95
+ --og-surface-inset-highlight: none;
96
+ --og-surface-overlay-bg: rgba(30, 36, 52, 0.42);
97
+ --og-surface-overlay-bg-solid: #1a1f2c;
98
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.22);
99
+ --og-surface-overlay-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
100
+ --og-surface-overlay-backdrop: blur(24px) saturate(180%);
101
+ --og-surface-overlay-highlight: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%);
102
+ }
103
+ }
104
+
105
+ :root[data-og-mode="dark"], [data-og-theme="liquid-glass"][data-og-mode="dark"] {
106
+ --og-color-bg: #05070d;
107
+ --og-color-bg-image: radial-gradient(at 15% 20%, #7c3aed 0, transparent 40%), radial-gradient(at 85% 30%, #db2777 0, transparent 40%), radial-gradient(at 50% 95%, #0891b2 0, transparent 45%);
108
+ --og-color-bg-size: auto;
109
+ --og-color-text: #f8fafc;
110
+ --og-color-on-tint: #f8fafc;
111
+ --og-color-text-muted: #a5b0c2;
112
+ --og-color-border: rgba(255, 255, 255, 0.18);
113
+ --og-color-accent: var(--og-accent, #0071e3);
114
+ --og-color-accent-contrast: var(--og-accent-contrast, #ffffff);
115
+ --og-color-accent-border: transparent;
116
+ --og-color-focus-ring: var(--og-accent, #64d2ff);
117
+ --og-color-success: #22c55e;
118
+ --og-color-warning: #f59e0b;
119
+ --og-color-danger: #fc8181;
120
+ --og-palette-1: #60a5fa;
121
+ --og-palette-2: #f472b6;
122
+ --og-palette-3: #34d399;
123
+ --og-palette-4: #fbbf24;
124
+ --og-palette-5: #a78bfa;
125
+ --og-palette-6: #22d3ee;
126
+ --og-effect-glow: 0 0 0 transparent;
127
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.07);
128
+ --og-surface-raised-bg-solid: #1c2230;
129
+ --og-surface-raised-border: rgba(255, 255, 255, 0.22);
130
+ --og-surface-raised-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
131
+ --og-surface-raised-backdrop: none;
132
+ --og-surface-raised-highlight: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%);
133
+ --og-surface-inset-bg: rgba(0, 0, 0, 0.25);
134
+ --og-surface-inset-bg-solid: #121722;
135
+ --og-surface-inset-border: rgba(255, 255, 255, 0.12);
136
+ --og-surface-inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
137
+ --og-surface-inset-backdrop: none;
138
+ --og-surface-inset-highlight: none;
139
+ --og-surface-overlay-bg: rgba(30, 36, 52, 0.42);
140
+ --og-surface-overlay-bg-solid: #1a1f2c;
141
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.22);
142
+ --og-surface-overlay-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
143
+ --og-surface-overlay-backdrop: blur(24px) saturate(180%);
144
+ --og-surface-overlay-highlight: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%);
145
+ }
146
+
147
+ /* Density: data-og-density="compact" | "comfortable" (default) on any element. */
148
+ :root, [data-og-density="comfortable"] {
149
+ --og-control-h-sm: 2rem;
150
+ --og-control-h-md: 2.5rem;
151
+ --og-control-h-lg: 3rem;
152
+ --og-control-px: 1rem;
153
+ --og-card-pad: 1.25rem;
154
+ --og-gap: 1rem;
155
+ }
156
+
157
+ [data-og-density="compact"] {
158
+ --og-control-h-sm: 1.75rem;
159
+ --og-control-h-md: 2.125rem;
160
+ --og-control-h-lg: 2.5rem;
161
+ --og-control-px: 0.75rem;
162
+ --og-card-pad: 0.875rem;
163
+ --og-gap: 0.625rem;
164
+ }
165
+
166
+ /* Derived values: components read these, never the raw tokens above. */
167
+ :root, [data-og-theme] {
168
+ --og-surface-raised-fill: var(--og-surface-raised-bg);
169
+ --og-surface-raised-filter: var(--og-surface-raised-backdrop);
170
+ --og-surface-inset-fill: var(--og-surface-inset-bg);
171
+ --og-surface-inset-filter: var(--og-surface-inset-backdrop);
172
+ --og-surface-overlay-fill: var(--og-surface-overlay-bg);
173
+ --og-surface-overlay-filter: var(--og-surface-overlay-backdrop);
174
+ --og-motion-hover: var(--og-hover);
175
+ --og-motion-press: var(--og-press);
176
+ --og-motion-duration: var(--og-duration);
177
+ }
178
+
179
+ @media (prefers-reduced-transparency: reduce) {
180
+ :root, [data-og-theme] {
181
+ --og-surface-raised-fill: var(--og-surface-raised-bg-solid);
182
+ --og-surface-raised-filter: none;
183
+ --og-surface-inset-fill: var(--og-surface-inset-bg-solid);
184
+ --og-surface-inset-filter: none;
185
+ --og-surface-overlay-fill: var(--og-surface-overlay-bg-solid);
186
+ --og-surface-overlay-filter: none;
187
+ }
188
+ }
189
+
190
+ @media (prefers-reduced-motion: reduce) {
191
+ :root, [data-og-theme] {
192
+ --og-motion-hover: none;
193
+ --og-motion-press: none;
194
+ --og-motion-duration: 0.01ms;
195
+ }
196
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Liquid glass: thicker, wetter glass with a specular edge and springy motion.
3
+ * The specular highlight lives in the effect slot; only overlays pay for real blur.
4
+ */
5
+ declare const _default: import("../contract.js").Theme;
6
+ export default _default;
@@ -0,0 +1,114 @@
1
+ import { defineTheme } from '../contract.js';
2
+ import { accent, accentContrast, fonts, noGlow, palettes, status } from '../shared.js';
3
+ /**
4
+ * Liquid glass: thicker, wetter glass with a specular edge and springy motion.
5
+ * The specular highlight lives in the effect slot; only overlays pay for real blur.
6
+ */
7
+ export default defineTheme({
8
+ name: 'liquid-glass',
9
+ label: 'Liquid glass',
10
+ description: 'Thick, glossy glass with specular edges and springy, fluid motion.',
11
+ feel: {
12
+ radius: { sm: '12px', md: '18px', lg: '28px', full: '9999px', control: '9999px' },
13
+ borderWidth: '1px',
14
+ fontFamily: fonts.apple,
15
+ fontFamilyDisplay: fonts.apple,
16
+ fontFamilyMono: fonts.mono,
17
+ tintStrength: '14%',
18
+ fontWeightStrong: '600',
19
+ pressTransform: 'scale(0.96)',
20
+ hoverTransform: 'scale(1.02)',
21
+ duration: '280ms',
22
+ easing: 'cubic-bezier(0.34, 1.56, 0.64, 1)',
23
+ },
24
+ modes: {
25
+ light: {
26
+ color: {
27
+ bg: '#dfe6ee',
28
+ bgImage: 'radial-gradient(at 12% 18%, #fde68a 0, transparent 40%), radial-gradient(at 88% 22%, #fca5a5 0, transparent 40%), radial-gradient(at 30% 90%, #a5b4fc 0, transparent 45%), radial-gradient(at 85% 85%, #67e8f9 0, transparent 40%)',
29
+ bgSize: 'auto',
30
+ text: '#0b0f17',
31
+ onTint: '#0b0f17',
32
+ textMuted: '#4a5466',
33
+ border: 'rgba(255, 255, 255, 0.6)',
34
+ accent: accent('#0071e3'),
35
+ accentContrast: accentContrast('#ffffff'),
36
+ accentBorder: 'transparent',
37
+ focusRing: accent('#0071e3'),
38
+ ...status.light,
39
+ palette: [...palettes.light],
40
+ },
41
+ effect: { glow: noGlow },
42
+ surface: {
43
+ raised: {
44
+ bg: 'rgba(255, 255, 255, 0.2)',
45
+ bgSolid: '#f5f7fa',
46
+ border: 'rgba(255, 255, 255, 0.65)',
47
+ shadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px -6px rgba(0, 0, 0, 0.25)',
48
+ backdrop: 'none',
49
+ highlight: 'radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 50%)',
50
+ },
51
+ inset: {
52
+ bg: 'rgba(255, 255, 255, 0.2)',
53
+ bgSolid: '#eef2f6',
54
+ border: 'rgba(255, 255, 255, 0.45)',
55
+ shadow: 'inset 0 2px 6px rgba(0, 0, 0, 0.12)',
56
+ backdrop: 'none',
57
+ highlight: 'none',
58
+ },
59
+ overlay: {
60
+ bg: 'rgba(255, 255, 255, 0.32)',
61
+ bgSolid: '#ffffff',
62
+ border: 'rgba(255, 255, 255, 0.75)',
63
+ shadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 60px -20px rgba(0, 0, 0, 0.35)',
64
+ backdrop: 'blur(24px) saturate(180%)',
65
+ highlight: 'radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%)',
66
+ },
67
+ },
68
+ },
69
+ dark: {
70
+ color: {
71
+ bg: '#05070d',
72
+ bgImage: 'radial-gradient(at 15% 20%, #7c3aed 0, transparent 40%), radial-gradient(at 85% 30%, #db2777 0, transparent 40%), radial-gradient(at 50% 95%, #0891b2 0, transparent 45%)',
73
+ bgSize: 'auto',
74
+ text: '#f8fafc',
75
+ onTint: '#f8fafc',
76
+ textMuted: '#a5b0c2',
77
+ border: 'rgba(255, 255, 255, 0.18)',
78
+ accent: accent('#0071e3'),
79
+ accentContrast: accentContrast('#ffffff'),
80
+ accentBorder: 'transparent',
81
+ focusRing: accent('#64d2ff'),
82
+ ...status.dark,
83
+ palette: [...palettes.dark],
84
+ },
85
+ effect: { glow: noGlow },
86
+ surface: {
87
+ raised: {
88
+ bg: 'rgba(255, 255, 255, 0.07)',
89
+ bgSolid: '#1c2230',
90
+ border: 'rgba(255, 255, 255, 0.22)',
91
+ shadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.6)',
92
+ backdrop: 'none',
93
+ highlight: 'radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%)',
94
+ },
95
+ inset: {
96
+ bg: 'rgba(0, 0, 0, 0.25)',
97
+ bgSolid: '#121722',
98
+ border: 'rgba(255, 255, 255, 0.12)',
99
+ shadow: 'inset 0 2px 6px rgba(0, 0, 0, 0.4)',
100
+ backdrop: 'none',
101
+ highlight: 'none',
102
+ },
103
+ overlay: {
104
+ bg: 'rgba(30, 36, 52, 0.42)',
105
+ bgSolid: '#1a1f2c',
106
+ border: 'rgba(255, 255, 255, 0.22)',
107
+ shadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.7)',
108
+ backdrop: 'blur(24px) saturate(180%)',
109
+ highlight: 'radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%)',
110
+ },
111
+ },
112
+ },
113
+ },
114
+ });
@@ -0,0 +1,145 @@
1
+ /*! OG UI tokens: Liquid glass (scoped). Generated from packages/tokens/src. Do not edit by hand. */
2
+
3
+ /* Liquid glass: Thick, glossy glass with specular edges and springy, fluid motion. */
4
+ [data-og-theme="liquid-glass"] {
5
+ --og-radius-sm: 12px;
6
+ --og-radius-md: 18px;
7
+ --og-radius-lg: 28px;
8
+ --og-radius-full: 9999px;
9
+ --og-radius-control: 9999px;
10
+ --og-border-width: 1px;
11
+ --og-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
12
+ --og-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
13
+ --og-font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
14
+ --og-font-weight-strong: 600;
15
+ --og-tint-strength: 14%;
16
+ --og-press: scale(0.96);
17
+ --og-hover: scale(1.02);
18
+ --og-duration: 280ms;
19
+ --og-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
20
+ --og-color-bg: #dfe6ee;
21
+ --og-color-bg-image: radial-gradient(at 12% 18%, #fde68a 0, transparent 40%), radial-gradient(at 88% 22%, #fca5a5 0, transparent 40%), radial-gradient(at 30% 90%, #a5b4fc 0, transparent 45%), radial-gradient(at 85% 85%, #67e8f9 0, transparent 40%);
22
+ --og-color-bg-size: auto;
23
+ --og-color-text: #0b0f17;
24
+ --og-color-on-tint: #0b0f17;
25
+ --og-color-text-muted: #4a5466;
26
+ --og-color-border: rgba(255, 255, 255, 0.6);
27
+ --og-color-accent: var(--og-accent, #0071e3);
28
+ --og-color-accent-contrast: var(--og-accent-contrast, #ffffff);
29
+ --og-color-accent-border: transparent;
30
+ --og-color-focus-ring: var(--og-accent, #0071e3);
31
+ --og-color-success: #15803d;
32
+ --og-color-warning: #b45309;
33
+ --og-color-danger: #b91c1c;
34
+ --og-palette-1: #2563eb;
35
+ --og-palette-2: #db2777;
36
+ --og-palette-3: #059669;
37
+ --og-palette-4: #d97706;
38
+ --og-palette-5: #7c3aed;
39
+ --og-palette-6: #0891b2;
40
+ --og-effect-glow: 0 0 0 transparent;
41
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.2);
42
+ --og-surface-raised-bg-solid: #f5f7fa;
43
+ --og-surface-raised-border: rgba(255, 255, 255, 0.65);
44
+ --og-surface-raised-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px -6px rgba(0, 0, 0, 0.25);
45
+ --og-surface-raised-backdrop: none;
46
+ --og-surface-raised-highlight: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 50%);
47
+ --og-surface-inset-bg: rgba(255, 255, 255, 0.2);
48
+ --og-surface-inset-bg-solid: #eef2f6;
49
+ --og-surface-inset-border: rgba(255, 255, 255, 0.45);
50
+ --og-surface-inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
51
+ --og-surface-inset-backdrop: none;
52
+ --og-surface-inset-highlight: none;
53
+ --og-surface-overlay-bg: rgba(255, 255, 255, 0.32);
54
+ --og-surface-overlay-bg-solid: #ffffff;
55
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.75);
56
+ --og-surface-overlay-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 60px -20px rgba(0, 0, 0, 0.35);
57
+ --og-surface-overlay-backdrop: blur(24px) saturate(180%);
58
+ --og-surface-overlay-highlight: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%);
59
+ }
60
+
61
+ @media (prefers-color-scheme: dark) {
62
+ [data-og-theme="liquid-glass"]:not([data-og-mode="light"]) {
63
+ --og-color-bg: #05070d;
64
+ --og-color-bg-image: radial-gradient(at 15% 20%, #7c3aed 0, transparent 40%), radial-gradient(at 85% 30%, #db2777 0, transparent 40%), radial-gradient(at 50% 95%, #0891b2 0, transparent 45%);
65
+ --og-color-bg-size: auto;
66
+ --og-color-text: #f8fafc;
67
+ --og-color-on-tint: #f8fafc;
68
+ --og-color-text-muted: #a5b0c2;
69
+ --og-color-border: rgba(255, 255, 255, 0.18);
70
+ --og-color-accent: var(--og-accent, #0071e3);
71
+ --og-color-accent-contrast: var(--og-accent-contrast, #ffffff);
72
+ --og-color-accent-border: transparent;
73
+ --og-color-focus-ring: var(--og-accent, #64d2ff);
74
+ --og-color-success: #22c55e;
75
+ --og-color-warning: #f59e0b;
76
+ --og-color-danger: #fc8181;
77
+ --og-palette-1: #60a5fa;
78
+ --og-palette-2: #f472b6;
79
+ --og-palette-3: #34d399;
80
+ --og-palette-4: #fbbf24;
81
+ --og-palette-5: #a78bfa;
82
+ --og-palette-6: #22d3ee;
83
+ --og-effect-glow: 0 0 0 transparent;
84
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.07);
85
+ --og-surface-raised-bg-solid: #1c2230;
86
+ --og-surface-raised-border: rgba(255, 255, 255, 0.22);
87
+ --og-surface-raised-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
88
+ --og-surface-raised-backdrop: none;
89
+ --og-surface-raised-highlight: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%);
90
+ --og-surface-inset-bg: rgba(0, 0, 0, 0.25);
91
+ --og-surface-inset-bg-solid: #121722;
92
+ --og-surface-inset-border: rgba(255, 255, 255, 0.12);
93
+ --og-surface-inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
94
+ --og-surface-inset-backdrop: none;
95
+ --og-surface-inset-highlight: none;
96
+ --og-surface-overlay-bg: rgba(30, 36, 52, 0.42);
97
+ --og-surface-overlay-bg-solid: #1a1f2c;
98
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.22);
99
+ --og-surface-overlay-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
100
+ --og-surface-overlay-backdrop: blur(24px) saturate(180%);
101
+ --og-surface-overlay-highlight: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%);
102
+ }
103
+ }
104
+
105
+ [data-og-theme="liquid-glass"][data-og-mode="dark"] {
106
+ --og-color-bg: #05070d;
107
+ --og-color-bg-image: radial-gradient(at 15% 20%, #7c3aed 0, transparent 40%), radial-gradient(at 85% 30%, #db2777 0, transparent 40%), radial-gradient(at 50% 95%, #0891b2 0, transparent 45%);
108
+ --og-color-bg-size: auto;
109
+ --og-color-text: #f8fafc;
110
+ --og-color-on-tint: #f8fafc;
111
+ --og-color-text-muted: #a5b0c2;
112
+ --og-color-border: rgba(255, 255, 255, 0.18);
113
+ --og-color-accent: var(--og-accent, #0071e3);
114
+ --og-color-accent-contrast: var(--og-accent-contrast, #ffffff);
115
+ --og-color-accent-border: transparent;
116
+ --og-color-focus-ring: var(--og-accent, #64d2ff);
117
+ --og-color-success: #22c55e;
118
+ --og-color-warning: #f59e0b;
119
+ --og-color-danger: #fc8181;
120
+ --og-palette-1: #60a5fa;
121
+ --og-palette-2: #f472b6;
122
+ --og-palette-3: #34d399;
123
+ --og-palette-4: #fbbf24;
124
+ --og-palette-5: #a78bfa;
125
+ --og-palette-6: #22d3ee;
126
+ --og-effect-glow: 0 0 0 transparent;
127
+ --og-surface-raised-bg: rgba(255, 255, 255, 0.07);
128
+ --og-surface-raised-bg-solid: #1c2230;
129
+ --og-surface-raised-border: rgba(255, 255, 255, 0.22);
130
+ --og-surface-raised-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
131
+ --og-surface-raised-backdrop: none;
132
+ --og-surface-raised-highlight: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%);
133
+ --og-surface-inset-bg: rgba(0, 0, 0, 0.25);
134
+ --og-surface-inset-bg-solid: #121722;
135
+ --og-surface-inset-border: rgba(255, 255, 255, 0.12);
136
+ --og-surface-inset-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
137
+ --og-surface-inset-backdrop: none;
138
+ --og-surface-inset-highlight: none;
139
+ --og-surface-overlay-bg: rgba(30, 36, 52, 0.42);
140
+ --og-surface-overlay-bg-solid: #1a1f2c;
141
+ --og-surface-overlay-border: rgba(255, 255, 255, 0.22);
142
+ --og-surface-overlay-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
143
+ --og-surface-overlay-backdrop: blur(24px) saturate(180%);
144
+ --og-surface-overlay-highlight: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%);
145
+ }