@coreframe/dashboard 0.3.33 → 0.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -76,37 +76,44 @@ Projects can opt into app-owned customization without copying the default scaffo
76
76
 
77
77
  - `dashboard/document.tsx`, referenced as `document` in `dashboard.config.ts`, can provide a custom
78
78
  document `Layout` and optional `links` or `meta` exports;
79
- - `dashboard/styles.css` is loaded after the package stylesheet and generated Panda stylesheet,
80
- while `panda.config.ts` remains the theme and generated-style override; and
79
+ - `dashboard/panda.config.ts` owns theme and style overrides; an optional `dashboard/styles.css`
80
+ loads after the generated Panda stylesheet for additional project CSS; and
81
81
  - `vite.config.ts` and `react-router.config.ts` remain small tool-level adapters for build changes.
82
82
 
83
83
  ## Style overrides
84
84
 
85
- Keep customization in the project; package styles do not need to be copied or ejected. Styles load
86
- in this order: the package shell, `dashboard/styled-system/styles.css`, then `dashboard/styles.css`.
87
- The package stylesheet includes reusable UI defaults and tokens.
88
- Normal unlayered rules in `styles.css` take precedence over layered Panda rules. Shell rules are
89
- unlayered, so match the relevant selector's specificity when overriding them.
85
+ The dashboard app's Panda build generates all dashboard styles, including the document reset,
86
+ shell, tokens, and UI recipes. `@coreframe/dashboard` does not ship a compiled stylesheet.
87
+ The styles module loads Inter's font stylesheet, then `dashboard/styled-system/styles.css`, then
88
+ an optional `dashboard/styles.css`. Panda controls the layer order; shell and document rules live
89
+ in its `base` layer. Normal unlayered project CSS takes precedence over normal layered rules.
90
90
 
91
91
  The dashboard Panda config includes `coreframeDashboardPreset()` from `@coreframe/panda` and
92
- generates all dashboard recipe variants because package components select variants at runtime.
93
- Customize `theme.extend.semanticTokens.colors.dashboard` for shared colors, or
94
- `theme.extend.recipes` and `theme.extend.slotRecipes` for reusable UI defaults. The color roles are
95
- `canvas`, `panel`, `ink`, `muted`, `border`, `accent`, `danger`, `info`, `success`, and `warning`.
96
- The shell consumes the same color tokens, with fallback values when no tokens are generated.
97
-
98
- For logo placement and targeted menu changes, use the public `.coreframe-dashboard__*` selectors in
99
- `dashboard/styles.css`, for example:
100
-
101
- ```css
102
- .coreframe-dashboard__floating-navigation {
103
- top: 1.5rem;
104
- left: 1.5rem;
105
- }
92
+ statically generates all dashboard recipe variants because package components select variants at
93
+ runtime. Keep that `staticCss.recipes` configuration when customizing the app. The preset installs
94
+ document-wide styles, so use it only in the dedicated dashboard build, not the host app's Panda config.
106
95
 
107
- .coreframe-dashboard__navigation-link[aria-current="page"] {
108
- font-weight: 700;
109
- }
96
+ Customize `theme.extend.semanticTokens.colors.dashboard` for shared colors, `theme.extend.tokens.fonts`
97
+ for typography, and `theme.extend.recipes` or `theme.extend.slotRecipes` for reusable UI defaults.
98
+ The color roles are `canvas`, `panel`, `ink`, `muted`, `border`, `accent`, `danger`, `info`,
99
+ `success`, and `warning`. Shell styles consume the same tokens as the UI components.
100
+
101
+ For targeted menu changes, extend the public `.coreframe-dashboard__*` selectors through
102
+ `globalCss.extend` in `dashboard/panda.config.ts`. Using `extend` preserves the other defaults
103
+ for each selector:
104
+
105
+ ```ts
106
+ globalCss: {
107
+ extend: {
108
+ ".coreframe-dashboard__floating-navigation": {
109
+ top: "1.5rem",
110
+ left: "1.5rem",
111
+ },
112
+ '.coreframe-dashboard__navigation-link[aria-current="page"]': {
113
+ fontWeight: "700",
114
+ },
115
+ },
116
+ },
110
117
  ```
111
118
 
112
119
  The logo button exposes `aria-expanded`; navigation links expose `aria-current="page"` for the
@@ -115,9 +122,12 @@ such as `.dashboard-button` and `.dashboard-section__root`.
115
122
 
116
123
  Sculpted source editing applies to supported project-owned static Panda `css({ ... })` sources;
117
124
  it does not redirect package styles into project overrides or edit config recipes. Its current
118
- root-level development endpoints also require separate integration for the dashboard's proxied
119
- development server. The dashboard Vite config registers the plugin, but the default document does
120
- not mount its runtime yet. CSS and Panda overrides work independently of Sculpted.
125
+ root-level development endpoints need to be scoped to the dashboard's Vite base. Wrap the
126
+ dashboard's `sculpted()` plugin with `coreframeDashboardSculptedPlugin` from
127
+ `@coreframe/vite/dashboard-sculpted`; the generated dashboard does this and mounts the runtime in
128
+ development. The wrapper routes requests through `/__dashboard/` to this dashboard's own manifest
129
+ and writeback handlers. A custom document continues to get the runtime when it renders the root's
130
+ children. CSS and Panda overrides work independently of Sculpted.
121
131
 
122
132
  ## Runtime boundaries
123
133
 
@@ -1 +1 @@
1
- import{Links as e,Meta as t,Outlet as n,Scripts as r,ScrollRestoration as i}from"react-router";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{QueryClient as s,QueryClientProvider as c}from"@tanstack/react-query";import*as l from"virtual:coreframe-internal/dashboard/document";import"virtual:coreframe-internal/dashboard/styles";const u=new s({defaultOptions:{queries:{retry:1,staleTime:3e4}}});function d({children:n}){let s=l.Layout,d=a(c,{client:u,children:n});return s?a(s,{children:d}):o(`html`,{lang:`en`,children:[o(`head`,{children:[a(`meta`,{charSet:`UTF-8`}),a(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1`}),a(`title`,{children:`Coreframe Dashboard`}),a(t,{}),a(e,{})]}),o(`body`,{children:[d,a(i,{}),a(r,{})]})]})}const f=l.links,p=l.meta;function m(){let e=l.default;return a(e||n,{})}export{d as Layout,m as default,f as links,p as meta};
1
+ import{DashboardSculptedRuntime as e}from"./sculpted-runtime.js";import{Links as t,Meta as n,Outlet as r,Scripts as i,ScrollRestoration as a}from"react-router";import{Suspense as o,lazy as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{dashboardApplication as u,dashboardManifest as d}from"virtual:coreframe-internal/dashboard/manifest";import{QueryClient as f,QueryClientProvider as p}from"@tanstack/react-query";import*as m from"virtual:coreframe-internal/dashboard/document";import"virtual:coreframe-internal/dashboard/styles";const h=new f({defaultOptions:{queries:{retry:1,staleTime:3e4}}}),g=import.meta.env.VITE_COREFRAME_MANAGED_DEV_OVERLAY_DEBUG===`1`,_=import.meta.env.DEV&&(import.meta.env.COREFRAME_MANAGED_DEV||g),v=import.meta.env.DEV?s(()=>import(`virtual:coreframe-internal/dashboard/managed-dev-overlay`).then(({ManagedDevOverlay:e})=>({default:e}))):null;function y({children:r}){let s=m.Layout,u=l(p,{client:h,children:[r,import.meta.env.DEV?c(e,{}):null,v&&_?c(o,{fallback:null,children:c(v,{debug:g})}):null]});return s?c(s,{children:u}):l(`html`,{lang:`en`,children:[l(`head`,{children:[c(`meta`,{charSet:`UTF-8`}),c(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1`}),c(n,{}),c(t,{})]}),l(`body`,{children:[u,c(a,{}),c(i,{})]})]})}const b=({location:e})=>{let t=e.pathname.split(`/`).filter(Boolean)[0];return[{title:`${d.find(e=>e.path===t)?.title||`Dashboard`} | ${u.name}`}]},x=m.links??(()=>[{rel:`icon`,href:u.favicon}]),S=m.meta??b;function C(){let e=m.default;return c(e||r,{})}export{y as Layout,C as default,x as links,S as meta};
@@ -0,0 +1 @@
1
+ import{useEffect as e}from"react";import{enabled as t}from"virtual:coreframe-internal/dashboard/sculpted-availability";function n(){return e(()=>{import.meta.env.DEV&&t&&import(`virtual:coreframe-internal/dashboard/sculpted-runtime`)},[]),null}export{n as DashboardSculptedRuntime};
@@ -9,7 +9,9 @@ declare function DashboardShell({
9
9
  declare function DashboardIndexRedirect({
10
10
  pages
11
11
  }: DashboardShellProps): import("react").JSX.Element;
12
- declare function DashboardEmptyState(): import("react").JSX.Element;
12
+ declare function DashboardEmptyState({
13
+ pages
14
+ }: Partial<DashboardShellProps>): import("react").JSX.Element;
13
15
  declare function DashboardErrorBoundary(): import("react").JSX.Element;
14
16
  //#endregion
15
17
  export { DashboardEmptyState, DashboardErrorBoundary, DashboardIndexRedirect, DashboardShell, DashboardShellProps };
@@ -1,6 +1,6 @@
1
- import{DashboardMenu as e,DashboardNavigationContext as t}from"./menu.js";import{Link as n,Navigate as r,Outlet as i,isRouteErrorResponse as a,useLocation as o,useRouteError as s}from"react-router";import{jsx as c,jsxs as l}from"react/jsx-runtime";function u({pages:n,application:r}){let a=o().pathname.split(`/`).filter(Boolean)[0],s=n.find(e=>e.path===a)??(a?void 0:n[0]);return l(t,{value:{pages:n,application:r},children:[s?.layout===`standalone`?null:c(e,{className:`coreframe-dashboard__floating-navigation`}),c(i,{})]})}function d({pages:e}){let t=e[0];return t&&e.some(e=>e.source===`app`)?c(r,{replace:!0,to:`/${t.path}`}):c(f,{})}function f(){return l(`main`,{className:`coreframe-dashboard__introduction`,children:[c(`p`,{className:`coreframe-dashboard__eyebrow`,children:`Coreframe Dashboard`}),c(`h1`,{children:`Your dashboard starts here`}),c(`p`,{children:`A space for your app’s internal tools. Build ordinary React Router pages with your own content, layout, and API access.`}),l(`section`,{children:[c(`h2`,{children:`Add your first page`}),l(`p`,{children:[`Create `,c(`code`,{children:`dashboard/pages/overview/route.tsx`}),`:`]}),c(`pre`,{children:c(`code`,{children:`export default function Overview() {
1
+ import{DashboardMenu as e,DashboardNavigationContext as t}from"./menu.js";import{Link as n,Navigate as r,Outlet as i,isRouteErrorResponse as a,useLocation as o,useRouteError as s}from"react-router";import{jsx as c,jsxs as l}from"react/jsx-runtime";function u({pages:n,application:r}){let a=o().pathname.split(`/`).filter(Boolean)[0],s=n.find(e=>e.path===a)??(a?void 0:n[0]);return l(t,{value:{pages:n,application:r},children:[s?.layout===`standalone`?null:c(e,{className:`coreframe-dashboard__floating-navigation`}),c(i,{})]})}function d({pages:e}){let t=e[0];return t&&e.some(e=>e.source===`app`)?c(r,{replace:!0,to:`/${t.path}`}):c(f,{pages:e})}function f({pages:e=[]}){return l(`main`,{className:`coreframe-dashboard__introduction`,children:[c(`p`,{className:`coreframe-dashboard__eyebrow`,children:`Coreframe Dashboard`}),c(`h1`,{children:`Your dashboard starts here`}),c(`p`,{children:`A space for your app’s internal tools. Build ordinary React Router pages with your own content, layout, and API access.`}),e.length>0?l(`section`,{children:[c(`h2`,{children:`Installed tools`}),c(`ul`,{children:e.map(e=>c(`li`,{children:c(n,{to:`/${e.path}`,children:e.title})},e.id))})]}):null,l(`section`,{children:[c(`h2`,{children:`Add your first page`}),l(`p`,{children:[`Create `,c(`code`,{children:`dashboard/pages/overview/route.tsx`}),`:`]}),c(`pre`,{children:c(`code`,{children:`export default function Overview() {
2
2
  return <main><h1>Overview</h1></main>
3
3
  }`})}),l(`p`,{children:[`Add an adjacent `,c(`code`,{children:`page.yaml`}),` with a`,` `,c(`a`,{href:`https://icones.js.org/collection/tabler`,children:`Tabler icon`}),` and optional title:`]}),c(`pre`,{children:c(`code`,{children:`icon: home
4
- title: Overview`})}),l(`p`,{children:[`The page becomes available at `,c(`code`,{children:`/__dashboard/overview`}),`. This introduction disappears once an app-owned page exists.`]})]}),l(`section`,{children:[c(`h2`,{children:`Make it yours`}),l(`p`,{children:[`Pages own their headings and spacing. Customize default styles in`,` `,c(`code`,{children:`dashboard/styles.css`}),` and `,c(`code`,{children:`dashboard/panda.config.ts`}),`. A logo menu appears when there is more than one page.`]}),l(`p`,{children:[`Register optional reusable plugins in `,c(`code`,{children:`dashboard/dashboard.config.ts`}),`. App-owned pages are discovered automatically and do not need registration.`]})]}),l(`section`,{children:[c(`h2`,{children:`Disable the dashboard build`}),l(`p`,{children:[`If you do not need the dashboard, add this setting to the existing`,` `,c(`code`,{children:`defineConfig`}),` call in your project’s `,c(`code`,{children:`coreframe.config.ts`}),`:`]}),c(`pre`,{children:c(`code`,{children:`dashboard: {
4
+ title: Overview`})}),l(`p`,{children:[`The page becomes available at `,c(`code`,{children:`/__dashboard/overview`}),`. This introduction disappears once an app-owned page exists.`]})]}),l(`section`,{children:[c(`h2`,{children:`Make it yours`}),l(`p`,{children:[`Pages own their headings and spacing. Customize default styles in`,` `,c(`code`,{children:`dashboard/panda.config.ts`}),`. A logo menu appears when there is more than one page.`]}),l(`p`,{children:[`Register optional reusable plugins in `,c(`code`,{children:`dashboard/dashboard.config.ts`}),`. App-owned pages are discovered automatically and do not need registration.`]})]}),l(`section`,{children:[c(`h2`,{children:`Disable the dashboard build`}),l(`p`,{children:[`If you do not need the dashboard, add this setting to the existing`,` `,c(`code`,{children:`defineConfig`}),` call in your project’s `,c(`code`,{children:`coreframe.config.ts`}),`:`]}),c(`pre`,{children:c(`code`,{children:`dashboard: {
5
5
  enabled: false,
6
6
  },`})}),c(`p`,{children:`This skips the dashboard bundle and its local development server. Remove the setting to enable the dashboard again.`})]})]})}function p(){let e=s(),t=a(e)&&e.status===404,r=import.meta.env.DEV&&e instanceof Error?e.message:t?`The requested dashboard page does not exist.`:`The dashboard hit an unexpected error.`;return l(`main`,{className:`coreframe-dashboard__state`,children:[c(`p`,{className:`coreframe-dashboard__eyebrow`,children:`Coreframe Dashboard`}),c(`h1`,{children:t?`Page not found`:`Dashboard unavailable`}),c(`p`,{children:r}),c(n,{className:`coreframe-dashboard__button`,to:`/`,children:`Go to dashboard`})]})}export{f as DashboardEmptyState,p as DashboardErrorBoundary,d as DashboardIndexRedirect,u as DashboardShell};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreframe/dashboard",
3
- "version": "0.3.33",
3
+ "version": "0.3.35",
4
4
  "description": "Reusable dashboard composition, shell, plugin, and authenticated runtime for Coreframe apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,8 +55,7 @@
55
55
  "./app": {
56
56
  "types": "./dist/package/app/index.d.ts",
57
57
  "default": "./dist/package/app/index.js"
58
- },
59
- "./shell.css": "./dist/package/shell.css"
58
+ }
60
59
  },
61
60
  "dependencies": {
62
61
  "@fontsource-variable/inter": "^5.2.8",
@@ -83,12 +82,12 @@
83
82
  "typescript": "6.0.3",
84
83
  "vite": "^8.3.5",
85
84
  "vitest": "^4.1.10",
86
- "@coreframe/panda": "0.1.14"
85
+ "@coreframe/panda": "0.1.15"
87
86
  },
88
87
  "scripts": {
89
88
  "build": "pnpm build:server",
90
89
  "codegen": "panda codegen",
91
- "build:server": "panda cssgen --outfile .coreframe/dashboard.css && tsdown && node scripts/copy-package-assets.mjs",
90
+ "build:server": "tsdown",
92
91
  "test": "vitest run --reporter=minimal",
93
92
  "typecheck": "tsc --noEmit -p tsconfig.json",
94
93
  "format": "oxlint --fix && oxfmt",
@@ -1,1187 +0,0 @@
1
- @import "@fontsource-variable/inter";
2
-
3
- @layer reset, base, tokens, recipes, utilities;
4
-
5
- /* Dashboard documents are separate applications and must not depend on the host app's reset. */
6
- @layer reset {
7
- *,
8
- *::before,
9
- *::after {
10
- box-sizing: border-box;
11
- }
12
-
13
- * {
14
- margin: 0;
15
- }
16
-
17
- html {
18
- -webkit-text-size-adjust: 100%;
19
- -webkit-tap-highlight-color: transparent;
20
- text-size-adjust: 100%;
21
- overscroll-behavior-y: none;
22
-
23
- color: var(--colors-dashboard-ink, #1f2937);
24
- background: var(--colors-dashboard-panel, #ffffff);
25
- font-family: "Inter Variable", Inter, system-ui, sans-serif;
26
- }
27
-
28
- html:focus-within {
29
- scroll-behavior: smooth;
30
- }
31
-
32
- body {
33
- min-height: 100svh;
34
- overscroll-behavior-y: none;
35
- font-size: 0.875rem;
36
- line-height: 1.5;
37
- }
38
-
39
- img,
40
- picture,
41
- video,
42
- canvas,
43
- svg {
44
- display: block;
45
- max-width: 100%;
46
- }
47
-
48
- img:not([draggable="true"]) {
49
- -webkit-user-drag: none;
50
- }
51
-
52
- button,
53
- input,
54
- textarea,
55
- select {
56
- font: inherit;
57
- letter-spacing: inherit;
58
- }
59
-
60
- textarea:not([rows]) {
61
- min-height: 10em;
62
- }
63
-
64
- textarea {
65
- resize: vertical;
66
- }
67
-
68
- button,
69
- [role="button"] {
70
- cursor: pointer;
71
- }
72
-
73
- :disabled {
74
- cursor: not-allowed;
75
- }
76
-
77
- :focus:not(:focus-visible) {
78
- outline: none;
79
- }
80
-
81
- a {
82
- color: inherit;
83
- text-decoration-skip-ink: auto;
84
- }
85
-
86
- table {
87
- border-collapse: collapse;
88
- border-spacing: 0;
89
- }
90
-
91
- p,
92
- h1,
93
- h2,
94
- h3,
95
- h4,
96
- h5,
97
- h6 {
98
- overflow-wrap: break-word;
99
- }
100
-
101
- @media (prefers-reduced-motion: reduce) {
102
- html:focus-within {
103
- scroll-behavior: auto;
104
- }
105
-
106
- *,
107
- *::before,
108
- *::after {
109
- animation-duration: 0.01ms !important;
110
- animation-iteration-count: 1 !important;
111
- scroll-behavior: auto !important;
112
- transition-duration: 0.01ms !important;
113
- }
114
-
115
- ::view-transition-group(*),
116
- ::view-transition-old(*),
117
- ::view-transition-new(*) {
118
- animation: none !important;
119
- }
120
- }
121
- }
122
-
123
- .coreframe-dashboard__menu,
124
- .coreframe-dashboard__introduction,
125
- .coreframe-dashboard__state {
126
- --dashboard-background: var(--colors-dashboard-canvas, #f7f8fa);
127
- --dashboard-border: var(--colors-dashboard-border, #dfe3e8);
128
- --dashboard-foreground: var(--colors-dashboard-ink, #1f2937);
129
- --dashboard-muted: var(--colors-dashboard-muted, #68717d);
130
- --dashboard-surface: var(--colors-dashboard-panel, #ffffff);
131
- --dashboard-accent: var(--colors-dashboard-accent, #4f46e5);
132
- color: var(--dashboard-foreground);
133
- font-family: "Inter Variable", Inter, system-ui, sans-serif;
134
- }
135
-
136
- .coreframe-dashboard__menu {
137
- position: relative;
138
- display: inline-block;
139
- vertical-align: middle;
140
- line-height: 1;
141
- }
142
-
143
- .coreframe-dashboard__floating-navigation {
144
- position: fixed;
145
- z-index: 50;
146
- top: max(1rem, env(safe-area-inset-top));
147
- left: max(1rem, env(safe-area-inset-left));
148
- }
149
-
150
- .coreframe-dashboard__logo {
151
- display: grid;
152
- width: 2.75rem;
153
- height: 2.75rem;
154
- place-items: center;
155
- border: 1px solid var(--dashboard-border);
156
- border-radius: 0.75rem;
157
- background: var(--dashboard-surface);
158
- color: var(--dashboard-foreground);
159
- padding: 0.5rem;
160
- box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
161
- font-size: 1rem;
162
- font-weight: 700;
163
- }
164
-
165
- .coreframe-dashboard__logo:hover,
166
- .coreframe-dashboard__logo[aria-expanded="true"] {
167
- background: var(--dashboard-background);
168
- }
169
-
170
- .coreframe-dashboard__mark {
171
- width: 1.75rem;
172
- height: 1.75rem;
173
- object-fit: contain;
174
- }
175
-
176
- /* The padding bridges the gap so the popover remains hoverable from the logo. */
177
- .coreframe-dashboard__popover {
178
- position: absolute;
179
- z-index: 1;
180
- top: 100%;
181
- left: 0;
182
- width: min(18rem, calc(100vw - 2rem));
183
- padding-top: 0.5rem;
184
- }
185
-
186
- .coreframe-dashboard__navigation {
187
- max-height: calc(100svh - 6rem);
188
- overflow: auto;
189
- border: 1px solid var(--dashboard-border);
190
- border-radius: 0.75rem;
191
- background: var(--dashboard-surface);
192
- padding: 0.5rem;
193
- box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
194
- line-height: 1.5;
195
- }
196
-
197
- .coreframe-dashboard__navigation-list {
198
- display: grid;
199
- gap: 0.1875rem;
200
- margin: 0;
201
- padding: 0;
202
- list-style: none;
203
- }
204
-
205
- .coreframe-dashboard__navigation-link {
206
- display: flex;
207
- min-height: 2.75rem;
208
- min-width: 0;
209
- align-items: center;
210
- gap: 0.625rem;
211
- border-radius: 0.375rem;
212
- color: var(--dashboard-muted);
213
- padding: 0.5rem;
214
- font-size: 0.8125rem;
215
- font-weight: 500;
216
- text-decoration: none;
217
- }
218
-
219
- .coreframe-dashboard__navigation-link:hover {
220
- background: var(--dashboard-background);
221
- color: var(--dashboard-foreground);
222
- }
223
-
224
- .coreframe-dashboard__navigation-link[aria-current="page"] {
225
- background: color-mix(in srgb, var(--dashboard-accent) 8%, var(--dashboard-surface));
226
- color: var(--dashboard-foreground);
227
- }
228
-
229
- .coreframe-dashboard__navigation-icon {
230
- width: 1.25rem;
231
- height: 1.25rem;
232
- flex: 0 0 auto;
233
- }
234
-
235
- .coreframe-dashboard__navigation-link[aria-current="page"] .coreframe-dashboard__navigation-icon {
236
- color: var(--dashboard-accent);
237
- }
238
-
239
- .coreframe-dashboard__navigation-text {
240
- overflow-wrap: anywhere;
241
- }
242
-
243
- .coreframe-dashboard__state {
244
- display: flex;
245
- width: min(44rem, calc(100% - 2.5rem));
246
- min-height: 70svh;
247
- flex-direction: column;
248
- align-items: flex-start;
249
- justify-content: center;
250
- margin: 0 auto;
251
- }
252
-
253
- .coreframe-dashboard__introduction {
254
- width: min(100%, 52rem);
255
- margin: 0 auto;
256
- padding: 5rem clamp(1.25rem, 4vw, 3rem) 3rem;
257
- line-height: 1.6;
258
- }
259
-
260
- .coreframe-dashboard__introduction h1 {
261
- font-size: clamp(1.75rem, 4vw, 2.5rem);
262
- letter-spacing: -0.035em;
263
- line-height: 1.2;
264
- }
265
-
266
- .coreframe-dashboard__introduction section {
267
- margin-top: 2rem;
268
- }
269
-
270
- .coreframe-dashboard__introduction h2 {
271
- font-size: 1.125rem;
272
- letter-spacing: -0.015em;
273
- }
274
-
275
- .coreframe-dashboard__introduction p {
276
- margin-top: 0.75rem;
277
- color: var(--dashboard-muted);
278
- }
279
-
280
- .coreframe-dashboard__introduction pre {
281
- overflow: auto;
282
- margin-top: 0.75rem;
283
- border: 1px solid var(--dashboard-border);
284
- border-radius: 0.75rem;
285
- background: var(--dashboard-background);
286
- padding: 1rem;
287
- font-size: 0.8125rem;
288
- user-select: text;
289
- }
290
-
291
- .coreframe-dashboard__introduction code {
292
- overflow-wrap: anywhere;
293
- font-size: 0.9em;
294
- }
295
-
296
- .coreframe-dashboard__state h1 {
297
- margin: 0;
298
- font-size: clamp(1.5rem, 4vw, 2rem);
299
- letter-spacing: -0.025em;
300
- line-height: 1.2;
301
- }
302
-
303
- .coreframe-dashboard__state > p:last-of-type {
304
- max-width: 44rem;
305
- margin: 0.65rem 0 0;
306
- color: var(--dashboard-muted);
307
- line-height: 1.6;
308
- }
309
-
310
- .coreframe-dashboard__eyebrow {
311
- margin: 0 0 0.35rem;
312
- color: var(--dashboard-muted);
313
- font-size: 0.6875rem;
314
- font-weight: 700;
315
- letter-spacing: 0.08em;
316
- text-transform: uppercase;
317
- }
318
-
319
- .coreframe-dashboard__button {
320
- margin-top: 1rem;
321
- border-radius: 0.375rem;
322
- background: var(--dashboard-accent);
323
- color: white;
324
- padding: 0.5rem 0.75rem;
325
- font-weight: 600;
326
- text-decoration: none;
327
- }
328
-
329
- .coreframe-dashboard__logo:focus-visible,
330
- .coreframe-dashboard__navigation-link:focus-visible,
331
- .coreframe-dashboard__button:focus-visible {
332
- outline: 2px solid var(--dashboard-accent);
333
- outline-offset: 2px;
334
- }
335
-
336
- @layer reset, base, tokens, recipes, utilities;
337
- @layer recipes { @layer base, slots, variants, compound_variants; }
338
- @layer recipes.slots { @layer base, variants, compound_variants; }
339
- @layer base {
340
- :root {
341
- --made-with-panda: '🐼';
342
- }
343
- }
344
- @layer tokens {
345
- :where(:root, :host) {
346
- --colors-current: currentcolor;
347
- --colors-transparent: oklch(0 0 0 / 0);
348
- --colors-black: #000;
349
- --colors-white: #fff;
350
- --colors-slate-50: oklch(98.4% 0.003 247.858);
351
- --colors-slate-100: oklch(96.8% 0.007 247.896);
352
- --colors-slate-200: oklch(92.9% 0.013 255.508);
353
- --colors-slate-300: oklch(86.9% 0.022 252.894);
354
- --colors-slate-400: oklch(70.4% 0.04 256.788);
355
- --colors-slate-500: oklch(55.4% 0.046 257.417);
356
- --colors-slate-600: oklch(44.6% 0.043 257.281);
357
- --colors-slate-700: oklch(37.2% 0.044 257.287);
358
- --colors-slate-800: oklch(27.9% 0.041 260.031);
359
- --colors-slate-900: oklch(20.8% 0.042 265.755);
360
- --colors-slate-950: oklch(12.9% 0.042 264.695);
361
- --colors-gray-50: oklch(98.5% 0.002 247.839);
362
- --colors-gray-100: oklch(96.7% 0.003 264.542);
363
- --colors-gray-200: oklch(92.8% 0.006 264.531);
364
- --colors-gray-300: oklch(87.2% 0.01 258.338);
365
- --colors-gray-400: oklch(70.7% 0.022 261.325);
366
- --colors-gray-500: oklch(55.1% 0.027 264.364);
367
- --colors-gray-600: oklch(44.6% 0.03 256.802);
368
- --colors-gray-700: oklch(37.3% 0.034 259.733);
369
- --colors-gray-800: oklch(27.8% 0.033 256.848);
370
- --colors-gray-900: oklch(21% 0.034 264.665);
371
- --colors-gray-950: oklch(13% 0.028 261.692);
372
- --colors-zinc-50: oklch(98.5% 0 0);
373
- --colors-zinc-100: oklch(96.7% 0.001 286.375);
374
- --colors-zinc-200: oklch(92% 0.004 286.32);
375
- --colors-zinc-300: oklch(87.1% 0.006 286.286);
376
- --colors-zinc-400: oklch(70.5% 0.015 286.067);
377
- --colors-zinc-500: oklch(55.2% 0.016 285.938);
378
- --colors-zinc-600: oklch(44.2% 0.017 285.786);
379
- --colors-zinc-700: oklch(37% 0.013 285.805);
380
- --colors-zinc-800: oklch(27.4% 0.006 286.033);
381
- --colors-zinc-900: oklch(21% 0.006 285.885);
382
- --colors-zinc-950: oklch(14.1% 0.005 285.823);
383
- --colors-neutral-50: oklch(98.5% 0 0);
384
- --colors-neutral-100: oklch(97% 0 0);
385
- --colors-neutral-200: oklch(92.2% 0 0);
386
- --colors-neutral-300: oklch(87% 0 0);
387
- --colors-neutral-400: oklch(70.8% 0 0);
388
- --colors-neutral-500: oklch(55.6% 0 0);
389
- --colors-neutral-600: oklch(43.9% 0 0);
390
- --colors-neutral-700: oklch(37.1% 0 0);
391
- --colors-neutral-800: oklch(26.9% 0 0);
392
- --colors-neutral-900: oklch(20.5% 0 0);
393
- --colors-neutral-950: oklch(14.5% 0 0);
394
- --colors-stone-50: oklch(98.5% 0.001 106.423);
395
- --colors-stone-100: oklch(97% 0.001 106.424);
396
- --colors-stone-200: oklch(92.3% 0.003 48.717);
397
- --colors-stone-300: oklch(86.9% 0.005 56.366);
398
- --colors-stone-400: oklch(70.9% 0.01 56.259);
399
- --colors-stone-500: oklch(55.3% 0.013 58.071);
400
- --colors-stone-600: oklch(44.4% 0.011 73.639);
401
- --colors-stone-700: oklch(37.4% 0.01 67.558);
402
- --colors-stone-800: oklch(26.8% 0.007 34.298);
403
- --colors-stone-900: oklch(21.6% 0.006 56.043);
404
- --colors-stone-950: oklch(14.7% 0.004 49.25);
405
- --colors-mauve-50: oklch(98.5% 0 0);
406
- --colors-mauve-100: oklch(96% 0.003 325.6);
407
- --colors-mauve-200: oklch(92.2% 0.005 325.62);
408
- --colors-mauve-300: oklch(86.5% 0.012 325.68);
409
- --colors-mauve-400: oklch(71.1% 0.019 323.02);
410
- --colors-mauve-500: oklch(54.2% 0.034 322.5);
411
- --colors-mauve-600: oklch(43.5% 0.029 321.78);
412
- --colors-mauve-700: oklch(36.4% 0.029 323.89);
413
- --colors-mauve-800: oklch(26.3% 0.024 320.12);
414
- --colors-mauve-900: oklch(21.2% 0.019 322.12);
415
- --colors-mauve-950: oklch(14.5% 0.008 326);
416
- --colors-olive-50: oklch(98.8% 0.003 106.5);
417
- --colors-olive-100: oklch(96.6% 0.005 106.5);
418
- --colors-olive-200: oklch(93% 0.007 106.5);
419
- --colors-olive-300: oklch(88% 0.011 106.6);
420
- --colors-olive-400: oklch(73.7% 0.021 106.9);
421
- --colors-olive-500: oklch(58% 0.031 107.3);
422
- --colors-olive-600: oklch(46.6% 0.025 107.3);
423
- --colors-olive-700: oklch(39.4% 0.023 107.4);
424
- --colors-olive-800: oklch(28.6% 0.016 107.4);
425
- --colors-olive-900: oklch(22.8% 0.013 107.4);
426
- --colors-olive-950: oklch(15.3% 0.006 107.1);
427
- --colors-mist-50: oklch(98.7% 0.002 197.1);
428
- --colors-mist-100: oklch(96.3% 0.002 197.1);
429
- --colors-mist-200: oklch(92.5% 0.005 214.3);
430
- --colors-mist-300: oklch(87.2% 0.007 219.6);
431
- --colors-mist-400: oklch(72.3% 0.014 214.4);
432
- --colors-mist-500: oklch(56% 0.021 213.5);
433
- --colors-mist-600: oklch(45% 0.017 213.2);
434
- --colors-mist-700: oklch(37.8% 0.015 216);
435
- --colors-mist-800: oklch(27.5% 0.011 216.9);
436
- --colors-mist-900: oklch(21.8% 0.008 223.9);
437
- --colors-mist-950: oklch(14.8% 0.004 228.8);
438
- --colors-taupe-50: oklch(98.6% 0.002 67.8);
439
- --colors-taupe-100: oklch(96% 0.002 17.2);
440
- --colors-taupe-200: oklch(92.2% 0.005 34.3);
441
- --colors-taupe-300: oklch(86.8% 0.007 39.5);
442
- --colors-taupe-400: oklch(71.4% 0.014 41.2);
443
- --colors-taupe-500: oklch(54.7% 0.021 43.1);
444
- --colors-taupe-600: oklch(43.8% 0.017 39.3);
445
- --colors-taupe-700: oklch(36.7% 0.016 35.7);
446
- --colors-taupe-800: oklch(26.8% 0.011 36.5);
447
- --colors-taupe-900: oklch(21.4% 0.009 43.1);
448
- --colors-taupe-950: oklch(14.7% 0.004 49.3);
449
- --colors-red-50: oklch(97.1% 0.013 17.38);
450
- --colors-red-100: oklch(93.6% 0.032 17.717);
451
- --colors-red-200: oklch(88.5% 0.062 18.334);
452
- --colors-red-300: oklch(80.8% 0.114 19.571);
453
- --colors-red-400: oklch(70.4% 0.191 22.216);
454
- --colors-red-500: oklch(63.7% 0.237 25.331);
455
- --colors-red-600: oklch(57.7% 0.245 27.325);
456
- --colors-red-700: oklch(50.5% 0.213 27.518);
457
- --colors-red-800: oklch(44.4% 0.177 26.899);
458
- --colors-red-900: oklch(39.6% 0.141 25.723);
459
- --colors-red-950: oklch(25.8% 0.092 26.042);
460
- --colors-orange-50: oklch(98% 0.016 73.684);
461
- --colors-orange-100: oklch(95.4% 0.038 75.164);
462
- --colors-orange-200: oklch(90.1% 0.076 70.697);
463
- --colors-orange-300: oklch(83.7% 0.128 66.29);
464
- --colors-orange-400: oklch(75% 0.183 55.934);
465
- --colors-orange-500: oklch(70.5% 0.213 47.604);
466
- --colors-orange-600: oklch(64.6% 0.222 41.116);
467
- --colors-orange-700: oklch(55.3% 0.195 38.402);
468
- --colors-orange-800: oklch(47% 0.157 37.304);
469
- --colors-orange-900: oklch(40.8% 0.123 38.172);
470
- --colors-orange-950: oklch(26.6% 0.079 36.259);
471
- --colors-amber-50: oklch(98.7% 0.022 95.277);
472
- --colors-amber-100: oklch(96.2% 0.059 95.617);
473
- --colors-amber-200: oklch(92.4% 0.12 95.746);
474
- --colors-amber-300: oklch(87.9% 0.169 91.605);
475
- --colors-amber-400: oklch(82.8% 0.189 84.429);
476
- --colors-amber-500: oklch(76.9% 0.188 70.08);
477
- --colors-amber-600: oklch(66.6% 0.179 58.318);
478
- --colors-amber-700: oklch(55.5% 0.163 48.998);
479
- --colors-amber-800: oklch(47.3% 0.137 46.201);
480
- --colors-amber-900: oklch(41.4% 0.112 45.904);
481
- --colors-amber-950: oklch(27.9% 0.077 45.635);
482
- --colors-yellow-50: oklch(98.7% 0.026 102.212);
483
- --colors-yellow-100: oklch(97.3% 0.071 103.193);
484
- --colors-yellow-200: oklch(94.5% 0.129 101.54);
485
- --colors-yellow-300: oklch(90.5% 0.182 98.111);
486
- --colors-yellow-400: oklch(85.2% 0.199 91.936);
487
- --colors-yellow-500: oklch(79.5% 0.184 86.047);
488
- --colors-yellow-600: oklch(68.1% 0.162 75.834);
489
- --colors-yellow-700: oklch(55.4% 0.135 66.442);
490
- --colors-yellow-800: oklch(47.6% 0.114 61.907);
491
- --colors-yellow-900: oklch(42.1% 0.095 57.708);
492
- --colors-yellow-950: oklch(28.6% 0.066 53.813);
493
- --colors-lime-50: oklch(98.6% 0.031 120.757);
494
- --colors-lime-100: oklch(96.7% 0.067 122.328);
495
- --colors-lime-200: oklch(93.8% 0.127 124.321);
496
- --colors-lime-300: oklch(89.7% 0.196 126.665);
497
- --colors-lime-400: oklch(84.1% 0.238 128.85);
498
- --colors-lime-500: oklch(76.8% 0.233 130.85);
499
- --colors-lime-600: oklch(64.8% 0.2 131.684);
500
- --colors-lime-700: oklch(53.2% 0.157 131.589);
501
- --colors-lime-800: oklch(45.3% 0.124 130.933);
502
- --colors-lime-900: oklch(40.5% 0.101 131.063);
503
- --colors-lime-950: oklch(27.4% 0.072 132.109);
504
- --colors-green-50: oklch(98.2% 0.018 155.826);
505
- --colors-green-100: oklch(96.2% 0.044 156.743);
506
- --colors-green-200: oklch(92.5% 0.084 155.995);
507
- --colors-green-300: oklch(87.1% 0.15 154.449);
508
- --colors-green-400: oklch(79.2% 0.209 151.711);
509
- --colors-green-500: oklch(72.3% 0.219 149.579);
510
- --colors-green-600: oklch(62.7% 0.194 149.214);
511
- --colors-green-700: oklch(52.7% 0.154 150.069);
512
- --colors-green-800: oklch(44.8% 0.119 151.328);
513
- --colors-green-900: oklch(39.3% 0.095 152.535);
514
- --colors-green-950: oklch(26.6% 0.065 152.934);
515
- --colors-emerald-50: oklch(97.9% 0.021 166.113);
516
- --colors-emerald-100: oklch(95% 0.052 163.051);
517
- --colors-emerald-200: oklch(90.5% 0.093 164.15);
518
- --colors-emerald-300: oklch(84.5% 0.143 164.978);
519
- --colors-emerald-400: oklch(76.5% 0.177 163.223);
520
- --colors-emerald-500: oklch(69.6% 0.17 162.48);
521
- --colors-emerald-600: oklch(59.6% 0.145 163.225);
522
- --colors-emerald-700: oklch(50.8% 0.118 165.612);
523
- --colors-emerald-800: oklch(43.2% 0.095 166.913);
524
- --colors-emerald-900: oklch(37.8% 0.077 168.94);
525
- --colors-emerald-950: oklch(26.2% 0.051 172.552);
526
- --colors-teal-50: oklch(98.4% 0.014 180.72);
527
- --colors-teal-100: oklch(95.3% 0.051 180.801);
528
- --colors-teal-200: oklch(91% 0.096 180.426);
529
- --colors-teal-300: oklch(85.5% 0.138 181.071);
530
- --colors-teal-400: oklch(77.7% 0.152 181.912);
531
- --colors-teal-500: oklch(70.4% 0.14 182.503);
532
- --colors-teal-600: oklch(60% 0.118 184.704);
533
- --colors-teal-700: oklch(51.1% 0.096 186.391);
534
- --colors-teal-800: oklch(43.7% 0.078 188.216);
535
- --colors-teal-900: oklch(38.6% 0.063 188.416);
536
- --colors-teal-950: oklch(27.7% 0.046 192.524);
537
- --colors-cyan-50: oklch(98.4% 0.019 200.873);
538
- --colors-cyan-100: oklch(95.6% 0.045 203.388);
539
- --colors-cyan-200: oklch(91.7% 0.08 205.041);
540
- --colors-cyan-300: oklch(86.5% 0.127 207.078);
541
- --colors-cyan-400: oklch(78.9% 0.154 211.53);
542
- --colors-cyan-500: oklch(71.5% 0.143 215.221);
543
- --colors-cyan-600: oklch(60.9% 0.126 221.723);
544
- --colors-cyan-700: oklch(52% 0.105 223.128);
545
- --colors-cyan-800: oklch(45% 0.085 224.283);
546
- --colors-cyan-900: oklch(39.8% 0.07 227.392);
547
- --colors-cyan-950: oklch(30.2% 0.056 229.695);
548
- --colors-sky-50: oklch(97.7% 0.013 236.62);
549
- --colors-sky-100: oklch(95.1% 0.026 236.824);
550
- --colors-sky-200: oklch(90.1% 0.058 230.902);
551
- --colors-sky-300: oklch(82.8% 0.111 230.318);
552
- --colors-sky-400: oklch(74.6% 0.16 232.661);
553
- --colors-sky-500: oklch(68.5% 0.169 237.323);
554
- --colors-sky-600: oklch(58.8% 0.158 241.966);
555
- --colors-sky-700: oklch(50% 0.134 242.749);
556
- --colors-sky-800: oklch(44.3% 0.11 240.79);
557
- --colors-sky-900: oklch(39.1% 0.09 240.876);
558
- --colors-sky-950: oklch(29.3% 0.066 243.157);
559
- --colors-blue-50: oklch(97% 0.014 254.604);
560
- --colors-blue-100: oklch(93.2% 0.032 255.585);
561
- --colors-blue-200: oklch(88.2% 0.059 254.128);
562
- --colors-blue-300: oklch(80.9% 0.105 251.813);
563
- --colors-blue-400: oklch(70.7% 0.165 254.624);
564
- --colors-blue-500: oklch(62.3% 0.214 259.815);
565
- --colors-blue-600: oklch(54.6% 0.245 262.881);
566
- --colors-blue-700: oklch(48.8% 0.243 264.376);
567
- --colors-blue-800: oklch(42.4% 0.199 265.638);
568
- --colors-blue-900: oklch(37.9% 0.146 265.522);
569
- --colors-blue-950: oklch(28.2% 0.091 267.935);
570
- --colors-indigo-50: oklch(96.2% 0.018 272.314);
571
- --colors-indigo-100: oklch(93% 0.034 272.788);
572
- --colors-indigo-200: oklch(87% 0.065 274.039);
573
- --colors-indigo-300: oklch(78.5% 0.115 274.713);
574
- --colors-indigo-400: oklch(67.3% 0.182 276.935);
575
- --colors-indigo-500: oklch(58.5% 0.233 277.117);
576
- --colors-indigo-600: oklch(51.1% 0.262 276.966);
577
- --colors-indigo-700: oklch(45.7% 0.24 277.023);
578
- --colors-indigo-800: oklch(39.8% 0.195 277.366);
579
- --colors-indigo-900: oklch(35.9% 0.144 278.697);
580
- --colors-indigo-950: oklch(25.7% 0.09 281.288);
581
- --colors-violet-50: oklch(96.9% 0.016 293.756);
582
- --colors-violet-100: oklch(94.3% 0.029 294.588);
583
- --colors-violet-200: oklch(89.4% 0.057 293.283);
584
- --colors-violet-300: oklch(81.1% 0.111 293.571);
585
- --colors-violet-400: oklch(70.2% 0.183 293.541);
586
- --colors-violet-500: oklch(60.6% 0.25 292.717);
587
- --colors-violet-600: oklch(54.1% 0.281 293.009);
588
- --colors-violet-700: oklch(49.1% 0.27 292.581);
589
- --colors-violet-800: oklch(43.2% 0.232 292.759);
590
- --colors-violet-900: oklch(38% 0.189 293.745);
591
- --colors-violet-950: oklch(28.3% 0.141 291.089);
592
- --colors-purple-50: oklch(97.7% 0.014 308.299);
593
- --colors-purple-100: oklch(94.6% 0.033 307.174);
594
- --colors-purple-200: oklch(90.2% 0.063 306.703);
595
- --colors-purple-300: oklch(82.7% 0.119 306.383);
596
- --colors-purple-400: oklch(71.4% 0.203 305.504);
597
- --colors-purple-500: oklch(62.7% 0.265 303.9);
598
- --colors-purple-600: oklch(55.8% 0.288 302.321);
599
- --colors-purple-700: oklch(49.6% 0.265 301.924);
600
- --colors-purple-800: oklch(43.8% 0.218 303.724);
601
- --colors-purple-900: oklch(38.1% 0.176 304.987);
602
- --colors-purple-950: oklch(29.1% 0.149 302.717);
603
- --colors-fuchsia-50: oklch(97.7% 0.017 320.058);
604
- --colors-fuchsia-100: oklch(95.2% 0.037 318.852);
605
- --colors-fuchsia-200: oklch(90.3% 0.076 319.62);
606
- --colors-fuchsia-300: oklch(83.3% 0.145 321.434);
607
- --colors-fuchsia-400: oklch(74% 0.238 322.16);
608
- --colors-fuchsia-500: oklch(66.7% 0.295 322.15);
609
- --colors-fuchsia-600: oklch(59.1% 0.293 322.896);
610
- --colors-fuchsia-700: oklch(51.8% 0.253 323.949);
611
- --colors-fuchsia-800: oklch(45.2% 0.211 324.591);
612
- --colors-fuchsia-900: oklch(40.1% 0.17 325.612);
613
- --colors-fuchsia-950: oklch(29.3% 0.136 325.661);
614
- --colors-pink-50: oklch(97.1% 0.014 343.198);
615
- --colors-pink-100: oklch(94.8% 0.028 342.258);
616
- --colors-pink-200: oklch(89.9% 0.061 343.231);
617
- --colors-pink-300: oklch(82.3% 0.12 346.018);
618
- --colors-pink-400: oklch(71.8% 0.202 349.761);
619
- --colors-pink-500: oklch(65.6% 0.241 354.308);
620
- --colors-pink-600: oklch(59.2% 0.249 0.584);
621
- --colors-pink-700: oklch(52.5% 0.223 3.958);
622
- --colors-pink-800: oklch(45.9% 0.187 3.815);
623
- --colors-pink-900: oklch(40.8% 0.153 2.432);
624
- --colors-pink-950: oklch(28.4% 0.109 3.907);
625
- --colors-rose-50: oklch(96.9% 0.015 12.422);
626
- --colors-rose-100: oklch(94.1% 0.03 12.58);
627
- --colors-rose-200: oklch(89.2% 0.058 10.001);
628
- --colors-rose-300: oklch(81% 0.117 11.638);
629
- --colors-rose-400: oklch(71.2% 0.194 13.428);
630
- --colors-rose-500: oklch(64.5% 0.246 16.439);
631
- --colors-rose-600: oklch(58.6% 0.253 17.585);
632
- --colors-rose-700: oklch(51.4% 0.222 16.935);
633
- --colors-rose-800: oklch(45.5% 0.188 13.697);
634
- --colors-rose-900: oklch(41% 0.159 10.272);
635
- --colors-rose-950: oklch(27.1% 0.105 12.094);
636
- --fonts-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
637
- --fonts-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
638
- --fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
639
- --fonts-body: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
640
- --font-sizes-2xs: 0.5rem;
641
- --font-sizes-xs: 0.75rem;
642
- --font-sizes-sm: 0.875rem;
643
- --font-sizes-md: 1rem;
644
- --font-sizes-lg: 1.125rem;
645
- --font-sizes-xl: 1.25rem;
646
- --font-sizes-2xl: 1.5rem;
647
- --font-sizes-3xl: 1.875rem;
648
- --font-sizes-4xl: 2.25rem;
649
- --font-sizes-5xl: 3rem;
650
- --font-sizes-6xl: 3.75rem;
651
- --font-sizes-7xl: 4.5rem;
652
- --font-sizes-8xl: 6rem;
653
- --font-sizes-9xl: 8rem;
654
- --font-weights-thin: 100;
655
- --font-weights-extralight: 200;
656
- --font-weights-light: 300;
657
- --font-weights-normal: 400;
658
- --font-weights-medium: 500;
659
- --font-weights-semibold: 600;
660
- --font-weights-bold: 700;
661
- --font-weights-extrabold: 800;
662
- --font-weights-black: 900;
663
- --line-heights-none: 1;
664
- --line-heights-tight: 1.25;
665
- --line-heights-snug: 1.375;
666
- --line-heights-normal: 1.5;
667
- --line-heights-relaxed: 1.625;
668
- --line-heights-loose: 2;
669
- --letter-spacings-tighter: -0.05em;
670
- --letter-spacings-tight: -0.025em;
671
- --letter-spacings-normal: 0em;
672
- --letter-spacings-wide: 0.025em;
673
- --letter-spacings-wider: 0.05em;
674
- --letter-spacings-widest: 0.1em;
675
- --sizes-0: 0rem;
676
- --sizes-1: 0.25rem;
677
- --sizes-2: 0.5rem;
678
- --sizes-3: 0.75rem;
679
- --sizes-4: 1rem;
680
- --sizes-5: 1.25rem;
681
- --sizes-6: 1.5rem;
682
- --sizes-7: 1.75rem;
683
- --sizes-8: 2rem;
684
- --sizes-9: 2.25rem;
685
- --sizes-10: 2.5rem;
686
- --sizes-11: 2.75rem;
687
- --sizes-12: 3rem;
688
- --sizes-14: 3.5rem;
689
- --sizes-16: 4rem;
690
- --sizes-20: 5rem;
691
- --sizes-24: 6rem;
692
- --sizes-28: 7rem;
693
- --sizes-32: 8rem;
694
- --sizes-36: 9rem;
695
- --sizes-40: 10rem;
696
- --sizes-44: 11rem;
697
- --sizes-48: 12rem;
698
- --sizes-52: 13rem;
699
- --sizes-56: 14rem;
700
- --sizes-60: 15rem;
701
- --sizes-64: 16rem;
702
- --sizes-72: 18rem;
703
- --sizes-80: 20rem;
704
- --sizes-96: 24rem;
705
- --sizes-0\.5: 0.125rem;
706
- --sizes-1\.5: 0.375rem;
707
- --sizes-2\.5: 0.625rem;
708
- --sizes-3\.5: 0.875rem;
709
- --sizes-4\.5: 1.125rem;
710
- --sizes-5\.5: 1.375rem;
711
- --sizes-xs: 20rem;
712
- --sizes-sm: 24rem;
713
- --sizes-md: 28rem;
714
- --sizes-lg: 32rem;
715
- --sizes-xl: 36rem;
716
- --sizes-2xl: 42rem;
717
- --sizes-3xl: 48rem;
718
- --sizes-4xl: 56rem;
719
- --sizes-5xl: 64rem;
720
- --sizes-6xl: 72rem;
721
- --sizes-7xl: 80rem;
722
- --sizes-8xl: 90rem;
723
- --sizes-prose: 60ch;
724
- --sizes-full: 100%;
725
- --sizes-min: min-content;
726
- --sizes-max: max-content;
727
- --sizes-fit: fit-content;
728
- --shadows-2xs: 0 1px rgb(0 0 0 / 0.05);
729
- --shadows-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
730
- --shadows-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
731
- --shadows-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
732
- --shadows-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
733
- --shadows-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
734
- --shadows-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
735
- --shadows-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
736
- --shadows-inset-2xs: inset 0 1px rgb(0 0 0 / 0.05);
737
- --shadows-inset-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
738
- --shadows-inset-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
739
- --spacing-0: 0rem;
740
- --spacing-1: 0.25rem;
741
- --spacing-2: 0.5rem;
742
- --spacing-3: 0.75rem;
743
- --spacing-4: 1rem;
744
- --spacing-5: 1.25rem;
745
- --spacing-6: 1.5rem;
746
- --spacing-7: 1.75rem;
747
- --spacing-8: 2rem;
748
- --spacing-9: 2.25rem;
749
- --spacing-10: 2.5rem;
750
- --spacing-11: 2.75rem;
751
- --spacing-12: 3rem;
752
- --spacing-14: 3.5rem;
753
- --spacing-16: 4rem;
754
- --spacing-20: 5rem;
755
- --spacing-24: 6rem;
756
- --spacing-28: 7rem;
757
- --spacing-32: 8rem;
758
- --spacing-36: 9rem;
759
- --spacing-40: 10rem;
760
- --spacing-44: 11rem;
761
- --spacing-48: 12rem;
762
- --spacing-52: 13rem;
763
- --spacing-56: 14rem;
764
- --spacing-60: 15rem;
765
- --spacing-64: 16rem;
766
- --spacing-72: 18rem;
767
- --spacing-80: 20rem;
768
- --spacing-96: 24rem;
769
- --spacing-0\.5: 0.125rem;
770
- --spacing-1\.5: 0.375rem;
771
- --spacing-2\.5: 0.625rem;
772
- --spacing-3\.5: 0.875rem;
773
- --spacing-4\.5: 1.125rem;
774
- --spacing-5\.5: 1.375rem;
775
- --radii-xs: 0.125rem;
776
- --radii-sm: 0.25rem;
777
- --radii-md: 0.375rem;
778
- --radii-lg: 0.5rem;
779
- --radii-xl: 0.75rem;
780
- --radii-2xl: 1rem;
781
- --radii-3xl: 1.5rem;
782
- --radii-4xl: 2rem;
783
- --radii-full: 9999px;
784
- --borders-none: none;
785
- --durations-fastest: 50ms;
786
- --durations-faster: 100ms;
787
- --durations-fast: 150ms;
788
- --durations-normal: 200ms;
789
- --durations-slow: 300ms;
790
- --durations-slower: 400ms;
791
- --durations-slowest: 500ms;
792
- --easings-default: cubic-bezier(0.4, 0, 0.2, 1);
793
- --easings-linear: linear;
794
- --easings-in: cubic-bezier(0.4, 0, 1, 1);
795
- --easings-out: cubic-bezier(0, 0, 0.2, 1);
796
- --easings-in-out: cubic-bezier(0.4, 0, 0.2, 1);
797
- --animations-spin: spin 1s linear infinite;
798
- --animations-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
799
- --animations-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
800
- --animations-bounce: bounce 1s infinite;
801
- --blurs-xs: 4px;
802
- --blurs-sm: 8px;
803
- --blurs-md: 12px;
804
- --blurs-lg: 16px;
805
- --blurs-xl: 24px;
806
- --blurs-2xl: 40px;
807
- --blurs-3xl: 64px;
808
- --aspect-ratios-square: 1 / 1;
809
- --aspect-ratios-video: 16 / 9;
810
- --aspect-ratios-landscape: 4 / 3;
811
- --aspect-ratios-portrait: 3 / 4;
812
- --aspect-ratios-wide: 16 / 9;
813
- --aspect-ratios-ultrawide: 18 / 5;
814
- --aspect-ratios-golden: 1.618 / 1;
815
- --breakpoints-sm: 40rem;
816
- --sizes-breakpoint-sm: 40rem;
817
- --breakpoints-md: 48rem;
818
- --sizes-breakpoint-md: 48rem;
819
- --breakpoints-lg: 64rem;
820
- --sizes-breakpoint-lg: 64rem;
821
- --breakpoints-xl: 80rem;
822
- --sizes-breakpoint-xl: 80rem;
823
- --breakpoints-2xl: 96rem;
824
- --sizes-breakpoint-2xl: 96rem;
825
- --colors-dashboard-canvas: #f7f8fa;
826
- --colors-dashboard-panel: #ffffff;
827
- --colors-dashboard-ink: #1f2937;
828
- --colors-dashboard-muted: #68717d;
829
- --colors-dashboard-border: #dfe3e8;
830
- --colors-dashboard-accent: #4f46e5;
831
- --colors-dashboard-danger: #dc2626;
832
- --colors-dashboard-info: #2563eb;
833
- --colors-dashboard-success: #15803d;
834
- --colors-dashboard-warning: #b45309;
835
- }
836
- .dark {
837
- --colors-dashboard-canvas: #111827;
838
- --colors-dashboard-panel: #1f2937;
839
- --colors-dashboard-ink: #f3f4f6;
840
- --colors-dashboard-muted: #aab4c2;
841
- --colors-dashboard-border: #3b4656;
842
- --colors-dashboard-accent: #818cf8;
843
- --colors-dashboard-danger: #f87171;
844
- --colors-dashboard-info: #60a5fa;
845
- --colors-dashboard-success: #4ade80;
846
- --colors-dashboard-warning: #fbbf24;
847
- }
848
- @keyframes spin {
849
- to {
850
- transform: rotate(360deg);
851
- }
852
- }
853
- @keyframes ping {
854
- 75%, 100% {
855
- transform: scale(2);
856
- opacity: 0;
857
- }
858
- }
859
- @keyframes pulse {
860
- 50% {
861
- opacity: .5;
862
- }
863
- }
864
- @keyframes bounce {
865
- 0%, 100% {
866
- transform: translateY(-25%);
867
- animation-timing-function: cubic-bezier(0.8,0,1,1);
868
- }
869
- 50% {
870
- transform: none;
871
- animation-timing-function: cubic-bezier(0,0,0.2,1);
872
- }
873
- }
874
- }
875
- @layer recipes {
876
- @layer base {
877
- .dashboard-button {
878
- border: 1px solid transparent;
879
- gap: 0.5rem;
880
- border-radius: 0.625rem;
881
- text-decoration: none;
882
- transition: border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
883
- display: inline-flex;
884
- align-items: center;
885
- justify-content: center;
886
- font-weight: 600;
887
- line-height: 1.2;
888
- }
889
- .dashboard-button:focus-visible {
890
- outline: 3px solid color-mix(in srgb, dashboard.accent 28%, transparent);
891
- outline-offset: 2px;
892
- }
893
- .dashboard-button:disabled, .dashboard-button[aria-disabled="true"] {
894
- cursor: not-allowed;
895
- opacity: 0.55;
896
- }
897
- .dashboard-button[aria-busy="true"] {
898
- cursor: progress;
899
- }
900
- .dashboard-page {
901
- width: 100%;
902
- min-width: var(--sizes-0);
903
- }
904
- .dashboard-status {
905
- border: 1px solid;
906
- padding-inline: 0.7rem;
907
- padding-block: 0.5rem;
908
- gap: 0.4rem;
909
- border-radius: 999px;
910
- display: inline-flex;
911
- align-items: center;
912
- background-color: var(--colors-dashboard-panel);
913
- color: var(--colors-dashboard-muted);
914
- font-size: 0.75rem;
915
- font-weight: 650;
916
- line-height: 1;
917
- white-space: nowrap;
918
- }
919
- .dashboard-status::before {
920
- flex: 0 0 auto;
921
- border-radius: 50%;
922
- background-color: currentColor;
923
- content: '';
924
- width: 0.4rem;
925
- height: 0.4rem;
926
- }
927
- }
928
- @layer variants {
929
- .dashboard-button--variant_solid {
930
- background-color: var(--colors-dashboard-accent);
931
- color: #ffffff;
932
- }
933
- .dashboard-button--variant_outline {
934
- border-color: var(--colors-dashboard-border);
935
- background-color: var(--colors-transparent);
936
- color: var(--colors-dashboard-ink);
937
- }
938
- .dashboard-button--variant_quiet {
939
- background-color: var(--colors-transparent);
940
- color: var(--colors-dashboard-ink);
941
- }
942
- .dashboard-button--size_sm {
943
- padding-inline: 0.625rem;
944
- font-size: 0.75rem;
945
- min-height: 2rem;
946
- }
947
- .dashboard-button--size_md {
948
- padding-inline: 0.875rem;
949
- font-size: 0.8125rem;
950
- min-height: 2.5rem;
951
- }
952
- .dashboard-button--size_lg {
953
- padding-inline: 1rem;
954
- font-size: 0.875rem;
955
- min-height: 2.875rem;
956
- }
957
- .dashboard-status--tone_neutral {
958
- border-color: var(--colors-dashboard-border);
959
- color: var(--colors-dashboard-muted);
960
- }
961
- .dashboard-status--tone_info {
962
- border-color: var(--colors-dashboard-info);
963
- color: var(--colors-dashboard-info);
964
- }
965
- .dashboard-status--tone_success {
966
- border-color: var(--colors-dashboard-success);
967
- color: var(--colors-dashboard-success);
968
- }
969
- .dashboard-status--tone_warning {
970
- border-color: var(--colors-dashboard-warning);
971
- color: var(--colors-dashboard-warning);
972
- }
973
- .dashboard-status--tone_danger {
974
- border-color: var(--colors-dashboard-danger);
975
- color: var(--colors-dashboard-danger);
976
- }
977
- }
978
- @layer compound_variants {
979
- .dashboard-button--compound__tone_neutral__variant_solid {
980
- background-color: var(--colors-dashboard-ink);
981
- }
982
- .dashboard-button--compound__tone_accent__variant_solid {
983
- background-color: var(--colors-dashboard-accent);
984
- }
985
- .dashboard-button--compound__tone_danger__variant_solid {
986
- background-color: var(--colors-dashboard-danger);
987
- }
988
- .dashboard-button--compound__tone_accent__variant_outline {
989
- border-color: var(--colors-dashboard-accent);
990
- color: var(--colors-dashboard-accent);
991
- }
992
- .dashboard-button--compound__tone_danger__variant_outline {
993
- border-color: var(--colors-dashboard-danger);
994
- color: var(--colors-dashboard-danger);
995
- }
996
- .dashboard-button--compound__tone_accent__variant_quiet {
997
- color: var(--colors-dashboard-accent);
998
- }
999
- .dashboard-button--compound__tone_danger__variant_quiet {
1000
- color: var(--colors-dashboard-danger);
1001
- }
1002
- }
1003
- }
1004
- @layer recipes.slots {
1005
- @layer base {
1006
- .dashboard-confirm-dialog__backdrop {
1007
- inset: var(--spacing-0);
1008
- padding: 1rem;
1009
- place-items: center;
1010
- position: fixed;
1011
- display: grid;
1012
- background-color: rgb(15 23 42 / 0.55);
1013
- }
1014
- .dashboard-confirm-dialog__content {
1015
- border: 1px solid dashboard.border;
1016
- padding: 1.5rem;
1017
- border-radius: 1rem;
1018
- background-color: var(--colors-dashboard-panel);
1019
- color: var(--colors-dashboard-ink);
1020
- box-shadow: 0 1.5rem 4rem rgb(15 23 42 / 0.2);
1021
- width: min(100%, 32rem);
1022
- }
1023
- .dashboard-confirm-dialog__title {
1024
- margin: var(--spacing-0);
1025
- font-size: 1.125rem;
1026
- font-weight: 680;
1027
- }
1028
- .dashboard-confirm-dialog__description {
1029
- margin: 0.5rem 0 0;
1030
- color: var(--colors-dashboard-muted);
1031
- line-height: 1.5;
1032
- }
1033
- .dashboard-confirm-dialog__actions {
1034
- gap: 0.5rem;
1035
- display: flex;
1036
- justify-content: flex-end;
1037
- margin-top: 1.5rem;
1038
- }
1039
- .dashboard-empty-state__root {
1040
- border: 1px dashed dashboard.border;
1041
- padding: 1.5rem;
1042
- gap: 0.5rem;
1043
- border-radius: 0.875rem;
1044
- display: grid;
1045
- justify-items: start;
1046
- }
1047
- .dashboard-empty-state__title {
1048
- margin: var(--spacing-0);
1049
- color: var(--colors-dashboard-ink);
1050
- font-size: 0.9375rem;
1051
- font-weight: 650;
1052
- }
1053
- .dashboard-empty-state__message {
1054
- margin: var(--spacing-0);
1055
- color: var(--colors-dashboard-muted);
1056
- font-size: 0.8125rem;
1057
- line-height: 1.5;
1058
- }
1059
- .dashboard-empty-state__action {
1060
- margin-top: 0.25rem;
1061
- }
1062
- .dashboard-error-state__root {
1063
- border: 1px solid dashboard.danger;
1064
- padding: 1.5rem;
1065
- gap: 0.5rem;
1066
- border-radius: 0.875rem;
1067
- display: grid;
1068
- justify-items: start;
1069
- background-color: var(--colors-dashboard-panel);
1070
- }
1071
- .dashboard-error-state__title {
1072
- margin: var(--spacing-0);
1073
- color: var(--colors-dashboard-danger);
1074
- font-size: 0.9375rem;
1075
- font-weight: 650;
1076
- }
1077
- .dashboard-error-state__message {
1078
- margin: var(--spacing-0);
1079
- color: var(--colors-dashboard-ink);
1080
- font-size: 0.8125rem;
1081
- line-height: 1.5;
1082
- }
1083
- .dashboard-error-state__action {
1084
- margin-top: 0.25rem;
1085
- }
1086
- .dashboard-field__root {
1087
- gap: 0.4rem;
1088
- display: grid;
1089
- }
1090
- .dashboard-field__label {
1091
- color: var(--colors-dashboard-ink);
1092
- font-size: 0.8125rem;
1093
- font-weight: 600;
1094
- }
1095
- .dashboard-field__control {
1096
- border: 1px solid dashboard.border;
1097
- padding: 0.625rem 0.75rem;
1098
- border-radius: 0.625rem;
1099
- background-color: var(--colors-dashboard-panel);
1100
- color: var(--colors-dashboard-ink);
1101
- width: 100%;
1102
- }
1103
- .dashboard-field__control:focus-visible {
1104
- border-color: var(--colors-dashboard-accent);
1105
- outline: 3px solid color-mix(in srgb, dashboard.accent 20%, transparent);
1106
- outline-offset: var(--spacing-0);
1107
- }
1108
- .dashboard-field__control[aria-invalid="true"] {
1109
- border-color: var(--colors-dashboard-danger);
1110
- }
1111
- .dashboard-field__description {
1112
- color: var(--colors-dashboard-muted);
1113
- font-size: 0.75rem;
1114
- line-height: 1.45;
1115
- }
1116
- .dashboard-field__error {
1117
- color: var(--colors-dashboard-danger);
1118
- font-size: 0.75rem;
1119
- line-height: 1.45;
1120
- }
1121
- .dashboard-section__root {
1122
- border: 1px solid dashboard.border;
1123
- padding: clamp(1.125rem, 3vw, 1.5rem);
1124
- border-radius: 1rem;
1125
- background-color: var(--colors-dashboard-panel);
1126
- min-width: var(--sizes-0);
1127
- }
1128
- .dashboard-section__header {
1129
- gap: 1rem;
1130
- display: flex;
1131
- align-items: flex-start;
1132
- justify-content: space-between;
1133
- margin-bottom: 1rem;
1134
- }
1135
- .dashboard-section__heading {
1136
- margin: var(--spacing-0);
1137
- color: var(--colors-dashboard-ink);
1138
- font-size: 1.05rem;
1139
- font-weight: 680;
1140
- }
1141
- .dashboard-section__description {
1142
- margin: 0.3rem 0 0;
1143
- color: var(--colors-dashboard-muted);
1144
- font-size: 0.8125rem;
1145
- line-height: 1.45;
1146
- }
1147
- .dashboard-section__actions {
1148
- gap: 0.5rem;
1149
- display: flex;
1150
- flex-wrap: wrap;
1151
- align-items: center;
1152
- }
1153
- .dashboard-section__content, .dashboard-tabs__root {
1154
- min-width: var(--sizes-0);
1155
- }
1156
- .dashboard-tabs__list {
1157
- gap: 0.25rem;
1158
- border-bottom: 1px solid dashboard.border;
1159
- display: flex;
1160
- flex-wrap: wrap;
1161
- }
1162
- .dashboard-tabs__trigger {
1163
- border: 0;
1164
- padding: 0.625rem 0.75rem;
1165
- border-bottom: 2px solid transparent;
1166
- background-color: var(--colors-transparent);
1167
- color: var(--colors-dashboard-muted);
1168
- font-weight: 600;
1169
- cursor: pointer;
1170
- }
1171
- .dashboard-tabs__trigger[aria-selected="true"] {
1172
- color: var(--colors-dashboard-accent);
1173
- border-bottom-color: var(--colors-dashboard-accent);
1174
- }
1175
- .dashboard-tabs__trigger:focus-visible {
1176
- outline: 3px solid color-mix(in srgb, dashboard.accent 28%, transparent);
1177
- outline-offset: 2px;
1178
- }
1179
- .dashboard-tabs__trigger:disabled {
1180
- cursor: not-allowed;
1181
- opacity: 0.55;
1182
- }
1183
- .dashboard-tabs__panel {
1184
- padding-block: 1rem;
1185
- }
1186
- }
1187
- }