@nuxt-customer-portal/saas-configuration 0.3.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/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/README.md +13 -0
- package/app/assets/css/main.css +439 -0
- package/app/assets/css/themes/brutal.css +453 -0
- package/app/assets/css/tokens.css +136 -0
- package/app/components/PortalSettingsEditor.vue +452 -0
- package/app/components/PublicPortalLogo.vue +26 -0
- package/app/components/portal-settings/BrandingStep.vue +198 -0
- package/app/components/portal-settings/HomeStep.vue +116 -0
- package/app/components/portal-settings/LegalStep.vue +44 -0
- package/app/components/portal-settings/ModulesStep.vue +88 -0
- package/app/components/portal-settings/ReviewStep.vue +54 -0
- package/app/composables/usePortalSettings.ts +25 -0
- package/app/middleware/00-portal-onboarding.global.ts +52 -0
- package/app/pages/admin/portal-settings.vue +6 -0
- package/app/pages/index.vue +170 -0
- package/app/pages/onboarding.vue +8 -0
- package/app/pages/privacy.vue +46 -0
- package/app/pages/terms.vue +46 -0
- package/app/plugins/00-portal-settings.ts +26 -0
- package/app/plugins/saas-configuration-feature.ts +3 -0
- package/i18n/locales/en.json +101 -0
- package/i18n/locales/nl.json +105 -0
- package/migrations/0000_portal_settings.sql +9 -0
- package/nuxt.config.ts +15 -0
- package/package.json +50 -0
- package/portal.manifest.mjs +7 -0
- package/server/api/admin/portal-settings/complete.post.ts +5 -0
- package/server/api/admin/portal-settings/index.get.ts +4 -0
- package/server/api/admin/portal-settings/index.put.ts +5 -0
- package/server/api/portal/bootstrap.get.ts +1 -0
- package/server/api/portal/public.get.ts +10 -0
- package/server/middleware/01-portal-bootstrap-gate.ts +50 -0
- package/server/utils/portal-settings.ts +138 -0
- package/shared/feature.ts +30 -0
- package/shared/primary-contrast.ts +12 -0
- package/shared/settings.ts +146 -0
- package/shared/theme.ts +134 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @nuxt-customer-portal/saas-configuration
|
|
2
|
+
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3f2147e: Add an interactive init command that creates a standalone copy of the configurable
|
|
8
|
+
portal, installs dependencies, and sets up a new database and administrator. Ship
|
|
9
|
+
the configurable portal layer and its themes as a public package. Resolve preset
|
|
10
|
+
manifests through their own dependencies so pnpm consumers need only install the
|
|
11
|
+
selected packages.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- @nuxt-customer-portal/core@0.3.0
|
|
16
|
+
- @nuxt-customer-portal/ui@0.3.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nuxt Customer Portal contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Configurable portal
|
|
2
|
+
|
|
3
|
+
The branding, module selection, homepage, legal pages, and browser onboarding used
|
|
4
|
+
by the included SaaS portal and the `nuxt-customer-portal init` starter.
|
|
5
|
+
|
|
6
|
+
The package includes the configurable host's Apex and Brutal presentation assets.
|
|
7
|
+
It runs against the portal's own database and authentication. It does not include
|
|
8
|
+
a hosted provisioning service or SaaS control plane.
|
|
9
|
+
|
|
10
|
+
Install it alongside the portal preset, and include it in `portal.config.ts` so
|
|
11
|
+
the kit applies its settings migration. A seeded system administrator completes
|
|
12
|
+
branding, module, homepage, and legal setup at `/onboarding` before regular portal
|
|
13
|
+
access is enabled. See the [installation guide](https://nuxt-customer-portal.com/getting-started/installation).
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import '@nuxt/ui';
|
|
3
|
+
@import './tokens.css';
|
|
4
|
+
@import './themes/brutal.css';
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--font-sans: 'Bricolage Grotesque', sans-serif;
|
|
8
|
+
--portal-logo-surface: #75cbfe;
|
|
9
|
+
--portal-logo-ink: #ffffff;
|
|
10
|
+
|
|
11
|
+
/* Primary - Sky Blue */
|
|
12
|
+
--color-primary-50: #f0f9ff;
|
|
13
|
+
--color-primary-100: #e0f2fe;
|
|
14
|
+
--color-primary-200: #bae6fd;
|
|
15
|
+
--color-primary-300: #7dd3fc;
|
|
16
|
+
--color-primary-400: #38bdf8;
|
|
17
|
+
--color-primary-500: #75cbfe;
|
|
18
|
+
--color-primary-600: #0ea5e9;
|
|
19
|
+
--color-primary-700: #0284c7;
|
|
20
|
+
--color-primary-800: #0369a1;
|
|
21
|
+
--color-primary-900: #0c4a6e;
|
|
22
|
+
--color-primary-950: #082f49;
|
|
23
|
+
|
|
24
|
+
/* Secondary - Electric Blue */
|
|
25
|
+
--color-secondary-50: #eff6ff;
|
|
26
|
+
--color-secondary-100: #dbeafe;
|
|
27
|
+
--color-secondary-200: #bfdbfe;
|
|
28
|
+
--color-secondary-300: #93c5fd;
|
|
29
|
+
--color-secondary-400: #60a5fa;
|
|
30
|
+
--color-secondary-500: #3b82f6;
|
|
31
|
+
--color-secondary-600: #2563eb;
|
|
32
|
+
--color-secondary-700: #1d4ed8;
|
|
33
|
+
--color-secondary-800: #1e40af;
|
|
34
|
+
--color-secondary-900: #1e3a8a;
|
|
35
|
+
--color-secondary-950: #172554;
|
|
36
|
+
|
|
37
|
+
/* Success - Neon Green */
|
|
38
|
+
--color-success-50: #f0fdf4;
|
|
39
|
+
--color-success-100: #dcfce7;
|
|
40
|
+
--color-success-200: #bbf7d0;
|
|
41
|
+
--color-success-300: #86efac;
|
|
42
|
+
--color-success-400: #4ade80;
|
|
43
|
+
--color-success-500: #22c55e;
|
|
44
|
+
--color-success-600: #16a34a;
|
|
45
|
+
--color-success-700: #15803d;
|
|
46
|
+
--color-success-800: #166534;
|
|
47
|
+
--color-success-900: #14532d;
|
|
48
|
+
--color-success-950: #052e16;
|
|
49
|
+
|
|
50
|
+
/* Warning - Solar Orange */
|
|
51
|
+
--color-warning-50: #fff7ed;
|
|
52
|
+
--color-warning-100: #ffedd5;
|
|
53
|
+
--color-warning-200: #fed7aa;
|
|
54
|
+
--color-warning-300: #fdba74;
|
|
55
|
+
--color-warning-400: #fb923c;
|
|
56
|
+
--color-warning-500: #f97316;
|
|
57
|
+
--color-warning-600: #ea580c;
|
|
58
|
+
--color-warning-700: #c2410c;
|
|
59
|
+
--color-warning-800: #9a3412;
|
|
60
|
+
--color-warning-900: #7c2d12;
|
|
61
|
+
--color-warning-950: #431407;
|
|
62
|
+
|
|
63
|
+
/* Error - Plasma Red */
|
|
64
|
+
--color-error-50: #fef2f2;
|
|
65
|
+
--color-error-100: #fee2e2;
|
|
66
|
+
--color-error-200: #fecaca;
|
|
67
|
+
--color-error-300: #fca5a5;
|
|
68
|
+
--color-error-400: #f87171;
|
|
69
|
+
--color-error-500: #ef4444;
|
|
70
|
+
--color-error-600: #dc2626;
|
|
71
|
+
--color-error-700: #b91c1c;
|
|
72
|
+
--color-error-800: #991b1b;
|
|
73
|
+
--color-error-900: #7f1d1d;
|
|
74
|
+
--color-error-950: #450a0a;
|
|
75
|
+
|
|
76
|
+
/* Info - Cyber Cyan */
|
|
77
|
+
--color-info-50: #ecfeff;
|
|
78
|
+
--color-info-100: #cffafe;
|
|
79
|
+
--color-info-200: #a5f3fc;
|
|
80
|
+
--color-info-300: #67e8f9;
|
|
81
|
+
--color-info-400: #22d3ee;
|
|
82
|
+
--color-info-500: #06b6d4;
|
|
83
|
+
--color-info-600: #0891b2;
|
|
84
|
+
--color-info-700: #0e7490;
|
|
85
|
+
--color-info-800: #155e75;
|
|
86
|
+
--color-info-900: #164e63;
|
|
87
|
+
--color-info-950: #083344;
|
|
88
|
+
|
|
89
|
+
/* Neutral - Deep Space */
|
|
90
|
+
--color-neutral-50: #f8fafc;
|
|
91
|
+
--color-neutral-100: #f1f5f9;
|
|
92
|
+
--color-neutral-200: #e2e8f0;
|
|
93
|
+
--color-neutral-300: #cbd5e1;
|
|
94
|
+
--color-neutral-400: #94a3b8;
|
|
95
|
+
--color-neutral-500: #64748b;
|
|
96
|
+
--color-neutral-600: #475569;
|
|
97
|
+
--color-neutral-700: #334155;
|
|
98
|
+
--color-neutral-800: #1e293b;
|
|
99
|
+
--color-neutral-900: #0f172a;
|
|
100
|
+
--color-neutral-950: #020617;
|
|
101
|
+
|
|
102
|
+
/* Special Accent Colors - Coral Pink */
|
|
103
|
+
--color-accent-50: #fef2f2;
|
|
104
|
+
--color-accent-100: #fee2e2;
|
|
105
|
+
--color-accent-200: #fecaca;
|
|
106
|
+
--color-accent-300: #fca5a5;
|
|
107
|
+
--color-accent-400: #f87171;
|
|
108
|
+
--color-accent-500: #ef4444;
|
|
109
|
+
--color-accent-600: #dc2626;
|
|
110
|
+
--color-accent-700: #b91c1c;
|
|
111
|
+
--color-accent-800: #991b1b;
|
|
112
|
+
--color-accent-900: #7f1d1d;
|
|
113
|
+
--color-accent-950: #450a0a;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Keep the portal name on one line inside the dense desktop module bar. */
|
|
117
|
+
html[data-portal-theme='apex'] .portal-header .portal-wordmark {
|
|
118
|
+
font-size: 1.25rem;
|
|
119
|
+
line-height: 1.25;
|
|
120
|
+
letter-spacing: -0.025em;
|
|
121
|
+
white-space: nowrap;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Light Mode - Enhanced Vibrant Theme */
|
|
125
|
+
:root {
|
|
126
|
+
/* Primary colors - more vibrant */
|
|
127
|
+
--ui-primary: var(--color-primary-600);
|
|
128
|
+
--ui-secondary: var(--color-secondary-600);
|
|
129
|
+
--ui-success: var(--color-success-600);
|
|
130
|
+
--ui-warning: var(--color-warning-600);
|
|
131
|
+
--ui-error: var(--color-error-600);
|
|
132
|
+
--ui-info: var(--color-info-600);
|
|
133
|
+
|
|
134
|
+
/* Text colors - improved contrast */
|
|
135
|
+
--ui-text-dimmed: var(--color-neutral-500);
|
|
136
|
+
--ui-text-muted: var(--color-neutral-600);
|
|
137
|
+
--ui-text-toned: var(--color-neutral-700);
|
|
138
|
+
--ui-text: var(--color-neutral-900);
|
|
139
|
+
--ui-text-highlighted: #0f172a;
|
|
140
|
+
--ui-text-inverted: #ffffff;
|
|
141
|
+
|
|
142
|
+
/* Background colors - warmer, more vibrant with subtle gradients */
|
|
143
|
+
--ui-bg: #ffffff;
|
|
144
|
+
--ui-bg-muted: #f8fafc;
|
|
145
|
+
--ui-bg-elevated: var(--ui-color-neutral-100);
|
|
146
|
+
--ui-bg-accented: #f0f9ff;
|
|
147
|
+
--ui-bg-inverted: var(--color-neutral-900);
|
|
148
|
+
|
|
149
|
+
/* Border colors - more defined and subtle */
|
|
150
|
+
--ui-border: #e2e8f0;
|
|
151
|
+
--ui-border-muted: #f1f5f9;
|
|
152
|
+
--ui-border-accented: #cbd5e1;
|
|
153
|
+
--ui-border-inverted: var(--color-neutral-800);
|
|
154
|
+
|
|
155
|
+
/* Special effects */
|
|
156
|
+
--ui-radius: 0.75rem;
|
|
157
|
+
--ui-container: var(--container-7xl);
|
|
158
|
+
--ui-header-height: 4.5rem;
|
|
159
|
+
|
|
160
|
+
/* Shadow enhancements for depth */
|
|
161
|
+
--ui-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
162
|
+
--ui-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
163
|
+
--ui-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
164
|
+
--ui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
165
|
+
--ui-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
166
|
+
|
|
167
|
+
/* Subtle gradient overlays */
|
|
168
|
+
--ui-gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(249, 115, 22, 0.02) 100%);
|
|
169
|
+
--ui-gradient-warm: linear-gradient(135deg, rgba(255, 247, 237, 0.5) 0%, rgba(240, 249, 255, 0.5) 100%);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Dark Mode - Deep Space */
|
|
173
|
+
.dark {
|
|
174
|
+
/* Primary colors - brighter for dark mode */
|
|
175
|
+
--ui-primary: var(--color-primary-400);
|
|
176
|
+
--ui-secondary: var(--color-secondary-400);
|
|
177
|
+
--ui-success: var(--color-success-400);
|
|
178
|
+
--ui-warning: var(--color-warning-400);
|
|
179
|
+
--ui-error: var(--color-error-400);
|
|
180
|
+
--ui-info: var(--color-info-400);
|
|
181
|
+
|
|
182
|
+
/* Text colors */
|
|
183
|
+
--ui-text-dimmed: var(--color-neutral-500);
|
|
184
|
+
--ui-text-muted: var(--color-neutral-400);
|
|
185
|
+
--ui-text-toned: var(--color-neutral-300);
|
|
186
|
+
--ui-text: var(--color-neutral-200);
|
|
187
|
+
--ui-text-highlighted: var(--color-neutral-50);
|
|
188
|
+
--ui-text-inverted: var(--color-neutral-900);
|
|
189
|
+
|
|
190
|
+
/* Background colors - deep space theme */
|
|
191
|
+
--ui-bg: #0a0f1a;
|
|
192
|
+
--ui-bg-muted: #0f172a;
|
|
193
|
+
--ui-bg-elevated: #1e293b;
|
|
194
|
+
--ui-bg-accented: #334155;
|
|
195
|
+
--ui-bg-inverted: var(--color-neutral-50);
|
|
196
|
+
|
|
197
|
+
/* Border colors */
|
|
198
|
+
--ui-border: var(--color-neutral-700);
|
|
199
|
+
--ui-border-muted: var(--color-neutral-800);
|
|
200
|
+
--ui-border-accented: var(--color-neutral-600);
|
|
201
|
+
--ui-border-inverted: var(--color-neutral-200);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* Page Transitions */
|
|
205
|
+
.fade-enter-active,
|
|
206
|
+
.fade-leave-active {
|
|
207
|
+
transition: opacity 0.3s ease;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.fade-enter-from,
|
|
211
|
+
.fade-leave-to {
|
|
212
|
+
opacity: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.fade-enter-to,
|
|
216
|
+
.fade-leave-from {
|
|
217
|
+
opacity: 1;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* UMain Content Transitions */
|
|
221
|
+
.main-content {
|
|
222
|
+
position: relative;
|
|
223
|
+
overflow: hidden;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Nuxt Page Transitions */
|
|
227
|
+
.main-fade-enter-active {
|
|
228
|
+
transition:
|
|
229
|
+
opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
230
|
+
transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.main-fade-leave-active {
|
|
234
|
+
transition:
|
|
235
|
+
opacity 0.3s cubic-bezier(0.55, 0.06, 0.68, 0.19),
|
|
236
|
+
transform 0.3s cubic-bezier(0.55, 0.06, 0.68, 0.19);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.main-fade-enter-from {
|
|
240
|
+
opacity: 0;
|
|
241
|
+
transform: translateY(20px) scale(0.98);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.main-fade-leave-to {
|
|
245
|
+
opacity: 0;
|
|
246
|
+
transform: translateY(-10px) scale(1.02);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.main-fade-enter-to,
|
|
250
|
+
.main-fade-leave-from {
|
|
251
|
+
opacity: 1;
|
|
252
|
+
transform: translateY(0) scale(1);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Enhanced cosmic transition effects for page content */
|
|
256
|
+
.main-fade-enter-active {
|
|
257
|
+
position: relative;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.main-fade-enter-active::before {
|
|
261
|
+
content: '';
|
|
262
|
+
position: absolute;
|
|
263
|
+
top: 0;
|
|
264
|
+
left: 0;
|
|
265
|
+
right: 0;
|
|
266
|
+
bottom: 0;
|
|
267
|
+
background: linear-gradient(
|
|
268
|
+
135deg,
|
|
269
|
+
rgba(59, 130, 246, 0.05) 0%,
|
|
270
|
+
rgba(249, 115, 22, 0.05) 50%,
|
|
271
|
+
rgba(34, 197, 94, 0.05) 100%
|
|
272
|
+
);
|
|
273
|
+
opacity: 0;
|
|
274
|
+
transition: opacity 0.4s ease;
|
|
275
|
+
pointer-events: none;
|
|
276
|
+
z-index: -1;
|
|
277
|
+
border-radius: var(--ui-radius);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.main-fade-enter-active::before {
|
|
281
|
+
opacity: 1;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Smooth scroll behavior for better UX */
|
|
285
|
+
html {
|
|
286
|
+
overflow-x: clip;
|
|
287
|
+
scroll-behavior: smooth;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
body {
|
|
291
|
+
overflow-x: clip;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* Light Mode Enhancements */
|
|
295
|
+
|
|
296
|
+
/* Enhanced body background with subtle gradient */
|
|
297
|
+
:root body {
|
|
298
|
+
background-color: var(--ui-bg);
|
|
299
|
+
background-image:
|
|
300
|
+
radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%),
|
|
301
|
+
radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.02) 0px, transparent 50%);
|
|
302
|
+
background-attachment: fixed;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* Enhanced card styling */
|
|
306
|
+
:root [class*='card'],
|
|
307
|
+
:root [data-variant='subtle'],
|
|
308
|
+
:root [data-variant='outline'] {
|
|
309
|
+
transition:
|
|
310
|
+
border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
|
|
311
|
+
box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
|
|
312
|
+
transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Better shadows for elevated surfaces */
|
|
316
|
+
:root [class*='shadow']:not(.shadow-xl) {
|
|
317
|
+
box-shadow: var(--ui-shadow);
|
|
318
|
+
}
|
|
319
|
+
:root .shadow-xl {
|
|
320
|
+
box-shadow:
|
|
321
|
+
0 0 0 1px var(--ui-border-accented),
|
|
322
|
+
0 12px 32px -6px rgb(0 0 0 / 20%),
|
|
323
|
+
0 4px 10px -4px rgb(0 0 0 / 12%);
|
|
324
|
+
}
|
|
325
|
+
:root.dark .shadow-xl {
|
|
326
|
+
box-shadow:
|
|
327
|
+
0 0 0 1px var(--ui-border-accented),
|
|
328
|
+
0 12px 32px -6px rgb(0 0 0 / 55%);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* Cards with better depth */
|
|
332
|
+
:root .nuxt-ui-card,
|
|
333
|
+
:root [data-headlessui-state] {
|
|
334
|
+
border-color: var(--ui-border);
|
|
335
|
+
background: var(--ui-bg-elevated);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* Subtle background for muted areas */
|
|
339
|
+
:root [class*='bg-gray-50'],
|
|
340
|
+
:root [class*='bg-slate-50'] {
|
|
341
|
+
background-color: var(--ui-bg-muted) !important;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* Enhanced borders */
|
|
345
|
+
:root [class*='border-gray-200'],
|
|
346
|
+
:root [class*='border-slate-200'] {
|
|
347
|
+
border-color: var(--ui-border) !important;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/* Better text contrast */
|
|
351
|
+
:root [class*='text-gray-600'],
|
|
352
|
+
:root [class*='text-slate-600'] {
|
|
353
|
+
color: var(--ui-text-toned) !important;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:root [class*='text-gray-500'],
|
|
357
|
+
:root [class*='text-slate-500'] {
|
|
358
|
+
color: var(--ui-text-muted) !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
:root [class*='text-gray-900'],
|
|
362
|
+
:root [class*='text-slate-900'] {
|
|
363
|
+
color: var(--ui-text-highlighted) !important;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* Enhanced hover states */
|
|
367
|
+
:root [class*='hover:bg-gray-50'],
|
|
368
|
+
:root [class*='hover:bg-slate-50'] {
|
|
369
|
+
transition: background-color 0.2s ease;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
:root [class*='hover:bg-gray-50']:hover,
|
|
373
|
+
:root [class*='hover:bg-slate-50']:hover {
|
|
374
|
+
background-color: var(--ui-bg-accented) !important;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* Only solid backgrounds: substring matches also capture outline hover utilities
|
|
378
|
+
and overwrite the box-shadow that Tailwind uses for their border rings. */
|
|
379
|
+
:root button.bg-primary,
|
|
380
|
+
:root .bg-blue-600,
|
|
381
|
+
:root .bg-primary-600 {
|
|
382
|
+
box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
|
|
383
|
+
transition:
|
|
384
|
+
background-color 0.2s ease,
|
|
385
|
+
box-shadow 0.2s ease,
|
|
386
|
+
transform 0.2s ease;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
:root button.bg-primary:hover,
|
|
390
|
+
:root .bg-blue-600:hover,
|
|
391
|
+
:root .bg-primary-600:hover {
|
|
392
|
+
box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
|
|
393
|
+
transform: translateY(-1px);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* Subtle card hover effects */
|
|
397
|
+
:root [class*='card']:hover {
|
|
398
|
+
box-shadow: var(--ui-shadow-md);
|
|
399
|
+
border-color: var(--ui-border-accented);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Modal backdrop styling for light mode ONLY - using very light primary color tint */
|
|
403
|
+
/* Override the backdrop overlay used by Nuxt UI modals */
|
|
404
|
+
/* Using primary-50 color (#f0f9ff) with 75% opacity for better visibility */
|
|
405
|
+
/* Dark mode is excluded - it already has proper backdrop styling */
|
|
406
|
+
|
|
407
|
+
/* Target overlay with z-index classes - light mode only */
|
|
408
|
+
html:not(.dark) .fixed.inset-0.z-50:not([role='dialog']),
|
|
409
|
+
html.light .fixed.inset-0.z-50:not([role='dialog']),
|
|
410
|
+
html:not(.dark) .fixed.inset-0.z-\[50\]:not([role='dialog']),
|
|
411
|
+
html.light .fixed.inset-0.z-\[50\]:not([role='dialog']) {
|
|
412
|
+
background-color: rgba(240, 249, 255, 0.75) !important;
|
|
413
|
+
backdrop-filter: blur(2px);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Target overlay with data-headlessui-state attribute - light mode only */
|
|
417
|
+
html:not(.dark) [data-headlessui-state].fixed.inset-0:not([role='dialog']),
|
|
418
|
+
html.light [data-headlessui-state].fixed.inset-0:not([role='dialog']) {
|
|
419
|
+
background-color: rgba(240, 249, 255, 0.75) !important;
|
|
420
|
+
backdrop-filter: blur(2px);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* Target backdrop that appears before dialog in DOM - light mode only */
|
|
424
|
+
html:not(.dark) [role='dialog'] ~ .fixed.inset-0,
|
|
425
|
+
html.light [role='dialog'] ~ .fixed.inset-0 {
|
|
426
|
+
background-color: rgba(240, 249, 255, 0.75) !important;
|
|
427
|
+
backdrop-filter: blur(2px);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* The alternate theme must override the Apex light-mode backdrop rules above. */
|
|
431
|
+
html[data-portal-theme='brutal']:not(.dark) .fixed.inset-0.z-50:not([role='dialog']),
|
|
432
|
+
html[data-portal-theme='brutal'].light .fixed.inset-0.z-50:not([role='dialog']),
|
|
433
|
+
html[data-portal-theme='brutal']:not(.dark) [data-headlessui-state].fixed.inset-0:not([role='dialog']),
|
|
434
|
+
html[data-portal-theme='brutal'].light [data-headlessui-state].fixed.inset-0:not([role='dialog']),
|
|
435
|
+
html[data-portal-theme='brutal']:not(.dark) [role='dialog'] ~ .fixed.inset-0,
|
|
436
|
+
html[data-portal-theme='brutal'].light [role='dialog'] ~ .fixed.inset-0 {
|
|
437
|
+
background: var(--color-overlay) !important;
|
|
438
|
+
backdrop-filter: none !important;
|
|
439
|
+
}
|