@stacksjs/defaults 0.75.669 → 0.75.674
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/ai/skills/stacks-dashboard/SKILL.md +19 -5
- package/ai/skills/stacks-native/CATALOG.md +10 -10
- package/ai/skills/stacks-storage/SKILL.md +51 -0
- package/ai/skills/stacks-video/SKILL.md +29 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +7 -7
- package/resources/components/Dashboard/Home/DashboardHome.stx +8 -8
- package/resources/components/Dashboard/MobileSidebar.stx +1 -1
- package/resources/components/Dashboard/Settings/AppearanceSettingsDashboard.stx +19 -3
- package/resources/components/Dashboard/Settings/DashboardThemePicker.stx +218 -0
- package/resources/components/Dashboard/UI/ActivityTable.stx +7 -7
- package/resources/components/Dashboard/UI/Button.stx +6 -3
- package/resources/components/Dashboard/UI/Card.stx +1 -1
- package/resources/components/Dashboard/UI/Drawer.stx +1 -1
- package/resources/components/Dashboard/UI/Modal.stx +1 -0
- package/resources/components/Dashboard/UI/PageHeader.stx +1 -1
- package/resources/components/Dashboard/UI/QuickLinks.stx +7 -5
- package/resources/components/Dashboard/UI/ServiceHealth.stx +6 -6
- package/resources/components/Dashboard/UI/StatsCard.stx +5 -5
- package/resources/components/Dashboard/UI/Table.stx +1 -1
- package/styles/dashboard-theme.css +248 -0
- package/views/dashboard/composables/dashboard-theme-bootstrap.ts +11 -0
- package/views/dashboard/composables/dashboard-themes.ts +180 -0
- package/views/dashboard/composables/useAppearance.ts +21 -9
- package/views/dashboard/composables/useDashboardThemes.ts +79 -0
- package/views/dashboard/layouts/default.stx +45 -42
- package/views/dashboard/layouts/guest.stx +11 -1
|
@@ -34,11 +34,11 @@ function statusIcon(status: string): string {
|
|
|
34
34
|
}
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
|
-
<section class="bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5">
|
|
37
|
+
<section data-dashboard-card="default" class="bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5">
|
|
38
38
|
<header class="flex items-center justify-between p-5 border-b border-neutral-200/60 dark:border-white/5">
|
|
39
39
|
<div>
|
|
40
|
-
<h2 class="font-semibold text-[14px] text-neutral-900 tracking-tight dark:text-white">{{ title() }}</h2>
|
|
41
|
-
<p class="mt-1 text-neutral-500 text-xs dark:text-neutral-400">{{ description() }}</p>
|
|
40
|
+
<h2 data-dashboard-ink class="font-semibold text-[14px] text-neutral-900 tracking-tight dark:text-white">{{ title() }}</h2>
|
|
41
|
+
<p data-dashboard-muted class="mt-1 text-neutral-500 text-xs dark:text-neutral-400">{{ description() }}</p>
|
|
42
42
|
</div>
|
|
43
43
|
<slot name="actions" />
|
|
44
44
|
</header>
|
|
@@ -59,8 +59,8 @@ function statusIcon(status: string): string {
|
|
|
59
59
|
<span :class="'h-4 w-4 ' + statusIcon(activity.status)" aria-hidden="true"></span>
|
|
60
60
|
</div>
|
|
61
61
|
<div class="flex-1 min-w-0">
|
|
62
|
-
<p class="font-medium text-neutral-900 text-sm truncate dark:text-white">{{ activity.title }}</p>
|
|
63
|
-
<p class="text-neutral-500 text-xs dark:text-neutral-400">
|
|
62
|
+
<p data-dashboard-ink class="font-medium text-neutral-900 text-sm truncate dark:text-white">{{ activity.title }}</p>
|
|
63
|
+
<p data-dashboard-muted class="text-neutral-500 text-xs dark:text-neutral-400">
|
|
64
64
|
<span :if="activity.source">{{ activity.source }} · </span>{{ activity.time }}
|
|
65
65
|
</p>
|
|
66
66
|
</div>
|
|
@@ -70,7 +70,7 @@ function statusIcon(status: string): string {
|
|
|
70
70
|
|
|
71
71
|
<div :if="!loading() && activities().length === 0" class="py-12 text-center">
|
|
72
72
|
<span aria-hidden="true" class="inline-block h-7 w-7 text-neutral-300 dark:text-neutral-600 i-hugeicons-activity-01"></span>
|
|
73
|
-
<p class="mt-2 font-medium text-neutral-900 text-sm dark:text-white">No recent activity</p>
|
|
74
|
-
<p class="mt-1 text-[12px] text-neutral-500 dark:text-neutral-400">Persisted activity will appear here.</p>
|
|
73
|
+
<p data-dashboard-ink class="mt-2 font-medium text-neutral-900 text-sm dark:text-white">No recent activity</p>
|
|
74
|
+
<p data-dashboard-muted class="mt-1 text-[12px] text-neutral-500 dark:text-neutral-400">Persisted activity will appear here.</p>
|
|
75
75
|
</div>
|
|
76
76
|
</section>
|
|
@@ -116,7 +116,8 @@ const liveAriaExpanded = useReactiveProp('ariaExpanded', '')
|
|
|
116
116
|
:aria-label="liveAriaLabel() || undefined"
|
|
117
117
|
:title="hoverTitle()"
|
|
118
118
|
class="{{ buttonClass }}"
|
|
119
|
-
|
|
119
|
+
:class="variantToggles()"
|
|
120
|
+
:data-dashboard-button="liveVariant()"
|
|
120
121
|
:target="liveTarget() || undefined"
|
|
121
122
|
:rel="liveRel() || undefined"
|
|
122
123
|
:aria-busy="liveLoading() ? 'true' : 'false'"
|
|
@@ -134,7 +135,8 @@ const liveAriaExpanded = useReactiveProp('ariaExpanded', '')
|
|
|
134
135
|
:type="liveType()"
|
|
135
136
|
:form="liveForm() || undefined"
|
|
136
137
|
class="{{ buttonClass }}"
|
|
137
|
-
|
|
138
|
+
:class="variantToggles()"
|
|
139
|
+
:data-dashboard-button="liveVariant()"
|
|
138
140
|
:aria-label="liveAriaLabel() || undefined"
|
|
139
141
|
:title="hoverTitle()"
|
|
140
142
|
:aria-busy="liveLoading() ? 'true' : 'false'"
|
|
@@ -151,7 +153,8 @@ const liveAriaExpanded = useReactiveProp('ariaExpanded', '')
|
|
|
151
153
|
:type="liveType()"
|
|
152
154
|
:form="liveForm() || undefined"
|
|
153
155
|
class="{{ buttonClass }}"
|
|
154
|
-
|
|
156
|
+
:class="variantToggles()"
|
|
157
|
+
:data-dashboard-button="liveVariant()"
|
|
155
158
|
:aria-label="liveAriaLabel() || undefined"
|
|
156
159
|
:title="hoverTitle()"
|
|
157
160
|
:aria-haspopup="liveAriaHasPopup() || undefined"
|
|
@@ -63,7 +63,7 @@ const cardClass = [
|
|
|
63
63
|
const liveSubtitle = useReactiveProp('subtitle', '')
|
|
64
64
|
</script>
|
|
65
65
|
|
|
66
|
-
<article class="{{ cardClass }}" @if(clickable) role="button" tabindex="0" @endif>
|
|
66
|
+
<article data-dashboard-card="{{ variant }}" class="{{ cardClass }}" @if(clickable) role="button" tabindex="0" @endif>
|
|
67
67
|
@if($slots.header)
|
|
68
68
|
<header class="px-5 py-4 border-b border-stone-200/80 dark:border-white/5">
|
|
69
69
|
<slot name="header" />
|
|
@@ -81,7 +81,7 @@ effect(() => {
|
|
|
81
81
|
@cancel="handleCancel"
|
|
82
82
|
>
|
|
83
83
|
<div class="flex justify-end min-h-full" @click="handleBackdropClick">
|
|
84
|
-
<section class="flex relative flex-col h-dvh w-full bg-white dark:bg-neutral-950 border-neutral-200 border-l dark:border-neutral-800 shadow-2xl {{ sizeClasses[size] }}" @click.stop>
|
|
84
|
+
<section data-dashboard-overlay="drawer" class="flex relative flex-col h-dvh w-full bg-white dark:bg-neutral-950 border-neutral-200 border-l dark:border-neutral-800 shadow-2xl {{ sizeClasses[size] }}" @click.stop>
|
|
85
85
|
<header class="flex gap-4 items-start px-5 py-4 border-b border-neutral-200 dark:border-neutral-800">
|
|
86
86
|
<slot name="header-leading" />
|
|
87
87
|
<div class="flex-1 min-w-0">
|
|
@@ -117,6 +117,7 @@ effect(() => {
|
|
|
117
117
|
<!-- Modal container -->
|
|
118
118
|
<div class="flex min-h-full {{ positionClasses[position] }}" @click="handleBackdropClick">
|
|
119
119
|
<div
|
|
120
|
+
data-dashboard-overlay="modal"
|
|
120
121
|
class="relative w-full rounded-xl bg-white dark:bg-neutral-900 shadow-2xl {{ sizeClasses[size] }} {{ panelClassName }}"
|
|
121
122
|
>
|
|
122
123
|
<!-- Header -->
|
|
@@ -19,7 +19,7 @@ const title = useReactiveProp('title', '')
|
|
|
19
19
|
const description = useReactiveProp('description', '')
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
|
-
<header class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
|
22
|
+
<header data-dashboard-page-heading class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
|
23
23
|
<div>
|
|
24
24
|
<h1 class="font-bold text-2xl text-gray-900 dark:text-white">{{ title() }}</h1>
|
|
25
25
|
<p class="mt-1 text-gray-500 text-sm dark:text-neutral-400">{{ description() }}</p>
|
|
@@ -33,10 +33,11 @@ function toneClass(link: QuickLink): string {
|
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
35
|
<section :class="customClass()">
|
|
36
|
-
<h2 class="mb-4 font-semibold text-base text-neutral-900 dark:text-white">{{ title() }}</h2>
|
|
36
|
+
<h2 data-dashboard-ink class="mb-4 font-semibold text-base text-neutral-900 dark:text-white">{{ title() }}</h2>
|
|
37
37
|
<div class="grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4">
|
|
38
38
|
<div :for="link in validLinks()" class="contents">
|
|
39
39
|
<a
|
|
40
|
+
data-dashboard-card="default"
|
|
40
41
|
:if="isExternal(link.href)"
|
|
41
42
|
:href="link.href"
|
|
42
43
|
target="_blank"
|
|
@@ -48,12 +49,13 @@ function toneClass(link: QuickLink): string {
|
|
|
48
49
|
<span :class="iconClass(link)" aria-hidden="true"></span>
|
|
49
50
|
</div>
|
|
50
51
|
<div class="flex-1 min-w-0">
|
|
51
|
-
<p class="font-medium text-neutral-900 text-sm dark:text-white">{{ link.title }}</p>
|
|
52
|
-
<p :if="link.description" class="mt-0.5 text-neutral-500 text-xs truncate dark:text-neutral-400">{{ link.description }}</p>
|
|
52
|
+
<p data-dashboard-ink class="font-medium text-neutral-900 text-sm dark:text-white">{{ link.title }}</p>
|
|
53
|
+
<p data-dashboard-muted :if="link.description" class="mt-0.5 text-neutral-500 text-xs truncate dark:text-neutral-400">{{ link.description }}</p>
|
|
53
54
|
</div>
|
|
54
55
|
</div>
|
|
55
56
|
</a>
|
|
56
57
|
<StxLink
|
|
58
|
+
data-dashboard-card="default"
|
|
57
59
|
:else
|
|
58
60
|
:to="link.href"
|
|
59
61
|
class="block p-5 no-underline bg-white dark:bg-neutral-800 border border-neutral-200 rounded-xl dark:border-neutral-700 hover:shadow-md transition-shadow"
|
|
@@ -63,8 +65,8 @@ function toneClass(link: QuickLink): string {
|
|
|
63
65
|
<span :class="iconClass(link)" aria-hidden="true"></span>
|
|
64
66
|
</div>
|
|
65
67
|
<div class="flex-1 min-w-0">
|
|
66
|
-
<p class="font-medium text-neutral-900 text-sm dark:text-white">{{ link.title }}</p>
|
|
67
|
-
<p :if="link.description" class="mt-0.5 text-neutral-500 text-xs truncate dark:text-neutral-400">{{ link.description }}</p>
|
|
68
|
+
<p data-dashboard-ink class="font-medium text-neutral-900 text-sm dark:text-white">{{ link.title }}</p>
|
|
69
|
+
<p data-dashboard-muted :if="link.description" class="mt-0.5 text-neutral-500 text-xs truncate dark:text-neutral-400">{{ link.description }}</p>
|
|
68
70
|
</div>
|
|
69
71
|
</div>
|
|
70
72
|
</StxLink>
|
|
@@ -21,11 +21,11 @@ function statusClass(status: string): string {
|
|
|
21
21
|
}
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
|
-
<section class="bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5">
|
|
24
|
+
<section data-dashboard-card="default" class="bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5">
|
|
25
25
|
<header class="flex items-center justify-between p-5 border-b border-neutral-200/60 dark:border-white/5">
|
|
26
26
|
<div>
|
|
27
|
-
<h2 class="font-semibold text-[14px] text-neutral-900 tracking-tight dark:text-white">System health</h2>
|
|
28
|
-
<p class="mt-1 text-neutral-500 text-xs dark:text-neutral-400">Native application health probes.</p>
|
|
27
|
+
<h2 data-dashboard-ink class="font-semibold text-[14px] text-neutral-900 tracking-tight dark:text-white">System health</h2>
|
|
28
|
+
<p data-dashboard-muted class="mt-1 text-neutral-500 text-xs dark:text-neutral-400">Native application health probes.</p>
|
|
29
29
|
</div>
|
|
30
30
|
<Badge :if="allHealthy()" variant="success" size="xs" dot>All systems operational</Badge>
|
|
31
31
|
<Badge :if="!loading() && services().length > 0 && !allHealthy()" variant="warning" size="xs" dot>Attention required</Badge>
|
|
@@ -42,8 +42,8 @@ function statusClass(status: string): string {
|
|
|
42
42
|
<article :for="service in services()" class="px-5 py-3.5">
|
|
43
43
|
<div class="flex gap-4 items-center justify-between">
|
|
44
44
|
<div>
|
|
45
|
-
<p class="font-medium text-[13px] text-neutral-900 dark:text-white">{{ service.name }}</p>
|
|
46
|
-
<p class="mt-0.5 text-[12px] text-neutral-500 dark:text-neutral-400">{{ service.latency }}</p>
|
|
45
|
+
<p data-dashboard-ink class="font-medium text-[13px] text-neutral-900 dark:text-white">{{ service.name }}</p>
|
|
46
|
+
<p data-dashboard-muted class="mt-0.5 text-[12px] text-neutral-500 dark:text-neutral-400">{{ service.latency }}</p>
|
|
47
47
|
</div>
|
|
48
48
|
<span :class="'px-2 py-0.5 font-medium text-[11px] rounded-full capitalize ' + statusClass(service.status)">
|
|
49
49
|
{{ service.status }}
|
|
@@ -55,6 +55,6 @@ function statusClass(status: string): string {
|
|
|
55
55
|
|
|
56
56
|
<div :if="!loading() && services().length === 0" class="px-5 py-12 text-center">
|
|
57
57
|
<span aria-hidden="true" class="inline-block h-7 w-7 text-neutral-300 dark:text-neutral-600 i-hugeicons-health"></span>
|
|
58
|
-
<p class="mt-2 text-neutral-500 text-sm dark:text-neutral-400">No health checks were returned.</p>
|
|
58
|
+
<p data-dashboard-muted class="mt-2 text-neutral-500 text-sm dark:text-neutral-400">No health checks were returned.</p>
|
|
59
59
|
</div>
|
|
60
60
|
</section>
|
|
@@ -39,17 +39,17 @@ const iconBackgroundClass = derived(() => iconBgClasses[liveIconBg() || 'primary
|
|
|
39
39
|
const trendDirection = derived(() => liveTrend() === null || liveTrend() === 0 ? 'neutral' : (Number(liveTrend()) > 0 ? 'up' : 'down'))
|
|
40
40
|
const trendClass = derived(() => trendClasses[trendDirection()])
|
|
41
41
|
</script>
|
|
42
|
-
<div class="p-3 sm:p-5 bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5 hover:shadow-black/5 hover:shadow-md dark:hover:shadow-black/20 duration-150 transition-all">
|
|
42
|
+
<div data-dashboard-card="default" class="p-3 sm:p-5 bg-white dark:bg-neutral-800/90 border border-black/5 rounded-xl dark:border-white/5 hover:shadow-black/5 hover:shadow-md dark:hover:shadow-black/20 duration-150 transition-all">
|
|
43
43
|
<div class="flex gap-2 items-start justify-between">
|
|
44
44
|
<div class="flex-1 min-w-0">
|
|
45
|
-
<p class="font-medium leading-snug text-[13px] text-neutral-500 tracking-tight dark:text-neutral-400">
|
|
45
|
+
<p data-dashboard-muted class="font-medium leading-snug text-[13px] text-neutral-500 tracking-tight dark:text-neutral-400">
|
|
46
46
|
{{ liveTitle() }}
|
|
47
47
|
</p>
|
|
48
48
|
|
|
49
49
|
<div class="flex gap-2 items-baseline mt-1.5">
|
|
50
50
|
<div :if="liveLoading()" class="h-7 w-20 bg-black/5 dark:bg-white/10 rounded-md animate-pulse"></div>
|
|
51
51
|
<div :else class="flex gap-2 items-baseline">
|
|
52
|
-
<p class="font-semibold text-[22px] text-neutral-900 tracking-tight dark:text-white">
|
|
52
|
+
<p data-dashboard-ink class="font-semibold text-[22px] text-neutral-900 tracking-tight dark:text-white">
|
|
53
53
|
@if($slots.value)
|
|
54
54
|
<slot name="value" />
|
|
55
55
|
@else
|
|
@@ -70,11 +70,11 @@ const trendClass = derived(() => trendClasses[trendDirection()])
|
|
|
70
70
|
</div>
|
|
71
71
|
|
|
72
72
|
@if($slots.subtitle)
|
|
73
|
-
<p class="mt-1 text-[12px] text-neutral-500 dark:text-neutral-400">
|
|
73
|
+
<p data-dashboard-muted class="mt-1 text-[12px] text-neutral-500 dark:text-neutral-400">
|
|
74
74
|
<slot name="subtitle" />
|
|
75
75
|
</p>
|
|
76
76
|
@else
|
|
77
|
-
<p :if="supportText()" class="mt-1 text-[12px] text-neutral-500 dark:text-neutral-400">
|
|
77
|
+
<p data-dashboard-muted :if="supportText()" class="mt-1 text-[12px] text-neutral-500 dark:text-neutral-400">
|
|
78
78
|
{{ supportText() }}
|
|
79
79
|
</p>
|
|
80
80
|
@endif
|
|
@@ -772,7 +772,7 @@ function cellClass(column: DashboardTableColumn, index: number): string {
|
|
|
772
772
|
}
|
|
773
773
|
</script>
|
|
774
774
|
|
|
775
|
-
<div class="overflow-hidden relative bg-white dark:bg-neutral-900" :class="framed() ? 'border border-stone-200/80 rounded-xl dark:border-neutral-700 shadow-sm' : ''">
|
|
775
|
+
<div data-dashboard-table :data-dashboard-framed="String(framed())" class="overflow-hidden relative bg-white dark:bg-neutral-900" :class="framed() ? 'border border-stone-200/80 rounded-xl dark:border-neutral-700 shadow-sm' : ''">
|
|
776
776
|
<div :if="loading()" class="flex absolute inset-0 z-30 items-center justify-center bg-white/80 dark:bg-neutral-900/80 backdrop-blur-sm" role="status">
|
|
777
777
|
<span aria-hidden="true" class="mr-2 h-5 w-5 text-blue-500 animate-spin i-hugeicons-loading-03"></span>
|
|
778
778
|
<span class="text-neutral-500 text-sm dark:text-neutral-400">Loading</span>
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
html[data-dashboard-layout] {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
--dashboard-overview-gradient:
|
|
4
|
+
radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--dashboard-hero-start) 90%, white), transparent 65%),
|
|
5
|
+
linear-gradient(155deg, var(--dashboard-hero-start), var(--dashboard-hero-end));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html[data-dashboard-layout].dark {
|
|
9
|
+
color-scheme: dark;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html[data-dashboard-layout] body {
|
|
13
|
+
color: var(--dashboard-text);
|
|
14
|
+
font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
html[data-dashboard-layout] [data-stx-content][data-dashboard-content],
|
|
18
|
+
html[data-dashboard-layout] body[data-dashboard-guest] {
|
|
19
|
+
background: var(--dashboard-canvas);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html[data-dashboard-layout] [data-dashboard-mobile-bar],
|
|
23
|
+
html[data-dashboard-layout] [data-dashboard-overlay],
|
|
24
|
+
html[data-dashboard-layout] :is([data-dashboard-card="default"], [data-dashboard-card="elevated"]),
|
|
25
|
+
html[data-dashboard-layout] [data-dashboard-table] {
|
|
26
|
+
background: var(--dashboard-surface);
|
|
27
|
+
border-color: var(--dashboard-border);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
html[data-dashboard-layout] [data-dashboard-card="outline"] {
|
|
31
|
+
border-color: var(--dashboard-border);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
html[data-dashboard-layout] [data-dashboard-card="ghost"] {
|
|
35
|
+
background: var(--dashboard-surface-muted);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
html[data-dashboard-layout] [data-dashboard-card="vibrancy"] {
|
|
39
|
+
background: color-mix(in srgb, var(--dashboard-surface) 75%, transparent);
|
|
40
|
+
border-color: var(--dashboard-border);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
html[data-dashboard-layout] [data-dashboard-card],
|
|
44
|
+
html[data-dashboard-layout] [data-dashboard-framed="true"],
|
|
45
|
+
html[data-dashboard-layout] [data-dashboard-overlay="modal"] {
|
|
46
|
+
border-radius: var(--dashboard-radius);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
html[data-dashboard-layout] [data-dashboard-card] > :is(header, footer),
|
|
50
|
+
html[data-dashboard-layout] [data-dashboard-table] :is(thead, th, td) {
|
|
51
|
+
border-color: var(--dashboard-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
html[data-dashboard-layout] [data-dashboard-card] > footer,
|
|
55
|
+
html[data-dashboard-layout] [data-dashboard-table] thead {
|
|
56
|
+
background: var(--dashboard-surface-muted);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
html[data-dashboard-layout] [data-dashboard-ink],
|
|
60
|
+
html[data-dashboard-layout] [data-dashboard-page-heading] h1,
|
|
61
|
+
html[data-dashboard-layout] [data-dashboard-card] > header h3 {
|
|
62
|
+
color: var(--dashboard-text);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
html[data-dashboard-layout] [data-dashboard-page-heading] h1 {
|
|
66
|
+
letter-spacing: -.025em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
html[data-dashboard-layout] [data-dashboard-muted],
|
|
70
|
+
html[data-dashboard-layout] [data-dashboard-page-heading] p,
|
|
71
|
+
html[data-dashboard-layout] [data-dashboard-card] > header p {
|
|
72
|
+
color: var(--dashboard-muted);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
html[data-dashboard-layout] [data-dashboard-button]:focus-visible,
|
|
76
|
+
html[data-dashboard-layout] [data-sidebar-item]:focus-visible {
|
|
77
|
+
outline: 2px solid var(--dashboard-accent);
|
|
78
|
+
outline-offset: 2px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
html[data-dashboard-layout] [data-dashboard-button="primary"] {
|
|
82
|
+
color: var(--dashboard-accent-text);
|
|
83
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--dashboard-accent-fill) 94%, white), var(--dashboard-accent-fill));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
html[data-dashboard-layout] [data-dashboard-button="primary"]:hover {
|
|
87
|
+
background: var(--dashboard-accent-fill);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
html[data-dashboard-layout] [data-dashboard-button="secondary"] {
|
|
91
|
+
color: var(--dashboard-text);
|
|
92
|
+
background: var(--dashboard-surface);
|
|
93
|
+
border-color: var(--dashboard-border);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
html[data-dashboard-layout] [data-dashboard-button="secondary"]:hover {
|
|
97
|
+
background: var(--dashboard-surface-muted);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
html[data-dashboard-layout] [data-dashboard-hero] {
|
|
101
|
+
align-items: center;
|
|
102
|
+
padding: clamp(1rem, 4vw, 2rem);
|
|
103
|
+
border-radius: var(--dashboard-radius);
|
|
104
|
+
background: var(--dashboard-overview-gradient);
|
|
105
|
+
box-shadow: 0 8px 24px rgb(0 0 0 / .12);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
html[data-dashboard-layout] [data-dashboard-hero] [data-dashboard-page-heading] h1 {
|
|
109
|
+
color: var(--dashboard-hero-text);
|
|
110
|
+
font-size: clamp(1.5rem, 3vw, 2rem);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
html[data-dashboard-layout] [data-dashboard-hero] [data-dashboard-page-heading] p {
|
|
114
|
+
color: var(--dashboard-hero-text);
|
|
115
|
+
opacity: .87;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
html[data-dashboard-layout] [data-stx-sidebar] {
|
|
119
|
+
color: var(--dashboard-text);
|
|
120
|
+
background: var(--dashboard-window);
|
|
121
|
+
border-color: var(--dashboard-border);
|
|
122
|
+
-webkit-backdrop-filter: none;
|
|
123
|
+
backdrop-filter: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
html[data-dashboard-layout] .stx-sidebar-rim {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
html[data-dashboard-layout] [data-sidebar-selection="accent"] {
|
|
131
|
+
--stx-sidebar-accent: var(--dashboard-accent-fill);
|
|
132
|
+
--stx-sidebar-on-selection: var(--dashboard-accent-text);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
html[data-dashboard-layout] [data-sidebar-item] {
|
|
136
|
+
color: inherit;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
html[data-dashboard-layout] [data-sidebar-item]:hover {
|
|
140
|
+
background-color: var(--dashboard-surface-muted);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
html[data-dashboard-layout] [data-sidebar-section-header] {
|
|
144
|
+
color: var(--dashboard-muted);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (min-width: 1024px) {
|
|
148
|
+
html[data-dashboard-layout="inset"]:has([data-dashboard-content]),
|
|
149
|
+
html[data-dashboard-layout="inset"]:has([data-dashboard-content]) body {
|
|
150
|
+
height: 100%;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
background: var(--dashboard-window);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
html[data-dashboard-layout="inset"] [data-stx-content][data-dashboard-content] {
|
|
156
|
+
margin-block: 8px;
|
|
157
|
+
margin-right: 8px;
|
|
158
|
+
min-height: 0;
|
|
159
|
+
height: calc(100dvh - 16px);
|
|
160
|
+
overflow-y: auto;
|
|
161
|
+
border-radius: var(--dashboard-radius);
|
|
162
|
+
box-shadow: 0 0 0 .5px var(--dashboard-border), 0 10px 40px rgb(0 0 0 / .14);
|
|
163
|
+
scrollbar-width: thin;
|
|
164
|
+
scrollbar-color: var(--dashboard-border) transparent;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
html[data-dashboard-navigation="tiles"] [data-sidebar-item] {
|
|
169
|
+
min-height: 34px;
|
|
170
|
+
margin-inline: 3px;
|
|
171
|
+
width: calc(100% - 6px);
|
|
172
|
+
border-radius: 8px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
html[data-dashboard-navigation="tiles"] [data-sidebar-selection][data-window-key] [data-sidebar-item][data-active="true"],
|
|
176
|
+
html[data-dashboard-navigation="tiles"] [data-sidebar-selection][data-window-key] [data-sidebar-item][data-active="true"]:hover {
|
|
177
|
+
background: color-mix(in srgb, var(--dashboard-accent) 17%, var(--dashboard-window));
|
|
178
|
+
color: var(--dashboard-text);
|
|
179
|
+
font-weight: 600;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
html[data-dashboard-navigation="tiles"] [data-sidebar-selection][data-window-key="false"] [data-sidebar-item][data-active="true"] {
|
|
183
|
+
background: var(--dashboard-surface-muted);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
html[data-dashboard-navigation="tiles"] [data-sidebar-item] span:has(> [data-sidebar-icon]) {
|
|
187
|
+
display: grid;
|
|
188
|
+
place-items: center;
|
|
189
|
+
flex: 0 0 24px;
|
|
190
|
+
width: 24px;
|
|
191
|
+
height: 24px;
|
|
192
|
+
border-radius: 7px;
|
|
193
|
+
background: linear-gradient(160deg, color-mix(in srgb, var(--dashboard-tile, var(--dashboard-accent-fill)) 75%, white), var(--dashboard-tile, var(--dashboard-accent-fill)));
|
|
194
|
+
box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 3px rgb(0 0 0 / .22);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
html[data-dashboard-navigation="tiles"] [data-sidebar-selection][data-window-key] [data-sidebar-item] [data-sidebar-icon] {
|
|
198
|
+
width: 14px;
|
|
199
|
+
height: 14px;
|
|
200
|
+
color: white;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
html[data-dashboard-navigation="tiles"] [data-sidebar-selection][data-window-key] [data-sidebar-item][data-active="true"] :is([data-sidebar-count], [data-sidebar-chevron]) {
|
|
204
|
+
color: var(--dashboard-muted);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="library"] { --dashboard-tile: #2863bb; }
|
|
208
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="app"] { --dashboard-tile: #b64a27; }
|
|
209
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="data"] { --dashboard-tile: #126a83; }
|
|
210
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="content"] { --dashboard-tile: #18794b; }
|
|
211
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="commerce"] { --dashboard-tile: #2863bb; }
|
|
212
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="analytics"] { --dashboard-tile: #b64a27; }
|
|
213
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="marketing"] { --dashboard-tile: #a12d79; }
|
|
214
|
+
html[data-dashboard-theme="system-cleaner"] [data-section-id="management"] { --dashboard-tile: #4d579f; }
|
|
215
|
+
|
|
216
|
+
html[data-dashboard-overview="immersive"]:has([data-dashboard-overview-page]) body {
|
|
217
|
+
background: var(--dashboard-overview-gradient) fixed;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
html[data-dashboard-overview="immersive"]:has([data-dashboard-overview-page]) :is([data-dashboard-content], [data-dashboard-web-sidebar], [data-dashboard-mobile-bar]) {
|
|
221
|
+
--dashboard-canvas: transparent;
|
|
222
|
+
--dashboard-window: transparent;
|
|
223
|
+
--dashboard-text: var(--dashboard-hero-text);
|
|
224
|
+
--dashboard-muted: color-mix(in srgb, var(--dashboard-hero-text) 82%, transparent);
|
|
225
|
+
--dashboard-surface: color-mix(in srgb, var(--dashboard-hero-text) 9%, transparent);
|
|
226
|
+
--dashboard-surface-muted: color-mix(in srgb, var(--dashboard-hero-text) 16%, transparent);
|
|
227
|
+
--dashboard-border: color-mix(in srgb, var(--dashboard-hero-text) 24%, transparent);
|
|
228
|
+
--dashboard-accent: var(--dashboard-hero-text);
|
|
229
|
+
color: var(--dashboard-text);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-content]:has([data-dashboard-overview-page]),
|
|
233
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-hero] {
|
|
234
|
+
box-shadow: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-hero] {
|
|
238
|
+
background: transparent;
|
|
239
|
+
padding-inline: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
html[data-dashboard-overview="immersive"]:has([data-dashboard-overview-page]) [data-dashboard-mobile-bar] > :is(button, span) {
|
|
243
|
+
color: inherit;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
html[data-dashboard-overview="immersive"] [data-dashboard-overview-page] [data-dashboard-button="secondary"] {
|
|
247
|
+
border-radius: 999px;
|
|
248
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { applyDashboardTheme, readDashboardThemes, resolveDashboardTheme } from './dashboard-themes'
|
|
2
|
+
|
|
3
|
+
const root = document.documentElement
|
|
4
|
+
try {
|
|
5
|
+
const { active, installed } = readDashboardThemes(window.localStorage)
|
|
6
|
+
applyDashboardTheme(root, resolveDashboardTheme(active, installed))
|
|
7
|
+
}
|
|
8
|
+
catch {
|
|
9
|
+
// The browser can refuse access to localStorage itself.
|
|
10
|
+
applyDashboardTheme(root)
|
|
11
|
+
}
|