tyrell-components 1.0.0-RC14 → 1.0.0-RC16
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 +53 -53
- package/css/tyrell-theme.css +32 -4
- package/css/tyrell.css +10 -15
- package/dist/tyrell-colors-static.css +1 -316
- package/dist/tyrell-theme.css +1 -1443
- package/dist/tyrell.css +1 -1390
- package/dist/tyrell.js +1 -1
- package/lib/base/ty-component.d.ts +14 -0
- package/lib/base/ty-component.d.ts.map +1 -0
- package/lib/base/ty-component.js +223 -196
- package/lib/base/ty-component.js.map +1 -0
- package/lib/components/button.d.ts +1 -1
- package/lib/components/button.d.ts.map +1 -0
- package/lib/components/button.js +267 -259
- package/lib/components/button.js.map +1 -0
- package/lib/components/calendar-month.d.ts +2 -2
- package/lib/components/calendar-month.d.ts.map +1 -0
- package/lib/components/calendar-month.js +440 -416
- package/lib/components/calendar-month.js.map +1 -0
- package/lib/components/calendar-navigation.d.ts +11 -0
- package/lib/components/calendar-navigation.d.ts.map +1 -0
- package/lib/components/calendar-navigation.js +272 -261
- package/lib/components/calendar-navigation.js.map +1 -0
- package/lib/components/calendar.d.ts +31 -3
- package/lib/components/calendar.d.ts.map +1 -0
- package/lib/components/calendar.js +785 -603
- package/lib/components/calendar.js.map +1 -0
- package/lib/components/checkbox.d.ts +1 -1
- package/lib/components/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox.js +273 -272
- package/lib/components/checkbox.js.map +1 -0
- package/lib/components/copy.d.ts +1 -1
- package/lib/components/copy.d.ts.map +1 -0
- package/lib/components/copy.js +287 -278
- package/lib/components/copy.js.map +1 -0
- package/lib/components/date-picker.d.ts +16 -10
- package/lib/components/date-picker.d.ts.map +1 -0
- package/lib/components/date-picker.js +1068 -1122
- package/lib/components/date-picker.js.map +1 -0
- package/lib/components/dropdown.d.ts +403 -0
- package/lib/components/dropdown.d.ts.map +1 -0
- package/lib/components/dropdown.js +1315 -0
- package/lib/components/dropdown.js.map +1 -0
- package/lib/components/file-upload.d.ts +4 -0
- package/lib/components/file-upload.js +418 -404
- package/lib/components/icon.d.ts.map +1 -0
- package/lib/components/icon.js +141 -141
- package/lib/components/icon.js.map +1 -0
- package/lib/components/input.d.ts +1 -1
- package/lib/components/input.d.ts.map +1 -0
- package/lib/components/input.js +593 -596
- package/lib/components/input.js.map +1 -0
- package/lib/components/modal.d.ts +2 -8
- package/lib/components/modal.d.ts.map +1 -0
- package/lib/components/modal.js +309 -319
- package/lib/components/modal.js.map +1 -0
- package/lib/components/multiselect.d.ts +389 -0
- package/lib/components/multiselect.d.ts.map +1 -0
- package/lib/components/multiselect.js +1301 -0
- package/lib/components/multiselect.js.map +1 -0
- package/lib/components/option.d.ts.map +1 -0
- package/lib/components/option.js +167 -167
- package/lib/components/option.js.map +1 -0
- package/lib/components/popup.d.ts.map +1 -0
- package/lib/components/popup.js +236 -233
- package/lib/components/popup.js.map +1 -0
- package/lib/components/radio.d.ts +17 -2
- package/lib/components/radio.js +437 -406
- package/lib/components/resize-observer.d.ts.map +1 -0
- package/lib/components/resize-observer.js +67 -67
- package/lib/components/resize-observer.js.map +1 -0
- package/lib/components/scroll-container.d.ts +3 -2
- package/lib/components/scroll-container.d.ts.map +1 -0
- package/lib/components/scroll-container.js +289 -294
- package/lib/components/scroll-container.js.map +1 -0
- package/lib/components/select.d.ts +85 -18
- package/lib/components/select.js +1647 -1529
- package/lib/components/selected-tags.d.ts +1 -1
- package/lib/components/selected-tags.js +188 -182
- package/lib/components/step.d.ts.map +1 -0
- package/lib/components/step.js +62 -62
- package/lib/components/step.js.map +1 -0
- package/lib/components/switch.d.ts +1 -1
- package/lib/components/switch.js +214 -213
- package/lib/components/tab.d.ts +49 -1
- package/lib/components/tab.d.ts.map +1 -0
- package/lib/components/tab.js +203 -62
- package/lib/components/tab.js.map +1 -0
- package/lib/components/tabs.d.ts +15 -2
- package/lib/components/tabs.d.ts.map +1 -0
- package/lib/components/tabs.js +576 -496
- package/lib/components/tabs.js.map +1 -0
- package/lib/components/tag.d.ts +5 -8
- package/lib/components/tag.d.ts.map +1 -0
- package/lib/components/tag.js +235 -235
- package/lib/components/tag.js.map +1 -0
- package/lib/components/textarea.d.ts +5 -4
- package/lib/components/textarea.d.ts.map +1 -0
- package/lib/components/textarea.js +458 -456
- package/lib/components/textarea.js.map +1 -0
- package/lib/components/tooltip.d.ts +4 -3
- package/lib/components/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip.js +293 -283
- package/lib/components/tooltip.js.map +1 -0
- package/lib/components/wizard.d.ts +5 -4
- package/lib/components/wizard.d.ts.map +1 -0
- package/lib/components/wizard.js +359 -395
- package/lib/components/wizard.js.map +1 -0
- package/lib/icons/fontawesome/brands.d.ts.map +1 -0
- package/lib/icons/fontawesome/brands.js.map +1 -0
- package/lib/icons/fontawesome/regular.d.ts.map +1 -0
- package/lib/icons/fontawesome/regular.js.map +1 -0
- package/lib/icons/fontawesome/solid.d.ts.map +1 -0
- package/lib/icons/fontawesome/solid.js.map +1 -0
- package/lib/icons/heroicons/micro.d.ts.map +1 -0
- package/lib/icons/heroicons/micro.js +392 -392
- package/lib/icons/heroicons/micro.js.map +1 -0
- package/lib/icons/heroicons/mini.d.ts.map +1 -0
- package/lib/icons/heroicons/mini.js +382 -382
- package/lib/icons/heroicons/mini.js.map +1 -0
- package/lib/icons/heroicons/outline.d.ts.map +1 -0
- package/lib/icons/heroicons/outline.js +337 -337
- package/lib/icons/heroicons/outline.js.map +1 -0
- package/lib/icons/heroicons/solid.d.ts.map +1 -0
- package/lib/icons/heroicons/solid.js +407 -407
- package/lib/icons/heroicons/solid.js.map +1 -0
- package/lib/icons/lucide.d.ts.map +1 -0
- package/lib/icons/lucide.js +22843 -22843
- package/lib/icons/lucide.js.map +1 -0
- package/lib/icons/material/filled.d.ts.map +1 -0
- package/lib/icons/material/filled.js +9653 -9653
- package/lib/icons/material/filled.js.map +1 -0
- package/lib/icons/material/outlined.d.ts.map +1 -0
- package/lib/icons/material/outlined.js +10271 -10271
- package/lib/icons/material/outlined.js.map +1 -0
- package/lib/icons/material/round.d.ts.map +1 -0
- package/lib/icons/material/round.js +10495 -10495
- package/lib/icons/material/round.js.map +1 -0
- package/lib/icons/material/sharp.d.ts.map +1 -0
- package/lib/icons/material/sharp.js +9905 -9905
- package/lib/icons/material/sharp.js.map +1 -0
- package/lib/icons/material/two-tone.d.ts.map +1 -0
- package/lib/icons/material/two-tone.js +12792 -12792
- package/lib/icons/material/two-tone.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +21 -21
- package/lib/index.js.map +1 -0
- package/lib/styles/button.d.ts.map +1 -0
- package/lib/styles/button.js +200 -302
- package/lib/styles/button.js.map +1 -0
- package/lib/styles/calendar-month.d.ts +3 -0
- package/lib/styles/calendar-month.d.ts.map +1 -0
- package/lib/styles/calendar-month.js +141 -185
- package/lib/styles/calendar-month.js.map +1 -0
- package/lib/styles/calendar-navigation.d.ts +1 -1
- package/lib/styles/calendar-navigation.d.ts.map +1 -0
- package/lib/styles/calendar-navigation.js +100 -86
- package/lib/styles/calendar-navigation.js.map +1 -0
- package/lib/styles/calendar.d.ts +3 -2
- package/lib/styles/calendar.d.ts.map +1 -0
- package/lib/styles/calendar.js +83 -9
- package/lib/styles/calendar.js.map +1 -0
- package/lib/styles/checkbox.js +62 -77
- package/lib/styles/copy.d.ts.map +1 -0
- package/lib/styles/copy.js +71 -91
- package/lib/styles/copy.js.map +1 -0
- package/lib/styles/custom-scrollbar.js +80 -100
- package/lib/styles/date-picker.d.ts.map +1 -0
- package/lib/styles/date-picker.js +295 -335
- package/lib/styles/date-picker.js.map +1 -0
- package/lib/styles/dropdown.d.ts +12 -0
- package/lib/styles/dropdown.d.ts.map +1 -0
- package/lib/styles/dropdown.js +725 -0
- package/lib/styles/dropdown.js.map +1 -0
- package/lib/styles/field-size.d.ts +6 -0
- package/lib/styles/field-size.js +91 -0
- package/lib/styles/file-upload.js +139 -169
- package/lib/styles/icon.d.ts.map +1 -0
- package/lib/styles/icon.js +92 -156
- package/lib/styles/icon.js.map +1 -0
- package/lib/styles/input.d.ts.map +1 -0
- package/lib/styles/input.js +125 -241
- package/lib/styles/input.js.map +1 -0
- package/lib/styles/modal.d.ts.map +1 -0
- package/lib/styles/modal.js +67 -102
- package/lib/styles/modal.js.map +1 -0
- package/lib/styles/multiselect.d.ts +6 -0
- package/lib/styles/multiselect.d.ts.map +1 -0
- package/lib/styles/multiselect.js +568 -0
- package/lib/styles/multiselect.js.map +1 -0
- package/lib/styles/option.d.ts +1 -1
- package/lib/styles/option.d.ts.map +1 -0
- package/lib/styles/option.js +47 -67
- package/lib/styles/option.js.map +1 -0
- package/lib/styles/popup.d.ts +1 -1
- package/lib/styles/popup.d.ts.map +1 -0
- package/lib/styles/popup.js +37 -65
- package/lib/styles/popup.js.map +1 -0
- package/lib/styles/radio.js +75 -96
- package/lib/styles/resize-observer.d.ts.map +1 -0
- package/lib/styles/resize-observer.js +2 -5
- package/lib/styles/resize-observer.js.map +1 -0
- package/lib/styles/scroll-container.d.ts +1 -1
- package/lib/styles/scroll-container.d.ts.map +1 -0
- package/lib/styles/scroll-container.js +101 -131
- package/lib/styles/scroll-container.js.map +1 -0
- package/lib/styles/select-base.js +596 -773
- package/lib/styles/select.d.ts +1 -1
- package/lib/styles/select.js +146 -228
- package/lib/styles/step.d.ts +1 -1
- package/lib/styles/step.d.ts.map +1 -0
- package/lib/styles/step.js +15 -30
- package/lib/styles/step.js.map +1 -0
- package/lib/styles/switch.js +37 -55
- package/lib/styles/tab.d.ts +1 -1
- package/lib/styles/tab.d.ts.map +1 -0
- package/lib/styles/tab.js +86 -29
- package/lib/styles/tab.js.map +1 -0
- package/lib/styles/tabs.d.ts +1 -1
- package/lib/styles/tabs.d.ts.map +1 -0
- package/lib/styles/tabs.js +190 -180
- package/lib/styles/tabs.js.map +1 -0
- package/lib/styles/tag.d.ts.map +1 -0
- package/lib/styles/tag.js +137 -191
- package/lib/styles/tag.js.map +1 -0
- package/lib/styles/textarea.d.ts +1 -1
- package/lib/styles/textarea.d.ts.map +1 -0
- package/lib/styles/textarea.js +205 -271
- package/lib/styles/textarea.js.map +1 -0
- package/lib/styles/tooltip.d.ts.map +1 -0
- package/lib/styles/tooltip.js +3 -3
- package/lib/styles/tooltip.js.map +1 -0
- package/lib/styles/wizard.d.ts +9 -5
- package/lib/styles/wizard.d.ts.map +1 -0
- package/lib/styles/wizard.js +301 -245
- package/lib/styles/wizard.js.map +1 -0
- package/lib/types/common.d.ts +4 -2
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/common.js +6 -5
- package/lib/types/common.js.map +1 -0
- package/lib/utils/calendar-utils.d.ts.map +1 -0
- package/lib/utils/calendar-utils.js +100 -100
- package/lib/utils/calendar-utils.js.map +1 -0
- package/lib/utils/custom-scrollbar.js +272 -272
- package/lib/utils/flavor-sheet.js +14 -14
- package/lib/utils/icon-registry.d.ts.map +1 -0
- package/lib/utils/icon-registry.js +127 -127
- package/lib/utils/icon-registry.js.map +1 -0
- package/lib/utils/loader-registry.js +3 -3
- package/lib/utils/locale.d.ts.map +1 -0
- package/lib/utils/locale.js +34 -34
- package/lib/utils/locale.js.map +1 -0
- package/lib/utils/mobile.js +1 -1
- package/lib/utils/number-format.d.ts.map +1 -0
- package/lib/utils/number-format.js +54 -54
- package/lib/utils/number-format.js.map +1 -0
- package/lib/utils/parse-boolean.d.ts +39 -0
- package/lib/utils/parse-boolean.d.ts.map +1 -0
- package/lib/utils/parse-boolean.js +23 -0
- package/lib/utils/parse-boolean.js.map +1 -0
- package/lib/utils/positioning.d.ts.map +1 -0
- package/lib/utils/positioning.js +212 -212
- package/lib/utils/positioning.js.map +1 -0
- package/lib/utils/property-capture.d.ts.map +1 -0
- package/lib/utils/property-capture.js +36 -36
- package/lib/utils/property-capture.js.map +1 -0
- package/lib/utils/property-manager.d.ts +1 -1
- package/lib/utils/property-manager.d.ts.map +1 -0
- package/lib/utils/property-manager.js +127 -125
- package/lib/utils/property-manager.js.map +1 -0
- package/lib/utils/resize-observer.d.ts.map +1 -0
- package/lib/utils/resize-observer.js +23 -23
- package/lib/utils/resize-observer.js.map +1 -0
- package/lib/utils/scroll-lock.d.ts.map +1 -0
- package/lib/utils/scroll-lock.js +57 -57
- package/lib/utils/scroll-lock.js.map +1 -0
- package/lib/utils/styles.d.ts.map +1 -0
- package/lib/utils/styles.js +17 -17
- package/lib/utils/styles.js.map +1 -0
- package/lib/utils/validity.d.ts +26 -0
- package/lib/utils/validity.js +53 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.d.ts.map +1 -0
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -0
- package/package.json +28 -7
package/README.md
CHANGED
|
@@ -7,9 +7,17 @@ TypeScript web components for universal UI development.
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install tyrell-components
|
|
10
|
+
npm install tyrell-components # latest -> the RC line
|
|
11
|
+
npm install tyrell-components@tc # tc -> the TC line (current work)
|
|
11
12
|
```
|
|
12
13
|
|
|
14
|
+
**Two dist-tags, and `latest` is not the newest version.** `latest`/`rc` point
|
|
15
|
+
at the RC line — the promoted, stable releases. `tc` points at the TC line,
|
|
16
|
+
where features land first and which can run several versions and weeks ahead of
|
|
17
|
+
`latest`. A plain `npm install` therefore gets you the RC, deliberately. Reach
|
|
18
|
+
for `@tc` when you want the newest components; check
|
|
19
|
+
[CHANGELOG.md](../../CHANGELOG.md) for what is only on the TC line so far.
|
|
20
|
+
|
|
13
21
|
## Usage
|
|
14
22
|
|
|
15
23
|
### Import All Components
|
|
@@ -62,23 +70,44 @@ import 'tyrell-components/input'
|
|
|
62
70
|
|
|
63
71
|
## Available Components
|
|
64
72
|
|
|
65
|
-
|
|
66
|
-
- **ty-
|
|
67
|
-
- **ty-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- **ty-
|
|
71
|
-
- **ty-
|
|
72
|
-
- **ty-
|
|
73
|
-
- **ty-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- **ty-
|
|
77
|
-
- **ty-
|
|
78
|
-
- **ty-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- **ty-
|
|
73
|
+
**Actions**
|
|
74
|
+
- **ty-button** - Button in five flavors with `+`/`-` tones, sizes, icon slots
|
|
75
|
+
- **ty-tag** - Label, status or filter chip; optionally dismissible
|
|
76
|
+
|
|
77
|
+
**Text input**
|
|
78
|
+
- **ty-input** - Text, number, currency and percent input with locale-aware formatting
|
|
79
|
+
- **ty-textarea** - Auto-resizing textarea
|
|
80
|
+
- **ty-file-upload** - Drop zone and file list, form-associated
|
|
81
|
+
- **ty-copy** - Read-only field with copy-to-clipboard (alias `ty-copy-field`)
|
|
82
|
+
|
|
83
|
+
**Toggles**
|
|
84
|
+
- **ty-checkbox** - Checkbox, form-associated
|
|
85
|
+
- **ty-switch** - On/off switch
|
|
86
|
+
- **ty-radio-group** / **ty-radio** - Radio group with arrow-key navigation
|
|
87
|
+
|
|
88
|
+
**Selection**
|
|
89
|
+
- **ty-select** - Single and multiple select with search, async options and create-on-the-fly
|
|
90
|
+
- **ty-option** - Option for `ty-select`
|
|
91
|
+
- **ty-selected-options** - Selected values as dismissible tags, placed anywhere (alias `ty-selected-tags`)
|
|
92
|
+
|
|
93
|
+
**Date & time**
|
|
94
|
+
- **ty-date-picker** - Date (and time) picker with calendar popup
|
|
95
|
+
- **ty-calendar** - Inline calendar with month/year view and keyboard navigation
|
|
96
|
+
- **ty-calendar-month** / **ty-calendar-navigation** - The calendar's building blocks
|
|
97
|
+
|
|
98
|
+
**Overlays**
|
|
99
|
+
- **ty-modal** - Modal dialog with backdrop, Escape and focus trap (alias `ty-dialog`)
|
|
100
|
+
- **ty-popup** - Anchored popup with placement and flipping
|
|
101
|
+
- **ty-tooltip** - Tooltip on hover and focus
|
|
102
|
+
|
|
103
|
+
**Layout**
|
|
104
|
+
- **ty-tabs** / **ty-tab** - Tabs with a scrollable strip and overflow menu
|
|
105
|
+
- **ty-wizard** / **ty-step** - Multi-step flow
|
|
106
|
+
- **ty-scroll-container** - Scroll area with edge shadows and scroll anchoring
|
|
107
|
+
- **ty-resize-observer** - Publishes an element's size for layout code
|
|
108
|
+
|
|
109
|
+
**Visual**
|
|
110
|
+
- **ty-icon** - Icon from the registry (Lucide, Heroicons, Material, Font Awesome)
|
|
82
111
|
|
|
83
112
|
## Development
|
|
84
113
|
|
|
@@ -163,49 +192,20 @@ button.addEventListener('ty-click', (e) => {
|
|
|
163
192
|
|
|
164
193
|
### Icon System
|
|
165
194
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
**Option 1: Use the separate icon package** (coming soon):
|
|
169
|
-
```bash
|
|
170
|
-
npm install tyrell-components/icons
|
|
171
|
-
```
|
|
195
|
+
Every icon set ships in this package as named exports. Import the ones you use and register them; the rest is tree-shaken.
|
|
172
196
|
|
|
173
|
-
```
|
|
174
|
-
import { check, heart, star } from 'tyrell-components/icons/lucide'
|
|
197
|
+
```js
|
|
175
198
|
import { registerIcons } from 'tyrell-components/icons/registry'
|
|
199
|
+
import { check, chevronDown } from 'tyrell-components/icons/lucide'
|
|
176
200
|
|
|
177
|
-
registerIcons({ check,
|
|
201
|
+
registerIcons({ check, 'action-down': chevronDown }) // the key is the name
|
|
178
202
|
```
|
|
179
203
|
|
|
180
|
-
**Option 2: Bring your own SVG icons**:
|
|
181
|
-
```typescript
|
|
182
|
-
import { registerIcons } from 'tyrell-components/icons/registry'
|
|
183
|
-
|
|
184
|
-
registerIcons({
|
|
185
|
-
'check': '<svg xmlns="http://www.w3.org/2000/svg">...</svg>',
|
|
186
|
-
'custom-logo': '<svg>...</svg>'
|
|
187
|
-
})
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
**Option 3: Use the global API**:
|
|
191
204
|
```html
|
|
192
|
-
<
|
|
193
|
-
<script>
|
|
194
|
-
window.tyIcons.register({
|
|
195
|
-
'check': '<svg>...</svg>',
|
|
196
|
-
'heart': '<svg>...</svg>'
|
|
197
|
-
})
|
|
198
|
-
|
|
199
|
-
console.log(window.tyVersion) // '0.2.0'
|
|
200
|
-
console.log(window.tyIcons.has('check')) // true
|
|
201
|
-
console.log(window.tyIcons.list()) // ['check', 'heart']
|
|
202
|
-
</script>
|
|
205
|
+
<ty-icon name="check"></ty-icon>
|
|
203
206
|
```
|
|
204
207
|
|
|
205
|
-
|
|
206
|
-
- Core package stays lightweight (~2.6MB)
|
|
207
|
-
- Install icons only if you need them
|
|
208
|
-
- Or use your own custom SVG icons
|
|
208
|
+
CDN build: `window.tyIcons.register({ … })`. Sets, tree-shaking, custom SVGs and troubleshooting: [ICONS_GUIDE.md](https://github.com/gersak/ty/blob/master/guides/ICONS_GUIDE.md).
|
|
209
209
|
|
|
210
210
|
## Browser Support
|
|
211
211
|
|
package/css/tyrell-theme.css
CHANGED
|
@@ -736,11 +736,22 @@ html:root,
|
|
|
736
736
|
* Inputs — tied to neutral ramp so form controls retint with primary.
|
|
737
737
|
* --------------------------------------------------------------*/
|
|
738
738
|
--ty-input-bg: var(--ty-surface-input);
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
739
|
+
/* Value text and placeholder ride the TEXT ladder, like the static
|
|
740
|
+
palette (#111827 / #9ca3af). The neutral ink ramp they used before is
|
|
741
|
+
scaled by --ty-neutral-l-factor (0.8 in dark), which put typed text at
|
|
742
|
+
L 0.58 — dimmer than the field's own label — and the placeholder at
|
|
743
|
+
L 0.37 on an L 0.18 surface. */
|
|
744
|
+
--ty-input-color: var(--ty-text);
|
|
745
|
+
/* Borders come from the BORDER family, not the neutral ink ramp: ink is
|
|
746
|
+
multiplied by --ty-neutral-l-factor (0.8 in dark), which crushed the
|
|
747
|
+
resting input border to L 0.24 against an L 0.18 input surface — half
|
|
748
|
+
the separation light gets (0.88 on 1.0). The border ladder is exempt
|
|
749
|
+
from that factor by design, and its own comments name these two as the
|
|
750
|
+
successors of neutral-faint / neutral-soft. */
|
|
751
|
+
--ty-input-border: var(--ty-border-soft);
|
|
752
|
+
--ty-input-border-hover: var(--ty-border);
|
|
742
753
|
--ty-input-border-focus: var(--ty-color-primary);
|
|
743
|
-
--ty-input-placeholder: var(--ty-
|
|
754
|
+
--ty-input-placeholder: var(--ty-text-faint);
|
|
744
755
|
--ty-input-disabled-bg: var(--ty-color-neutral-faint);
|
|
745
756
|
--ty-input-disabled-border: var(--ty-color-neutral-faint);
|
|
746
757
|
--ty-input-disabled-color: var(--ty-color-neutral-bold);
|
|
@@ -751,6 +762,23 @@ html:root,
|
|
|
751
762
|
);
|
|
752
763
|
}
|
|
753
764
|
|
|
765
|
+
/* Dark takes the border family one rung harder than light. Genuine per-mode
|
|
766
|
+
DATA, not a formula duplicate: a small L delta at the dark end of an
|
|
767
|
+
emissive screen reads much weaker than the same delta mid-scale (the same
|
|
768
|
+
reason dark hover/active offsets are bigger — see Tier 5 dark), so light's
|
|
769
|
+
soft/base pair lands too quiet here. Dark uses base/bold instead.
|
|
770
|
+
|
|
771
|
+
Placed AFTER the block above on purpose: html.dark and html:root are both
|
|
772
|
+
(0,1,1), so source order is what decides this one — moving it up to the
|
|
773
|
+
dial block at the top of the file would lose the tie. */
|
|
774
|
+
html.dark,
|
|
775
|
+
html[data-theme="dark"],
|
|
776
|
+
[data-ty-theme].dark,
|
|
777
|
+
[data-ty-theme][data-theme="dark"] {
|
|
778
|
+
--ty-input-border: var(--ty-border);
|
|
779
|
+
--ty-input-border-hover: var(--ty-border-bold);
|
|
780
|
+
}
|
|
781
|
+
|
|
754
782
|
/* ----------------------------------------------------------------
|
|
755
783
|
* Tier 5 — SOLID (implementation)
|
|
756
784
|
* Solid is its OWN system, NOT the text/emphasis ramp. The dials
|
package/css/tyrell.css
CHANGED
|
@@ -382,12 +382,16 @@ DESIGN SYSTEM TOKENS
|
|
|
382
382
|
ty-button's 4px ladder (see button.ts): field sm = button md (32px),
|
|
383
383
|
field md = button lg (36px), field lg = button xl (40px) — a button
|
|
384
384
|
and a field of the paired size sit flush, same height, in a row. */
|
|
385
|
+
--ty-size-xs: 1.75rem;
|
|
386
|
+
/* 28px */
|
|
385
387
|
--ty-size-sm: 2rem;
|
|
386
388
|
/* 32px */
|
|
387
389
|
--ty-size-md: 2.25rem;
|
|
388
390
|
/* 36px */
|
|
389
391
|
--ty-size-lg: 2.5rem;
|
|
390
392
|
/* 40px */
|
|
393
|
+
--ty-size-xl: 2.75rem;
|
|
394
|
+
/* 44px */
|
|
391
395
|
|
|
392
396
|
/* Z-Index Scale */
|
|
393
397
|
--ty-z-auto: auto;
|
|
@@ -440,24 +444,19 @@ DESIGN SYSTEM TOKENS
|
|
|
440
444
|
--ty-tooltip-bg: #262626;
|
|
441
445
|
--ty-tooltip-color: #f5f5f5;
|
|
442
446
|
--ty-tooltip-border: #404040;
|
|
443
|
-
|
|
444
|
-
/* =================================================================
|
|
445
|
-
CALENDAR — "other month" day de-emphasis
|
|
446
|
-
--ty-color-neutral-faint alone is only ~2.5:1 against white — already
|
|
447
|
-
below the 4.5:1 WCAG AA text minimum before the (now-removed) opacity
|
|
448
|
-
fade made it worse still. This is its own token, calibrated to actually
|
|
449
|
-
pass, rather than reusing -faint here. Real bug, caught by adding
|
|
450
|
-
axe-core coverage for the first time, not a design choice being revised.
|
|
451
|
-
================================================================= */
|
|
452
|
-
--ty-calendar-other-month-color: #6b7280; /* 4.83:1 vs white */
|
|
453
447
|
}
|
|
454
448
|
|
|
455
449
|
/* =================================================================
|
|
456
450
|
DARK THEME OVERRIDES
|
|
457
451
|
================================================================= */
|
|
458
452
|
|
|
453
|
+
/* [data-ty-theme].dark scopes dark mode to a subtree, matching the selectors
|
|
454
|
+
in tyrell-theme.css — without it, colors flip there but labels, modals,
|
|
455
|
+
shadows and scrollbars keep their light values. */
|
|
459
456
|
html.dark,
|
|
460
|
-
html[data-theme="dark"]
|
|
457
|
+
html[data-theme="dark"],
|
|
458
|
+
[data-ty-theme].dark,
|
|
459
|
+
[data-ty-theme][data-theme="dark"] {
|
|
461
460
|
/* Weight dials flip with the mode — light-on-dark text blooms, so dark
|
|
462
461
|
mode runs genuinely lighter. See the :root definitions. */
|
|
463
462
|
--ty-weight-action: var(--ty-font-normal);
|
|
@@ -526,10 +525,6 @@ html[data-theme="dark"] {
|
|
|
526
525
|
rgba(0, 0, 0, 0),
|
|
527
526
|
transparent
|
|
528
527
|
);
|
|
529
|
-
|
|
530
|
-
/* Calendar "other month" de-emphasis — see the :root definition for why
|
|
531
|
-
this is its own token instead of --ty-color-neutral-faint. */
|
|
532
|
-
--ty-calendar-other-month-color: #8a8a8a; /* 5.04:1 vs dark content bg (#1a1a1a) */
|
|
533
528
|
}
|
|
534
529
|
|
|
535
530
|
/* =================================================================
|
|
@@ -1,316 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Tyrell Static Colors — hardcoded fallback color tokens
|
|
3
|
-
|
|
4
|
-
Every --ty-color-*, --ty-bg-{flavor}-*, --ty-border-*, --ty-surface-*,
|
|
5
|
-
--ty-text-*, --ty-input-{color-related}-* and --ty-solid-* token tyrell.css
|
|
6
|
-
used to hardcode directly, now split out here. Load this file alongside
|
|
7
|
-
tyrell.css if you want static, no-theme-engine colors.
|
|
8
|
-
|
|
9
|
-
If you want dynamic theming (custom seeds, live theme switching, per-flavor
|
|
10
|
-
tuning), load tyrell-theme.css INSTEAD — it defines the same token names via
|
|
11
|
-
oklch() formulas and, loaded after tyrell.css, wins by source order. Loading
|
|
12
|
-
both is harmless (tyrell-theme.css always wins) but redundant.
|
|
13
|
-
================================================================= */
|
|
14
|
-
|
|
15
|
-
html {
|
|
16
|
-
/* Primary */
|
|
17
|
-
--ty-color-primary-strong: #163793;
|
|
18
|
-
--ty-color-primary-bold: #304c9f;
|
|
19
|
-
--ty-color-primary: #466bce;
|
|
20
|
-
--ty-color-primary-soft: #60a5fa;
|
|
21
|
-
--ty-color-primary-faint: #93c5fd;
|
|
22
|
-
|
|
23
|
-
/* Success */
|
|
24
|
-
--ty-color-success-strong: #177858;
|
|
25
|
-
--ty-color-success-bold: #3e9779;
|
|
26
|
-
--ty-color-success: #3eaa86;
|
|
27
|
-
--ty-color-success-soft: #64b399;
|
|
28
|
-
--ty-color-success-faint: #7fd4b2;
|
|
29
|
-
|
|
30
|
-
/* Danger */
|
|
31
|
-
--ty-color-danger-strong: #b91c1c;
|
|
32
|
-
--ty-color-danger-bold: #dc2626;
|
|
33
|
-
--ty-color-danger: #ef4444;
|
|
34
|
-
--ty-color-danger-soft: #f87171;
|
|
35
|
-
--ty-color-danger-faint: #fca5a5;
|
|
36
|
-
|
|
37
|
-
/* Warning */
|
|
38
|
-
--ty-color-warning-strong: #e86400;
|
|
39
|
-
--ty-color-warning-bold: #ee7f00;
|
|
40
|
-
--ty-color-warning: #f59e0b;
|
|
41
|
-
--ty-color-warning-soft: #fbbf24;
|
|
42
|
-
--ty-color-warning-faint: #fcd34d;
|
|
43
|
-
|
|
44
|
-
/* Neutral */
|
|
45
|
-
--ty-color-neutral-strong: #000000;
|
|
46
|
-
--ty-color-neutral-bold: #000000;
|
|
47
|
-
--ty-color-neutral: #111827;
|
|
48
|
-
--ty-color-neutral-soft: #374151;
|
|
49
|
-
--ty-color-neutral-faint: #9ca3af;
|
|
50
|
-
|
|
51
|
-
/* Semantic backgrounds */
|
|
52
|
-
--ty-bg-primary: #e3eefc;
|
|
53
|
-
--ty-bg-primary-bold: #d5e4f8;
|
|
54
|
-
--ty-bg-primary-soft: #eff6ff;
|
|
55
|
-
--ty-bg-success: #d1fae5;
|
|
56
|
-
--ty-bg-success-bold: #a7f3d0;
|
|
57
|
-
--ty-bg-success-soft: #ecfdf5;
|
|
58
|
-
--ty-bg-danger: #fee2e2;
|
|
59
|
-
--ty-bg-danger-bold: #fecaca;
|
|
60
|
-
--ty-bg-danger-soft: #fef2f2;
|
|
61
|
-
--ty-bg-warning: #fef3c7;
|
|
62
|
-
--ty-bg-warning-bold: #fde68a;
|
|
63
|
-
--ty-bg-warning-soft: #fffbeb;
|
|
64
|
-
--ty-bg-neutral: #e0e0e0;
|
|
65
|
-
--ty-bg-neutral-bold: #cecece;
|
|
66
|
-
--ty-bg-neutral-soft: #ededed;
|
|
67
|
-
|
|
68
|
-
/* Borders */
|
|
69
|
-
--ty-border: #e5e7eb;
|
|
70
|
-
--ty-border-bold: #d1d5db;
|
|
71
|
-
--ty-border-strong: #6b7280;
|
|
72
|
-
--ty-border-soft: #f3f4f6;
|
|
73
|
-
--ty-border-faint: #fafafa;
|
|
74
|
-
|
|
75
|
-
/* Semantic borders */
|
|
76
|
-
--ty-border-primary: var(--ty-color-primary);
|
|
77
|
-
--ty-border-success: var(--ty-color-success);
|
|
78
|
-
--ty-border-danger: var(--ty-color-danger);
|
|
79
|
-
--ty-border-warning: var(--ty-color-warning);
|
|
80
|
-
--ty-border-neutral: var(--ty-color-neutral);
|
|
81
|
-
|
|
82
|
-
/* Surfaces */
|
|
83
|
-
--ty-surface-canvas: #fcfcfc;
|
|
84
|
-
--ty-surface-content: #ffffff;
|
|
85
|
-
--ty-surface-elevated: #ffffff;
|
|
86
|
-
--ty-surface-floating: #ffffff;
|
|
87
|
-
--ty-surface-input: #ffffff;
|
|
88
|
-
|
|
89
|
-
/* Surface borders */
|
|
90
|
-
--ty-elevated-border: #e5e7eb;
|
|
91
|
-
--ty-floating-border: #e5e7eb;
|
|
92
|
-
--ty-content-border: #e5e7eb;
|
|
93
|
-
|
|
94
|
-
/* Text hierarchy */
|
|
95
|
-
--ty-text: #111827;
|
|
96
|
-
--ty-text-bold: #000000;
|
|
97
|
-
--ty-text-strong: #000000;
|
|
98
|
-
--ty-text-soft: #374151;
|
|
99
|
-
--ty-text-faint: #9ca3af;
|
|
100
|
-
|
|
101
|
-
/* Input component tokens */
|
|
102
|
-
--ty-input-bg: #ffffff;
|
|
103
|
-
--ty-input-color: #111827;
|
|
104
|
-
--ty-input-border: #e5e7eb;
|
|
105
|
-
--ty-input-border-hover: #d1d5db;
|
|
106
|
-
--ty-input-border-focus: var(--ty-color-primary);
|
|
107
|
-
--ty-input-shadow-focus: rgba(59, 130, 246, 0.1);
|
|
108
|
-
--ty-input-placeholder: #9ca3af;
|
|
109
|
-
--ty-input-disabled-bg: #f9fafb;
|
|
110
|
-
--ty-input-disabled-border: #e5e7eb;
|
|
111
|
-
--ty-input-disabled-color: #9ca3af;
|
|
112
|
-
|
|
113
|
-
/* Input semantic state borders */
|
|
114
|
-
--ty-input-success-border: var(--ty-color-success-soft);
|
|
115
|
-
--ty-input-danger-border: var(--ty-color-danger-soft);
|
|
116
|
-
--ty-input-warning-border: var(--ty-color-warning-soft);
|
|
117
|
-
|
|
118
|
-
/* Solid button fills — Primary */
|
|
119
|
-
--ty-solid-primary: #4076b9;
|
|
120
|
-
--ty-solid-primary-strong: var(--ty-color-primary-bold);
|
|
121
|
-
--ty-solid-primary-soft: #7ea7d9;
|
|
122
|
-
--ty-solid-primary-hover: var(--ty-solid-primary-strong);
|
|
123
|
-
--ty-solid-primary-active: var(--ty-solid-primary-strong);
|
|
124
|
-
--ty-solid-primary-fg: white;
|
|
125
|
-
--ty-solid-primary-strong-fg: white;
|
|
126
|
-
--ty-solid-primary-soft-fg: black;
|
|
127
|
-
|
|
128
|
-
/* Solid button fills — Success */
|
|
129
|
-
--ty-solid-success: #3bb68d;
|
|
130
|
-
--ty-solid-success-strong: #27956e;
|
|
131
|
-
--ty-solid-success-soft: #69b99e;
|
|
132
|
-
--ty-solid-success-hover: var(--ty-solid-success-strong);
|
|
133
|
-
--ty-solid-success-active: var(--ty-solid-success-strong);
|
|
134
|
-
--ty-solid-success-fg: black;
|
|
135
|
-
--ty-solid-success-strong-fg: black;
|
|
136
|
-
--ty-solid-success-soft-fg: black;
|
|
137
|
-
|
|
138
|
-
/* Solid button fills — Danger */
|
|
139
|
-
--ty-solid-danger: #df5b5b;
|
|
140
|
-
--ty-solid-danger-strong: #cc3e3e;
|
|
141
|
-
--ty-solid-danger-soft: #d57a7a;
|
|
142
|
-
--ty-solid-danger-hover: var(--ty-solid-danger-strong);
|
|
143
|
-
--ty-solid-danger-active: var(--ty-solid-danger-strong);
|
|
144
|
-
--ty-solid-danger-fg: black;
|
|
145
|
-
--ty-solid-danger-strong-fg: white;
|
|
146
|
-
--ty-solid-danger-soft-fg: black;
|
|
147
|
-
|
|
148
|
-
/* Solid button fills — Warning */
|
|
149
|
-
--ty-solid-warning: #e1a644;
|
|
150
|
-
--ty-solid-warning-strong: #f59e0b;
|
|
151
|
-
--ty-solid-warning-soft: #fbc56d;
|
|
152
|
-
--ty-solid-warning-hover: var(--ty-solid-warning-strong);
|
|
153
|
-
--ty-solid-warning-active: var(--ty-solid-warning-strong);
|
|
154
|
-
--ty-solid-warning-fg: black;
|
|
155
|
-
--ty-solid-warning-strong-fg: black;
|
|
156
|
-
--ty-solid-warning-soft-fg: black;
|
|
157
|
-
|
|
158
|
-
/* Solid button fills — Neutral */
|
|
159
|
-
--ty-solid-neutral: #414141;
|
|
160
|
-
--ty-solid-neutral-strong: #000000;
|
|
161
|
-
--ty-solid-neutral-soft: #6e6e6e;
|
|
162
|
-
--ty-solid-neutral-hover: var(--ty-solid-neutral-strong);
|
|
163
|
-
--ty-solid-neutral-active: var(--ty-solid-neutral-strong);
|
|
164
|
-
--ty-solid-neutral-fg: white;
|
|
165
|
-
--ty-solid-neutral-strong-fg: white;
|
|
166
|
-
--ty-solid-neutral-soft-fg: white;
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* =================================================================
|
|
171
|
-
DARK THEME OVERRIDES
|
|
172
|
-
================================================================= */
|
|
173
|
-
|
|
174
|
-
html.dark,
|
|
175
|
-
html[data-theme="dark"] {
|
|
176
|
-
/* Primary */
|
|
177
|
-
--ty-color-primary-strong: #9cbde5;
|
|
178
|
-
--ty-color-primary-bold: #6c9bd5;
|
|
179
|
-
--ty-color-primary: #4976ae;
|
|
180
|
-
--ty-color-primary-soft: #4b698b;
|
|
181
|
-
--ty-color-primary-faint: #445b77;
|
|
182
|
-
|
|
183
|
-
/* Success */
|
|
184
|
-
--ty-color-success-strong: #c2f0df;
|
|
185
|
-
--ty-color-success-bold: #6ee7b7;
|
|
186
|
-
--ty-color-success: #3aba8b;
|
|
187
|
-
--ty-color-success-soft: #459679;
|
|
188
|
-
--ty-color-success-faint: #1b795c;
|
|
189
|
-
|
|
190
|
-
/* Danger */
|
|
191
|
-
--ty-color-danger-strong: #ffabab;
|
|
192
|
-
--ty-color-danger-bold: #e58787;
|
|
193
|
-
--ty-color-danger: #d06f6f;
|
|
194
|
-
--ty-color-danger-soft: #b06666;
|
|
195
|
-
--ty-color-danger-faint: #aa6e6e;
|
|
196
|
-
|
|
197
|
-
/* Warning */
|
|
198
|
-
--ty-color-warning-strong: #fde68a;
|
|
199
|
-
--ty-color-warning-bold: #fcd34d;
|
|
200
|
-
--ty-color-warning: #fbbf24;
|
|
201
|
-
--ty-color-warning-soft: #f59e0b;
|
|
202
|
-
--ty-color-warning-faint: #a06726;
|
|
203
|
-
|
|
204
|
-
/* Neutral */
|
|
205
|
-
--ty-color-neutral-strong: #ffffff;
|
|
206
|
-
--ty-color-neutral-bold: #f9fafb;
|
|
207
|
-
--ty-color-neutral: #d6d6d6;
|
|
208
|
-
--ty-color-neutral-soft: #696969;
|
|
209
|
-
--ty-color-neutral-faint: #474747;
|
|
210
|
-
|
|
211
|
-
/* Semantic backgrounds */
|
|
212
|
-
--ty-bg-primary: #394159;
|
|
213
|
-
--ty-bg-primary-bold: #43517a;
|
|
214
|
-
--ty-bg-primary-soft: #323a4f;
|
|
215
|
-
--ty-bg-success: #3a4442;
|
|
216
|
-
--ty-bg-success-bold: #405752;
|
|
217
|
-
--ty-bg-success-soft: #2f3b38;
|
|
218
|
-
--ty-bg-danger: #522828;
|
|
219
|
-
--ty-bg-danger-bold: #853535;
|
|
220
|
-
--ty-bg-danger-soft: #483c3c;
|
|
221
|
-
--ty-bg-warning: #694555;
|
|
222
|
-
--ty-bg-warning-bold: #743953;
|
|
223
|
-
--ty-bg-warning-soft: #45333b;
|
|
224
|
-
--ty-bg-neutral: #323232;
|
|
225
|
-
--ty-bg-neutral-bold: #414141;
|
|
226
|
-
--ty-bg-neutral-soft: #242424;
|
|
227
|
-
|
|
228
|
-
/* Borders */
|
|
229
|
-
--ty-border: #3e3e3e;
|
|
230
|
-
--ty-border-bold: #666666;
|
|
231
|
-
--ty-border-strong: #8c8c8c;
|
|
232
|
-
--ty-border-soft: #1f2937;
|
|
233
|
-
--ty-border-faint: #030712;
|
|
234
|
-
|
|
235
|
-
/* Surfaces */
|
|
236
|
-
--ty-surface-canvas: black;
|
|
237
|
-
--ty-surface-content: #1a1a1a;
|
|
238
|
-
--ty-surface-elevated: #282828;
|
|
239
|
-
--ty-surface-floating: #343434;
|
|
240
|
-
--ty-surface-input: #1f2937;
|
|
241
|
-
|
|
242
|
-
/* Surface borders */
|
|
243
|
-
--ty-elevated-border: #414141;
|
|
244
|
-
--ty-floating-border: #494949;
|
|
245
|
-
--ty-content-border: #030712;
|
|
246
|
-
|
|
247
|
-
/* Text hierarchy */
|
|
248
|
-
--ty-text: #d6d6d6;
|
|
249
|
-
--ty-text-bold: #f9fafb;
|
|
250
|
-
--ty-text-strong: #ffffff;
|
|
251
|
-
--ty-text-soft: #7f8590;
|
|
252
|
-
--ty-text-faint: #555a63;
|
|
253
|
-
|
|
254
|
-
/* Input component tokens */
|
|
255
|
-
--ty-input-bg: #1b1b1b;
|
|
256
|
-
--ty-input-color: #f9fafb;
|
|
257
|
-
--ty-input-border: #3a3a3a;
|
|
258
|
-
--ty-input-border-hover: #505050;
|
|
259
|
-
--ty-input-border-focus: var(--ty-color-primary);
|
|
260
|
-
--ty-input-shadow-focus: rgba(96, 165, 250, 0.1);
|
|
261
|
-
--ty-input-placeholder: #717171;
|
|
262
|
-
--ty-input-disabled-bg: #282828;
|
|
263
|
-
--ty-input-disabled-border: #2e2e2e;
|
|
264
|
-
--ty-input-disabled-color: #717171;
|
|
265
|
-
|
|
266
|
-
/* Solid button fills — Primary */
|
|
267
|
-
--ty-solid-primary: #3e536c;
|
|
268
|
-
--ty-solid-primary-strong: #426084;
|
|
269
|
-
--ty-solid-primary-soft: #343f4c;
|
|
270
|
-
--ty-solid-primary-hover: var(--ty-solid-primary-strong);
|
|
271
|
-
--ty-solid-primary-active: var(--ty-solid-primary-strong);
|
|
272
|
-
--ty-solid-primary-fg: white;
|
|
273
|
-
--ty-solid-primary-strong-fg: white;
|
|
274
|
-
--ty-solid-primary-soft-fg: white;
|
|
275
|
-
|
|
276
|
-
/* Solid button fills — Success */
|
|
277
|
-
--ty-solid-success: #3bb68d;
|
|
278
|
-
--ty-solid-success-strong: #459679;
|
|
279
|
-
--ty-solid-success-soft: #285748;
|
|
280
|
-
--ty-solid-success-hover: var(--ty-solid-success-strong);
|
|
281
|
-
--ty-solid-success-active: var(--ty-solid-success-strong);
|
|
282
|
-
--ty-solid-success-fg: black;
|
|
283
|
-
--ty-solid-success-strong-fg: black;
|
|
284
|
-
--ty-solid-success-soft-fg: white;
|
|
285
|
-
|
|
286
|
-
/* Solid button fills — Danger */
|
|
287
|
-
--ty-solid-danger: #df5b5b;
|
|
288
|
-
--ty-solid-danger-strong: #cc3e3e;
|
|
289
|
-
--ty-solid-danger-soft: #875656;
|
|
290
|
-
--ty-solid-danger-hover: var(--ty-solid-danger-strong);
|
|
291
|
-
--ty-solid-danger-active: var(--ty-solid-danger-strong);
|
|
292
|
-
--ty-solid-danger-fg: black;
|
|
293
|
-
--ty-solid-danger-strong-fg: white;
|
|
294
|
-
--ty-solid-danger-soft-fg: white;
|
|
295
|
-
|
|
296
|
-
/* Solid button fills — Warning */
|
|
297
|
-
--ty-solid-warning: #e1a644;
|
|
298
|
-
--ty-solid-warning-strong: #f59e0b;
|
|
299
|
-
--ty-solid-warning-soft: #8b6334;
|
|
300
|
-
--ty-solid-warning-hover: var(--ty-solid-warning-strong);
|
|
301
|
-
--ty-solid-warning-active: var(--ty-solid-warning-strong);
|
|
302
|
-
--ty-solid-warning-fg: black;
|
|
303
|
-
--ty-solid-warning-strong-fg: black;
|
|
304
|
-
--ty-solid-warning-soft-fg: white;
|
|
305
|
-
|
|
306
|
-
/* Solid button fills — Neutral */
|
|
307
|
-
--ty-solid-neutral: #414141;
|
|
308
|
-
--ty-solid-neutral-strong: #f5f5f5;
|
|
309
|
-
--ty-solid-neutral-soft: #2a2a2a;
|
|
310
|
-
--ty-solid-neutral-hover: #4c4c4c;
|
|
311
|
-
--ty-solid-neutral-active: #4c4c4c;
|
|
312
|
-
--ty-solid-neutral-fg: white;
|
|
313
|
-
--ty-solid-neutral-strong-fg: black;
|
|
314
|
-
--ty-solid-neutral-soft-fg: white;
|
|
315
|
-
|
|
316
|
-
}
|
|
1
|
+
html{--ty-color-primary-strong: #163793;--ty-color-primary-bold: #304c9f;--ty-color-primary: #466bce;--ty-color-primary-soft: #60a5fa;--ty-color-primary-faint: #93c5fd;--ty-color-success-strong: #177858;--ty-color-success-bold: #3e9779;--ty-color-success: #3eaa86;--ty-color-success-soft: #64b399;--ty-color-success-faint: #7fd4b2;--ty-color-danger-strong: #b91c1c;--ty-color-danger-bold: #dc2626;--ty-color-danger: #ef4444;--ty-color-danger-soft: #f87171;--ty-color-danger-faint: #fca5a5;--ty-color-warning-strong: #e86400;--ty-color-warning-bold: #ee7f00;--ty-color-warning: #f59e0b;--ty-color-warning-soft: #fbbf24;--ty-color-warning-faint: #fcd34d;--ty-color-neutral-strong: #000000;--ty-color-neutral-bold: #000000;--ty-color-neutral: #111827;--ty-color-neutral-soft: #374151;--ty-color-neutral-faint: #9ca3af;--ty-bg-primary: #e3eefc;--ty-bg-primary-bold: #d5e4f8;--ty-bg-primary-soft: #eff6ff;--ty-bg-success: #d1fae5;--ty-bg-success-bold: #a7f3d0;--ty-bg-success-soft: #ecfdf5;--ty-bg-danger: #fee2e2;--ty-bg-danger-bold: #fecaca;--ty-bg-danger-soft: #fef2f2;--ty-bg-warning: #fef3c7;--ty-bg-warning-bold: #fde68a;--ty-bg-warning-soft: #fffbeb;--ty-bg-neutral: #e0e0e0;--ty-bg-neutral-bold: #cecece;--ty-bg-neutral-soft: #ededed;--ty-border: #e5e7eb;--ty-border-bold: #d1d5db;--ty-border-strong: #6b7280;--ty-border-soft: #f3f4f6;--ty-border-faint: #fafafa;--ty-border-primary: var(--ty-color-primary);--ty-border-success: var(--ty-color-success);--ty-border-danger: var(--ty-color-danger);--ty-border-warning: var(--ty-color-warning);--ty-border-neutral: var(--ty-color-neutral);--ty-surface-canvas: #fcfcfc;--ty-surface-content: #ffffff;--ty-surface-elevated: #ffffff;--ty-surface-floating: #ffffff;--ty-surface-input: #ffffff;--ty-elevated-border: #e5e7eb;--ty-floating-border: #e5e7eb;--ty-content-border: #e5e7eb;--ty-text: #111827;--ty-text-bold: #000000;--ty-text-strong: #000000;--ty-text-soft: #374151;--ty-text-faint: #9ca3af;--ty-input-bg: #ffffff;--ty-input-color: #111827;--ty-input-border: #e5e7eb;--ty-input-border-hover: #d1d5db;--ty-input-border-focus: var(--ty-color-primary);--ty-input-shadow-focus: rgba(59, 130, 246, .1);--ty-input-placeholder: #9ca3af;--ty-input-disabled-bg: #f9fafb;--ty-input-disabled-border: #e5e7eb;--ty-input-disabled-color: #9ca3af;--ty-input-success-border: var(--ty-color-success-soft);--ty-input-danger-border: var(--ty-color-danger-soft);--ty-input-warning-border: var(--ty-color-warning-soft);--ty-solid-primary: #4076b9;--ty-solid-primary-strong: var(--ty-color-primary-bold);--ty-solid-primary-soft: #7ea7d9;--ty-solid-primary-hover: var(--ty-solid-primary-strong);--ty-solid-primary-active: var(--ty-solid-primary-strong);--ty-solid-primary-fg: white;--ty-solid-primary-strong-fg: white;--ty-solid-primary-soft-fg: black;--ty-solid-success: #3bb68d;--ty-solid-success-strong: #27956e;--ty-solid-success-soft: #69b99e;--ty-solid-success-hover: var(--ty-solid-success-strong);--ty-solid-success-active: var(--ty-solid-success-strong);--ty-solid-success-fg: black;--ty-solid-success-strong-fg: black;--ty-solid-success-soft-fg: black;--ty-solid-danger: #df5b5b;--ty-solid-danger-strong: #cc3e3e;--ty-solid-danger-soft: #d57a7a;--ty-solid-danger-hover: var(--ty-solid-danger-strong);--ty-solid-danger-active: var(--ty-solid-danger-strong);--ty-solid-danger-fg: black;--ty-solid-danger-strong-fg: white;--ty-solid-danger-soft-fg: black;--ty-solid-warning: #e1a644;--ty-solid-warning-strong: #f59e0b;--ty-solid-warning-soft: #fbc56d;--ty-solid-warning-hover: var(--ty-solid-warning-strong);--ty-solid-warning-active: var(--ty-solid-warning-strong);--ty-solid-warning-fg: black;--ty-solid-warning-strong-fg: black;--ty-solid-warning-soft-fg: black;--ty-solid-neutral: #414141;--ty-solid-neutral-strong: #000000;--ty-solid-neutral-soft: #6e6e6e;--ty-solid-neutral-hover: var(--ty-solid-neutral-strong);--ty-solid-neutral-active: var(--ty-solid-neutral-strong);--ty-solid-neutral-fg: white;--ty-solid-neutral-strong-fg: white;--ty-solid-neutral-soft-fg: white}html.dark,html[data-theme=dark]{--ty-color-primary-strong: #9cbde5;--ty-color-primary-bold: #6c9bd5;--ty-color-primary: #4976ae;--ty-color-primary-soft: #4b698b;--ty-color-primary-faint: #445b77;--ty-color-success-strong: #c2f0df;--ty-color-success-bold: #6ee7b7;--ty-color-success: #3aba8b;--ty-color-success-soft: #459679;--ty-color-success-faint: #1b795c;--ty-color-danger-strong: #ffabab;--ty-color-danger-bold: #e58787;--ty-color-danger: #d06f6f;--ty-color-danger-soft: #b06666;--ty-color-danger-faint: #aa6e6e;--ty-color-warning-strong: #fde68a;--ty-color-warning-bold: #fcd34d;--ty-color-warning: #fbbf24;--ty-color-warning-soft: #f59e0b;--ty-color-warning-faint: #a06726;--ty-color-neutral-strong: #ffffff;--ty-color-neutral-bold: #f9fafb;--ty-color-neutral: #d6d6d6;--ty-color-neutral-soft: #696969;--ty-color-neutral-faint: #474747;--ty-bg-primary: #394159;--ty-bg-primary-bold: #43517a;--ty-bg-primary-soft: #323a4f;--ty-bg-success: #3a4442;--ty-bg-success-bold: #405752;--ty-bg-success-soft: #2f3b38;--ty-bg-danger: #522828;--ty-bg-danger-bold: #853535;--ty-bg-danger-soft: #483c3c;--ty-bg-warning: #694555;--ty-bg-warning-bold: #743953;--ty-bg-warning-soft: #45333b;--ty-bg-neutral: #323232;--ty-bg-neutral-bold: #414141;--ty-bg-neutral-soft: #242424;--ty-border: #3e3e3e;--ty-border-bold: #666666;--ty-border-strong: #8c8c8c;--ty-border-soft: #1f2937;--ty-border-faint: #030712;--ty-surface-canvas: black;--ty-surface-content: #1a1a1a;--ty-surface-elevated: #282828;--ty-surface-floating: #343434;--ty-surface-input: #1f2937;--ty-elevated-border: #414141;--ty-floating-border: #494949;--ty-content-border: #030712;--ty-text: #d6d6d6;--ty-text-bold: #f9fafb;--ty-text-strong: #ffffff;--ty-text-soft: #7f8590;--ty-text-faint: #555a63;--ty-input-bg: #1b1b1b;--ty-input-color: #f9fafb;--ty-input-border: #3a3a3a;--ty-input-border-hover: #505050;--ty-input-border-focus: var(--ty-color-primary);--ty-input-shadow-focus: rgba(96, 165, 250, .1);--ty-input-placeholder: #717171;--ty-input-disabled-bg: #282828;--ty-input-disabled-border: #2e2e2e;--ty-input-disabled-color: #717171;--ty-solid-primary: #3e536c;--ty-solid-primary-strong: #426084;--ty-solid-primary-soft: #343f4c;--ty-solid-primary-hover: var(--ty-solid-primary-strong);--ty-solid-primary-active: var(--ty-solid-primary-strong);--ty-solid-primary-fg: white;--ty-solid-primary-strong-fg: white;--ty-solid-primary-soft-fg: white;--ty-solid-success: #3bb68d;--ty-solid-success-strong: #459679;--ty-solid-success-soft: #285748;--ty-solid-success-hover: var(--ty-solid-success-strong);--ty-solid-success-active: var(--ty-solid-success-strong);--ty-solid-success-fg: black;--ty-solid-success-strong-fg: black;--ty-solid-success-soft-fg: white;--ty-solid-danger: #df5b5b;--ty-solid-danger-strong: #cc3e3e;--ty-solid-danger-soft: #875656;--ty-solid-danger-hover: var(--ty-solid-danger-strong);--ty-solid-danger-active: var(--ty-solid-danger-strong);--ty-solid-danger-fg: black;--ty-solid-danger-strong-fg: white;--ty-solid-danger-soft-fg: white;--ty-solid-warning: #e1a644;--ty-solid-warning-strong: #f59e0b;--ty-solid-warning-soft: #8b6334;--ty-solid-warning-hover: var(--ty-solid-warning-strong);--ty-solid-warning-active: var(--ty-solid-warning-strong);--ty-solid-warning-fg: black;--ty-solid-warning-strong-fg: black;--ty-solid-warning-soft-fg: white;--ty-solid-neutral: #414141;--ty-solid-neutral-strong: #f5f5f5;--ty-solid-neutral-soft: #2a2a2a;--ty-solid-neutral-hover: #4c4c4c;--ty-solid-neutral-active: #4c4c4c;--ty-solid-neutral-fg: white;--ty-solid-neutral-strong-fg: black;--ty-solid-neutral-soft-fg: white}
|