@astryx-vue/core 0.1.3 → 0.2.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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-b0PWt9Fz.js → AppShell-EiGyPFbA.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-CYhGDT6f.js → Calendar-BG7wEsro.js} +1 -1
- package/dist/Carousel/index.d.ts +2 -0
- package/dist/Carousel/index.js +2 -0
- package/dist/Carousel-BTtHkKea.js +363 -0
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1aWl5V3.js → Chat-DjNxw5gv.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1X0Rde8.js → Citation-DijdbUUu.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +4 -2
- package/dist/Code-yb_KOFtJ.js +299 -0
- package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CxTb6j9_.js} +8 -2
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BS9ctCQV.js → Collapsible-9MC08X39.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-BD2iODF5.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-D9iXd5cH.js} +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D2ErjXYO.js → DateInput-DE2TN1Rq.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-1bhPGG2s.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-SnPdgk6P.js} +3 -3
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CmAfOpkA.js → FileInput-BQiwE-GB.js} +2 -2
- package/dist/Icon/index.d.ts +3 -0
- package/dist/Icon/index.js +2 -0
- package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
- package/dist/Lightbox/index.d.ts +2 -0
- package/dist/Lightbox/index.js +2 -0
- package/dist/Lightbox-CshKoB0r.js +384 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CwtLr3f_.js → Markdown-D-Ua055V.js} +2 -2
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DlXQTLog.js → MetadataList-sYph_d8Q.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-DD9D01aj.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-DiYov9sF.js} +2 -2
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +1 -1
- package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DspJO6z6.js → NumberInput-CTYiQxHq.js} +1 -1
- package/dist/Outline/index.d.ts +2 -0
- package/dist/Outline/index.js +2 -0
- package/dist/Outline-DQfEBxlc.js +325 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-zXg3g6fy.js → OverflowList-BU5VCntl.js} +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DXfgMUKJ.js → Pagination-HdhtykeF.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BuGKvU9I.js → Resizable-BhSMfO5B.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DlZpQh42.js → Selector-Da-2BO3q.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Cdrigq2A.js → SideNav-B-Om6Bz3.js} +2 -2
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DxmLfh8O.js → Stepper-BZ_8SEZt.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C411uNQU.js → TabList-Cnc2Hs1H.js} +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-7qRmlIQd.js → Table-D-LhAy_J.js} +4 -4
- package/dist/Text/index.d.ts +3 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -0
- package/dist/Theme/index.js +2 -0
- package/dist/Theme-BuUiiJNr.js +429 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-Dc1UpykG.js} +2 -2
- package/dist/{TimeField-l3QzU6vC.js → TimeField-C7t9Knq9.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-BXxCOY98.js} +1 -1
- package/dist/Timer/index.d.ts +2 -0
- package/dist/Timer/index.js +2 -0
- package/dist/Timer-B7GV6hqd.js +134 -0
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-DUoP9ari.js → Timestamp-DlZSmgCJ.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-C4KD0fZD.js → Token-wt4e80IM.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-nmTqdS9n.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CZokS7E_.js → TopNav-notp-mJx.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CIbAGOMf.js → TreeList-s1xBQ0qq.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DIw-K4aa.js → Typeahead-VAuiCurV.js} +2 -2
- package/dist/{context-D6ECRdc5.js → context-Dbo22sck.js} +54 -0
- package/dist/context-O2Vb8cJl.js +57 -0
- package/dist/index-1AZ4KZhg.d.ts +96 -0
- package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
- package/dist/index-BMrggCw-.d.ts +52 -0
- package/dist/index-Bainr_3n.d.ts +31 -0
- package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
- package/dist/{index-C6RecznD.d.ts → index-BtPZKO20.d.ts} +2 -2
- package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
- package/dist/{index-CX97hlld.d.ts → index-C59PdX9L.d.ts} +2 -19
- package/dist/{index-Df2YvC8o.d.ts → index-C6iJwTL0.d.ts} +38 -31
- package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
- package/dist/index-CRizexSC.d.ts +147 -0
- package/dist/index-Cm_TiLXU.d.ts +22 -0
- package/dist/index-Cn-sSds-.d.ts +68 -0
- package/dist/index-CsVS37na.d.ts +81 -0
- package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
- package/dist/{index-DGNqi2za.d.ts → index-DOUEn7V0.d.ts} +3 -3
- package/dist/{index-DYChvBOM.d.ts → index-DoFCm2Q2.d.ts} +29 -0
- package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
- package/dist/{index-ZJyk8RtQ.d.ts → index-DtjAdYEc.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
- package/dist/{index-2u4l3wq8.d.ts → index-NzLDrOkk.d.ts} +1 -1
- package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
- package/dist/index.d.ts +71 -62
- package/dist/index.js +100 -92
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
- package/dist/syntaxTheme-ClpWALZX.js +75 -0
- package/dist/types-Bt-lSgYX.d.ts +65 -0
- package/dist/types-DZoEm_DG.d.ts +97 -0
- package/package.json +25 -1
- package/styles/carousel.css +120 -0
- package/styles/heading.css +6 -2
- package/styles/lightbox.css +144 -0
- package/styles/media-theme.css +51 -0
- package/styles/outline.css +124 -0
- package/styles/text.css +63 -14
- package/styles/theme.css +29 -0
- package/styles/timer.css +34 -0
- package/styles.css +6 -0
- package/dist/index-BzqRns96.d.ts +0 -64
- package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryx-vue/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Vue components for the unofficial astryx-vue community project.",
|
|
6
6
|
"author": "ShenQingchuan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,6 +44,10 @@
|
|
|
44
44
|
"types": "./dist/AvatarGroup/index.d.ts",
|
|
45
45
|
"import": "./dist/AvatarGroup/index.js"
|
|
46
46
|
},
|
|
47
|
+
"./Carousel": {
|
|
48
|
+
"types": "./dist/Carousel/index.d.ts",
|
|
49
|
+
"import": "./dist/Carousel/index.js"
|
|
50
|
+
},
|
|
47
51
|
"./CheckboxList": {
|
|
48
52
|
"types": "./dist/CheckboxList/index.d.ts",
|
|
49
53
|
"import": "./dist/CheckboxList/index.js"
|
|
@@ -80,14 +84,26 @@
|
|
|
80
84
|
"types": "./dist/FormLayout/index.d.ts",
|
|
81
85
|
"import": "./dist/FormLayout/index.js"
|
|
82
86
|
},
|
|
87
|
+
"./Icon": {
|
|
88
|
+
"types": "./dist/Icon/index.d.ts",
|
|
89
|
+
"import": "./dist/Icon/index.js"
|
|
90
|
+
},
|
|
83
91
|
"./Layout": {
|
|
84
92
|
"types": "./dist/Layout/index.d.ts",
|
|
85
93
|
"import": "./dist/Layout/index.js"
|
|
86
94
|
},
|
|
95
|
+
"./Lightbox": {
|
|
96
|
+
"types": "./dist/Lightbox/index.d.ts",
|
|
97
|
+
"import": "./dist/Lightbox/index.js"
|
|
98
|
+
},
|
|
87
99
|
"./MetadataList": {
|
|
88
100
|
"types": "./dist/MetadataList/index.d.ts",
|
|
89
101
|
"import": "./dist/MetadataList/index.js"
|
|
90
102
|
},
|
|
103
|
+
"./Outline": {
|
|
104
|
+
"types": "./dist/Outline/index.d.ts",
|
|
105
|
+
"import": "./dist/Outline/index.js"
|
|
106
|
+
},
|
|
91
107
|
"./RadioList": {
|
|
92
108
|
"types": "./dist/RadioList/index.d.ts",
|
|
93
109
|
"import": "./dist/RadioList/index.js"
|
|
@@ -168,6 +184,10 @@
|
|
|
168
184
|
"types": "./dist/Table/index.d.ts",
|
|
169
185
|
"import": "./dist/Table/index.js"
|
|
170
186
|
},
|
|
187
|
+
"./Theme": {
|
|
188
|
+
"types": "./dist/Theme/index.d.ts",
|
|
189
|
+
"import": "./dist/Theme/index.js"
|
|
190
|
+
},
|
|
171
191
|
"./Thumbnail": {
|
|
172
192
|
"types": "./dist/Thumbnail/index.d.ts",
|
|
173
193
|
"import": "./dist/Thumbnail/index.js"
|
|
@@ -176,6 +196,10 @@
|
|
|
176
196
|
"types": "./dist/TimeInput/index.d.ts",
|
|
177
197
|
"import": "./dist/TimeInput/index.js"
|
|
178
198
|
},
|
|
199
|
+
"./Timer": {
|
|
200
|
+
"types": "./dist/Timer/index.d.ts",
|
|
201
|
+
"import": "./dist/Timer/index.js"
|
|
202
|
+
},
|
|
179
203
|
"./Timestamp": {
|
|
180
204
|
"types": "./dist/Timestamp/index.d.ts",
|
|
181
205
|
"import": "./dist/Timestamp/index.js"
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-carousel {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.astryx-carousel__scroller {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--astryx-carousel-gap, var(--astryx-spacing-1, 4px));
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
padding-inline: var(--astryx-carousel-padding, 0);
|
|
19
|
+
padding-bottom: 1px;
|
|
20
|
+
margin-bottom: -1px;
|
|
21
|
+
overflow-x: auto;
|
|
22
|
+
overflow-y: hidden;
|
|
23
|
+
overscroll-behavior-x: contain;
|
|
24
|
+
scroll-behavior: smooth;
|
|
25
|
+
scroll-padding-inline: var(--astryx-carousel-padding, 0);
|
|
26
|
+
scrollbar-width: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.astryx-carousel__scroller::-webkit-scrollbar {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
.astryx-carousel__scroller {
|
|
35
|
+
scroll-behavior: auto;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.astryx-carousel__scroller:focus-visible {
|
|
40
|
+
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
|
|
41
|
+
outline-offset: var(--astryx-focus-outline-offset, 3px);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.astryx-carousel__scroller[data-snap] {
|
|
45
|
+
scroll-snap-type: x mandatory;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.astryx-carousel__scroller[data-fade='start'] {
|
|
49
|
+
mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 30%) 2px, #000 var(--astryx-spacing-1, 4px));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.astryx-carousel__scroller[data-fade='end'] {
|
|
53
|
+
mask-image: linear-gradient(to left, transparent 0%, rgb(0 0 0 / 30%) 2px, #000 var(--astryx-spacing-1, 4px));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.astryx-carousel__scroller[data-fade='both'] {
|
|
57
|
+
mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 30%) 2px, #000 var(--astryx-spacing-1, 4px), #000 calc(100% - var(--astryx-spacing-1, 4px)), rgb(0 0 0 / 30%) calc(100% - 2px), transparent 100%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[dir='rtl'] .astryx-carousel__scroller[data-fade='start'] {
|
|
61
|
+
mask-image: linear-gradient(to left, transparent 0%, rgb(0 0 0 / 30%) 2px, #000 var(--astryx-spacing-1, 4px));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[dir='rtl'] .astryx-carousel__scroller[data-fade='end'] {
|
|
65
|
+
mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 30%) 2px, #000 var(--astryx-spacing-1, 4px));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.astryx-carousel__item {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
scroll-snap-align: start;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.astryx-carousel__controls {
|
|
75
|
+
position: absolute;
|
|
76
|
+
inset: 0;
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.astryx-carousel__pill {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
border-radius: var(--astryx-radius-full, 9999px);
|
|
88
|
+
background-color: var(--astryx-color-background-popover, #fff);
|
|
89
|
+
box-shadow: var(--astryx-shadow-med, 0 2px 4px rgb(0 0 0 / 8%), 0 4px 12px rgb(0 0 0 / 10%));
|
|
90
|
+
pointer-events: auto;
|
|
91
|
+
opacity: 1;
|
|
92
|
+
transition: opacity var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
93
|
+
--astryx-button-radius: var(--astryx-radius-full, 9999px);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.astryx-carousel__pill--start {
|
|
97
|
+
transform: translateX(-50%);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.astryx-carousel__pill--end {
|
|
101
|
+
transform: translateX(50%);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[dir='rtl'] .astryx-carousel__pill--start {
|
|
105
|
+
transform: translateX(50%);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[dir='rtl'] .astryx-carousel__pill--end {
|
|
109
|
+
transform: translateX(-50%);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.astryx-carousel__pill[data-hidden] {
|
|
113
|
+
opacity: 0;
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[dir='rtl'] .astryx-carousel__pill .astryx-icon {
|
|
118
|
+
transform: scaleX(-1);
|
|
119
|
+
}
|
|
120
|
+
}
|
package/styles/heading.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@layer astryx.components {
|
|
4
4
|
.astryx-heading {
|
|
5
5
|
margin: 0;
|
|
6
|
-
color: var(--astryx-heading-foreground, var(--astryx-color-text-primary, #171717));
|
|
6
|
+
color: var(--astryx-heading-foreground, var(--astryx-color-text-primary, light-dark(#171717, #fafafa)));
|
|
7
7
|
font-family: var(--astryx-font-family-body, Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
|
|
8
8
|
line-height: var(--astryx-heading-leading, 1.25);
|
|
9
9
|
}
|
|
@@ -21,8 +21,12 @@
|
|
|
21
21
|
display: inline;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
.astryx-heading--color-primary {
|
|
25
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
.astryx-heading--color-secondary {
|
|
25
|
-
color: var(--astryx-color-text-secondary, #525252);
|
|
29
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
.astryx-heading--color-accent {
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-lightbox {
|
|
5
|
+
position: fixed;
|
|
6
|
+
inset: 0;
|
|
7
|
+
width: 100vw;
|
|
8
|
+
max-width: none;
|
|
9
|
+
height: 100vh;
|
|
10
|
+
max-height: none;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
border: 0;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
background: transparent;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.astryx-lightbox::backdrop {
|
|
20
|
+
background-color: var(--astryx-color-overlay, light-dark(#00000080, #000000cc));
|
|
21
|
+
backdrop-filter: blur(2px);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.astryx-lightbox__container {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.astryx-lightbox__media {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: center;
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
max-height: 100%;
|
|
39
|
+
min-height: 0;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.astryx-lightbox__frame {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
max-height: 100%;
|
|
49
|
+
min-height: 0;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
user-select: none;
|
|
52
|
+
cursor: default;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.astryx-lightbox__frame[data-zoomable]:not([data-zoomed]) {
|
|
56
|
+
cursor: zoom-in;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.astryx-lightbox__frame[data-zoomed] {
|
|
60
|
+
cursor: grab;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.astryx-lightbox__frame[data-dragging] {
|
|
64
|
+
cursor: grabbing;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.astryx-lightbox__frame:focus-visible {
|
|
68
|
+
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
|
|
69
|
+
outline-offset: var(--astryx-focus-outline-offset, 3px);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.astryx-lightbox__image,
|
|
73
|
+
.astryx-lightbox__video {
|
|
74
|
+
display: block;
|
|
75
|
+
max-width: min(100vw, 100%);
|
|
76
|
+
max-height: calc(100vh - 7rem);
|
|
77
|
+
object-fit: contain;
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.astryx-lightbox__image {
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
transform-origin: center center;
|
|
84
|
+
transition: transform 200ms ease-out;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.astryx-lightbox__image[data-dragging] {
|
|
88
|
+
transition: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (prefers-reduced-motion: reduce) {
|
|
92
|
+
.astryx-lightbox__image {
|
|
93
|
+
transition-duration: 0ms;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.astryx-lightbox__caption {
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
max-width: 600px;
|
|
100
|
+
margin: 0;
|
|
101
|
+
padding-block: var(--astryx-spacing-2, 8px) 0;
|
|
102
|
+
padding-inline: var(--astryx-spacing-3, 12px);
|
|
103
|
+
color: var(--astryx-color-on-dark, #fff);
|
|
104
|
+
font-size: var(--astryx-text-large-size, 1.125rem);
|
|
105
|
+
line-height: var(--astryx-text-large-leading, 1.3333);
|
|
106
|
+
text-align: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.astryx-lightbox__close,
|
|
110
|
+
.astryx-lightbox__nav,
|
|
111
|
+
.astryx-lightbox__counter {
|
|
112
|
+
position: absolute;
|
|
113
|
+
z-index: 1;
|
|
114
|
+
color: var(--astryx-color-on-dark, #fff);
|
|
115
|
+
--astryx-button-ghost-foreground: var(--astryx-color-on-dark, #fff);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.astryx-lightbox__close {
|
|
119
|
+
top: var(--astryx-spacing-3, 12px);
|
|
120
|
+
inset-inline-end: var(--astryx-spacing-3, 12px);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.astryx-lightbox__nav {
|
|
124
|
+
top: 50%;
|
|
125
|
+
translate: 0 -50%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.astryx-lightbox__nav--prev {
|
|
129
|
+
inset-inline-start: var(--astryx-spacing-3, 12px);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.astryx-lightbox__nav--next {
|
|
133
|
+
inset-inline-end: var(--astryx-spacing-3, 12px);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.astryx-lightbox__counter {
|
|
137
|
+
top: var(--astryx-spacing-3, 12px);
|
|
138
|
+
inset-inline-start: var(--astryx-spacing-3, 12px);
|
|
139
|
+
margin: 0;
|
|
140
|
+
color: var(--astryx-color-on-dark, #fff);
|
|
141
|
+
font-size: var(--astryx-text-body-size, 1rem);
|
|
142
|
+
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-media-theme {
|
|
5
|
+
display: contents;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Inverted surfaces do not rely on `color-scheme` alone. Text and heading
|
|
10
|
+
* colors are their own variables, and a `display: contents` wrapper does not
|
|
11
|
+
* always establish a color-scheme for its children. These declarations set
|
|
12
|
+
* the text tokens to the on-dark / on-light colors directly.
|
|
13
|
+
*/
|
|
14
|
+
[data-astryx-media='dark'] {
|
|
15
|
+
color-scheme: dark;
|
|
16
|
+
color: var(--astryx-color-on-dark, #ffffff);
|
|
17
|
+
--astryx-color-text-primary: var(--astryx-color-on-dark, #ffffff);
|
|
18
|
+
--astryx-color-text-secondary: #a3a3a3;
|
|
19
|
+
--astryx-text-foreground: var(--astryx-color-on-dark, #ffffff);
|
|
20
|
+
--astryx-text-supporting-foreground: #a3a3a3;
|
|
21
|
+
--astryx-heading-foreground: var(--astryx-color-on-dark, #ffffff);
|
|
22
|
+
--astryx-color-icon-primary: var(--astryx-color-on-dark, #ffffff);
|
|
23
|
+
--astryx-icon-primary-foreground: var(--astryx-color-on-dark, #ffffff);
|
|
24
|
+
--astryx-color-accent: var(--astryx-color-on-dark, #ffffff);
|
|
25
|
+
--astryx-color-on-accent: var(--astryx-color-on-light, #171717);
|
|
26
|
+
--astryx-button-primary-background: var(--astryx-color-on-dark, #ffffff);
|
|
27
|
+
--astryx-button-primary-foreground: var(--astryx-color-on-light, #171717);
|
|
28
|
+
--astryx-button-secondary-background: #ffffff1a;
|
|
29
|
+
--astryx-button-secondary-foreground: var(--astryx-color-on-dark, #ffffff);
|
|
30
|
+
--astryx-button-ghost-foreground: var(--astryx-color-on-dark, #ffffff);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-astryx-media='light'] {
|
|
34
|
+
color-scheme: light;
|
|
35
|
+
color: var(--astryx-color-on-light, #171717);
|
|
36
|
+
--astryx-color-text-primary: var(--astryx-color-on-light, #171717);
|
|
37
|
+
--astryx-color-text-secondary: #525252;
|
|
38
|
+
--astryx-text-foreground: var(--astryx-color-on-light, #171717);
|
|
39
|
+
--astryx-text-supporting-foreground: #525252;
|
|
40
|
+
--astryx-heading-foreground: var(--astryx-color-on-light, #171717);
|
|
41
|
+
--astryx-color-icon-primary: var(--astryx-color-on-light, #171717);
|
|
42
|
+
--astryx-icon-primary-foreground: var(--astryx-color-on-light, #171717);
|
|
43
|
+
--astryx-color-accent: var(--astryx-color-on-light, #171717);
|
|
44
|
+
--astryx-color-on-accent: #ffffff;
|
|
45
|
+
--astryx-button-primary-background: var(--astryx-color-on-light, #171717);
|
|
46
|
+
--astryx-button-primary-foreground: #ffffff;
|
|
47
|
+
--astryx-button-secondary-background: #0000000f;
|
|
48
|
+
--astryx-button-secondary-foreground: var(--astryx-color-on-light, #171717);
|
|
49
|
+
--astryx-button-ghost-foreground: var(--astryx-color-on-light, #171717);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-outline {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
gap: var(--astryx-spacing-0-5, 2px);
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.astryx-outline__list {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex: 1;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: var(--astryx-spacing-0-5, 2px);
|
|
17
|
+
min-width: 0;
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
list-style: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.astryx-outline__item {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
list-style: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.astryx-outline__link {
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
width: 100%;
|
|
35
|
+
padding-block: var(--astryx-spacing-2, 8px);
|
|
36
|
+
padding-inline: var(--astryx-spacing-3, 12px) var(--astryx-spacing-2, 8px);
|
|
37
|
+
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
38
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
39
|
+
font-size: var(--astryx-text-body-size, 1rem);
|
|
40
|
+
font-weight: var(--astryx-font-weight-regular, 400);
|
|
41
|
+
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
42
|
+
text-align: start;
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
transition:
|
|
46
|
+
background-color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1)),
|
|
47
|
+
color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.astryx-outline[data-density='compact'] .astryx-outline__link {
|
|
51
|
+
padding-block: var(--astryx-spacing-1, 4px);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.astryx-outline__link[data-level='2'] {
|
|
55
|
+
padding-inline-start: var(--astryx-spacing-7, 28px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.astryx-outline__link[data-level='3'] {
|
|
59
|
+
padding-inline-start: var(--astryx-spacing-11, 44px);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.astryx-outline__link[data-level='4'] {
|
|
63
|
+
padding-inline-start: var(--astryx-spacing-12, 48px);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (hover: hover) {
|
|
67
|
+
.astryx-outline__link:hover {
|
|
68
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
69
|
+
background-color: var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.astryx-outline__link[data-active] {
|
|
74
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
75
|
+
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.astryx-outline__link:focus-visible {
|
|
79
|
+
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
|
|
80
|
+
outline-offset: var(--astryx-focus-outline-offset, 3px);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.astryx-outline__label {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.astryx-outline__track {
|
|
90
|
+
position: relative;
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
order: -1;
|
|
93
|
+
width: 2px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.astryx-outline__line,
|
|
97
|
+
.astryx-outline__indicator {
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset-inline-start: 0;
|
|
100
|
+
width: 2px;
|
|
101
|
+
border-radius: var(--astryx-radius-full, 9999px);
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.astryx-outline__line {
|
|
106
|
+
inset-block: 0;
|
|
107
|
+
background-color: var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.astryx-outline__indicator {
|
|
111
|
+
top: var(--astryx-outline-indicator-top, 0px);
|
|
112
|
+
height: var(--astryx-outline-indicator-height, 0px);
|
|
113
|
+
background-color: var(--astryx-color-icon-primary, light-dark(#171717, #fafafa));
|
|
114
|
+
transition:
|
|
115
|
+
top var(--astryx-duration-fast-min, 95ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1)),
|
|
116
|
+
height var(--astryx-duration-fast-min, 95ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@media (prefers-reduced-motion: reduce) {
|
|
120
|
+
.astryx-outline__indicator {
|
|
121
|
+
transition: none;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
package/styles/text.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@layer astryx.components {
|
|
4
4
|
.astryx-text {
|
|
5
5
|
margin: 0;
|
|
6
|
-
color: var(--astryx-text-foreground, var(--astryx-color-text-primary, #171717));
|
|
6
|
+
color: var(--astryx-text-foreground, var(--astryx-color-text-primary, light-dark(#171717, #fafafa)));
|
|
7
7
|
font-family: var(--astryx-font-family-body, Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
|
|
8
8
|
font-size: var(--astryx-text-body-size, 0.875rem);
|
|
9
9
|
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
@@ -13,18 +13,6 @@
|
|
|
13
13
|
display: block;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.astryx-text--color-secondary {
|
|
17
|
-
color: var(--astryx-color-text-secondary, #525252);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.astryx-text--color-accent {
|
|
21
|
-
color: var(--astryx-color-text-accent, #0074e2);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.astryx-text--color-inherit {
|
|
25
|
-
color: inherit;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
16
|
.astryx-text--weight-regular {
|
|
29
17
|
font-weight: var(--astryx-font-weight-regular, 400);
|
|
30
18
|
}
|
|
@@ -58,7 +46,7 @@
|
|
|
58
46
|
}
|
|
59
47
|
|
|
60
48
|
.astryx-text--type-supporting {
|
|
61
|
-
color: var(--astryx-text-supporting-foreground, var(--astryx-color-text-secondary, #525252));
|
|
49
|
+
color: var(--astryx-text-supporting-foreground, var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3)));
|
|
62
50
|
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
63
51
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
64
52
|
}
|
|
@@ -87,6 +75,67 @@
|
|
|
87
75
|
line-height: 1.2;
|
|
88
76
|
}
|
|
89
77
|
|
|
78
|
+
.astryx-text--color-primary {
|
|
79
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.astryx-text--color-secondary {
|
|
83
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.astryx-text--color-accent {
|
|
87
|
+
color: var(--astryx-color-text-accent, #0074e2);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.astryx-text--color-disabled {
|
|
91
|
+
color: var(--astryx-color-text-disabled, light-dark(#a3a3a3, #525252));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.astryx-text--color-placeholder {
|
|
95
|
+
color: var(--astryx-color-text-placeholder, #737373);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.astryx-text--color-inherit {
|
|
99
|
+
color: inherit;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.astryx-text--wrap-wrap {
|
|
103
|
+
text-wrap: wrap;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.astryx-text--wrap-nowrap {
|
|
107
|
+
text-wrap: nowrap;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.astryx-text--wrap-balance {
|
|
111
|
+
text-wrap: balance;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.astryx-text--wrap-pretty {
|
|
115
|
+
text-wrap: pretty;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.astryx-text--word-normal {
|
|
119
|
+
word-break: normal;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.astryx-text--word-break-word {
|
|
123
|
+
overflow-wrap: anywhere;
|
|
124
|
+
word-break: break-word;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.astryx-text--word-break-all {
|
|
128
|
+
word-break: break-all;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.astryx-text--strike {
|
|
132
|
+
text-decoration: line-through;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.astryx-text--tabular {
|
|
136
|
+
font-variant-numeric: tabular-nums;
|
|
137
|
+
}
|
|
138
|
+
|
|
90
139
|
.astryx-text--size-sm {
|
|
91
140
|
font-size: var(--astryx-text-sm-size, 0.75rem);
|
|
92
141
|
}
|
package/styles/theme.css
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
/*
|
|
5
|
+
* `display: contents` keeps the theme out of layout. Color and font still
|
|
6
|
+
* inherit through it, so unmarked text uses the primary text token.
|
|
7
|
+
*/
|
|
8
|
+
.astryx-theme {
|
|
9
|
+
display: contents;
|
|
10
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
11
|
+
font-family: var(--astryx-font-family-body, Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
|
|
12
|
+
/*
|
|
13
|
+
* These aliases are also declared on :root, where var() is substituted
|
|
14
|
+
* once. Restating them here makes the subtree resolve them again, including
|
|
15
|
+
* semantic tokens this theme did not override but a parent theme did.
|
|
16
|
+
*/
|
|
17
|
+
--astryx-text-foreground: var(--astryx-color-text-primary);
|
|
18
|
+
--astryx-text-supporting-foreground: var(--astryx-color-text-secondary);
|
|
19
|
+
--astryx-heading-foreground: var(--astryx-color-text-primary);
|
|
20
|
+
--astryx-button-primary-background: var(--astryx-color-accent);
|
|
21
|
+
--astryx-button-primary-foreground: var(--astryx-color-on-accent);
|
|
22
|
+
--astryx-button-secondary-background: var(--astryx-color-neutral);
|
|
23
|
+
--astryx-button-secondary-foreground: var(--astryx-color-text-primary);
|
|
24
|
+
--astryx-button-ghost-foreground: var(--astryx-color-text-primary);
|
|
25
|
+
--astryx-button-focus: var(--astryx-color-accent);
|
|
26
|
+
--astryx-focus-outline-color: var(--astryx-color-accent);
|
|
27
|
+
--astryx-icon-primary-foreground: var(--astryx-color-icon-primary);
|
|
28
|
+
}
|
|
29
|
+
}
|
package/styles/timer.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-timer {
|
|
5
|
+
display: inline;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.astryx-timer__time {
|
|
9
|
+
display: inline;
|
|
10
|
+
color: inherit;
|
|
11
|
+
font-family: inherit;
|
|
12
|
+
font-size: inherit;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-variant-numeric: tabular-nums;
|
|
15
|
+
font-weight: inherit;
|
|
16
|
+
line-height: inherit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.astryx-timer[data-color='primary'] {
|
|
20
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.astryx-timer[data-color='secondary'] {
|
|
24
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.astryx-timer[data-color='accent'] {
|
|
28
|
+
color: var(--astryx-color-text-accent, #0074e2);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.astryx-timer[data-color='disabled'] {
|
|
32
|
+
color: var(--astryx-color-text-disabled, light-dark(#a3a3a3, #525252));
|
|
33
|
+
}
|
|
34
|
+
}
|