@tale-ui/react-styles 0.0.3

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 ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Material-UI SAS
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/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@tale-ui/react-styles",
3
+ "version": "0.0.3",
4
+ "description": "CSS styles for @tale-ui/react components, built on @tale-ui/core design tokens.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Tale-UI/react.git",
8
+ "directory": "packages/styles"
9
+ },
10
+ "license": "MIT",
11
+ "main": "src/index.css",
12
+ "style": "src/index.css",
13
+ "exports": {
14
+ ".": "./src/index.css",
15
+ "./button": "./src/button.css",
16
+ "./checkbox": "./src/checkbox.css",
17
+ "./radio": "./src/radio.css",
18
+ "./switch": "./src/switch.css",
19
+ "./toggle": "./src/toggle.css",
20
+ "./input": "./src/input.css",
21
+ "./number-field": "./src/number-field.css",
22
+ "./slider": "./src/slider.css",
23
+ "./select": "./src/select.css",
24
+ "./combobox": "./src/combobox.css",
25
+ "./autocomplete": "./src/autocomplete.css",
26
+ "./accordion": "./src/accordion.css",
27
+ "./collapsible": "./src/collapsible.css",
28
+ "./tabs": "./src/tabs.css",
29
+ "./scroll-area": "./src/scroll-area.css",
30
+ "./separator": "./src/separator.css",
31
+ "./dialog": "./src/dialog.css",
32
+ "./alert-dialog": "./src/alert-dialog.css",
33
+ "./popover": "./src/popover.css",
34
+ "./drawer": "./src/drawer.css",
35
+ "./tooltip": "./src/tooltip.css",
36
+ "./preview-card": "./src/preview-card.css",
37
+ "./menu": "./src/menu.css",
38
+ "./navigation-menu": "./src/navigation-menu.css",
39
+ "./progress": "./src/progress.css",
40
+ "./meter": "./src/meter.css",
41
+ "./avatar": "./src/avatar.css",
42
+ "./toast": "./src/toast.css",
43
+ "./field": "./src/field.css",
44
+ "./fieldset": "./src/fieldset.css",
45
+ "./form": "./src/form.css",
46
+ "./toolbar": "./src/toolbar.css"
47
+ },
48
+ "dependencies": {
49
+ "@tale-ui/core": "^1.1.6"
50
+ },
51
+ "sideEffects": [
52
+ "**/*.css"
53
+ ],
54
+ "private": false,
55
+ "publishConfig": {
56
+ "access": "public"
57
+ }
58
+ }
@@ -0,0 +1,101 @@
1
+ /*
2
+ * Accordion — @tale-ui/react
3
+ *
4
+ * Styled with @tale-ui/core design tokens.
5
+ * Base-ui Accordion exposes:
6
+ * Root: [data-disabled] [data-orientation]
7
+ * Item: [data-index] [data-disabled] [data-open]
8
+ *
9
+ * Usage:
10
+ * <Accordion.Root className="tale-accordion">
11
+ * <Accordion.Item className="tale-accordion__item">
12
+ * <Accordion.Header>
13
+ * <Accordion.Trigger className="tale-accordion__trigger">Title</Accordion.Trigger>
14
+ * </Accordion.Header>
15
+ * <Accordion.Panel className="tale-accordion__panel">Content</Accordion.Panel>
16
+ * </Accordion.Item>
17
+ * </Accordion.Root>
18
+ */
19
+
20
+ /* ─── Root ─────────────────────────────────────────────────────────────────── */
21
+
22
+ .tale-accordion {
23
+ width: 100%;
24
+ border: 1px solid var(--neutral-20);
25
+ border-radius: 0.8rem;
26
+ overflow: hidden;
27
+ }
28
+
29
+ /* ─── Item ─────────────────────────────────────────────────────────────────── */
30
+
31
+ .tale-accordion__item {
32
+ border-bottom: 1px solid var(--neutral-20);
33
+ }
34
+
35
+ .tale-accordion__item:last-child {
36
+ border-bottom: none;
37
+ }
38
+
39
+ /* ─── Trigger ──────────────────────────────────────────────────────────────── */
40
+
41
+ .tale-accordion__trigger {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: space-between;
45
+ width: 100%;
46
+ padding: var(--space-s) var(--space-m);
47
+ background-color: transparent;
48
+ border: none;
49
+ color: var(--neutral-90);
50
+ font-family: var(--label-font-family);
51
+ font-size: var(--label-m-font-size);
52
+ font-weight: var(--label-font-weight);
53
+ text-align: left;
54
+ cursor: pointer;
55
+ outline: none;
56
+ transition: background-color 0.15s ease, color 0.15s ease;
57
+ gap: var(--space-xs);
58
+ }
59
+
60
+ .tale-accordion__trigger:hover {
61
+ background-color: var(--neutral-12);
62
+ }
63
+
64
+ .tale-accordion__trigger:focus-visible {
65
+ box-shadow: inset 0 0 0 2px var(--color-60);
66
+ }
67
+
68
+ .tale-accordion__item[data-disabled] .tale-accordion__trigger {
69
+ opacity: 0.45;
70
+ cursor: not-allowed;
71
+ pointer-events: none;
72
+ }
73
+
74
+ /* ─── Trigger chevron icon ────────────────────────────────────────────────── */
75
+
76
+ .tale-accordion__trigger-icon {
77
+ width: 1.6rem;
78
+ height: 1.6rem;
79
+ flex-shrink: 0;
80
+ color: var(--neutral-50);
81
+ transition: transform 0.2s ease;
82
+ }
83
+
84
+ .tale-accordion__item[data-open] .tale-accordion__trigger-icon {
85
+ transform: rotate(180deg);
86
+ }
87
+
88
+ /* ─── Panel ────────────────────────────────────────────────────────────────── */
89
+
90
+ .tale-accordion__panel {
91
+ overflow: hidden;
92
+ padding: 0 var(--space-m) var(--space-s);
93
+ color: var(--neutral-80);
94
+ font-family: var(--body-font-family);
95
+ font-size: var(--text-m-font-size);
96
+ line-height: 1.6;
97
+ }
98
+
99
+ .tale-accordion__panel:not([data-open]) {
100
+ display: none;
101
+ }
@@ -0,0 +1,102 @@
1
+ /*
2
+ * AlertDialog — @tale-ui/react
3
+ *
4
+ * Styled with @tale-ui/core design tokens.
5
+ * Shares the same popup structure as Dialog.
6
+ * AlertDialog is a Dialog variant that locks focus and requires explicit action.
7
+ *
8
+ * Base-ui AlertDialog exposes:
9
+ * Popup: [data-open] [data-closed] [data-starting-style] [data-ending-style]
10
+ * Backdrop: [data-open] [data-closed] [data-starting-style] [data-ending-style]
11
+ *
12
+ * Usage:
13
+ * <AlertDialog.Root>
14
+ * <AlertDialog.Trigger className="tale-button tale-button--danger">Delete</AlertDialog.Trigger>
15
+ * <AlertDialog.Portal>
16
+ * <AlertDialog.Backdrop className="tale-alert-dialog__backdrop" />
17
+ * <AlertDialog.Popup className="tale-alert-dialog__popup">
18
+ * <AlertDialog.Title className="tale-alert-dialog__title">Confirm</AlertDialog.Title>
19
+ * <AlertDialog.Description className="tale-alert-dialog__description">…</AlertDialog.Description>
20
+ * <div className="tale-alert-dialog__actions">
21
+ * <AlertDialog.Close className="tale-button tale-button--neutral">Cancel</AlertDialog.Close>
22
+ * <AlertDialog.Close className="tale-button tale-button--danger">Delete</AlertDialog.Close>
23
+ * </div>
24
+ * </AlertDialog.Popup>
25
+ * </AlertDialog.Portal>
26
+ * </AlertDialog.Root>
27
+ */
28
+
29
+ /* ─── Backdrop ─────────────────────────────────────────────────────────────── */
30
+
31
+ .tale-alert-dialog__backdrop {
32
+ position: fixed;
33
+ inset: 0;
34
+ background-color: rgba(0, 0, 0, 0.5);
35
+ z-index: 100;
36
+ transition: opacity 0.2s ease;
37
+ }
38
+
39
+ .tale-alert-dialog__backdrop[data-starting-style],
40
+ .tale-alert-dialog__backdrop[data-ending-style] {
41
+ opacity: 0;
42
+ }
43
+
44
+ /* ─── Popup ────────────────────────────────────────────────────────────────── */
45
+
46
+ .tale-alert-dialog__popup {
47
+ position: fixed;
48
+ top: 50%;
49
+ left: 50%;
50
+ transform: translate(-50%, -50%);
51
+ z-index: 101;
52
+ width: min(90vw, 44rem);
53
+ background-color: var(--neutral-10);
54
+ border: 1px solid var(--neutral-20);
55
+ border-radius: 1.2rem;
56
+ box-shadow:
57
+ 0 4px 6px -1px rgba(0, 0, 0, 0.1),
58
+ 0 20px 40px -4px rgba(0, 0, 0, 0.15);
59
+ padding: var(--space-xl);
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: var(--space-m);
63
+ outline: none;
64
+ transition: opacity 0.2s ease, transform 0.2s ease;
65
+ }
66
+
67
+ .tale-alert-dialog__popup[data-starting-style],
68
+ .tale-alert-dialog__popup[data-ending-style] {
69
+ opacity: 0;
70
+ transform: translate(-50%, calc(-50% - 0.8rem));
71
+ }
72
+
73
+ /* ─── Title ────────────────────────────────────────────────────────────────── */
74
+
75
+ .tale-alert-dialog__title {
76
+ margin: 0;
77
+ color: var(--neutral-95);
78
+ font-family: var(--label-font-family);
79
+ font-size: var(--label-l-font-size);
80
+ font-weight: var(--label-font-weight);
81
+ line-height: 1.3;
82
+ }
83
+
84
+ /* ─── Description ──────────────────────────────────────────────────────────── */
85
+
86
+ .tale-alert-dialog__description {
87
+ margin: 0;
88
+ color: var(--neutral-70);
89
+ font-family: var(--body-font-family);
90
+ font-size: var(--text-m-font-size);
91
+ line-height: 1.6;
92
+ }
93
+
94
+ /* ─── Actions ──────────────────────────────────────────────────────────────── */
95
+
96
+ .tale-alert-dialog__actions {
97
+ display: flex;
98
+ align-items: center;
99
+ justify-content: flex-end;
100
+ gap: var(--space-xs);
101
+ margin-top: var(--space-xs);
102
+ }
@@ -0,0 +1,128 @@
1
+ /*
2
+ * Autocomplete — @tale-ui/react
3
+ *
4
+ * Styled with @tale-ui/core design tokens.
5
+ * Autocomplete wraps an Input with a listbox popup for suggestions.
6
+ *
7
+ * Usage:
8
+ * <Autocomplete.Root>
9
+ * <Autocomplete.Input className="tale-autocomplete__input" />
10
+ * <Autocomplete.Portal>
11
+ * <Autocomplete.Positioner>
12
+ * <Autocomplete.Popup className="tale-autocomplete__popup">
13
+ * <Autocomplete.Item className="tale-autocomplete__item" value="a">Option A</Autocomplete.Item>
14
+ * <Autocomplete.Empty className="tale-autocomplete__empty">No results</Autocomplete.Empty>
15
+ * </Autocomplete.Popup>
16
+ * </Autocomplete.Positioner>
17
+ * </Autocomplete.Portal>
18
+ * </Autocomplete.Root>
19
+ */
20
+
21
+ /* ─── Input ────────────────────────────────────────────────────────────────── */
22
+
23
+ .tale-autocomplete__input {
24
+ display: block;
25
+ width: 100%;
26
+ min-height: 3.6rem;
27
+ padding: var(--space-3xs) var(--space-xs);
28
+ border: 1px solid var(--neutral-26);
29
+ border-radius: 0.6rem;
30
+ background-color: var(--neutral-10);
31
+ color: var(--neutral-90);
32
+ font-family: var(--body-font-family);
33
+ font-size: var(--text-m-font-size);
34
+ outline: none;
35
+ transition: border-color 0.15s ease, box-shadow 0.15s ease;
36
+ }
37
+
38
+ .tale-autocomplete__input::placeholder {
39
+ color: var(--neutral-50);
40
+ }
41
+
42
+ .tale-autocomplete__input:hover {
43
+ border-color: var(--neutral-40);
44
+ }
45
+
46
+ .tale-autocomplete__input:focus {
47
+ border-color: var(--color-60);
48
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-60) 20%, transparent);
49
+ }
50
+
51
+ /* ─── Popup ────────────────────────────────────────────────────────────────── */
52
+
53
+ .tale-autocomplete__popup {
54
+ background-color: var(--neutral-10);
55
+ border: 1px solid var(--neutral-20);
56
+ border-radius: 0.8rem;
57
+ box-shadow:
58
+ 0 2px 4px rgba(0, 0, 0, 0.06),
59
+ 0 8px 24px rgba(0, 0, 0, 0.08);
60
+ padding: var(--space-4xs);
61
+ outline: none;
62
+ max-height: 28rem;
63
+ overflow-y: auto;
64
+ transition: opacity 0.15s ease, transform 0.15s ease;
65
+ }
66
+
67
+ .tale-autocomplete__popup[data-starting-style],
68
+ .tale-autocomplete__popup[data-ending-style] {
69
+ opacity: 0;
70
+ transform: scale(0.97);
71
+ }
72
+
73
+ /* ─── Item ─────────────────────────────────────────────────────────────────── */
74
+
75
+ .tale-autocomplete__item {
76
+ display: flex;
77
+ align-items: center;
78
+ gap: var(--space-2xs);
79
+ padding: var(--space-2xs) var(--space-xs);
80
+ border-radius: 0.5rem;
81
+ color: var(--neutral-80);
82
+ font-family: var(--body-font-family);
83
+ font-size: var(--text-m-font-size);
84
+ cursor: pointer;
85
+ outline: none;
86
+ transition: background-color 0.1s ease, color 0.1s ease;
87
+ user-select: none;
88
+ }
89
+
90
+ .tale-autocomplete__item[data-highlighted] {
91
+ background-color: var(--neutral-14);
92
+ color: var(--neutral-90);
93
+ }
94
+
95
+ .tale-autocomplete__item[data-selected] {
96
+ color: var(--color-60);
97
+ font-weight: var(--label-font-weight);
98
+ }
99
+
100
+ .tale-autocomplete__item[data-disabled] {
101
+ opacity: 0.45;
102
+ cursor: not-allowed;
103
+ pointer-events: none;
104
+ }
105
+
106
+ /* ─── Empty state ──────────────────────────────────────────────────────────── */
107
+
108
+ .tale-autocomplete__empty {
109
+ padding: var(--space-m);
110
+ text-align: center;
111
+ color: var(--neutral-50);
112
+ font-family: var(--body-font-family);
113
+ font-size: var(--text-m-font-size);
114
+ cursor: default;
115
+ }
116
+
117
+ /* ─── Group label ──────────────────────────────────────────────────────────── */
118
+
119
+ .tale-autocomplete__group-label {
120
+ padding: var(--space-4xs) var(--space-xs);
121
+ color: var(--neutral-50);
122
+ font-family: var(--label-font-family);
123
+ font-size: var(--label-s-font-size);
124
+ font-weight: var(--label-font-weight);
125
+ text-transform: uppercase;
126
+ letter-spacing: 0.05em;
127
+ cursor: default;
128
+ }
package/src/avatar.css ADDED
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Avatar — @tale-ui/react
3
+ *
4
+ * Styled with @tale-ui/core design tokens.
5
+ * Base-ui Avatar exposes:
6
+ * Image: [data-starting-style] [data-ending-style] (for lazy load transition)
7
+ * Fallback: (shown when image fails or while loading)
8
+ *
9
+ * Sizes: .tale-avatar--sm (2.4rem)
10
+ * .tale-avatar--md (3.6rem, default)
11
+ * .tale-avatar--lg (5.6rem)
12
+ * .tale-avatar--xl (8rem)
13
+ *
14
+ * Usage:
15
+ * <Avatar.Root className="tale-avatar tale-avatar--md">
16
+ * <Avatar.Image className="tale-avatar__image" src="..." alt="..." />
17
+ * <Avatar.Fallback className="tale-avatar__fallback">AB</Avatar.Fallback>
18
+ * </Avatar.Root>
19
+ */
20
+
21
+ /* ─── Root ─────────────────────────────────────────────────────────────────── */
22
+
23
+ .tale-avatar {
24
+ position: relative;
25
+ display: inline-flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ border-radius: 50%;
29
+ background-color: var(--neutral-22);
30
+ overflow: hidden;
31
+ flex-shrink: 0;
32
+
33
+ /* Default size: md */
34
+ width: 3.6rem;
35
+ height: 3.6rem;
36
+ }
37
+
38
+ /* ─── Image ────────────────────────────────────────────────────────────────── */
39
+
40
+ .tale-avatar__image {
41
+ width: 100%;
42
+ height: 100%;
43
+ object-fit: cover;
44
+ border-radius: inherit;
45
+ transition: opacity 0.15s ease;
46
+ }
47
+
48
+ .tale-avatar__image[data-starting-style] {
49
+ opacity: 0;
50
+ }
51
+
52
+ /* ─── Fallback — initials / icon shown when image unavailable ─────────────── */
53
+
54
+ .tale-avatar__fallback {
55
+ position: absolute;
56
+ inset: 0;
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ color: var(--neutral-70);
61
+ font-family: var(--label-font-family);
62
+ font-size: var(--label-s-font-size);
63
+ font-weight: var(--label-font-weight);
64
+ line-height: 1;
65
+ text-transform: uppercase;
66
+ letter-spacing: 0.04em;
67
+ user-select: none;
68
+ }
69
+
70
+ /* ─── Size modifiers ──────────────────────────────────────────────────────── */
71
+
72
+ .tale-avatar--sm {
73
+ width: 2.4rem;
74
+ height: 2.4rem;
75
+ }
76
+
77
+ .tale-avatar--sm .tale-avatar__fallback {
78
+ font-size: var(--label-xs-font-size, 1rem);
79
+ }
80
+
81
+ .tale-avatar--md {
82
+ width: 3.6rem;
83
+ height: 3.6rem;
84
+ }
85
+
86
+ .tale-avatar--lg {
87
+ width: 5.6rem;
88
+ height: 5.6rem;
89
+ }
90
+
91
+ .tale-avatar--lg .tale-avatar__fallback {
92
+ font-size: var(--label-m-font-size);
93
+ }
94
+
95
+ .tale-avatar--xl {
96
+ width: 8rem;
97
+ height: 8rem;
98
+ }
99
+
100
+ .tale-avatar--xl .tale-avatar__fallback {
101
+ font-size: var(--label-l-font-size);
102
+ }
package/src/button.css ADDED
@@ -0,0 +1,148 @@
1
+ /*
2
+ * Button — @tale-ui/react
3
+ *
4
+ * Styled with @tale-ui/core design tokens.
5
+ * Tale UI Button exposes: [data-disabled]
6
+ *
7
+ * Variants: .tale-button--primary (default filled)
8
+ * .tale-button--neutral (subtle secondary)
9
+ * .tale-button--ghost (transparent, border only)
10
+ * .tale-button--danger (destructive)
11
+ *
12
+ * Sizes: .tale-button--sm
13
+ * .tale-button--md (default)
14
+ * .tale-button--lg
15
+ *
16
+ * Usage:
17
+ * <Button className="tale-button tale-button--primary">Label</Button>
18
+ */
19
+
20
+ /* ─── Base ─────────────────────────────────────────────────────────────────── */
21
+
22
+ .tale-button {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ gap: var(--space-3xs);
27
+ border: 1px solid transparent;
28
+ border-radius: 0.6rem;
29
+ font-family: var(--label-font-family);
30
+ font-size: var(--label-m-font-size);
31
+ font-weight: var(--label-font-weight);
32
+ line-height: 1;
33
+ text-decoration: none;
34
+ cursor: pointer;
35
+ outline: none;
36
+ transition:
37
+ background-color 0.15s ease,
38
+ border-color 0.15s ease,
39
+ color 0.15s ease,
40
+ box-shadow 0.15s ease;
41
+ white-space: nowrap;
42
+ user-select: none;
43
+
44
+ /* Default size: md */
45
+ padding: var(--space-3xs) var(--space-xs);
46
+ min-height: 3.6rem;
47
+ }
48
+
49
+ .tale-button:focus-visible {
50
+ box-shadow: 0 0 0 2px var(--neutral-100), 0 0 0 4px var(--color-60);
51
+ }
52
+
53
+ /* ─── Disabled state (from data-disabled attr set by tale-ui) ─────────────── */
54
+
55
+ .tale-button[data-disabled] {
56
+ pointer-events: none;
57
+ cursor: not-allowed;
58
+ opacity: 0.45;
59
+ }
60
+
61
+ /* ─── Primary variant — filled brand colour ───────────────────────────────── */
62
+
63
+ .tale-button--primary {
64
+ background-color: var(--color-60);
65
+ color: var(--neutral-100);
66
+ border-color: transparent;
67
+ }
68
+
69
+ .tale-button--primary:hover:not([data-disabled]) {
70
+ background-color: var(--color-50);
71
+ }
72
+
73
+ .tale-button--primary:active:not([data-disabled]) {
74
+ background-color: var(--color-40);
75
+ }
76
+
77
+ /* ─── Neutral variant — subtle secondary style ────────────────────────────── */
78
+
79
+ .tale-button--neutral {
80
+ background-color: var(--neutral-14);
81
+ color: var(--neutral-90);
82
+ border-color: var(--neutral-22);
83
+ }
84
+
85
+ .tale-button--neutral:hover:not([data-disabled]) {
86
+ background-color: var(--neutral-18);
87
+ border-color: var(--neutral-28);
88
+ }
89
+
90
+ .tale-button--neutral:active:not([data-disabled]) {
91
+ background-color: var(--neutral-22);
92
+ }
93
+
94
+ /* ─── Ghost variant — transparent, border only ────────────────────────────── */
95
+
96
+ .tale-button--ghost {
97
+ background-color: transparent;
98
+ color: var(--neutral-80);
99
+ border-color: transparent;
100
+ }
101
+
102
+ .tale-button--ghost:hover:not([data-disabled]) {
103
+ background-color: var(--neutral-14);
104
+ color: var(--neutral-90);
105
+ }
106
+
107
+ .tale-button--ghost:active:not([data-disabled]) {
108
+ background-color: var(--neutral-18);
109
+ }
110
+
111
+ /* ─── Danger variant — destructive actions ────────────────────────────────── */
112
+
113
+ .tale-button--danger {
114
+ background-color: var(--red-60);
115
+ color: #fff;
116
+ border-color: transparent;
117
+ }
118
+
119
+ .tale-button--danger:hover:not([data-disabled]) {
120
+ background-color: var(--red-50);
121
+ }
122
+
123
+ .tale-button--danger:active:not([data-disabled]) {
124
+ background-color: var(--red-40);
125
+ }
126
+
127
+ /* ─── Size modifiers ──────────────────────────────────────────────────────── */
128
+
129
+ .tale-button--sm {
130
+ font-size: var(--label-s-font-size);
131
+ padding: var(--space-4xs) var(--space-3xs);
132
+ min-height: 2.8rem;
133
+ gap: var(--space-4xs);
134
+ }
135
+
136
+ .tale-button--md {
137
+ /* same as base defaults — explicit for clarity */
138
+ font-size: var(--label-m-font-size);
139
+ padding: var(--space-3xs) var(--space-xs);
140
+ min-height: 3.6rem;
141
+ }
142
+
143
+ .tale-button--lg {
144
+ font-size: var(--label-l-font-size);
145
+ padding: var(--space-2xs) var(--space-s);
146
+ min-height: 4.4rem;
147
+ gap: var(--space-2xs);
148
+ }