@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.
- package/LICENSE +21 -0
- package/dist/contract.d.ts +141 -0
- package/dist/contract.js +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/shared.d.ts +33 -0
- package/dist/shared.js +25 -0
- package/dist/themes/aurora.css +196 -0
- package/dist/themes/aurora.d.ts +3 -0
- package/dist/themes/aurora.js +113 -0
- package/dist/themes/aurora.scoped.css +145 -0
- package/dist/themes/brutal.css +196 -0
- package/dist/themes/brutal.d.ts +6 -0
- package/dist/themes/brutal.js +114 -0
- package/dist/themes/brutal.scoped.css +145 -0
- package/dist/themes/clay.css +196 -0
- package/dist/themes/clay.d.ts +3 -0
- package/dist/themes/clay.js +111 -0
- package/dist/themes/clay.scoped.css +145 -0
- package/dist/themes/clean.css +196 -0
- package/dist/themes/clean.d.ts +3 -0
- package/dist/themes/clean.js +111 -0
- package/dist/themes/clean.scoped.css +145 -0
- package/dist/themes/glass.css +196 -0
- package/dist/themes/glass.d.ts +7 -0
- package/dist/themes/glass.js +115 -0
- package/dist/themes/glass.scoped.css +145 -0
- package/dist/themes/index.d.ts +10 -0
- package/dist/themes/index.js +10 -0
- package/dist/themes/liquid-glass.css +196 -0
- package/dist/themes/liquid-glass.d.ts +6 -0
- package/dist/themes/liquid-glass.js +114 -0
- package/dist/themes/liquid-glass.scoped.css +145 -0
- package/dist/themes/neumorphism.css +196 -0
- package/dist/themes/neumorphism.d.ts +2 -0
- package/dist/themes/neumorphism.js +117 -0
- package/dist/themes/neumorphism.scoped.css +145 -0
- package/dist/themes.css +1060 -0
- package/dist/themes.json +958 -0
- package/package.json +36 -3
- package/README.md +0 -3
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { defineTheme } from '../contract.js';
|
|
2
|
+
import { accent, accentContrast, fonts, noGlow, palettes, status } from '../shared.js';
|
|
3
|
+
/** The default: crisp, quiet SaaS. Hairline borders, tiny shadows. */
|
|
4
|
+
export default defineTheme({
|
|
5
|
+
name: 'clean',
|
|
6
|
+
label: 'Clean SaaS',
|
|
7
|
+
description: 'Crisp and quiet: hairline borders, soft shadows, lots of white space.',
|
|
8
|
+
feel: {
|
|
9
|
+
radius: { sm: '6px', md: '8px', lg: '12px', full: '9999px', control: '8px' },
|
|
10
|
+
borderWidth: '1px',
|
|
11
|
+
fontFamily: fonts.sans,
|
|
12
|
+
fontFamilyDisplay: fonts.sans,
|
|
13
|
+
fontFamilyMono: fonts.mono,
|
|
14
|
+
tintStrength: '14%',
|
|
15
|
+
fontWeightStrong: '500',
|
|
16
|
+
pressTransform: 'translateY(1px)',
|
|
17
|
+
hoverTransform: 'none',
|
|
18
|
+
duration: '150ms',
|
|
19
|
+
easing: 'cubic-bezier(0.2, 0, 0, 1)',
|
|
20
|
+
},
|
|
21
|
+
modes: {
|
|
22
|
+
light: {
|
|
23
|
+
color: {
|
|
24
|
+
bg: '#fafafa',
|
|
25
|
+
bgImage: 'none',
|
|
26
|
+
bgSize: 'auto',
|
|
27
|
+
text: '#0a0a0b',
|
|
28
|
+
onTint: '#0a0a0b',
|
|
29
|
+
textMuted: '#62626d',
|
|
30
|
+
border: '#e4e4e7',
|
|
31
|
+
accent: accent('#4f46e5'),
|
|
32
|
+
accentContrast: accentContrast('#ffffff'),
|
|
33
|
+
accentBorder: 'transparent',
|
|
34
|
+
focusRing: accent('#4f46e5'),
|
|
35
|
+
...status.light,
|
|
36
|
+
palette: [...palettes.light],
|
|
37
|
+
},
|
|
38
|
+
effect: { glow: noGlow },
|
|
39
|
+
surface: {
|
|
40
|
+
raised: {
|
|
41
|
+
bg: '#ffffff',
|
|
42
|
+
bgSolid: '#ffffff',
|
|
43
|
+
border: '#e4e4e7',
|
|
44
|
+
shadow: '0 1px 2px rgba(10, 10, 11, 0.05)',
|
|
45
|
+
backdrop: 'none',
|
|
46
|
+
highlight: 'none',
|
|
47
|
+
},
|
|
48
|
+
inset: {
|
|
49
|
+
bg: '#ffffff',
|
|
50
|
+
bgSolid: '#ffffff',
|
|
51
|
+
border: '#d4d4d8',
|
|
52
|
+
shadow: 'inset 0 1px 1px rgba(10, 10, 11, 0.04)',
|
|
53
|
+
backdrop: 'none',
|
|
54
|
+
highlight: 'none',
|
|
55
|
+
},
|
|
56
|
+
overlay: {
|
|
57
|
+
bg: '#ffffff',
|
|
58
|
+
bgSolid: '#ffffff',
|
|
59
|
+
border: '#e4e4e7',
|
|
60
|
+
shadow: '0 12px 32px -12px rgba(10, 10, 11, 0.22), 0 2px 6px rgba(10, 10, 11, 0.06)',
|
|
61
|
+
backdrop: 'none',
|
|
62
|
+
highlight: 'none',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
dark: {
|
|
67
|
+
color: {
|
|
68
|
+
bg: '#09090b',
|
|
69
|
+
bgImage: 'none',
|
|
70
|
+
bgSize: 'auto',
|
|
71
|
+
text: '#fafafa',
|
|
72
|
+
onTint: '#fafafa',
|
|
73
|
+
textMuted: '#a1a1aa',
|
|
74
|
+
border: '#27272a',
|
|
75
|
+
accent: accent('#818cf8'),
|
|
76
|
+
accentContrast: accentContrast('#0b0b1a'),
|
|
77
|
+
accentBorder: 'transparent',
|
|
78
|
+
focusRing: accent('#818cf8'),
|
|
79
|
+
...status.dark,
|
|
80
|
+
palette: [...palettes.dark],
|
|
81
|
+
},
|
|
82
|
+
effect: { glow: noGlow },
|
|
83
|
+
surface: {
|
|
84
|
+
raised: {
|
|
85
|
+
bg: '#18181b',
|
|
86
|
+
bgSolid: '#18181b',
|
|
87
|
+
border: '#27272a',
|
|
88
|
+
shadow: '0 1px 2px rgba(0, 0, 0, 0.5)',
|
|
89
|
+
backdrop: 'none',
|
|
90
|
+
highlight: 'none',
|
|
91
|
+
},
|
|
92
|
+
inset: {
|
|
93
|
+
bg: '#0f0f11',
|
|
94
|
+
bgSolid: '#0f0f11',
|
|
95
|
+
border: '#3f3f46',
|
|
96
|
+
shadow: 'inset 0 1px 2px rgba(0, 0, 0, 0.4)',
|
|
97
|
+
backdrop: 'none',
|
|
98
|
+
highlight: 'none',
|
|
99
|
+
},
|
|
100
|
+
overlay: {
|
|
101
|
+
bg: '#18181b',
|
|
102
|
+
bgSolid: '#18181b',
|
|
103
|
+
border: '#3f3f46',
|
|
104
|
+
shadow: '0 24px 48px -16px rgba(0, 0, 0, 0.75)',
|
|
105
|
+
backdrop: 'none',
|
|
106
|
+
highlight: 'none',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
});
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*! OG UI tokens: Clean SaaS (scoped). Generated from packages/tokens/src. Do not edit by hand. */
|
|
2
|
+
|
|
3
|
+
/* Clean SaaS: Crisp and quiet: hairline borders, soft shadows, lots of white space. */
|
|
4
|
+
[data-og-theme="clean"] {
|
|
5
|
+
--og-radius-sm: 6px;
|
|
6
|
+
--og-radius-md: 8px;
|
|
7
|
+
--og-radius-lg: 12px;
|
|
8
|
+
--og-radius-full: 9999px;
|
|
9
|
+
--og-radius-control: 8px;
|
|
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: translateY(1px);
|
|
17
|
+
--og-hover: none;
|
|
18
|
+
--og-duration: 150ms;
|
|
19
|
+
--og-easing: cubic-bezier(0.2, 0, 0, 1);
|
|
20
|
+
--og-color-bg: #fafafa;
|
|
21
|
+
--og-color-bg-image: none;
|
|
22
|
+
--og-color-bg-size: auto;
|
|
23
|
+
--og-color-text: #0a0a0b;
|
|
24
|
+
--og-color-on-tint: #0a0a0b;
|
|
25
|
+
--og-color-text-muted: #62626d;
|
|
26
|
+
--og-color-border: #e4e4e7;
|
|
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: #ffffff;
|
|
42
|
+
--og-surface-raised-bg-solid: #ffffff;
|
|
43
|
+
--og-surface-raised-border: #e4e4e7;
|
|
44
|
+
--og-surface-raised-shadow: 0 1px 2px rgba(10, 10, 11, 0.05);
|
|
45
|
+
--og-surface-raised-backdrop: none;
|
|
46
|
+
--og-surface-raised-highlight: none;
|
|
47
|
+
--og-surface-inset-bg: #ffffff;
|
|
48
|
+
--og-surface-inset-bg-solid: #ffffff;
|
|
49
|
+
--og-surface-inset-border: #d4d4d8;
|
|
50
|
+
--og-surface-inset-shadow: inset 0 1px 1px rgba(10, 10, 11, 0.04);
|
|
51
|
+
--og-surface-inset-backdrop: none;
|
|
52
|
+
--og-surface-inset-highlight: none;
|
|
53
|
+
--og-surface-overlay-bg: #ffffff;
|
|
54
|
+
--og-surface-overlay-bg-solid: #ffffff;
|
|
55
|
+
--og-surface-overlay-border: #e4e4e7;
|
|
56
|
+
--og-surface-overlay-shadow: 0 12px 32px -12px rgba(10, 10, 11, 0.22), 0 2px 6px rgba(10, 10, 11, 0.06);
|
|
57
|
+
--og-surface-overlay-backdrop: none;
|
|
58
|
+
--og-surface-overlay-highlight: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (prefers-color-scheme: dark) {
|
|
62
|
+
[data-og-theme="clean"]:not([data-og-mode="light"]) {
|
|
63
|
+
--og-color-bg: #09090b;
|
|
64
|
+
--og-color-bg-image: none;
|
|
65
|
+
--og-color-bg-size: auto;
|
|
66
|
+
--og-color-text: #fafafa;
|
|
67
|
+
--og-color-on-tint: #fafafa;
|
|
68
|
+
--og-color-text-muted: #a1a1aa;
|
|
69
|
+
--og-color-border: #27272a;
|
|
70
|
+
--og-color-accent: var(--og-accent, #818cf8);
|
|
71
|
+
--og-color-accent-contrast: var(--og-accent-contrast, #0b0b1a);
|
|
72
|
+
--og-color-accent-border: transparent;
|
|
73
|
+
--og-color-focus-ring: var(--og-accent, #818cf8);
|
|
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: #18181b;
|
|
85
|
+
--og-surface-raised-bg-solid: #18181b;
|
|
86
|
+
--og-surface-raised-border: #27272a;
|
|
87
|
+
--og-surface-raised-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
88
|
+
--og-surface-raised-backdrop: none;
|
|
89
|
+
--og-surface-raised-highlight: none;
|
|
90
|
+
--og-surface-inset-bg: #0f0f11;
|
|
91
|
+
--og-surface-inset-bg-solid: #0f0f11;
|
|
92
|
+
--og-surface-inset-border: #3f3f46;
|
|
93
|
+
--og-surface-inset-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
94
|
+
--og-surface-inset-backdrop: none;
|
|
95
|
+
--og-surface-inset-highlight: none;
|
|
96
|
+
--og-surface-overlay-bg: #18181b;
|
|
97
|
+
--og-surface-overlay-bg-solid: #18181b;
|
|
98
|
+
--og-surface-overlay-border: #3f3f46;
|
|
99
|
+
--og-surface-overlay-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
|
|
100
|
+
--og-surface-overlay-backdrop: none;
|
|
101
|
+
--og-surface-overlay-highlight: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-og-theme="clean"][data-og-mode="dark"] {
|
|
106
|
+
--og-color-bg: #09090b;
|
|
107
|
+
--og-color-bg-image: none;
|
|
108
|
+
--og-color-bg-size: auto;
|
|
109
|
+
--og-color-text: #fafafa;
|
|
110
|
+
--og-color-on-tint: #fafafa;
|
|
111
|
+
--og-color-text-muted: #a1a1aa;
|
|
112
|
+
--og-color-border: #27272a;
|
|
113
|
+
--og-color-accent: var(--og-accent, #818cf8);
|
|
114
|
+
--og-color-accent-contrast: var(--og-accent-contrast, #0b0b1a);
|
|
115
|
+
--og-color-accent-border: transparent;
|
|
116
|
+
--og-color-focus-ring: var(--og-accent, #818cf8);
|
|
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: #18181b;
|
|
128
|
+
--og-surface-raised-bg-solid: #18181b;
|
|
129
|
+
--og-surface-raised-border: #27272a;
|
|
130
|
+
--og-surface-raised-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
131
|
+
--og-surface-raised-backdrop: none;
|
|
132
|
+
--og-surface-raised-highlight: none;
|
|
133
|
+
--og-surface-inset-bg: #0f0f11;
|
|
134
|
+
--og-surface-inset-bg-solid: #0f0f11;
|
|
135
|
+
--og-surface-inset-border: #3f3f46;
|
|
136
|
+
--og-surface-inset-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
137
|
+
--og-surface-inset-backdrop: none;
|
|
138
|
+
--og-surface-inset-highlight: none;
|
|
139
|
+
--og-surface-overlay-bg: #18181b;
|
|
140
|
+
--og-surface-overlay-bg-solid: #18181b;
|
|
141
|
+
--og-surface-overlay-border: #3f3f46;
|
|
142
|
+
--og-surface-overlay-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.75);
|
|
143
|
+
--og-surface-overlay-backdrop: none;
|
|
144
|
+
--og-surface-overlay-highlight: none;
|
|
145
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/*! OG UI tokens: Glassmorphism 2.0. 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
|
+
:root, [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
|
+
:root:not([data-og-mode="light"]), [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
|
+
:root[data-og-mode="dark"], [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
|
+
}
|
|
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,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Glassmorphism 2.0. Performance rule: only overlays blur. Raised and inset surfaces
|
|
3
|
+
* fake frosted glass with translucency plus a highlight, so a page with hundreds of
|
|
4
|
+
* cards and buttons stays smooth.
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: import("../contract.js").Theme;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { defineTheme } from '../contract.js';
|
|
2
|
+
import { accent, accentContrast, fonts, noGlow, palettes, status } from '../shared.js';
|
|
3
|
+
/**
|
|
4
|
+
* Glassmorphism 2.0. Performance rule: only overlays blur. Raised and inset surfaces
|
|
5
|
+
* fake frosted glass with translucency plus a highlight, so a page with hundreds of
|
|
6
|
+
* cards and buttons stays smooth.
|
|
7
|
+
*/
|
|
8
|
+
export default defineTheme({
|
|
9
|
+
name: 'glass',
|
|
10
|
+
label: 'Glassmorphism 2.0',
|
|
11
|
+
description: 'Frosted translucent panels over colour, with light edges and layered depth.',
|
|
12
|
+
feel: {
|
|
13
|
+
radius: { sm: '10px', md: '14px', lg: '24px', full: '9999px', control: '14px' },
|
|
14
|
+
borderWidth: '1px',
|
|
15
|
+
fontFamily: fonts.sans,
|
|
16
|
+
fontFamilyDisplay: fonts.sans,
|
|
17
|
+
fontFamilyMono: fonts.mono,
|
|
18
|
+
tintStrength: '14%',
|
|
19
|
+
fontWeightStrong: '500',
|
|
20
|
+
pressTransform: 'scale(0.98)',
|
|
21
|
+
hoverTransform: 'none',
|
|
22
|
+
duration: '200ms',
|
|
23
|
+
easing: 'cubic-bezier(0.2, 0.8, 0.2, 1)',
|
|
24
|
+
},
|
|
25
|
+
modes: {
|
|
26
|
+
light: {
|
|
27
|
+
color: {
|
|
28
|
+
bg: '#f3eee9',
|
|
29
|
+
bgImage: '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%)',
|
|
30
|
+
bgSize: 'auto',
|
|
31
|
+
text: '#0f172a',
|
|
32
|
+
onTint: '#0f172a',
|
|
33
|
+
textMuted: '#475569',
|
|
34
|
+
border: 'rgba(255, 255, 255, 0.55)',
|
|
35
|
+
accent: accent('#4f46e5'),
|
|
36
|
+
accentContrast: accentContrast('#ffffff'),
|
|
37
|
+
accentBorder: 'transparent',
|
|
38
|
+
focusRing: accent('#4f46e5'),
|
|
39
|
+
...status.light,
|
|
40
|
+
palette: [...palettes.light],
|
|
41
|
+
},
|
|
42
|
+
effect: { glow: noGlow },
|
|
43
|
+
surface: {
|
|
44
|
+
raised: {
|
|
45
|
+
bg: 'rgba(255, 255, 255, 0.45)',
|
|
46
|
+
bgSolid: '#f8fafc',
|
|
47
|
+
border: 'rgba(255, 255, 255, 0.75)',
|
|
48
|
+
shadow: '0 8px 24px -8px rgba(15, 23, 42, 0.18)',
|
|
49
|
+
backdrop: 'none',
|
|
50
|
+
highlight: 'linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%)',
|
|
51
|
+
},
|
|
52
|
+
inset: {
|
|
53
|
+
bg: 'rgba(255, 255, 255, 0.35)',
|
|
54
|
+
bgSolid: '#f1f5f9',
|
|
55
|
+
border: 'rgba(255, 255, 255, 0.6)',
|
|
56
|
+
shadow: 'inset 0 1px 2px rgba(15, 23, 42, 0.1)',
|
|
57
|
+
backdrop: 'none',
|
|
58
|
+
highlight: 'none',
|
|
59
|
+
},
|
|
60
|
+
overlay: {
|
|
61
|
+
bg: 'rgba(255, 255, 255, 0.55)',
|
|
62
|
+
bgSolid: '#ffffff',
|
|
63
|
+
border: 'rgba(255, 255, 255, 0.85)',
|
|
64
|
+
shadow: '0 24px 48px -16px rgba(15, 23, 42, 0.3)',
|
|
65
|
+
backdrop: 'blur(20px) saturate(160%)',
|
|
66
|
+
highlight: 'linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 40%)',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
dark: {
|
|
71
|
+
color: {
|
|
72
|
+
bg: '#0b1020',
|
|
73
|
+
bgImage: '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%)',
|
|
74
|
+
bgSize: 'auto',
|
|
75
|
+
text: '#e2e8f0',
|
|
76
|
+
onTint: '#e2e8f0',
|
|
77
|
+
textMuted: '#94a3b8',
|
|
78
|
+
border: 'rgba(255, 255, 255, 0.14)',
|
|
79
|
+
accent: accent('#818cf8'),
|
|
80
|
+
accentContrast: accentContrast('#0b1020'),
|
|
81
|
+
accentBorder: 'transparent',
|
|
82
|
+
focusRing: accent('#a5b4fc'),
|
|
83
|
+
...status.dark,
|
|
84
|
+
palette: [...palettes.dark],
|
|
85
|
+
},
|
|
86
|
+
effect: { glow: noGlow },
|
|
87
|
+
surface: {
|
|
88
|
+
raised: {
|
|
89
|
+
bg: 'rgba(255, 255, 255, 0.08)',
|
|
90
|
+
bgSolid: '#1e2538',
|
|
91
|
+
border: 'rgba(255, 255, 255, 0.16)',
|
|
92
|
+
shadow: '0 8px 24px -8px rgba(0, 0, 0, 0.5)',
|
|
93
|
+
backdrop: 'none',
|
|
94
|
+
highlight: 'linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%)',
|
|
95
|
+
},
|
|
96
|
+
inset: {
|
|
97
|
+
bg: 'rgba(0, 0, 0, 0.22)',
|
|
98
|
+
bgSolid: '#141a2b',
|
|
99
|
+
border: 'rgba(255, 255, 255, 0.12)',
|
|
100
|
+
shadow: 'inset 0 1px 2px rgba(0, 0, 0, 0.35)',
|
|
101
|
+
backdrop: 'none',
|
|
102
|
+
highlight: 'none',
|
|
103
|
+
},
|
|
104
|
+
overlay: {
|
|
105
|
+
bg: 'rgba(20, 26, 45, 0.55)',
|
|
106
|
+
bgSolid: '#1a2136',
|
|
107
|
+
border: 'rgba(255, 255, 255, 0.18)',
|
|
108
|
+
shadow: '0 24px 48px -16px rgba(0, 0, 0, 0.6)',
|
|
109
|
+
backdrop: 'blur(20px) saturate(160%)',
|
|
110
|
+
highlight: 'linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 40%)',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
});
|