@mrpelz/uikit-ish 7.26.2 → 7.29.1
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/components/accordion/style.css +0 -3
- package/dist/components/activity-view/style.css +17 -17
- package/dist/components/alert/style.css +12 -10
- package/dist/components/avatar/style.css +2 -2
- package/dist/components/badge/style.css +1 -1
- package/dist/components/button/style.css +12 -12
- package/dist/components/card/buttons.d.ts +35 -0
- package/dist/components/card/buttons.d.ts.map +1 -0
- package/dist/components/card/buttons.js +60 -0
- package/dist/components/card/buttons.js.map +1 -0
- package/dist/components/card/channels.d.ts +43 -0
- package/dist/components/card/channels.d.ts.map +1 -0
- package/dist/components/card/channels.js +321 -0
- package/dist/components/card/channels.js.map +1 -0
- package/dist/components/card/color.d.ts +21 -0
- package/dist/components/card/color.d.ts.map +1 -0
- package/dist/components/card/color.js +100 -0
- package/dist/components/card/color.js.map +1 -0
- package/dist/components/card/main.d.ts +67 -39
- package/dist/components/card/main.d.ts.map +1 -1
- package/dist/components/card/main.js +79 -274
- package/dist/components/card/main.js.map +1 -1
- package/dist/components/card/parts.css +769 -0
- package/dist/components/card/press.d.ts +25 -0
- package/dist/components/card/press.d.ts.map +1 -0
- package/dist/components/card/press.js +111 -0
- package/dist/components/card/press.js.map +1 -0
- package/dist/components/card/progress.d.ts +43 -0
- package/dist/components/card/progress.d.ts.map +1 -0
- package/dist/components/card/progress.js +122 -0
- package/dist/components/card/progress.js.map +1 -0
- package/dist/components/card/props.d.ts +324 -14
- package/dist/components/card/props.d.ts.map +1 -1
- package/dist/components/card/root.d.ts +100 -0
- package/dist/components/card/root.d.ts.map +1 -0
- package/dist/components/card/root.js +388 -0
- package/dist/components/card/root.js.map +1 -0
- package/dist/components/card/rows.d.ts +19 -0
- package/dist/components/card/rows.d.ts.map +1 -0
- package/dist/components/card/rows.js +185 -0
- package/dist/components/card/rows.js.map +1 -0
- package/dist/components/card/segmented.d.ts +61 -0
- package/dist/components/card/segmented.d.ts.map +1 -0
- package/dist/components/card/segmented.js +289 -0
- package/dist/components/card/segmented.js.map +1 -0
- package/dist/components/card/shared.d.ts +55 -0
- package/dist/components/card/shared.d.ts.map +1 -0
- package/dist/components/card/shared.js +80 -0
- package/dist/components/card/shared.js.map +1 -0
- package/dist/components/card/slider.d.ts +16 -0
- package/dist/components/card/slider.d.ts.map +1 -0
- package/dist/components/card/slider.js +48 -0
- package/dist/components/card/slider.js.map +1 -0
- package/dist/components/card/stages.d.ts +18 -0
- package/dist/components/card/stages.d.ts.map +1 -0
- package/dist/components/card/stages.js +37 -0
- package/dist/components/card/stages.js.map +1 -0
- package/dist/components/card/style.css +125 -66
- package/dist/components/checkbox/style.css +10 -5
- package/dist/components/collapsible/style.css +0 -3
- package/dist/components/color-picker/color.d.ts +2 -2
- package/dist/components/color-picker/color.d.ts.map +1 -1
- package/dist/components/color-picker/color.js +7 -7
- package/dist/components/color-picker/color.js.map +1 -1
- package/dist/components/color-picker/main.d.ts +11 -5
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +128 -57
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +216 -6
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +8 -8
- package/dist/components/control-cards/main.d.ts +6 -17
- package/dist/components/control-cards/main.d.ts.map +1 -1
- package/dist/components/control-cards/main.js +119 -758
- package/dist/components/control-cards/main.js.map +1 -1
- package/dist/components/control-cards/props.d.ts +79 -250
- package/dist/components/control-cards/props.d.ts.map +1 -1
- package/dist/components/control-cards/style.css +2 -492
- package/dist/components/date-picker/main.d.ts +8 -3
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +71 -29
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/pager.d.ts.map +1 -1
- package/dist/components/date-picker/pager.js +9 -2
- package/dist/components/date-picker/pager.js.map +1 -1
- package/dist/components/date-picker/props.d.ts +81 -5
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +24 -16
- package/dist/components/edit-menu/style.css +2 -2
- package/dist/components/glass/style.css +38 -5
- package/dist/components/grid/main.d.ts +1 -1
- package/dist/components/grid/main.d.ts.map +1 -1
- package/dist/components/grid/main.js +104 -21
- package/dist/components/grid/main.js.map +1 -1
- package/dist/components/grid/props.d.ts +75 -5
- package/dist/components/grid/props.d.ts.map +1 -1
- package/dist/components/grid/style.css +68 -38
- package/dist/components/header/style.css +12 -6
- package/dist/components/index.d.ts +10 -8
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/style.css +0 -3
- package/dist/components/list/main.d.ts +5 -3
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +42 -5
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +5 -0
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +34 -0
- package/dist/components/list/reorder.d.ts.map +1 -1
- package/dist/components/list/reorder.js +40 -17
- package/dist/components/list/reorder.js.map +1 -1
- package/dist/components/list/style.css +135 -72
- package/dist/components/menu/style.css +38 -30
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +35 -13
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/style.css +7 -0
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +32 -15
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/props.d.ts +6 -0
- package/dist/components/page-control/props.d.ts.map +1 -1
- package/dist/components/page-control/style.css +36 -0
- package/dist/components/pager/main.d.ts +12 -0
- package/dist/components/pager/main.d.ts.map +1 -0
- package/dist/components/pager/main.js +368 -0
- package/dist/components/pager/main.js.map +1 -0
- package/dist/components/pager/props.d.ts +36 -0
- package/dist/components/pager/props.d.ts.map +1 -0
- package/dist/components/pager/props.js +2 -0
- package/dist/components/pager/props.js.map +1 -0
- package/dist/components/pager/style.css +42 -0
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +3 -2
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/style.css +4 -10
- package/dist/components/roll/style.css +2 -2
- package/dist/components/segmented/style.css +16 -7
- package/dist/components/settings/main.d.ts +35 -1
- package/dist/components/settings/main.d.ts.map +1 -1
- package/dist/components/settings/main.js +297 -68
- package/dist/components/settings/main.js.map +1 -1
- package/dist/components/settings/props.d.ts +45 -4
- package/dist/components/settings/props.d.ts.map +1 -1
- package/dist/components/settings/region.d.ts +3 -0
- package/dist/components/settings/region.d.ts.map +1 -0
- package/dist/components/settings/region.js +120 -0
- package/dist/components/settings/region.js.map +1 -0
- package/dist/components/settings/style.css +2 -2
- package/dist/components/sheet/snap.d.ts.map +1 -1
- package/dist/components/sheet/snap.js +13 -5
- package/dist/components/sheet/snap.js.map +1 -1
- package/dist/components/sheet/style.css +48 -3
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +5 -2
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/style.css +6 -6
- package/dist/components/stack/main.d.ts +8 -0
- package/dist/components/stack/main.d.ts.map +1 -0
- package/dist/components/stack/main.js +25 -0
- package/dist/components/stack/main.js.map +1 -0
- package/dist/components/stack/props.d.ts +42 -0
- package/dist/components/stack/props.d.ts.map +1 -0
- package/dist/components/stack/props.js +2 -0
- package/dist/components/stack/props.js.map +1 -0
- package/dist/components/stack/style.css +68 -0
- package/dist/components/stepper/main.d.ts +3 -1
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +4 -0
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +2 -2
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +5 -1
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +4 -1
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +36 -13
- package/dist/components/text-field/style.css +28 -17
- package/dist/components/toolbar/main.d.ts +5 -2
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +18 -0
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +15 -0
- package/dist/components/toolbar/props.d.ts.map +1 -1
- package/dist/components/toolbar/style.css +126 -10
- package/dist/components/tooltip/style.css +2 -2
- package/dist/components/typography/main.d.ts +1 -0
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +1 -0
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/sizes.css +456 -0
- package/dist/components/typography/style.css +24 -456
- package/dist/components/utils/main.d.ts +23 -6
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +60 -7
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/viewport/edge-effect.d.ts.map +1 -1
- package/dist/components/viewport/edge-effect.js +6 -2
- package/dist/components/viewport/edge-effect.js.map +1 -1
- package/dist/components/viewport/focus-scroll.d.ts.map +1 -1
- package/dist/components/viewport/focus-scroll.js +2 -1
- package/dist/components/viewport/focus-scroll.js.map +1 -1
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +34 -2
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/style.css +7 -13
- package/dist/styles.css +287 -120
- package/package.json +1 -1
|
@@ -37,6 +37,13 @@
|
|
|
37
37
|
background-color: var(--color-ui-system-grouped-background);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/* With more contrast (its provider's, resolved, see main.tsx: the root's
|
|
41
|
+
tokens stay the defaults, outside every provider), as the content's
|
|
42
|
+
(see styles.css). */
|
|
43
|
+
:root[data-uikit-viewport-window][data-uikit-root-contrast='more'] {
|
|
44
|
+
background-color: light-dark(rgb(235 235 240), rgb(0 0 0));
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
/* A provider's screen (not the window, see main.tsx): the same, beneath
|
|
41
48
|
its layers (e.g. a page of its own in a navigation stack, not the page
|
|
42
49
|
below showing through as it slides in). Unspecific: a screen's own
|
|
@@ -371,12 +378,6 @@
|
|
|
371
378
|
}
|
|
372
379
|
}
|
|
373
380
|
|
|
374
|
-
@container style(--uikit-settings-reduced-motion: 1) {
|
|
375
|
-
&::before,
|
|
376
|
-
&::after {
|
|
377
|
-
transition: none;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
381
|
}
|
|
381
382
|
|
|
382
383
|
/* The bars' inner side (see EdgeEffects: what's stuck to them, measured
|
|
@@ -573,13 +574,6 @@
|
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
576
|
|
|
576
|
-
@container style(--uikit-settings-reduced-motion: 1) {
|
|
577
|
-
.uikit-viewport-anchor,
|
|
578
|
-
.uikit-viewport-content,
|
|
579
|
-
.uikit-viewport-keyboard-accessory {
|
|
580
|
-
--uikit-viewport-keyboard-transition: 0s;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
577
|
}
|
|
584
578
|
|
|
585
579
|
/* A scroller's edges' progress (see edge-effect.tsx): its own styles' only
|
package/dist/styles.css
CHANGED
|
@@ -17,28 +17,6 @@
|
|
|
17
17
|
--uikit-safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
|
|
18
18
|
--uikit-safe-area-inset-left: env(safe-area-inset-left, 0px);
|
|
19
19
|
|
|
20
|
-
/*
|
|
21
|
-
* Settings (see components/settings/main.tsx): each the system's (its
|
|
22
|
-
* media query's, see below; without one, the default), unless a
|
|
23
|
-
* provider overrides it (on its element, inherited: the nearest
|
|
24
|
-
* provider's wins; a portal's, where it was opened). 0 or 1; text size
|
|
25
|
-
* a keyword (Typography's).
|
|
26
|
-
*/
|
|
27
|
-
--uikit-settings-contrast-system: 0;
|
|
28
|
-
--uikit-settings-differentiate-without-color-system: 0;
|
|
29
|
-
--uikit-settings-reduced-motion-system: 0;
|
|
30
|
-
--uikit-settings-reduced-transparency-system: 0;
|
|
31
|
-
--uikit-settings-text-size-system: large;
|
|
32
|
-
--uikit-settings-contrast: var(--uikit-settings-contrast-system);
|
|
33
|
-
--uikit-settings-differentiate-without-color: var(
|
|
34
|
-
--uikit-settings-differentiate-without-color-system
|
|
35
|
-
);
|
|
36
|
-
--uikit-settings-reduced-motion: var(--uikit-settings-reduced-motion-system);
|
|
37
|
-
--uikit-settings-reduced-transparency: var(
|
|
38
|
-
--uikit-settings-reduced-transparency-system
|
|
39
|
-
);
|
|
40
|
-
--uikit-settings-text-size: var(--uikit-settings-text-size-system);
|
|
41
|
-
|
|
42
20
|
/*
|
|
43
21
|
* Grayscale antialiasing (Framework7 components/app/app.less)
|
|
44
22
|
*/
|
|
@@ -122,24 +100,6 @@
|
|
|
122
100
|
* for switch and slider tracks: 120 120 120
|
|
123
101
|
*/
|
|
124
102
|
--color-ui-label: light-dark(rgb(0 0 0), rgb(255 255 255));
|
|
125
|
-
--color-ui-secondary-label: light-dark(
|
|
126
|
-
rgb(60 60 67 / 60%),
|
|
127
|
-
rgb(235 235 245 / 60%)
|
|
128
|
-
);
|
|
129
|
-
--color-ui-tertiary-label: light-dark(
|
|
130
|
-
rgb(60 60 67 / 30%),
|
|
131
|
-
rgb(235 235 245 / 30%)
|
|
132
|
-
);
|
|
133
|
-
--color-ui-quaternary-label: light-dark(
|
|
134
|
-
rgb(60 60 67 / 18%),
|
|
135
|
-
rgb(235 235 245 / 16%)
|
|
136
|
-
);
|
|
137
|
-
--color-ui-placeholder-text: light-dark(
|
|
138
|
-
rgb(60 60 67 / 30%),
|
|
139
|
-
rgb(235 235 245 / 30%)
|
|
140
|
-
);
|
|
141
|
-
--color-ui-separator: light-dark(rgb(60 60 67 / 29%), rgb(84 84 88 / 60%));
|
|
142
|
-
--color-ui-opaque-separator: light-dark(rgb(198 198 200), rgb(56 56 58));
|
|
143
103
|
|
|
144
104
|
/* A segmented control's selected segment. */
|
|
145
105
|
--color-ui-segmented-selection: light-dark(
|
|
@@ -147,22 +107,6 @@
|
|
|
147
107
|
rgb(108 108 113)
|
|
148
108
|
);
|
|
149
109
|
--color-ui-link: light-dark(rgb(0 122 255), rgb(9 132 255));
|
|
150
|
-
--color-ui-system-fill: light-dark(
|
|
151
|
-
rgb(120 120 120 / 20%),
|
|
152
|
-
rgb(120 120 128 / 36%)
|
|
153
|
-
);
|
|
154
|
-
--color-ui-secondary-system-fill: light-dark(
|
|
155
|
-
rgb(120 120 128 / 16%),
|
|
156
|
-
rgb(120 120 128 / 32%)
|
|
157
|
-
);
|
|
158
|
-
--color-ui-tertiary-system-fill: light-dark(
|
|
159
|
-
rgb(118 118 128 / 12%),
|
|
160
|
-
rgb(118 118 128 / 24%)
|
|
161
|
-
);
|
|
162
|
-
--color-ui-quaternary-system-fill: light-dark(
|
|
163
|
-
rgb(116 116 128 / 8%),
|
|
164
|
-
rgb(118 118 128 / 18%)
|
|
165
|
-
);
|
|
166
110
|
--color-ui-system-background: light-dark(rgb(255 255 255), rgb(0 0 0));
|
|
167
111
|
--color-ui-secondary-system-background: light-dark(
|
|
168
112
|
rgb(242 242 247),
|
|
@@ -172,14 +116,6 @@
|
|
|
172
116
|
rgb(255 255 255),
|
|
173
117
|
rgb(44 44 46)
|
|
174
118
|
);
|
|
175
|
-
--color-ui-system-grouped-background: light-dark(
|
|
176
|
-
rgb(242 242 247),
|
|
177
|
-
rgb(0 0 0)
|
|
178
|
-
);
|
|
179
|
-
--color-ui-secondary-system-grouped-background: light-dark(
|
|
180
|
-
rgb(255 255 255),
|
|
181
|
-
rgb(28 28 30)
|
|
182
|
-
);
|
|
183
119
|
--color-ui-tertiary-system-grouped-background: light-dark(
|
|
184
120
|
rgb(242 242 247),
|
|
185
121
|
rgb(44 44 46)
|
|
@@ -353,18 +289,6 @@
|
|
|
353
289
|
--glass-ui-lens-duration: 300ms;
|
|
354
290
|
--glass-ui-lens-shadow: var(--glass-ui-bright-lens-shadow);
|
|
355
291
|
|
|
356
|
-
/*
|
|
357
|
-
* List separators, blended with the list's background (unlike the
|
|
358
|
-
* separator color, rgb(60 60 67 / 29%)): #E6E6E6 plus-darker (as multiply), #1A1A1A plus-lighter,
|
|
359
|
-
* drawn as their unblended equivalent (black at 10%: exact; white at
|
|
360
|
-
* 11%: exact on dark rows, #1C1C1E): WebKit blends rows on a layer of
|
|
361
|
-
* their own (e.g. while swiped) with nothing, as the glass above.
|
|
362
|
-
*/
|
|
363
|
-
--color-ui-list-separator: light-dark(
|
|
364
|
-
rgb(0 0 0 / 10%),
|
|
365
|
-
rgb(255 255 255 / 11%)
|
|
366
|
-
);
|
|
367
|
-
|
|
368
292
|
/*
|
|
369
293
|
* Section titles of plain lists, opaque
|
|
370
294
|
*
|
|
@@ -383,12 +307,11 @@
|
|
|
383
307
|
}
|
|
384
308
|
|
|
385
309
|
/*
|
|
386
|
-
* The system colors
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* too, resolved alike (see below).
|
|
310
|
+
* The system colors (and the semantic ones changing with more contrast),
|
|
311
|
+
* standard: on the root, and again directly within every provider or
|
|
312
|
+
* portal (see Settings), so a provider's standard contrast holds within
|
|
313
|
+
* more; with more contrast, see below. The app tint too, resolved alike
|
|
314
|
+
* (see below).
|
|
392
315
|
*/
|
|
393
316
|
:where(:root, [data-uikit-settings] > *) {
|
|
394
317
|
/*
|
|
@@ -423,10 +346,79 @@
|
|
|
423
346
|
--color-ui-system-purple: light-dark(rgb(203 48 224), rgb(219 52 242));
|
|
424
347
|
--color-ui-system-pink: light-dark(rgb(255 45 85), rgb(255 55 95));
|
|
425
348
|
--color-ui-system-brown: light-dark(rgb(172 127 94), rgb(183 138 102));
|
|
349
|
+
|
|
350
|
+
/*
|
|
351
|
+
* Semantic colors with more contrast
|
|
352
|
+
*
|
|
353
|
+
* Secondary labels, separators, fills and grouped backgrounds: stronger
|
|
354
|
+
* with more contrast (see below). Set here, not with the other semantic
|
|
355
|
+
* colors, so they're set again within every provider or portal.
|
|
356
|
+
*/
|
|
357
|
+
--color-ui-secondary-label: light-dark(
|
|
358
|
+
rgb(60 60 67 / 60%),
|
|
359
|
+
rgb(235 235 245 / 60%)
|
|
360
|
+
);
|
|
361
|
+
--color-ui-tertiary-label: light-dark(
|
|
362
|
+
rgb(60 60 67 / 30%),
|
|
363
|
+
rgb(235 235 245 / 30%)
|
|
364
|
+
);
|
|
365
|
+
--color-ui-quaternary-label: light-dark(
|
|
366
|
+
rgb(60 60 67 / 18%),
|
|
367
|
+
rgb(235 235 245 / 16%)
|
|
368
|
+
);
|
|
369
|
+
--color-ui-placeholder-text: light-dark(
|
|
370
|
+
rgb(60 60 67 / 30%),
|
|
371
|
+
rgb(235 235 245 / 30%)
|
|
372
|
+
);
|
|
373
|
+
--color-ui-separator: light-dark(rgb(60 60 67 / 29%), rgb(84 84 88 / 60%));
|
|
374
|
+
--color-ui-opaque-separator: light-dark(rgb(198 198 200), rgb(56 56 58));
|
|
375
|
+
--color-ui-system-fill: light-dark(
|
|
376
|
+
rgb(120 120 120 / 20%),
|
|
377
|
+
rgb(120 120 128 / 36%)
|
|
378
|
+
);
|
|
379
|
+
--color-ui-secondary-system-fill: light-dark(
|
|
380
|
+
rgb(120 120 128 / 16%),
|
|
381
|
+
rgb(120 120 128 / 32%)
|
|
382
|
+
);
|
|
383
|
+
--color-ui-tertiary-system-fill: light-dark(
|
|
384
|
+
rgb(118 118 128 / 12%),
|
|
385
|
+
rgb(118 118 128 / 24%)
|
|
386
|
+
);
|
|
387
|
+
--color-ui-quaternary-system-fill: light-dark(
|
|
388
|
+
rgb(116 116 128 / 8%),
|
|
389
|
+
rgb(118 118 128 / 18%)
|
|
390
|
+
);
|
|
391
|
+
--color-ui-system-grouped-background: light-dark(
|
|
392
|
+
rgb(242 242 247),
|
|
393
|
+
rgb(0 0 0)
|
|
394
|
+
);
|
|
395
|
+
--color-ui-secondary-system-grouped-background: light-dark(
|
|
396
|
+
rgb(255 255 255),
|
|
397
|
+
rgb(28 28 30)
|
|
398
|
+
);
|
|
399
|
+
|
|
400
|
+
/*
|
|
401
|
+
* List separators, blended with the list's background (unlike the
|
|
402
|
+
* separator color, rgb(60 60 67 / 29%)): #E6E6E6 plus-darker (as
|
|
403
|
+
* multiply), #1A1A1A plus-lighter, drawn as their unblended equivalent
|
|
404
|
+
* (black at 10%: exact; white at 11%: exact on dark rows, #1C1C1E):
|
|
405
|
+
* WebKit blends rows on a layer of their own (e.g. while swiped) with
|
|
406
|
+
* nothing, as the glass.
|
|
407
|
+
*/
|
|
408
|
+
--color-ui-list-separator: light-dark(
|
|
409
|
+
rgb(0 0 0 / 10%),
|
|
410
|
+
rgb(255 255 255 / 11%)
|
|
411
|
+
);
|
|
426
412
|
}
|
|
427
413
|
|
|
428
|
-
|
|
429
|
-
|
|
414
|
+
/* With more contrast: the system's (its media query; within providers
|
|
415
|
+
not overriding it, only: none outside one), or a provider's (its
|
|
416
|
+
attribute, and its portals', see Settings; not a style query: those
|
|
417
|
+
don't apply on iOS, see the guide's iOS Quirks). (The window's background follows its viewport's provider's
|
|
418
|
+
alone, see Viewport: not the root's tokens, which everything outside
|
|
419
|
+
a provider inherits.) */
|
|
420
|
+
@media (prefers-contrast: more), (forced-colors: active) {
|
|
421
|
+
:where([data-uikit-settings]:not([data-uikit-contrast]) > *) {
|
|
430
422
|
--color-ui-primary: var(
|
|
431
423
|
--uikit-tint-more-contrast,
|
|
432
424
|
var(--uikit-tint, var(--color-ui-system-blue))
|
|
@@ -449,36 +441,136 @@
|
|
|
449
441
|
--color-ui-system-purple: light-dark(rgb(176 47 194), rgb(234 141 255));
|
|
450
442
|
--color-ui-system-pink: light-dark(rgb(231 18 77), rgb(255 138 196));
|
|
451
443
|
--color-ui-system-brown: light-dark(rgb(149 109 81), rgb(219 166 121));
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
444
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
445
|
+
/* Measured on a phone with Increase Contrast (labels, cells, list
|
|
446
|
+
separators, the switch's track); the rest raised alike (the
|
|
447
|
+
quaternary label, placeholder text, the separators' and the fills'
|
|
448
|
+
by half again: they're backgrounds of buttons and fields). */
|
|
449
|
+
--color-ui-secondary-label: light-dark(
|
|
450
|
+
rgb(60 60 67 / 80%),
|
|
451
|
+
rgb(235 235 245 / 70%)
|
|
452
|
+
);
|
|
453
|
+
--color-ui-tertiary-label: light-dark(
|
|
454
|
+
rgb(60 60 67 / 70%),
|
|
455
|
+
rgb(235 235 245 / 56%)
|
|
456
|
+
);
|
|
457
|
+
--color-ui-quaternary-label: light-dark(
|
|
458
|
+
rgb(60 60 67 / 42%),
|
|
459
|
+
rgb(235 235 245 / 30%)
|
|
460
|
+
);
|
|
461
|
+
--color-ui-placeholder-text: light-dark(
|
|
462
|
+
rgb(60 60 67 / 70%),
|
|
463
|
+
rgb(235 235 245 / 56%)
|
|
464
|
+
);
|
|
465
|
+
--color-ui-separator: light-dark(
|
|
466
|
+
rgb(60 60 67 / 29%),
|
|
467
|
+
rgb(84 84 88 / 87%)
|
|
468
|
+
);
|
|
469
|
+
--color-ui-opaque-separator: light-dark(rgb(198 198 200), rgb(70 70 72));
|
|
470
|
+
--color-ui-system-fill: light-dark(rgb(118 118 123), rgb(145 145 151));
|
|
471
|
+
--color-ui-secondary-system-fill: light-dark(
|
|
472
|
+
rgb(120 120 128 / 24%),
|
|
473
|
+
rgb(120 120 128 / 48%)
|
|
474
|
+
);
|
|
475
|
+
--color-ui-tertiary-system-fill: light-dark(
|
|
476
|
+
rgb(118 118 128 / 18%),
|
|
477
|
+
rgb(118 118 128 / 36%)
|
|
478
|
+
);
|
|
479
|
+
--color-ui-quaternary-system-fill: light-dark(
|
|
480
|
+
rgb(116 116 128 / 12%),
|
|
481
|
+
rgb(118 118 128 / 27%)
|
|
482
|
+
);
|
|
483
|
+
--color-ui-system-grouped-background: light-dark(
|
|
484
|
+
rgb(235 235 240),
|
|
485
|
+
rgb(0 0 0)
|
|
486
|
+
);
|
|
487
|
+
--color-ui-secondary-system-grouped-background: light-dark(
|
|
488
|
+
rgb(255 255 255),
|
|
489
|
+
rgb(36 36 37)
|
|
490
|
+
);
|
|
491
|
+
--color-ui-list-separator: light-dark(
|
|
492
|
+
rgb(0 0 0 / 10%),
|
|
493
|
+
rgb(255 255 255 / 16%)
|
|
460
494
|
);
|
|
461
|
-
--color-ui-system-gray: light-dark(rgb(108 108 112), rgb(174 174 178));
|
|
462
|
-
--color-ui-system-gray2: light-dark(rgb(142 142 147), rgb(124 124 128));
|
|
463
|
-
--color-ui-system-gray3: light-dark(rgb(174 174 178), rgb(84 84 86));
|
|
464
|
-
--color-ui-system-gray4: light-dark(rgb(188 188 192), rgb(68 68 70));
|
|
465
|
-
--color-ui-system-gray5: light-dark(rgb(216 216 220), rgb(54 54 56));
|
|
466
|
-
--color-ui-system-gray6: light-dark(rgb(235 235 240), rgb(36 36 38));
|
|
467
|
-
--color-ui-system-red: light-dark(rgb(233 21 45), rgb(255 97 101));
|
|
468
|
-
--color-ui-system-orange: light-dark(rgb(197 83 0), rgb(255 160 86));
|
|
469
|
-
--color-ui-system-yellow: light-dark(rgb(161 106 0), rgb(254 223 67));
|
|
470
|
-
--color-ui-system-green: light-dark(rgb(0 137 50), rgb(74 217 104));
|
|
471
|
-
--color-ui-system-mint: light-dark(rgb(0 133 117), rgb(84 223 203));
|
|
472
|
-
--color-ui-system-teal: light-dark(rgb(0 129 152), rgb(59 221 236));
|
|
473
|
-
--color-ui-system-cyan: light-dark(rgb(0 126 174), rgb(109 217 255));
|
|
474
|
-
--color-ui-system-blue: light-dark(rgb(30 110 244), rgb(92 184 255));
|
|
475
|
-
--color-ui-system-indigo: light-dark(rgb(86 74 222), rgb(167 170 255));
|
|
476
|
-
--color-ui-system-purple: light-dark(rgb(176 47 194), rgb(234 141 255));
|
|
477
|
-
--color-ui-system-pink: light-dark(rgb(231 18 77), rgb(255 138 196));
|
|
478
|
-
--color-ui-system-brown: light-dark(rgb(149 109 81), rgb(219 166 121));
|
|
479
495
|
}
|
|
480
496
|
}
|
|
481
497
|
|
|
498
|
+
:where([data-uikit-contrast='more'] > *) {
|
|
499
|
+
--color-ui-primary: var(
|
|
500
|
+
--uikit-tint-more-contrast,
|
|
501
|
+
var(--uikit-tint, var(--color-ui-system-blue))
|
|
502
|
+
);
|
|
503
|
+
--color-ui-system-gray: light-dark(rgb(108 108 112), rgb(174 174 178));
|
|
504
|
+
--color-ui-system-gray2: light-dark(rgb(142 142 147), rgb(124 124 128));
|
|
505
|
+
--color-ui-system-gray3: light-dark(rgb(174 174 178), rgb(84 84 86));
|
|
506
|
+
--color-ui-system-gray4: light-dark(rgb(188 188 192), rgb(68 68 70));
|
|
507
|
+
--color-ui-system-gray5: light-dark(rgb(216 216 220), rgb(54 54 56));
|
|
508
|
+
--color-ui-system-gray6: light-dark(rgb(235 235 240), rgb(36 36 38));
|
|
509
|
+
--color-ui-system-red: light-dark(rgb(233 21 45), rgb(255 97 101));
|
|
510
|
+
--color-ui-system-orange: light-dark(rgb(197 83 0), rgb(255 160 86));
|
|
511
|
+
--color-ui-system-yellow: light-dark(rgb(161 106 0), rgb(254 223 67));
|
|
512
|
+
--color-ui-system-green: light-dark(rgb(0 137 50), rgb(74 217 104));
|
|
513
|
+
--color-ui-system-mint: light-dark(rgb(0 133 117), rgb(84 223 203));
|
|
514
|
+
--color-ui-system-teal: light-dark(rgb(0 129 152), rgb(59 221 236));
|
|
515
|
+
--color-ui-system-cyan: light-dark(rgb(0 126 174), rgb(109 217 255));
|
|
516
|
+
--color-ui-system-blue: light-dark(rgb(30 110 244), rgb(92 184 255));
|
|
517
|
+
--color-ui-system-indigo: light-dark(rgb(86 74 222), rgb(167 170 255));
|
|
518
|
+
--color-ui-system-purple: light-dark(rgb(176 47 194), rgb(234 141 255));
|
|
519
|
+
--color-ui-system-pink: light-dark(rgb(231 18 77), rgb(255 138 196));
|
|
520
|
+
--color-ui-system-brown: light-dark(rgb(149 109 81), rgb(219 166 121));
|
|
521
|
+
|
|
522
|
+
/* Measured on a phone with Increase Contrast (labels, cells, list
|
|
523
|
+
separators, the switch's track); the rest raised alike (the
|
|
524
|
+
quaternary label, placeholder text, the separators' and the fills'
|
|
525
|
+
by half again: they're backgrounds of buttons and fields). */
|
|
526
|
+
--color-ui-secondary-label: light-dark(
|
|
527
|
+
rgb(60 60 67 / 80%),
|
|
528
|
+
rgb(235 235 245 / 70%)
|
|
529
|
+
);
|
|
530
|
+
--color-ui-tertiary-label: light-dark(
|
|
531
|
+
rgb(60 60 67 / 70%),
|
|
532
|
+
rgb(235 235 245 / 56%)
|
|
533
|
+
);
|
|
534
|
+
--color-ui-quaternary-label: light-dark(
|
|
535
|
+
rgb(60 60 67 / 42%),
|
|
536
|
+
rgb(235 235 245 / 30%)
|
|
537
|
+
);
|
|
538
|
+
--color-ui-placeholder-text: light-dark(
|
|
539
|
+
rgb(60 60 67 / 70%),
|
|
540
|
+
rgb(235 235 245 / 56%)
|
|
541
|
+
);
|
|
542
|
+
--color-ui-separator: light-dark(
|
|
543
|
+
rgb(60 60 67 / 29%),
|
|
544
|
+
rgb(84 84 88 / 87%)
|
|
545
|
+
);
|
|
546
|
+
--color-ui-opaque-separator: light-dark(rgb(198 198 200), rgb(70 70 72));
|
|
547
|
+
--color-ui-system-fill: light-dark(rgb(118 118 123), rgb(145 145 151));
|
|
548
|
+
--color-ui-secondary-system-fill: light-dark(
|
|
549
|
+
rgb(120 120 128 / 24%),
|
|
550
|
+
rgb(120 120 128 / 48%)
|
|
551
|
+
);
|
|
552
|
+
--color-ui-tertiary-system-fill: light-dark(
|
|
553
|
+
rgb(118 118 128 / 18%),
|
|
554
|
+
rgb(118 118 128 / 36%)
|
|
555
|
+
);
|
|
556
|
+
--color-ui-quaternary-system-fill: light-dark(
|
|
557
|
+
rgb(116 116 128 / 12%),
|
|
558
|
+
rgb(118 118 128 / 27%)
|
|
559
|
+
);
|
|
560
|
+
--color-ui-system-grouped-background: light-dark(
|
|
561
|
+
rgb(235 235 240),
|
|
562
|
+
rgb(0 0 0)
|
|
563
|
+
);
|
|
564
|
+
--color-ui-secondary-system-grouped-background: light-dark(
|
|
565
|
+
rgb(255 255 255),
|
|
566
|
+
rgb(36 36 37)
|
|
567
|
+
);
|
|
568
|
+
--color-ui-list-separator: light-dark(
|
|
569
|
+
rgb(0 0 0 / 10%),
|
|
570
|
+
rgb(255 255 255 / 16%)
|
|
571
|
+
);
|
|
572
|
+
}
|
|
573
|
+
|
|
482
574
|
/* A color scheme forced (see `useColorScheme`): on the root element, or
|
|
483
575
|
on any element, for what's within it. (Forced within one forced
|
|
484
576
|
otherwise, the dark one's rules win, not the nearer one's.) */
|
|
@@ -500,23 +592,98 @@
|
|
|
500
592
|
}
|
|
501
593
|
}
|
|
502
594
|
|
|
503
|
-
/*
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
595
|
+
/* Links in the library's text parts (an app's prose: Typography, a
|
|
596
|
+
list's text, block and footer, an alert's description, a field's
|
|
597
|
+
description): in the link color (its light and dark variant), not
|
|
598
|
+
underlined; underlined while state is told without color alone (see
|
|
599
|
+
Settings; its attribute, as below). Only there, not every link: the
|
|
600
|
+
library's layer comes after an app's own (e.g. the guide's), so a
|
|
601
|
+
global rule would override its links. No specificity: a component's
|
|
602
|
+
own links within (a button, a row's title) keep their look. */
|
|
603
|
+
:where(
|
|
604
|
+
.uikit-typography,
|
|
605
|
+
.uikit-list-text,
|
|
606
|
+
.uikit-list-block,
|
|
607
|
+
.uikit-list-footer,
|
|
608
|
+
.uikit-alert-description,
|
|
609
|
+
.uikit-text-field-description
|
|
610
|
+
)
|
|
611
|
+
:where(a:any-link) {
|
|
612
|
+
color: var(--color-ui-link);
|
|
613
|
+
text-decoration: none;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
:where([data-uikit-differentiate-without-color='true'])
|
|
617
|
+
:where(
|
|
618
|
+
.uikit-typography,
|
|
619
|
+
.uikit-list-text,
|
|
620
|
+
.uikit-list-block,
|
|
621
|
+
.uikit-list-footer,
|
|
622
|
+
.uikit-alert-description,
|
|
623
|
+
.uikit-text-field-description
|
|
624
|
+
)
|
|
625
|
+
:where(a:any-link):not(
|
|
626
|
+
:where([data-uikit-differentiate-without-color='false']) *
|
|
627
|
+
) {
|
|
628
|
+
text-decoration: underline;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/* Motion reduced (see Settings): no transitions anywhere, everything
|
|
632
|
+
changing at once (scripts' animations and scrolls too, see
|
|
633
|
+
`reducedMotionOf`); what a finger drags still follows it (a page
|
|
634
|
+
swiped back finishing its slide as it's let go, see Navigation). Overridden
|
|
635
|
+
by a provider: by the attribute it sets (and its portals), the
|
|
636
|
+
nearest `false` within a `true` winning (a `true` again within that,
|
|
637
|
+
not); else the system's, by its media query, within a provider only
|
|
638
|
+
(none outside one). Attributes, not style queries: those don't apply
|
|
639
|
+
on iOS (the guide's iOS Quirks page). Any other rule following a
|
|
640
|
+
setting: the same two selectors (e.g. Sheet's slide). */
|
|
641
|
+
[data-uikit-reduced-motion='true']
|
|
642
|
+
:not(
|
|
643
|
+
[data-uikit-reduced-motion='false'],
|
|
644
|
+
[data-uikit-reduced-motion='false'] *
|
|
645
|
+
),
|
|
646
|
+
[data-uikit-reduced-motion='true']
|
|
647
|
+
:not(
|
|
648
|
+
[data-uikit-reduced-motion='false'],
|
|
649
|
+
[data-uikit-reduced-motion='false'] *
|
|
650
|
+
)::before,
|
|
651
|
+
[data-uikit-reduced-motion='true']
|
|
652
|
+
:not(
|
|
653
|
+
[data-uikit-reduced-motion='false'],
|
|
654
|
+
[data-uikit-reduced-motion='false'] *
|
|
655
|
+
)::after {
|
|
656
|
+
transition: none !important;
|
|
508
657
|
}
|
|
509
658
|
|
|
510
659
|
@media (prefers-reduced-motion: reduce) {
|
|
511
|
-
:
|
|
512
|
-
|
|
660
|
+
:where([data-uikit-settings], [data-uikit-settings] *):not(
|
|
661
|
+
[data-uikit-reduced-motion='false'],
|
|
662
|
+
[data-uikit-reduced-motion='false'] *
|
|
663
|
+
),
|
|
664
|
+
:where([data-uikit-settings], [data-uikit-settings] *):not(
|
|
665
|
+
[data-uikit-reduced-motion='false'],
|
|
666
|
+
[data-uikit-reduced-motion='false'] *
|
|
667
|
+
)::before,
|
|
668
|
+
:where([data-uikit-settings], [data-uikit-settings] *):not(
|
|
669
|
+
[data-uikit-reduced-motion='false'],
|
|
670
|
+
[data-uikit-reduced-motion='false'] *
|
|
671
|
+
)::after {
|
|
672
|
+
transition: none !important;
|
|
513
673
|
}
|
|
514
674
|
}
|
|
515
675
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
676
|
+
/* Bold text (see Settings): every weight one step heavier (Regular to
|
|
677
|
+
Semibold, as a system's, measured), as each weight adds the boost
|
|
678
|
+
(`calc(W + var(--uikit-font-weight-boost, 0))`). The nearest
|
|
679
|
+
provider's (its attribute, and its portals'; written by the provider,
|
|
680
|
+
as no media query has it), a `false` within a `true` too. */
|
|
681
|
+
:where([data-uikit-bold-text='true']) {
|
|
682
|
+
--uikit-font-weight-boost: 190;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
:where([data-uikit-bold-text='false']) {
|
|
686
|
+
--uikit-font-weight-boost: 0;
|
|
520
687
|
}
|
|
521
688
|
}
|
|
522
689
|
|