@agent-native/design-system 0.0.0-stage → 0.229.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +78 -2
- package/THIRD_PARTY_NOTICES.md +58 -0
- package/css/appearances.css +91 -0
- package/css/main.css +174 -0
- package/css/parts/accordion.css +104 -0
- package/css/parts/alert-dialog.css +159 -0
- package/css/parts/app-shell.css +45 -0
- package/css/parts/aspect-ratio.css +20 -0
- package/css/parts/autocomplete.css +366 -0
- package/css/parts/avatar.css +108 -0
- package/css/parts/badge.css +100 -0
- package/css/parts/blockquote.css +23 -0
- package/css/parts/button.css +238 -0
- package/css/parts/callout.css +108 -0
- package/css/parts/card.css +144 -0
- package/css/parts/checkbox-cards.css +59 -0
- package/css/parts/checkbox-group.css +20 -0
- package/css/parts/checkbox.css +127 -0
- package/css/parts/code.css +194 -0
- package/css/parts/collapsible.css +40 -0
- package/css/parts/combobox.css +171 -0
- package/css/parts/context-menu.css +18 -0
- package/css/parts/data-list.css +130 -0
- package/css/parts/dialog.css +251 -0
- package/css/parts/drawer.css +289 -0
- package/css/parts/em.css +16 -0
- package/css/parts/field.css +55 -0
- package/css/parts/fieldset.css +34 -0
- package/css/parts/form.css +18 -0
- package/css/parts/heading.css +25 -0
- package/css/parts/icon-button.css +30 -0
- package/css/parts/input.css +206 -0
- package/css/parts/inset.css +90 -0
- package/css/parts/item.css +208 -0
- package/css/parts/kbd.css +126 -0
- package/css/parts/link.css +99 -0
- package/css/parts/menu.css +342 -0
- package/css/parts/menubar.css +71 -0
- package/css/parts/meter.css +112 -0
- package/css/parts/navigation-menu.css +199 -0
- package/css/parts/number-field.css +124 -0
- package/css/parts/otp-field.css +137 -0
- package/css/parts/page-header.css +45 -0
- package/css/parts/popover.css +149 -0
- package/css/parts/preview-card.css +116 -0
- package/css/parts/progress.css +159 -0
- package/css/parts/quote.css +18 -0
- package/css/parts/radio-cards.css +188 -0
- package/css/parts/radio-group.css +124 -0
- package/css/parts/scroll-area.css +95 -0
- package/css/parts/segmented-control.css +191 -0
- package/css/parts/select.css +378 -0
- package/css/parts/separator.css +48 -0
- package/css/parts/sidebar.css +211 -0
- package/css/parts/skeleton.css +65 -0
- package/css/parts/slider.css +156 -0
- package/css/parts/spinner.css +52 -0
- package/css/parts/strong.css +15 -0
- package/css/parts/switch.css +138 -0
- package/css/parts/tab-nav.css +48 -0
- package/css/parts/table.css +177 -0
- package/css/parts/tabs.css +214 -0
- package/css/parts/text-area.css +140 -0
- package/css/parts/text.css +245 -0
- package/css/parts/toast.css +302 -0
- package/css/parts/toggle-group.css +25 -0
- package/css/parts/toggle.css +181 -0
- package/css/parts/toolbar.css +133 -0
- package/css/parts/tooltip.css +61 -0
- package/css/parts/visually-hidden.css +21 -0
- package/css/styles.css +73 -0
- package/css/themes/agent-native.css +2321 -0
- package/css/themes/analytics.css +1159 -0
- package/css/themes/assets.css +1159 -0
- package/css/themes/baseline.css +1107 -0
- package/css/themes/brain.css +1159 -0
- package/css/themes/calendar.css +1159 -0
- package/css/themes/chat.css +1159 -0
- package/css/themes/clips.css +1159 -0
- package/css/themes/content.css +1159 -0
- package/css/themes/crm.css +1159 -0
- package/css/themes/design.css +1159 -0
- package/css/themes/desktop.css +1159 -0
- package/css/themes/dispatch.css +1159 -0
- package/css/themes/docs.css +1159 -0
- package/css/themes/factory.css +1159 -0
- package/css/themes/forms.css +1159 -0
- package/css/themes/mail.css +1159 -0
- package/css/themes/plan.css +1159 -0
- package/css/themes/slides.css +1159 -0
- package/css/themes/tasks.css +1159 -0
- package/css/tokens.css +1249 -0
- package/package.json +67 -4
- package/src/catalog/components/alert-dialog.ts +9 -0
- package/src/catalog/components/aspect-ratio.ts +6 -0
- package/src/catalog/components/autocomplete.ts +23 -0
- package/src/catalog/components/avatar.ts +16 -0
- package/src/catalog/components/badge.ts +19 -0
- package/src/catalog/components/blockquote.ts +10 -0
- package/src/catalog/components/button.ts +24 -0
- package/src/catalog/components/callout.ts +17 -0
- package/src/catalog/components/card.ts +10 -0
- package/src/catalog/components/checkbox-cards.ts +14 -0
- package/src/catalog/components/checkbox-group.ts +13 -0
- package/src/catalog/components/checkbox.ts +13 -0
- package/src/catalog/components/code.ts +22 -0
- package/src/catalog/components/combobox.ts +23 -0
- package/src/catalog/components/context-menu.ts +20 -0
- package/src/catalog/components/data-list.ts +14 -0
- package/src/catalog/components/dialog.ts +9 -0
- package/src/catalog/components/drawer.ts +9 -0
- package/src/catalog/components/em.ts +7 -0
- package/src/catalog/components/heading.ts +11 -0
- package/src/catalog/components/index.ts +54 -0
- package/src/catalog/components/input.ts +23 -0
- package/src/catalog/components/inset.ts +15 -0
- package/src/catalog/components/item.ts +21 -0
- package/src/catalog/components/kbd.ts +9 -0
- package/src/catalog/components/link.ts +19 -0
- package/src/catalog/components/menu.ts +20 -0
- package/src/catalog/components/menubar.ts +20 -0
- package/src/catalog/components/meter.ts +19 -0
- package/src/catalog/components/number-field.ts +10 -0
- package/src/catalog/components/otp-field.ts +9 -0
- package/src/catalog/components/popover.ts +9 -0
- package/src/catalog/components/preview-card.ts +9 -0
- package/src/catalog/components/progress.ts +24 -0
- package/src/catalog/components/quote.ts +7 -0
- package/src/catalog/components/radio-cards.ts +14 -0
- package/src/catalog/components/radio-group.ts +13 -0
- package/src/catalog/components/scroll-area.ts +15 -0
- package/src/catalog/components/segmented-control.ts +8 -0
- package/src/catalog/components/select.ts +26 -0
- package/src/catalog/components/separator.ts +14 -0
- package/src/catalog/components/skeleton.ts +8 -0
- package/src/catalog/components/slider.ts +19 -0
- package/src/catalog/components/spinner.ts +15 -0
- package/src/catalog/components/strong.ts +7 -0
- package/src/catalog/components/switch.ts +19 -0
- package/src/catalog/components/tab-nav.ts +18 -0
- package/src/catalog/components/table.ts +34 -0
- package/src/catalog/components/tabs.ts +18 -0
- package/src/catalog/components/text-area.ts +24 -0
- package/src/catalog/components/text.ts +11 -0
- package/src/catalog/components/toast.ts +12 -0
- package/src/catalog/components/toggle-group.ts +17 -0
- package/src/catalog/components/toggle.ts +17 -0
- package/src/catalog/components/toolbar.ts +6 -0
- package/src/catalog/index.ts +4 -0
- package/src/catalog/parts.ts +915 -0
- package/src/catalog/prop-types-source.ts +93 -0
- package/src/catalog/prop-types.generated.ts +1402 -0
- package/src/catalog/props.ts +225 -0
- package/src/css.ts +318 -0
- package/src/generated-css.ts +21 -0
- package/src/index.ts +8 -0
- package/src/model/compare.ts +127 -0
- package/src/model/dom.ts +253 -0
- package/src/model/ids.ts +25 -0
- package/src/model/index.ts +6 -0
- package/src/model/styles.ts +254 -0
- package/src/model/types.ts +97 -0
- package/src/model/validate.ts +133 -0
- package/src/themes/appearances.ts +105 -0
- package/src/themes/baseline.ts +27 -0
- package/src/themes/index.ts +85 -0
- package/src/themes/reference.ts +9 -0
- package/src/themes/shadcn.ts +239 -0
- package/src/themes/types.ts +53 -0
- package/src/tokens/at.ts +13 -0
- package/src/tokens/base.ts +48 -0
- package/src/tokens/color/bezier.ts +111 -0
- package/src/tokens/color/index.ts +2 -0
- package/src/tokens/color/radix-generator.ts +516 -0
- package/src/tokens/dtcg.ts +298 -0
- package/src/tokens/files/foundations.tokens.json +318 -0
- package/src/tokens/files/palette.tokens.json +58 -0
- package/src/tokens/files/themes/agent-native.dark.tokens.json +405 -0
- package/src/tokens/files/themes/agent-native.light.tokens.json +405 -0
- package/src/tokens/files/themes/analytics.dark.tokens.json +391 -0
- package/src/tokens/files/themes/analytics.light.tokens.json +391 -0
- package/src/tokens/files/themes/assets.dark.tokens.json +391 -0
- package/src/tokens/files/themes/assets.light.tokens.json +391 -0
- package/src/tokens/files/themes/brain.dark.tokens.json +391 -0
- package/src/tokens/files/themes/brain.light.tokens.json +391 -0
- package/src/tokens/files/themes/calendar.dark.tokens.json +391 -0
- package/src/tokens/files/themes/calendar.light.tokens.json +391 -0
- package/src/tokens/files/themes/chat.dark.tokens.json +391 -0
- package/src/tokens/files/themes/chat.light.tokens.json +391 -0
- package/src/tokens/files/themes/clips.dark.tokens.json +391 -0
- package/src/tokens/files/themes/clips.light.tokens.json +391 -0
- package/src/tokens/files/themes/content.dark.tokens.json +391 -0
- package/src/tokens/files/themes/content.light.tokens.json +391 -0
- package/src/tokens/files/themes/crm.dark.tokens.json +391 -0
- package/src/tokens/files/themes/crm.light.tokens.json +391 -0
- package/src/tokens/files/themes/design.dark.tokens.json +391 -0
- package/src/tokens/files/themes/design.light.tokens.json +391 -0
- package/src/tokens/files/themes/desktop.dark.tokens.json +391 -0
- package/src/tokens/files/themes/desktop.light.tokens.json +391 -0
- package/src/tokens/files/themes/dispatch.dark.tokens.json +391 -0
- package/src/tokens/files/themes/dispatch.light.tokens.json +391 -0
- package/src/tokens/files/themes/docs.dark.tokens.json +391 -0
- package/src/tokens/files/themes/docs.light.tokens.json +391 -0
- package/src/tokens/files/themes/factory.dark.tokens.json +391 -0
- package/src/tokens/files/themes/factory.light.tokens.json +391 -0
- package/src/tokens/files/themes/forms.dark.tokens.json +391 -0
- package/src/tokens/files/themes/forms.light.tokens.json +391 -0
- package/src/tokens/files/themes/mail.dark.tokens.json +391 -0
- package/src/tokens/files/themes/mail.light.tokens.json +391 -0
- package/src/tokens/files/themes/plan.dark.tokens.json +391 -0
- package/src/tokens/files/themes/plan.light.tokens.json +391 -0
- package/src/tokens/files/themes/slides.dark.tokens.json +391 -0
- package/src/tokens/files/themes/slides.light.tokens.json +391 -0
- package/src/tokens/files/themes/tasks.dark.tokens.json +391 -0
- package/src/tokens/files/themes/tasks.light.tokens.json +391 -0
- package/src/tokens/palette.ts +354 -0
- package/src/tokens/primitives.ts +84 -0
- package/src/tokens/roles.ts +269 -0
- package/src/tokens/round-trip.ts +277 -0
- package/src/tokens/source.ts +302 -0
- package/tsconfig.json +26 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Builder.io, Inc.
|
|
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
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @agent-native/design-system
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Tokens, color generation, themes and component CSS for Agent-Native apps.
|
|
4
|
+
Framework-free: no React, no Tailwind runtime. `@agent-native/toolkit` renders
|
|
5
|
+
the parts; this package decides how they look.
|
|
6
|
+
|
|
7
|
+
## Use it
|
|
8
|
+
|
|
9
|
+
Apps get everything through toolkit's stylesheet, plus their own theme:
|
|
10
|
+
|
|
11
|
+
```css
|
|
12
|
+
@import "tailwindcss";
|
|
13
|
+
@import "@agent-native/toolkit/styles.css";
|
|
14
|
+
@import "@agent-native/design-system/themes/mail.css";
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Choose a look with attributes on `<html>` or any subtree:
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<html data-app-theme="mail" data-density="compact" data-radius="large" data-corners="squircle">
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
| Attribute | Values |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| `data-app-theme` | an app's name (`mail`, `clips`, …) or `agent-native` (the default) |
|
|
26
|
+
| `data-density` | `compact`, `default`, `comfortable` |
|
|
27
|
+
| `data-radius` | `none`, `small`, `medium`, `large`, `full` |
|
|
28
|
+
| `data-corners` | `round`, `squircle` |
|
|
29
|
+
| `.dark` / `.light` | appearance |
|
|
30
|
+
|
|
31
|
+
A theme carries an app's palette, type, shape and part sizes, and owns its
|
|
32
|
+
values: nothing reads a variable the app defines. It also writes shadcn's
|
|
33
|
+
variables (`--primary`) one way, for components not yet migrated.
|
|
34
|
+
|
|
35
|
+
## Color scales
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import { createPalette, paletteCss } from "@agent-native/design-system";
|
|
39
|
+
|
|
40
|
+
const palette = createPalette({ brand: "#5b5bd6", gray: "#8b8d98" });
|
|
41
|
+
const css = paletteCss(palette, { id: "acme" }); // applies under [data-palette="acme"]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`createPalette` ports Radix's custom palette generator: from one brand color it
|
|
45
|
+
builds 12-step solid and alpha scales for brand, gray and four status roles,
|
|
46
|
+
with contrast, surface, indicator and track colors, in sRGB and Display-P3.
|
|
47
|
+
It throws on a color it cannot parse.
|
|
48
|
+
|
|
49
|
+
## Tokens
|
|
50
|
+
|
|
51
|
+
- **Primitives**: `--gray-1..12`, `--gray-a1..12`, `--brand-*`, `--danger-*`,
|
|
52
|
+
`--warning-*`, `--success-*`, `--info-*`, `--size-*`, `--radius-*`,
|
|
53
|
+
`--font-size-*`, `--duration-*`, `--layer-*`.
|
|
54
|
+
- **Roles**: `--surface-*`, `--fg-*`, `--line-*`, `--fill-*`, `--status-*`,
|
|
55
|
+
`--shape-*`, `--shadow-1..6`, `--gradient-*`.
|
|
56
|
+
- **Part inputs**: `--button-*` and so on, set by themes.
|
|
57
|
+
|
|
58
|
+
With Tailwind, roles and steps are utilities: `bg-surface-canvas`,
|
|
59
|
+
`text-fg-muted`, `border-line`, `bg-fill-hover`, `bg-brand-9`,
|
|
60
|
+
`rounded-control`, `h-control-md`, `text-2`.
|
|
61
|
+
|
|
62
|
+
## Stylesheets
|
|
63
|
+
|
|
64
|
+
| Export | Contents |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| `tokens.css` | primitives, default color scales, density, radius and corner presets (generated) |
|
|
67
|
+
| `main.css` | Tailwind v4 mapping of roles and scales to utilities and variants |
|
|
68
|
+
| `styles.css` | component CSS, one file per part |
|
|
69
|
+
| `themes/<name>.css` | one theme's roles, values and part inputs (generated) |
|
|
70
|
+
|
|
71
|
+
## Developing
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
pnpm --filter @agent-native/design-system css # regenerate css/ from src/
|
|
75
|
+
pnpm --filter @agent-native/design-system css:check # fail on drift
|
|
76
|
+
pnpm --filter @agent-native/design-system tokens:export <dir> # token files for Figma
|
|
77
|
+
pnpm --filter @agent-native/design-system tokens:import <dir> # a Figma export back into src/tokens/files
|
|
78
|
+
pnpm --filter @agent-native/design-system test
|
|
79
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
## Radix custom palette generator
|
|
4
|
+
|
|
5
|
+
`src/tokens/color/radix-generator.ts` is a port of `components/generate-radix-colors.tsx` from https://github.com/radix-ui/website.
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2024 WorkOS
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## bezier-easing
|
|
32
|
+
|
|
33
|
+
`src/tokens/color/bezier.ts` is a port of bezier-easing 2.1.0 from https://github.com/gre/bezier-easing.
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Copyright (c) 2014 Gaëtan Renaudeau
|
|
37
|
+
|
|
38
|
+
Permission is hereby granted, free of charge, to any person
|
|
39
|
+
obtaining a copy of this software and associated documentation
|
|
40
|
+
files (the "Software"), to deal in the Software without
|
|
41
|
+
restriction, including without limitation the rights to use,
|
|
42
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43
|
+
copies of the Software, and to permit persons to whom the
|
|
44
|
+
Software is furnished to do so, subject to the following
|
|
45
|
+
conditions:
|
|
46
|
+
|
|
47
|
+
The above copyright notice and this permission notice shall be
|
|
48
|
+
included in all copies or substantial portions of the Software.
|
|
49
|
+
|
|
50
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
51
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
52
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
53
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
54
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
55
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
56
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
57
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
58
|
+
```
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* Generated by packages/design-system/scripts/build-css.ts from src/. Do not edit. */
|
|
2
|
+
|
|
3
|
+
:root[data-appearance="warm"]:not([data-app-theme="agent-native"]) {
|
|
4
|
+
--theme-background: 35 30% 97%;
|
|
5
|
+
--theme-sidebar-background: 35 28% 95%;
|
|
6
|
+
--theme-accent: 30 35% 92%;
|
|
7
|
+
--theme-muted: 35 25% 94%;
|
|
8
|
+
--theme-primary: 25 65% 45%;
|
|
9
|
+
--theme-ring: 25 55% 50%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:root.dark[data-appearance="warm"]:not([data-app-theme="agent-native"]) {
|
|
13
|
+
--theme-background: 28 14% 7%;
|
|
14
|
+
--theme-sidebar-background: 28 14% 5%;
|
|
15
|
+
--theme-accent: 28 12% 14%;
|
|
16
|
+
--theme-muted: 28 10% 12%;
|
|
17
|
+
--theme-primary: 30 65% 65%;
|
|
18
|
+
--theme-ring: 30 55% 55%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:root[data-appearance="ocean"]:not([data-app-theme="agent-native"]) {
|
|
22
|
+
--theme-background: 210 35% 97%;
|
|
23
|
+
--theme-sidebar-background: 210 32% 95%;
|
|
24
|
+
--theme-accent: 200 40% 92%;
|
|
25
|
+
--theme-muted: 210 28% 94%;
|
|
26
|
+
--theme-primary: 205 70% 42%;
|
|
27
|
+
--theme-ring: 205 60% 50%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:root.dark[data-appearance="ocean"]:not([data-app-theme="agent-native"]) {
|
|
31
|
+
--theme-background: 215 25% 8%;
|
|
32
|
+
--theme-sidebar-background: 215 28% 6%;
|
|
33
|
+
--theme-accent: 215 22% 15%;
|
|
34
|
+
--theme-muted: 215 20% 12%;
|
|
35
|
+
--theme-primary: 200 75% 65%;
|
|
36
|
+
--theme-ring: 200 65% 55%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:root[data-appearance="forest"]:not([data-app-theme="agent-native"]) {
|
|
40
|
+
--theme-background: 130 22% 97%;
|
|
41
|
+
--theme-sidebar-background: 130 20% 95%;
|
|
42
|
+
--theme-accent: 135 28% 92%;
|
|
43
|
+
--theme-muted: 130 18% 94%;
|
|
44
|
+
--theme-primary: 145 55% 35%;
|
|
45
|
+
--theme-ring: 145 45% 45%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:root.dark[data-appearance="forest"]:not([data-app-theme="agent-native"]) {
|
|
49
|
+
--theme-background: 140 14% 7%;
|
|
50
|
+
--theme-sidebar-background: 140 14% 5%;
|
|
51
|
+
--theme-accent: 140 12% 14%;
|
|
52
|
+
--theme-muted: 140 10% 12%;
|
|
53
|
+
--theme-primary: 145 50% 60%;
|
|
54
|
+
--theme-ring: 145 40% 50%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:root[data-appearance="rose"]:not([data-app-theme="agent-native"]) {
|
|
58
|
+
--theme-background: 340 35% 98%;
|
|
59
|
+
--theme-sidebar-background: 340 32% 96%;
|
|
60
|
+
--theme-accent: 345 40% 93%;
|
|
61
|
+
--theme-muted: 340 28% 95%;
|
|
62
|
+
--theme-primary: 345 60% 50%;
|
|
63
|
+
--theme-ring: 345 50% 55%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:root.dark[data-appearance="rose"]:not([data-app-theme="agent-native"]) {
|
|
67
|
+
--theme-background: 340 14% 8%;
|
|
68
|
+
--theme-sidebar-background: 340 14% 6%;
|
|
69
|
+
--theme-accent: 340 14% 15%;
|
|
70
|
+
--theme-muted: 340 12% 12%;
|
|
71
|
+
--theme-primary: 345 65% 65%;
|
|
72
|
+
--theme-ring: 345 55% 55%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:root[data-appearance="slate"]:not([data-app-theme="agent-native"]) {
|
|
76
|
+
--theme-background: 215 16% 96%;
|
|
77
|
+
--theme-sidebar-background: 215 14% 94%;
|
|
78
|
+
--theme-accent: 215 18% 91%;
|
|
79
|
+
--theme-muted: 215 14% 93%;
|
|
80
|
+
--theme-primary: 215 25% 25%;
|
|
81
|
+
--theme-ring: 215 20% 40%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:root.dark[data-appearance="slate"]:not([data-app-theme="agent-native"]) {
|
|
85
|
+
--theme-background: 215 14% 8%;
|
|
86
|
+
--theme-sidebar-background: 215 14% 6%;
|
|
87
|
+
--theme-accent: 215 12% 14%;
|
|
88
|
+
--theme-muted: 215 10% 12%;
|
|
89
|
+
--theme-primary: 215 15% 75%;
|
|
90
|
+
--theme-ring: 215 12% 60%;
|
|
91
|
+
}
|
package/css/main.css
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The design system's Tailwind v4 layer. Import after `@import "tailwindcss"`
|
|
3
|
+
* (toolkit's styles.css does this for every app).
|
|
4
|
+
*
|
|
5
|
+
* It maps semantic roles and scale steps onto utilities, so app chrome can be
|
|
6
|
+
* written with the same tokens the parts use: `bg-surface-canvas`,
|
|
7
|
+
* `text-fg-muted`, `border-line`, `bg-fill-hover`, `rounded-control`,
|
|
8
|
+
* `text-brand-11`, `h-control-md`, `text-1`. None of these names collide
|
|
9
|
+
* with shadcn's (`bg-background`, `bg-accent`, ...), which keep working.
|
|
10
|
+
*
|
|
11
|
+
* `@theme inline` keeps every utility pointed at the live variable, so a
|
|
12
|
+
* `.dark`, `data-theme`, `data-density` or `data-palette` subtree restyles
|
|
13
|
+
* the utilities inside it too.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
@theme inline {
|
|
17
|
+
--color-surface-app: var(--surface-app);
|
|
18
|
+
--color-surface-nav: var(--surface-nav);
|
|
19
|
+
--color-surface-canvas: var(--surface-canvas);
|
|
20
|
+
--color-surface-raised: var(--surface-raised);
|
|
21
|
+
--color-surface-sunken: var(--surface-sunken);
|
|
22
|
+
--color-surface-overlay: var(--surface-overlay);
|
|
23
|
+
--color-surface-inverse: var(--surface-inverse);
|
|
24
|
+
|
|
25
|
+
--color-fg: var(--fg-default);
|
|
26
|
+
--color-fg-muted: var(--fg-muted);
|
|
27
|
+
--color-fg-subtle: var(--fg-subtle);
|
|
28
|
+
--color-fg-disabled: var(--fg-disabled);
|
|
29
|
+
--color-fg-on-brand: var(--fg-on-brand);
|
|
30
|
+
--color-fg-on-danger: var(--fg-on-danger);
|
|
31
|
+
--color-fg-brand: var(--fg-brand);
|
|
32
|
+
--color-fg-danger: var(--fg-danger);
|
|
33
|
+
--color-fg-inverse: var(--fg-inverse);
|
|
34
|
+
|
|
35
|
+
--color-line: var(--line-default);
|
|
36
|
+
--color-line-subtle: var(--line-subtle);
|
|
37
|
+
--color-line-strong: var(--line-strong);
|
|
38
|
+
--color-line-focus: var(--line-focus);
|
|
39
|
+
|
|
40
|
+
--color-fill-hover: var(--fill-hover);
|
|
41
|
+
--color-fill-pressed: var(--fill-pressed);
|
|
42
|
+
--color-fill-selected: var(--fill-selected);
|
|
43
|
+
--color-fill-neutral: var(--fill-neutral);
|
|
44
|
+
--color-fill-neutral-hover: var(--fill-neutral-hover);
|
|
45
|
+
--color-fill-field: var(--fill-field);
|
|
46
|
+
--color-fill-brand: var(--fill-brand);
|
|
47
|
+
--color-fill-brand-hover: var(--fill-brand-hover);
|
|
48
|
+
--color-fill-brand-subtle: var(--fill-brand-subtle);
|
|
49
|
+
--color-fill-danger: var(--fill-danger);
|
|
50
|
+
--color-fill-danger-hover: var(--fill-danger-hover);
|
|
51
|
+
--color-fill-danger-subtle: var(--fill-danger-subtle);
|
|
52
|
+
|
|
53
|
+
--color-status-danger: var(--status-danger-solid);
|
|
54
|
+
--color-status-danger-subtle: var(--status-danger-subtle);
|
|
55
|
+
--color-status-danger-fg: var(--status-danger-fg);
|
|
56
|
+
--color-status-danger-line: var(--status-danger-line);
|
|
57
|
+
--color-status-warning: var(--status-warning-solid);
|
|
58
|
+
--color-status-warning-subtle: var(--status-warning-subtle);
|
|
59
|
+
--color-status-warning-fg: var(--status-warning-fg);
|
|
60
|
+
--color-status-warning-line: var(--status-warning-line);
|
|
61
|
+
--color-status-success: var(--status-success-solid);
|
|
62
|
+
--color-status-success-subtle: var(--status-success-subtle);
|
|
63
|
+
--color-status-success-fg: var(--status-success-fg);
|
|
64
|
+
--color-status-success-line: var(--status-success-line);
|
|
65
|
+
--color-status-info: var(--status-info-solid);
|
|
66
|
+
--color-status-info-subtle: var(--status-info-subtle);
|
|
67
|
+
--color-status-info-fg: var(--status-info-fg);
|
|
68
|
+
--color-status-info-line: var(--status-info-line);
|
|
69
|
+
|
|
70
|
+
--color-gray-1: var(--gray-1);
|
|
71
|
+
--color-gray-2: var(--gray-2);
|
|
72
|
+
--color-gray-3: var(--gray-3);
|
|
73
|
+
--color-gray-4: var(--gray-4);
|
|
74
|
+
--color-gray-5: var(--gray-5);
|
|
75
|
+
--color-gray-6: var(--gray-6);
|
|
76
|
+
--color-gray-7: var(--gray-7);
|
|
77
|
+
--color-gray-8: var(--gray-8);
|
|
78
|
+
--color-gray-9: var(--gray-9);
|
|
79
|
+
--color-gray-10: var(--gray-10);
|
|
80
|
+
--color-gray-11: var(--gray-11);
|
|
81
|
+
--color-gray-12: var(--gray-12);
|
|
82
|
+
--color-gray-a1: var(--gray-a1);
|
|
83
|
+
--color-gray-a2: var(--gray-a2);
|
|
84
|
+
--color-gray-a3: var(--gray-a3);
|
|
85
|
+
--color-gray-a4: var(--gray-a4);
|
|
86
|
+
--color-gray-a5: var(--gray-a5);
|
|
87
|
+
--color-gray-a6: var(--gray-a6);
|
|
88
|
+
--color-gray-a7: var(--gray-a7);
|
|
89
|
+
--color-gray-a8: var(--gray-a8);
|
|
90
|
+
--color-gray-a9: var(--gray-a9);
|
|
91
|
+
--color-gray-a10: var(--gray-a10);
|
|
92
|
+
--color-gray-a11: var(--gray-a11);
|
|
93
|
+
--color-gray-a12: var(--gray-a12);
|
|
94
|
+
|
|
95
|
+
--color-brand-1: var(--brand-1);
|
|
96
|
+
--color-brand-2: var(--brand-2);
|
|
97
|
+
--color-brand-3: var(--brand-3);
|
|
98
|
+
--color-brand-4: var(--brand-4);
|
|
99
|
+
--color-brand-5: var(--brand-5);
|
|
100
|
+
--color-brand-6: var(--brand-6);
|
|
101
|
+
--color-brand-7: var(--brand-7);
|
|
102
|
+
--color-brand-8: var(--brand-8);
|
|
103
|
+
--color-brand-9: var(--brand-9);
|
|
104
|
+
--color-brand-10: var(--brand-10);
|
|
105
|
+
--color-brand-11: var(--brand-11);
|
|
106
|
+
--color-brand-12: var(--brand-12);
|
|
107
|
+
--color-brand-a1: var(--brand-a1);
|
|
108
|
+
--color-brand-a2: var(--brand-a2);
|
|
109
|
+
--color-brand-a3: var(--brand-a3);
|
|
110
|
+
--color-brand-a4: var(--brand-a4);
|
|
111
|
+
--color-brand-a5: var(--brand-a5);
|
|
112
|
+
--color-brand-a6: var(--brand-a6);
|
|
113
|
+
--color-brand-a7: var(--brand-a7);
|
|
114
|
+
--color-brand-a8: var(--brand-a8);
|
|
115
|
+
--color-brand-a9: var(--brand-a9);
|
|
116
|
+
--color-brand-a10: var(--brand-a10);
|
|
117
|
+
--color-brand-a11: var(--brand-a11);
|
|
118
|
+
--color-brand-a12: var(--brand-a12);
|
|
119
|
+
--color-brand-contrast: var(--brand-contrast);
|
|
120
|
+
|
|
121
|
+
--radius-control: var(--shape-control);
|
|
122
|
+
--radius-popup: var(--shape-popup);
|
|
123
|
+
--radius-card: var(--shape-card);
|
|
124
|
+
--radius-panel: var(--shape-panel);
|
|
125
|
+
--radius-dialog: var(--shape-dialog);
|
|
126
|
+
--radius-pill: var(--shape-pill);
|
|
127
|
+
|
|
128
|
+
--shadow-elevation-1: var(--shadow-1);
|
|
129
|
+
--shadow-elevation-2: var(--shadow-2);
|
|
130
|
+
--shadow-elevation-3: var(--shadow-3);
|
|
131
|
+
--shadow-elevation-4: var(--shadow-4);
|
|
132
|
+
--shadow-elevation-5: var(--shadow-5);
|
|
133
|
+
--shadow-elevation-6: var(--shadow-6);
|
|
134
|
+
|
|
135
|
+
--spacing-control-1: var(--control-height-1);
|
|
136
|
+
--spacing-control-2: var(--control-height-2);
|
|
137
|
+
--spacing-control-3: var(--control-height-3);
|
|
138
|
+
--spacing-control-4: var(--control-height-4);
|
|
139
|
+
|
|
140
|
+
--text-0: var(--font-size-0);
|
|
141
|
+
--text-0--line-height: var(--line-height-0);
|
|
142
|
+
--text-0--letter-spacing: var(--letter-spacing-0);
|
|
143
|
+
--text-1: var(--font-size-1);
|
|
144
|
+
--text-1--line-height: var(--line-height-1);
|
|
145
|
+
--text-1--letter-spacing: var(--letter-spacing-1);
|
|
146
|
+
--text-2: var(--font-size-2);
|
|
147
|
+
--text-2--line-height: var(--line-height-2);
|
|
148
|
+
--text-2--letter-spacing: var(--letter-spacing-2);
|
|
149
|
+
--text-3: var(--font-size-3);
|
|
150
|
+
--text-3--line-height: var(--line-height-3);
|
|
151
|
+
--text-3--letter-spacing: var(--letter-spacing-3);
|
|
152
|
+
--text-4: var(--font-size-4);
|
|
153
|
+
--text-4--line-height: var(--line-height-4);
|
|
154
|
+
--text-4--letter-spacing: var(--letter-spacing-4);
|
|
155
|
+
--text-5: var(--font-size-5);
|
|
156
|
+
--text-5--line-height: var(--line-height-5);
|
|
157
|
+
--text-5--letter-spacing: var(--letter-spacing-5);
|
|
158
|
+
--text-6: var(--font-size-6);
|
|
159
|
+
--text-6--line-height: var(--line-height-6);
|
|
160
|
+
--text-6--letter-spacing: var(--letter-spacing-6);
|
|
161
|
+
--text-7: var(--font-size-7);
|
|
162
|
+
--text-7--line-height: var(--line-height-7);
|
|
163
|
+
--text-7--letter-spacing: var(--letter-spacing-7);
|
|
164
|
+
--text-8: var(--font-size-8);
|
|
165
|
+
--text-8--line-height: var(--line-height-8);
|
|
166
|
+
--text-8--letter-spacing: var(--letter-spacing-8);
|
|
167
|
+
--text-9: var(--font-size-9);
|
|
168
|
+
--text-9--line-height: var(--line-height-9);
|
|
169
|
+
--text-9--letter-spacing: var(--letter-spacing-9);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Scope variants: `compact:gap-1`. */
|
|
173
|
+
@custom-variant compact (&:where([data-density="compact"], [data-density="compact"] *));
|
|
174
|
+
@custom-variant comfortable (&:where([data-density="comfortable"], [data-density="comfortable"] *));
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Part: accordion
|
|
3
|
+
*
|
|
4
|
+
* <div class="accordion"> Base UI Accordion.Root
|
|
5
|
+
* <div class="accordion-item" [data-open]> Accordion.Item
|
|
6
|
+
* <h3 class="accordion-header"> Accordion.Header
|
|
7
|
+
* <button class="accordion-trigger" Accordion.Trigger [data-panel-open]
|
|
8
|
+
* <svg class="accordion-chevron">
|
|
9
|
+
* <div class="accordion-panel"> Accordion.Panel [data-open]
|
|
10
|
+
*
|
|
11
|
+
* Rows divided by hairlines; a trigger is a 32px row with its chevron
|
|
12
|
+
* turning as the panel opens, and the panel animates its height. Radix
|
|
13
|
+
* Themes has no accordion, so it takes Base UI's props and no others.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
@layer components {
|
|
17
|
+
.accordion {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.accordion-item {
|
|
23
|
+
border-bottom: 1px solid var(--line-subtle);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.accordion-header {
|
|
27
|
+
margin: 0;
|
|
28
|
+
font: inherit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.accordion-trigger {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
gap: var(--space-2);
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-height: var(--control-height-4);
|
|
39
|
+
padding: var(--space-2) 0;
|
|
40
|
+
border: 0;
|
|
41
|
+
border-radius: var(--shape-control);
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: var(--fg-default);
|
|
44
|
+
font: inherit;
|
|
45
|
+
font-size: var(--control-font-size);
|
|
46
|
+
line-height: var(--control-line-height);
|
|
47
|
+
font-weight: var(--font-weight-medium);
|
|
48
|
+
text-align: start;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
outline-style: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.accordion-trigger:focus-visible {
|
|
54
|
+
outline: var(--focus-ring-width) solid var(--line-focus);
|
|
55
|
+
outline-offset: var(--focus-ring-offset);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.accordion-trigger[data-disabled] {
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
color: var(--gray-a8);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.accordion-trigger[data-disabled] .accordion-chevron {
|
|
64
|
+
color: inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.accordion-chevron {
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
width: var(--control-icon-size-3);
|
|
70
|
+
height: var(--control-icon-size-3);
|
|
71
|
+
color: var(--fg-muted);
|
|
72
|
+
transition: rotate var(--duration-2) var(--ease-standard);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.accordion-trigger[data-panel-open] .accordion-chevron {
|
|
76
|
+
rotate: 180deg;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.accordion-panel {
|
|
80
|
+
height: var(--accordion-panel-height);
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
color: var(--fg-muted);
|
|
83
|
+
font-size: var(--control-font-size);
|
|
84
|
+
line-height: var(--control-line-height);
|
|
85
|
+
transition: height var(--duration-2) var(--ease-standard);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.accordion-panel[data-starting-style],
|
|
89
|
+
.accordion-panel[data-ending-style] {
|
|
90
|
+
height: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Spacing inside the panel, so the height animation includes it. */
|
|
94
|
+
.accordion-panel > :last-child {
|
|
95
|
+
padding-bottom: var(--space-2);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (prefers-reduced-motion: reduce) {
|
|
99
|
+
.accordion-chevron,
|
|
100
|
+
.accordion-panel {
|
|
101
|
+
transition: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Part: alert-dialog
|
|
3
|
+
*
|
|
4
|
+
* <div class="alert-dialog-backdrop" data-open|data-closed>
|
|
5
|
+
* <div class="alert-dialog-popup" data-size="1|2|3|4" role="alertdialog"
|
|
6
|
+
* data-open|data-closed [data-starting-style] [data-ending-style]>
|
|
7
|
+
* <div class="alert-dialog-header">
|
|
8
|
+
* <h2 class="alert-dialog-title"> <p class="alert-dialog-description">
|
|
9
|
+
* <div class="alert-dialog-footer">
|
|
10
|
+
* <button class="button"> (AlertDialogAction / AlertDialogCancel)
|
|
11
|
+
*
|
|
12
|
+
* An alert dialog is the dialog that must be answered, so it stacks above
|
|
13
|
+
* dialogs, drawers and popovers on its own layers. `data-size` steps the
|
|
14
|
+
* popup's padding, gap and type as the dialog's does; 3 is the default.
|
|
15
|
+
* Action and Cancel are the button part.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
@layer components {
|
|
19
|
+
.alert-dialog-backdrop {
|
|
20
|
+
position: fixed;
|
|
21
|
+
inset: 0;
|
|
22
|
+
z-index: var(--layer-alert-dialog-backdrop);
|
|
23
|
+
background-color: var(--surface-overlay);
|
|
24
|
+
transition-property: opacity;
|
|
25
|
+
transition-duration: var(--duration-2);
|
|
26
|
+
transition-timing-function: var(--ease-standard);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.alert-dialog-popup {
|
|
30
|
+
position: fixed;
|
|
31
|
+
left: 50%;
|
|
32
|
+
top: 50%;
|
|
33
|
+
z-index: var(--layer-alert-dialog);
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: var(--space-4);
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
width: calc(100vw - var(--space-3) * 2);
|
|
38
|
+
max-width: 32rem;
|
|
39
|
+
translate: -50% -50%;
|
|
40
|
+
padding: var(--space-5);
|
|
41
|
+
border: 1px solid var(--line-default);
|
|
42
|
+
border-radius: calc(var(--shape-dialog) * var(--corner-scale, 1));
|
|
43
|
+
corner-shape: var(--corner-shape, round);
|
|
44
|
+
background-color: var(--surface-raised);
|
|
45
|
+
color: var(--fg-default);
|
|
46
|
+
box-shadow: var(--shadow-5);
|
|
47
|
+
outline-style: none;
|
|
48
|
+
transition-property: opacity, scale;
|
|
49
|
+
transition-duration: 200ms;
|
|
50
|
+
transition-timing-function: var(--ease-standard);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.alert-dialog-backdrop[data-starting-style],
|
|
54
|
+
.alert-dialog-backdrop[data-ending-style] {
|
|
55
|
+
opacity: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.alert-dialog-popup[data-starting-style],
|
|
59
|
+
.alert-dialog-popup[data-ending-style] {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
scale: 0.95;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.alert-dialog-backdrop[data-ending-style],
|
|
65
|
+
.alert-dialog-popup[data-ending-style] {
|
|
66
|
+
transition-duration: var(--duration-2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (prefers-reduced-motion: reduce) {
|
|
70
|
+
.alert-dialog-backdrop,
|
|
71
|
+
.alert-dialog-popup {
|
|
72
|
+
transition-property: none;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.alert-dialog-header {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
gap: var(--space-2);
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.alert-dialog-footer {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column-reverse;
|
|
86
|
+
gap: var(--space-2);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (min-width: 40rem) {
|
|
90
|
+
.alert-dialog-header {
|
|
91
|
+
text-align: start;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.alert-dialog-footer {
|
|
95
|
+
flex-direction: row;
|
|
96
|
+
justify-content: flex-end;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.alert-dialog-title {
|
|
101
|
+
margin: 0;
|
|
102
|
+
font-size: var(--font-size-4);
|
|
103
|
+
line-height: var(--line-height-4);
|
|
104
|
+
font-weight: var(--font-weight-semibold);
|
|
105
|
+
color: var(--fg-default);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.alert-dialog-description {
|
|
109
|
+
margin: 0;
|
|
110
|
+
font-size: var(--font-size-2);
|
|
111
|
+
line-height: var(--line-height-2);
|
|
112
|
+
color: var(--fg-muted);
|
|
113
|
+
}
|
|
114
|
+
/* ---- sizes: padding, gap and type step together ---- */
|
|
115
|
+
|
|
116
|
+
.alert-dialog-popup[data-size="1"] {
|
|
117
|
+
padding: var(--space-3);
|
|
118
|
+
gap: var(--space-3);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.alert-dialog-popup[data-size="1"] .alert-dialog-title {
|
|
122
|
+
font-size: var(--font-size-2);
|
|
123
|
+
line-height: var(--line-height-2);
|
|
124
|
+
letter-spacing: var(--letter-spacing-2);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.alert-dialog-popup[data-size="1"] .alert-dialog-description {
|
|
128
|
+
font-size: var(--font-size-1);
|
|
129
|
+
line-height: var(--line-height-1);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.alert-dialog-popup[data-size="2"] {
|
|
133
|
+
padding: var(--space-4);
|
|
134
|
+
gap: var(--space-3);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.alert-dialog-popup[data-size="2"] .alert-dialog-title {
|
|
138
|
+
font-size: var(--font-size-3);
|
|
139
|
+
line-height: var(--line-height-3);
|
|
140
|
+
letter-spacing: var(--letter-spacing-3);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.alert-dialog-popup[data-size="4"] {
|
|
144
|
+
padding: var(--space-6);
|
|
145
|
+
gap: var(--space-5);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.alert-dialog-popup[data-size="4"] .alert-dialog-title {
|
|
149
|
+
font-size: var(--font-size-5);
|
|
150
|
+
line-height: var(--line-height-5);
|
|
151
|
+
letter-spacing: var(--letter-spacing-5);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.alert-dialog-popup[data-size="4"] .alert-dialog-description {
|
|
155
|
+
font-size: var(--font-size-3);
|
|
156
|
+
line-height: var(--line-height-3);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
}
|