@swiftwc/ui 0.0.0-dev.6 → 0.0.0-dev.60
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 +15 -0
- package/generated/buses/alert-dialog.d.ts +2 -0
- package/generated/buses/alert-dialog.js +1 -0
- package/generated/buses/confirmation-dialog.d.ts +2 -0
- package/generated/buses/confirmation-dialog.js +1 -0
- package/generated/buses/index.d.ts +6 -0
- package/generated/buses/index.js +6 -0
- package/generated/buses/lifecycle-observer.d.ts +2 -0
- package/generated/buses/lifecycle-observer.js +1 -0
- package/generated/client/index.d.ts +22 -4
- package/generated/client/index.js +219 -181
- package/generated/components/alert-dialog.d.ts +8 -0
- package/generated/components/alert-dialog.js +99 -0
- package/generated/components/body-view.js +5 -2
- package/generated/components/bordered-button.d.ts +17 -0
- package/generated/components/bordered-button.js +56 -0
- package/generated/components/bordered-prominent-button.d.ts +17 -0
- package/generated/components/bordered-prominent-button.js +56 -0
- package/generated/components/borderless-button.d.ts +12 -4
- package/generated/components/borderless-button.js +47 -16
- package/generated/components/color-scheme.d.ts +7 -0
- package/generated/components/color-scheme.js +54 -0
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +113 -0
- package/generated/components/content-unavailable-view.d.ts +24 -0
- package/generated/components/content-unavailable-view.js +81 -0
- package/generated/components/date-picker.d.ts +36 -0
- package/generated/components/date-picker.js +461 -0
- package/generated/components/disclosure-group.d.ts +9 -7
- package/generated/components/disclosure-group.js +51 -65
- package/generated/components/fine-tooltip.d.ts +7 -0
- package/generated/components/fine-tooltip.js +107 -0
- package/generated/components/form-view.d.ts +9 -0
- package/generated/components/form-view.js +63 -0
- package/generated/components/glass-button.d.ts +16 -0
- package/generated/components/glass-button.js +53 -0
- package/generated/components/glass-prominent-button.d.ts +16 -0
- package/generated/components/glass-prominent-button.js +53 -0
- package/generated/components/h-stack.d.ts +10 -0
- package/generated/components/h-stack.js +19 -0
- package/generated/components/image-view.d.ts +9 -0
- package/generated/components/image-view.js +46 -0
- package/generated/components/index.d.ts +41 -10
- package/generated/components/index.js +41 -15
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +51 -0
- package/generated/components/labeled-content.d.ts +9 -0
- package/generated/components/labeled-content.js +115 -0
- package/generated/components/list-view.d.ts +8 -0
- package/generated/components/list-view.js +32 -0
- package/generated/components/menu-view.d.ts +12 -0
- package/generated/components/menu-view.js +142 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +181 -0
- package/generated/components/navigation-split-view.d.ts +7 -2
- package/generated/components/navigation-split-view.js +19 -3
- package/generated/components/navigation-stack.d.ts +6 -2
- package/generated/components/navigation-stack.js +23 -59
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +50 -0
- package/generated/components/picker-view.d.ts +44 -0
- package/generated/components/picker-view.js +1009 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +22 -0
- package/generated/components/progress-view.d.ts +13 -0
- package/generated/components/progress-view.js +120 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +4 -2
- package/generated/components/scroll-view-proxy.d.ts +8 -0
- package/generated/components/scroll-view-proxy.js +17 -0
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +179 -64
- package/generated/components/search-view.d.ts +7 -0
- package/generated/components/search-view.js +30 -0
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +85 -0
- package/generated/components/sheet-view.d.ts +3 -4
- package/generated/components/sheet-view.js +53 -17
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +76 -72
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +25 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +26 -0
- package/generated/components/tab-bar.d.ts +5 -4
- package/generated/components/tab-bar.js +34 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +125 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +252 -17
- package/generated/components/table-view.d.ts +12 -0
- package/generated/components/table-view.js +153 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +496 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +28 -0
- package/generated/components/tool-bar-item.d.ts +8 -0
- package/generated/components/tool-bar-item.js +66 -0
- package/generated/components/tool-bar.d.ts +19 -0
- package/generated/components/tool-bar.js +93 -0
- package/generated/components/v-keyboard.d.ts +4 -0
- package/generated/components/v-keyboard.js +72 -70
- package/generated/components/v-stack.d.ts +13 -0
- package/generated/components/v-stack.js +22 -0
- package/generated/css/index.css +8841 -0
- package/generated/events/alert-dialog.d.ts +8 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/confirmation-dialog.js +1 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +8 -0
- package/generated/events/index.js +8 -0
- package/generated/events/lifecycle-observer.d.ts +10 -0
- package/generated/events/lifecycle-observer.js +1 -0
- package/generated/events/picker-view.d.ts +15 -0
- package/generated/events/picker-view.js +1 -0
- package/generated/events/scroll-view.d.ts +10 -0
- package/generated/events/scroll-view.js +1 -0
- package/generated/events/tab-view.d.ts +28 -0
- package/generated/events/tab-view.js +1 -0
- package/generated/events/text-field.d.ts +8 -0
- package/generated/events/text-field.js +1 -0
- package/generated/i18n/index.d.ts +34 -0
- package/generated/i18n/index.js +167 -0
- package/generated/i18n/locales/el.d.ts +16 -0
- package/generated/i18n/locales/el.js +16 -0
- package/generated/i18n/locales/en.d.ts +16 -0
- package/generated/i18n/locales/en.js +16 -0
- package/generated/i18n/locales/index.d.ts +4 -0
- package/generated/i18n/locales/index.js +4 -0
- package/generated/internal/class/cleanup-registry.d.ts +5 -0
- package/generated/internal/class/cleanup-registry.js +38 -0
- package/generated/internal/class/css-style-observer.d.ts +8 -0
- package/generated/internal/class/css-style-observer.js +26 -0
- package/generated/internal/class/form-associated-base.d.ts +16 -0
- package/generated/internal/class/form-associated-base.js +78 -0
- package/generated/internal/class/mutation-observer-set.d.ts +9 -0
- package/generated/internal/class/mutation-observer-set.js +42 -0
- package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +64 -0
- package/generated/internal/class/navigation-path.d.ts +15 -0
- package/generated/internal/class/navigation-path.js +84 -0
- package/generated/internal/class/navigation-view.d.ts +8 -0
- package/generated/internal/class/navigation-view.js +72 -0
- package/generated/internal/class/resize-observer-singleton.d.ts +7 -0
- package/generated/internal/class/resize-observer-singleton.js +22 -0
- package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
- package/generated/internal/decorators/adaptive-slot.js +50 -0
- package/generated/internal/decorators/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +5 -0
- package/generated/internal/decorators/index.d.ts +6 -0
- package/generated/internal/decorators/index.js +6 -0
- package/generated/internal/decorators/microtask-on-connected.d.ts +39 -0
- package/generated/internal/decorators/microtask-on-connected.js +67 -0
- package/generated/internal/privateNamespace.d.ts +14 -0
- package/generated/internal/privateNamespace.js +168 -0
- package/generated/internal/utils/add.d.ts +1 -0
- package/generated/internal/utils/add.js +7 -0
- package/generated/internal/utils/cash/ancestors.d.ts +1 -0
- package/generated/internal/utils/cash/ancestors.js +27 -0
- package/generated/internal/utils/cash/index.d.ts +23 -0
- package/generated/internal/utils/cash/index.js +25 -0
- package/generated/internal/utils/cash/next-all.d.ts +1 -0
- package/generated/internal/utils/cash/next-all.js +10 -0
- package/generated/internal/utils/cash/next.d.ts +1 -0
- package/generated/internal/utils/cash/next.js +9 -0
- package/generated/internal/utils/cash/prev-all.d.ts +1 -0
- package/generated/internal/utils/cash/prev-all.js +10 -0
- package/generated/internal/utils/cash/prev.d.ts +1 -0
- package/generated/internal/utils/cash/prev.js +9 -0
- package/generated/internal/utils/cash/prop.d.ts +18 -0
- package/generated/internal/utils/cash/prop.js +30 -0
- package/generated/internal/utils/cash/siblings.d.ts +1 -0
- package/generated/internal/utils/cash/siblings.js +10 -0
- package/generated/internal/utils/clamp.d.ts +1 -0
- package/generated/internal/utils/clamp.js +4 -0
- package/generated/internal/utils/compare-big-decimals.d.ts +1 -0
- package/generated/internal/utils/compare-big-decimals.js +90 -0
- package/generated/internal/utils/debounce.d.ts +1 -0
- package/generated/internal/utils/debounce.js +13 -0
- package/generated/internal/utils/dev-flags.d.ts +3 -0
- package/generated/internal/utils/dev-flags.js +5 -0
- package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
- package/generated/internal/utils/ensure-placeholder.js +55 -0
- package/generated/internal/utils/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +21 -1
- package/generated/internal/utils/index.js +24 -1
- package/generated/internal/utils/is-inside.d.ts +1 -0
- package/generated/internal/utils/is-inside.js +4 -0
- package/generated/internal/utils/kebab-case.d.ts +1 -1
- package/generated/internal/utils/list-active.d.ts +7 -0
- package/generated/internal/utils/list-active.js +83 -0
- package/generated/internal/utils/microtask.d.ts +1 -0
- package/generated/internal/utils/microtask.js +3 -0
- package/generated/internal/utils/onoff.d.ts +45 -0
- package/generated/internal/utils/onoff.js +31 -0
- package/generated/internal/utils/render-label-icon.d.ts +2 -0
- package/generated/internal/utils/render-label-icon.js +19 -0
- package/generated/internal/utils/render-label-title.d.ts +2 -0
- package/generated/internal/utils/render-label-title.js +16 -0
- package/generated/internal/utils/render-label.d.ts +1 -0
- package/generated/internal/utils/render-label.js +19 -0
- package/generated/internal/utils/set.d.ts +1 -0
- package/generated/internal/utils/set.js +7 -0
- package/generated/internal/utils/sleep.d.ts +1 -0
- package/generated/internal/utils/sleep.js +3 -0
- package/generated/internal/utils/slow-hide-show.d.ts +1 -0
- package/generated/internal/utils/slow-hide-show.js +16 -0
- package/generated/internal/utils/timeout.d.ts +5 -0
- package/generated/internal/utils/timeout.js +16 -0
- package/generated/internal/utils/touch-glass.d.ts +7 -0
- package/generated/internal/utils/touch-glass.js +19 -0
- package/generated/namespace-browser/base.d.ts +45 -0
- package/generated/namespace-browser/base.js +115 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +4 -11
- package/generated/snapshot/index.js +55 -145
- package/package.json +33 -9
- package/scss/_components.scss +60 -13
- package/scss/_final.scss +1 -0
- package/scss/_functions.scss +10 -0
- package/scss/_mixins.scss +4 -169
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +22 -1
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +144 -23
- package/scss/base/_layout.scss +40 -16
- package/scss/base/_reboot.scss +151 -15
- package/scss/base/_root.scss +358 -25
- package/scss/colors/_index.scss +788 -70
- package/scss/components/_alert-dialog.scss +111 -0
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +57 -0
- package/scss/components/_bordered-prominent-button.scss +64 -0
- package/scss/components/_borderless-button.scss +36 -6
- package/scss/components/_confirmation-dialog.scss +102 -0
- package/scss/components/_content-unavailable-view.scss +54 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +153 -0
- package/scss/components/_disclosure-group.scss +147 -48
- package/scss/components/_fine-tooltip.scss +84 -0
- package/scss/components/_form-view.scss +233 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +59 -0
- package/scss/components/_glass-prominent-button.scss +70 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +29 -0
- package/scss/components/_image-view.scss +9 -0
- package/scss/components/_index.scss +239 -7
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +372 -0
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +67 -0
- package/scss/components/_list-view.scss +269 -0
- package/scss/components/_menu-view.scss +219 -0
- package/scss/components/_navigation-large-title.scss +27 -0
- package/scss/components/_navigation-split-view.scss +329 -269
- package/scss/components/_navigation-stack.scss +6 -6
- package/scss/components/_navigation-title.scss +10 -0
- package/scss/components/_picker-view.scss +307 -0
- package/scss/components/_plain-button.scss +18 -0
- package/scss/components/_progress-view.scss +98 -0
- package/scss/components/_scroll-view-proxy.scss +79 -0
- package/scss/components/_scroll-view-toolbars.scss +126 -0
- package/scss/components/_scroll-view.scss +114 -66
- package/scss/components/_search-view.scss +22 -0
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +78 -35
- package/scss/components/_sidebar-toggle.scss +87 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +207 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +270 -126
- package/scss/components/_table-column.scss +54 -0
- package/scss/components/_table-row.scss +240 -0
- package/scss/components/_table-view.scss +231 -0
- package/scss/components/_text-field.scss +53 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +81 -71
- package/scss/components/_tool-bar.scss +126 -63
- package/scss/components/_v-divider.scss +13 -0
- package/scss/components/_v-flex-stack.scss +29 -0
- package/scss/components/_v-keyboard.scss +6 -4
- package/scss/components/_v-stack.scss +15 -9
- package/scss/final/_touch-glass.scss +91 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_button.scss +44 -0
- package/scss/mixins/_color.scss +16 -0
- package/scss/mixins/_dialog.scss +89 -0
- package/scss/mixins/_index.scss +453 -0
- package/scss/placeholders/_buttons.scss +117 -0
- package/scss/placeholders/_lists.scss +594 -0
- package/scss/transitions/_alert-dialog.scss +18 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +27 -0
- package/scss/transitions/_disclosure-group.scss +35 -0
- package/scss/transitions/_fine-tooltip.scss +21 -0
- package/scss/transitions/_fwd.navbar.scss +4 -9
- package/scss/transitions/_fwd.scss +4 -34
- package/scss/transitions/_glass-button.scss +12 -0
- package/scss/transitions/_glass-prominent-button.scss +12 -0
- package/scss/transitions/_index.scss +35 -143
- package/scss/transitions/_menu-view.scss +26 -0
- package/scss/transitions/_navigation-split-view.scss +23 -0
- package/scss/transitions/_progress-view.scss +23 -0
- package/scss/transitions/_sheet-view.scss +30 -0
- package/scss/transitions/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +20 -0
- package/scss/utils/_frame.scss +91 -0
- package/scss/utils/_index.scss +78 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +222 -0
- package/web-components.html-data/en.json +721 -0
- package/generated/components/bottom-bar.d.ts +0 -10
- package/generated/components/bottom-bar.js +0 -73
- package/generated/components/navigation-bar.d.ts +0 -10
- package/generated/components/navigation-bar.js +0 -80
- package/generated/internal/class.d.ts +0 -18
- package/generated/internal/class.js +0 -18
- package/generated/namespace/index.d.ts +0 -6
- package/generated/styles.css +0 -1305
- package/scss/_dev.scss +0 -68
- package/scss/components/_tab-bar-stack.scss +0 -101
- package/scss/components/_toolbars.scss +0 -100
- package/scss/transitions/_dialog.scss +0 -32
- /package/generated/{namespace/index.js → events/alert-dialog.js} +0 -0
package/scss/colors/_index.scss
CHANGED
|
@@ -1,99 +1,817 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use 'sass:math';
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
@use 'sass:list';
|
|
6
|
+
@use 'sass:string';
|
|
7
|
+
|
|
8
|
+
$color-tokens: (
|
|
9
|
+
// SECTION: grays
|
|
10
|
+
gray: (
|
|
11
|
+
props: (
|
|
12
|
+
inherits: true,
|
|
13
|
+
),
|
|
14
|
+
media: (
|
|
15
|
+
base: (
|
|
16
|
+
light: oklch(0.6483 0.0073 286.19),
|
|
17
|
+
dark: oklch(0.6483 0.0073 286.19),
|
|
18
|
+
),
|
|
19
|
+
contrast: (
|
|
20
|
+
light: oklch(0.5326 0.0062 286.19),
|
|
21
|
+
dark: oklch(0.752 0.0057 286.26),
|
|
22
|
+
),
|
|
23
|
+
fine: (
|
|
24
|
+
light: oklch(0.746 0.0071 286.23),
|
|
25
|
+
dark: oklch(0.7073 0.0072 286.21),
|
|
26
|
+
),
|
|
27
|
+
fine-contrast: (
|
|
28
|
+
light: oklch(0.6347 0.0059 286.23),
|
|
29
|
+
dark: oklch(0.809 0.0056 286.27),
|
|
30
|
+
),
|
|
31
|
+
),
|
|
32
|
+
),
|
|
33
|
+
gray2: (
|
|
34
|
+
props: (
|
|
35
|
+
inherits: true,
|
|
36
|
+
),
|
|
37
|
+
media: (
|
|
38
|
+
base: (
|
|
39
|
+
light: oklch(0.752 0.0057 286.26),
|
|
40
|
+
dark: oklch(0.5007 0.0047 286.23),
|
|
41
|
+
),
|
|
42
|
+
contrast: (
|
|
43
|
+
light: oklch(0.6483 0.0073 286.19),
|
|
44
|
+
dark: oklch(0.5876 0.006 286.21),
|
|
45
|
+
),
|
|
46
|
+
fine: (
|
|
47
|
+
light: oklch(0.8464 0.0055 286.28),
|
|
48
|
+
dark: oklch(0.5634 0.0046 286.25),
|
|
49
|
+
),
|
|
50
|
+
fine-contrast: (
|
|
51
|
+
light: oklch(0.746 0.0071 286.23),
|
|
52
|
+
dark: oklch(0.648 0.0059 286.23),
|
|
53
|
+
),
|
|
54
|
+
),
|
|
55
|
+
),
|
|
56
|
+
gray3: (
|
|
57
|
+
props: (
|
|
58
|
+
inherits: true,
|
|
59
|
+
),
|
|
60
|
+
media: (
|
|
61
|
+
base: (
|
|
62
|
+
light: oklch(0.8312 0.0069 286.25),
|
|
63
|
+
dark: oklch(0.4024 0.0033 286.25),
|
|
64
|
+
),
|
|
65
|
+
contrast: (
|
|
66
|
+
light: oklch(0.752 0.0057 286.26),
|
|
67
|
+
dark: oklch(0.4466 0.0032 286.27),
|
|
68
|
+
),
|
|
69
|
+
fine: (
|
|
70
|
+
light: oklch(0.9233 0.0067 286.27),
|
|
71
|
+
dark: oklch(0.4683 0.0032 286.28),
|
|
72
|
+
),
|
|
73
|
+
fine-contrast: (
|
|
74
|
+
light: oklch(0.8464 0.0055 286.28),
|
|
75
|
+
dark: oklch(0.5109 0.0031 286.29),
|
|
76
|
+
),
|
|
77
|
+
),
|
|
78
|
+
),
|
|
79
|
+
gray4: (
|
|
80
|
+
props: (
|
|
81
|
+
inherits: true,
|
|
82
|
+
),
|
|
83
|
+
media: (
|
|
84
|
+
base: (
|
|
85
|
+
light: oklch(0.8622 0.0068 286.26),
|
|
86
|
+
dark: oklch(0.3492 0.0034 286.22),
|
|
87
|
+
),
|
|
88
|
+
contrast: (
|
|
89
|
+
light: oklch(0.7964 0.0056 286.27),
|
|
90
|
+
dark: oklch(0.3874 0.0033 286.24),
|
|
91
|
+
),
|
|
92
|
+
fine: (
|
|
93
|
+
light: oklch(0.9536 0.0067 286.27),
|
|
94
|
+
dark: oklch(0.4172 0.0033 286.26),
|
|
95
|
+
),
|
|
96
|
+
fine-contrast: (
|
|
97
|
+
light: oklch(0.8895 0.0054 286.29),
|
|
98
|
+
dark: oklch(0.4538 0.0032 286.27),
|
|
99
|
+
),
|
|
100
|
+
),
|
|
101
|
+
),
|
|
102
|
+
gray5: (
|
|
103
|
+
props: (
|
|
104
|
+
inherits: true,
|
|
105
|
+
),
|
|
106
|
+
media: (
|
|
107
|
+
base: (
|
|
108
|
+
light: oklch(0.9233 0.0067 286.27),
|
|
109
|
+
dark: oklch(0.2939 0.0036 286.18),
|
|
110
|
+
),
|
|
111
|
+
contrast: (
|
|
112
|
+
light: oklch(0.8834 0.0054 286.29),
|
|
113
|
+
dark: oklch(0.3352 0.0104 285.82),
|
|
114
|
+
),
|
|
115
|
+
fine: (
|
|
116
|
+
light: oklch(0.9626 0.0066 286.27),
|
|
117
|
+
dark: oklch(0.3492 0.0034 286.22),
|
|
118
|
+
),
|
|
119
|
+
fine-contrast: (
|
|
120
|
+
light: oklch(0.9743 0.0053 286.3),
|
|
121
|
+
dark: oklch(0.4024 0.0033 286.25),
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
gray6: (
|
|
126
|
+
props: (
|
|
127
|
+
inherits: true,
|
|
128
|
+
),
|
|
129
|
+
media: (
|
|
130
|
+
base: (
|
|
131
|
+
light: oklch(0.9626 0.0066 286.27),
|
|
132
|
+
dark: oklch(0.2273 0.0038 286.09),
|
|
133
|
+
),
|
|
134
|
+
contrast: (
|
|
135
|
+
light: oklch(0.9415 0.0067 286.27),
|
|
136
|
+
dark: oklch(0.2611 0.0037 286.14),
|
|
137
|
+
),
|
|
138
|
+
fine: (
|
|
139
|
+
light: oklch(0.9919 0.003956 286.3273),
|
|
140
|
+
dark: oklch(0.2939 0.0036 286.18),
|
|
141
|
+
),
|
|
142
|
+
fine-contrast: (
|
|
143
|
+
light: oklch(1 0 0),
|
|
144
|
+
dark: oklch(0.3336 0.0035 286.21),
|
|
145
|
+
),
|
|
146
|
+
),
|
|
147
|
+
),
|
|
148
|
+
blue: (
|
|
149
|
+
props: (
|
|
150
|
+
inherits: true,
|
|
151
|
+
),
|
|
152
|
+
media: (
|
|
153
|
+
base: (
|
|
154
|
+
light: oklch(0.5771 0.2207 258.72),
|
|
155
|
+
dark: oklch(0.5983 0.2103 256.76),
|
|
156
|
+
),
|
|
157
|
+
),
|
|
158
|
+
),
|
|
159
|
+
blue2: (
|
|
160
|
+
props: (
|
|
161
|
+
inherits: true,
|
|
162
|
+
),
|
|
163
|
+
media: (
|
|
164
|
+
base: (
|
|
165
|
+
light: oklch(0.7545 0.1248 249.16),
|
|
166
|
+
dark: oklch(0.3497 0.109177 253.3949),
|
|
167
|
+
),
|
|
168
|
+
),
|
|
169
|
+
),
|
|
170
|
+
blue3: (
|
|
171
|
+
props: (
|
|
172
|
+
inherits: true,
|
|
173
|
+
),
|
|
174
|
+
media: (
|
|
175
|
+
base: (
|
|
176
|
+
light: oklch(0.8728 0.0631 246.39),
|
|
177
|
+
dark: oklch(0.228 0.0588 246.17),
|
|
178
|
+
),
|
|
179
|
+
),
|
|
180
|
+
),
|
|
181
|
+
blue4: (
|
|
182
|
+
props: (
|
|
183
|
+
inherits: true,
|
|
184
|
+
),
|
|
185
|
+
media: (
|
|
186
|
+
base: (
|
|
187
|
+
light: oklch(0.9063 0.0454 245.27),
|
|
188
|
+
dark: oklch(0.196 0.0464 241.89),
|
|
189
|
+
),
|
|
190
|
+
),
|
|
191
|
+
),
|
|
192
|
+
blue5: (
|
|
193
|
+
props: (
|
|
194
|
+
inherits: true,
|
|
195
|
+
),
|
|
196
|
+
media: (
|
|
197
|
+
base: (
|
|
198
|
+
light: oklch(0.9399 0.0298 245.27),
|
|
199
|
+
dark: oklch(0.1602 0.0312 241.89),
|
|
200
|
+
),
|
|
201
|
+
),
|
|
202
|
+
),
|
|
203
|
+
red: (
|
|
204
|
+
props: (
|
|
205
|
+
inherits: true,
|
|
206
|
+
),
|
|
207
|
+
media: (
|
|
208
|
+
base: (
|
|
209
|
+
light: oklch(0.6473 0.2385 27.3),
|
|
210
|
+
dark: oklch(0.6536 0.2325 26.55),
|
|
211
|
+
),
|
|
212
|
+
),
|
|
213
|
+
),
|
|
214
|
+
red2: (
|
|
215
|
+
props: (
|
|
216
|
+
inherits: true,
|
|
217
|
+
),
|
|
218
|
+
media: (
|
|
219
|
+
base: (
|
|
220
|
+
light: oklch(0.7766 0.1308 22.77),
|
|
221
|
+
dark: oklch(0.3893 0.1278 25.91),
|
|
222
|
+
),
|
|
223
|
+
),
|
|
224
|
+
),
|
|
225
|
+
red3: (
|
|
226
|
+
props: (
|
|
227
|
+
inherits: true,
|
|
228
|
+
),
|
|
229
|
+
media: (
|
|
230
|
+
base: (
|
|
231
|
+
light: oklch(0.8785 0.0643 22),
|
|
232
|
+
dark: oklch(0.2473 0.0667 23.31),
|
|
233
|
+
),
|
|
234
|
+
),
|
|
235
|
+
),
|
|
236
|
+
red4: (
|
|
237
|
+
props: (
|
|
238
|
+
inherits: true,
|
|
239
|
+
),
|
|
240
|
+
media: (
|
|
241
|
+
base: (
|
|
242
|
+
light: oklch(0.9142 0.0439 23.18),
|
|
243
|
+
dark: oklch(0.2085 0.047 24.05),
|
|
244
|
+
),
|
|
245
|
+
),
|
|
246
|
+
),
|
|
247
|
+
red5: (
|
|
248
|
+
props: (
|
|
249
|
+
inherits: true,
|
|
250
|
+
),
|
|
251
|
+
media: (
|
|
252
|
+
base: (
|
|
253
|
+
light: oklch(0.9451 0.0312 23.18),
|
|
254
|
+
dark: oklch(0.1692 0.0381 24.05),
|
|
255
|
+
),
|
|
256
|
+
),
|
|
257
|
+
),
|
|
258
|
+
green: (
|
|
259
|
+
props: (
|
|
260
|
+
inherits: true,
|
|
261
|
+
),
|
|
262
|
+
media: (
|
|
263
|
+
base: (
|
|
264
|
+
light: oklch(0.7303 0.1944 147.44),
|
|
265
|
+
dark: oklch(0.7556 0.2082 146.98),
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
),
|
|
269
|
+
green2: (
|
|
270
|
+
props: (
|
|
271
|
+
inherits: true,
|
|
272
|
+
),
|
|
273
|
+
media: (
|
|
274
|
+
base: (
|
|
275
|
+
light: oklch(0.8224 0.1298 162.01),
|
|
276
|
+
dark: oklch(0.4879 0.1248 152),
|
|
277
|
+
),
|
|
278
|
+
),
|
|
279
|
+
),
|
|
280
|
+
green3: (
|
|
281
|
+
props: (
|
|
282
|
+
inherits: true,
|
|
283
|
+
),
|
|
284
|
+
media: (
|
|
285
|
+
base: (
|
|
286
|
+
light: oklch(0.906 0.0681 165.21),
|
|
287
|
+
dark: oklch(0.3559 0.0789 157.3),
|
|
288
|
+
),
|
|
289
|
+
),
|
|
290
|
+
),
|
|
291
|
+
green4: (
|
|
292
|
+
props: (
|
|
293
|
+
inherits: true,
|
|
294
|
+
),
|
|
295
|
+
media: (
|
|
296
|
+
base: (
|
|
297
|
+
light: oklch(0.9323 0.0504 166.1),
|
|
298
|
+
dark: oklch(0.3156 0.0607 160.27),
|
|
299
|
+
),
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
green5: (
|
|
303
|
+
props: (
|
|
304
|
+
inherits: true,
|
|
305
|
+
),
|
|
306
|
+
media: (
|
|
307
|
+
base: (
|
|
308
|
+
light: oklch(0.9558 0.0353 166.1),
|
|
309
|
+
dark: oklch(0.2632 0.0425 160.27),
|
|
310
|
+
),
|
|
311
|
+
),
|
|
312
|
+
),
|
|
313
|
+
orange: (
|
|
314
|
+
props: (
|
|
315
|
+
inherits: true,
|
|
316
|
+
),
|
|
317
|
+
media: (
|
|
318
|
+
base: (
|
|
319
|
+
light: oklch(0.7533 0.172 55.72),
|
|
320
|
+
dark: oklch(0.7619 0.167 57.05),
|
|
321
|
+
),
|
|
322
|
+
),
|
|
323
|
+
),
|
|
324
|
+
orange2: (
|
|
325
|
+
props: (
|
|
326
|
+
inherits: true,
|
|
327
|
+
),
|
|
328
|
+
media: (
|
|
329
|
+
base: (
|
|
330
|
+
light: oklch(0.8548 0.111 68.86),
|
|
331
|
+
dark: oklch(0.4468 0.0914 61.4),
|
|
332
|
+
),
|
|
333
|
+
),
|
|
334
|
+
),
|
|
335
|
+
orange3: (
|
|
336
|
+
props: (
|
|
337
|
+
inherits: true,
|
|
338
|
+
),
|
|
339
|
+
media: (
|
|
340
|
+
base: (
|
|
341
|
+
light: oklch(0.9268 0.0611 75.74),
|
|
342
|
+
dark: oklch(0.2823 0.051 67.31),
|
|
343
|
+
),
|
|
344
|
+
),
|
|
345
|
+
),
|
|
346
|
+
orange4: (
|
|
347
|
+
props: (
|
|
348
|
+
inherits: true,
|
|
349
|
+
),
|
|
350
|
+
media: (
|
|
351
|
+
base: (
|
|
352
|
+
light: oklch(0.9443 0.045 74.78),
|
|
353
|
+
dark: oklch(0.2389 0.04 75.03),
|
|
354
|
+
),
|
|
355
|
+
),
|
|
356
|
+
),
|
|
357
|
+
orange5: (
|
|
358
|
+
props: (
|
|
359
|
+
inherits: true,
|
|
360
|
+
),
|
|
361
|
+
media: (
|
|
362
|
+
base: (
|
|
363
|
+
light: oklch(0.9651 0.0315 74.78),
|
|
364
|
+
dark: oklch(0.1983 0.028 75.03),
|
|
365
|
+
),
|
|
366
|
+
),
|
|
367
|
+
),
|
|
368
|
+
//orangeemphasis light: oklch(0.6414 0.157 55.97) dark: oklch(0.83 0.1633 79.36)
|
|
369
|
+
// SECTION: SystemColor
|
|
370
|
+
canvas: (
|
|
371
|
+
props: (
|
|
372
|
+
inherits: false,
|
|
373
|
+
),
|
|
374
|
+
media: (
|
|
375
|
+
base: (
|
|
376
|
+
light: oklch(1 0 0),
|
|
377
|
+
dark: oklch(0 0 0),
|
|
378
|
+
),
|
|
379
|
+
),
|
|
380
|
+
),
|
|
381
|
+
canvastext: (
|
|
382
|
+
props: (
|
|
383
|
+
inherits: false,
|
|
384
|
+
),
|
|
385
|
+
media: (
|
|
386
|
+
base: (
|
|
387
|
+
light: oklch(0 0 0),
|
|
388
|
+
dark: oklch(1 0 0),
|
|
389
|
+
),
|
|
390
|
+
),
|
|
391
|
+
),
|
|
392
|
+
// SECTION: bgs
|
|
393
|
+
primary: (
|
|
394
|
+
props: (
|
|
395
|
+
inherits: true,
|
|
396
|
+
),
|
|
397
|
+
media: (
|
|
398
|
+
base: (
|
|
399
|
+
light: oklch(0 0 0),
|
|
400
|
+
dark: oklch(1 0 0),
|
|
401
|
+
),
|
|
402
|
+
fine: (
|
|
403
|
+
light: oklch(0.2686 0 0),
|
|
404
|
+
dark: oklch(0.9034 0.0013 106.43),
|
|
405
|
+
),
|
|
406
|
+
),
|
|
407
|
+
),
|
|
408
|
+
background: (
|
|
409
|
+
props: (
|
|
410
|
+
inherits: true,
|
|
411
|
+
),
|
|
412
|
+
media: (
|
|
413
|
+
base: (
|
|
414
|
+
light: oklch(1 0 0),
|
|
415
|
+
dark: oklch(0 0 0),
|
|
416
|
+
),
|
|
417
|
+
),
|
|
418
|
+
),
|
|
419
|
+
secondaryBackground: (
|
|
420
|
+
props: (
|
|
421
|
+
inherits: true,
|
|
422
|
+
),
|
|
423
|
+
media: (
|
|
424
|
+
base: (
|
|
425
|
+
light: oklch(0.9543 0.0067 295.45),
|
|
426
|
+
dark: oklch(0.2186 0.0039 286.08),
|
|
427
|
+
),
|
|
428
|
+
),
|
|
429
|
+
),
|
|
430
|
+
tertiaryBackground: (
|
|
431
|
+
props: (
|
|
432
|
+
inherits: true,
|
|
433
|
+
),
|
|
434
|
+
media: (
|
|
435
|
+
base: (
|
|
436
|
+
light: oklch(1 0 0),
|
|
437
|
+
dark: oklch(0.2735 0.0036 286.16),
|
|
438
|
+
),
|
|
439
|
+
),
|
|
440
|
+
),
|
|
441
|
+
groupedBackground: (
|
|
442
|
+
props: (
|
|
443
|
+
inherits: true,
|
|
444
|
+
),
|
|
445
|
+
media: (
|
|
446
|
+
base: (
|
|
447
|
+
light: oklch(0.9543 0.0067 295.45),
|
|
448
|
+
dark: oklch(0 0 0),
|
|
449
|
+
),
|
|
450
|
+
),
|
|
451
|
+
),
|
|
452
|
+
secondaryGroupedBackground: (
|
|
453
|
+
props: (
|
|
454
|
+
inherits: true,
|
|
455
|
+
),
|
|
456
|
+
media: (
|
|
457
|
+
base: (
|
|
458
|
+
light: oklch(1 0 0),
|
|
459
|
+
dark: oklch(0.2186 0.0039 286.08),
|
|
460
|
+
),
|
|
461
|
+
),
|
|
462
|
+
),
|
|
463
|
+
tertiaryGroupedBackground: (
|
|
464
|
+
props: (
|
|
465
|
+
inherits: true,
|
|
466
|
+
),
|
|
467
|
+
media: (
|
|
468
|
+
base: (
|
|
469
|
+
light: oklch(0.9543 0.0067 295.45),
|
|
470
|
+
dark: oklch(0.2735 0.0036 286.16),
|
|
471
|
+
),
|
|
472
|
+
),
|
|
473
|
+
),
|
|
474
|
+
// SECTION: semantic colors
|
|
475
|
+
separator: (
|
|
476
|
+
props: (
|
|
477
|
+
inherits: true,
|
|
478
|
+
),
|
|
479
|
+
media: (
|
|
480
|
+
base: (
|
|
481
|
+
light: oklch(0.9431 0 0),
|
|
482
|
+
dark: oklch(0.2858 0.0036 286.17),
|
|
483
|
+
),
|
|
484
|
+
fine: (
|
|
485
|
+
light: oklch(0.9249 0 0),
|
|
486
|
+
dark: oklch(0.3452 0.0074 84.59),
|
|
487
|
+
),
|
|
488
|
+
),
|
|
489
|
+
)
|
|
490
|
+
);
|
|
491
|
+
|
|
492
|
+
$colors: map.merge(
|
|
493
|
+
$color-tokens,
|
|
494
|
+
(
|
|
495
|
+
secondary: map.get($color-tokens, gray),
|
|
496
|
+
tertiary: map.get($color-tokens, gray2),
|
|
497
|
+
quaternary: map.get($color-tokens, gray3),
|
|
498
|
+
quinary: map.get($color-tokens, gray4),
|
|
499
|
+
accentColor: map.get($color-tokens, blue),
|
|
500
|
+
accentColor2: map.get($color-tokens, blue2),
|
|
501
|
+
accentColor3: map.get($color-tokens, blue3),
|
|
502
|
+
accentColor4: map.get($color-tokens, blue4),
|
|
503
|
+
accentColor5: map.get($color-tokens, blue5),
|
|
504
|
+
// accent222: map.merge(
|
|
505
|
+
// map.get($color-tokens, blue4),
|
|
506
|
+
// (
|
|
507
|
+
// props: (
|
|
508
|
+
// inherits: false,
|
|
509
|
+
// ),
|
|
510
|
+
// )
|
|
511
|
+
// ),
|
|
512
|
+
)
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
@include mixins.generate-color-tokens($colors);
|
|
516
|
+
|
|
517
|
+
// SECTION: colors
|
|
518
|
+
@property --black {
|
|
519
|
+
syntax: '<color>';
|
|
520
|
+
initial-value: oklch(0 0 0); // ✅
|
|
521
|
+
inherits: true;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@property --white {
|
|
525
|
+
syntax: '<color>';
|
|
526
|
+
initial-value: oklch(1 0 0); // ✅
|
|
527
|
+
inherits: true;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
@property --clear {
|
|
531
|
+
syntax: '<color>';
|
|
532
|
+
initial-value: oklch(0 0 0 / 0%); // ✅
|
|
533
|
+
inherits: true;
|
|
534
|
+
}
|
|
2
535
|
|
|
3
536
|
@layer #{vars.$colors-layer} {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
537
|
+
:root {
|
|
538
|
+
// --background: light-dark(oklch(1 0 0), oklch(0 0 0)); // ✅
|
|
539
|
+
|
|
540
|
+
// ANCHOR: level 0
|
|
541
|
+
--face: var(--background); //light-dark(var(--primary-bg), var(--primary-bg-dark));
|
|
542
|
+
// --face2: var(--secondaryBackground); //light-dark(var(--primary-bg), var(--primary-bg-dark));
|
|
543
|
+
// --face3: var(--tertiaryBackground); //light-dark(var(--primary-bg), var(--primary-bg-dark));
|
|
544
|
+
// --groupedface: light-dark(var(--primary-grouped-bg), var(--primary-grouped-bg-dark));
|
|
545
|
+
|
|
546
|
+
--text: var(--primary); //light-dark(var(--primary-label), var(--primary-label-dark));
|
|
547
|
+
|
|
548
|
+
// --separator: light-dark(var(--divider), var(--divider-dark));
|
|
549
|
+
|
|
550
|
+
// --mutedtext: light-dark(var(--secondary-label), var(--secondary-label-dark));
|
|
8
551
|
}
|
|
9
552
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
553
|
+
// :where(navigation-stack, navigation-split-view) {
|
|
554
|
+
// --canvas: light-dark(oklch(var(--primary-bg)), var(--primary-bg-dark));
|
|
555
|
+
// --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
556
|
+
// }
|
|
557
|
+
|
|
558
|
+
:where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
|
|
559
|
+
// modify background/secondarybg/tertiarybg etc for ELEVATED STYLES!!
|
|
560
|
+
// ANCHOR: level 1
|
|
561
|
+
--face: var(--background); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
562
|
+
// --face2: var(--secondaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
563
|
+
// --face3: var(--tertiaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
564
|
+
|
|
565
|
+
// FIXME: feat-sheet 1/3
|
|
566
|
+
--background: var(--secondaryBackground); //light-dark(var(--secondary-bg), var(--secondary-bg-dark));
|
|
567
|
+
// --face: light-dark(var(--secondary-bg), var(--secondary-bg-dark));
|
|
568
|
+
|
|
569
|
+
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
13
570
|
}
|
|
14
571
|
|
|
15
|
-
|
|
16
|
-
--primary-bg
|
|
17
|
-
--
|
|
572
|
+
:where(navigation-split-view > [is='sidebar-view']) {
|
|
573
|
+
// --canvas: light-dark(oklch(var(--primary-bg)), var(--primary-bg-dark));
|
|
574
|
+
// --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
575
|
+
|
|
576
|
+
@include mixins.if-2col-split-view-fits {
|
|
577
|
+
--face: light-dark(var(--liquid-glass-bg), var(--liquid-glass-bg-dark));
|
|
578
|
+
//light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
579
|
+
|
|
580
|
+
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
581
|
+
}
|
|
18
582
|
}
|
|
19
583
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
584
|
+
tab-view > [is='sidebar-view'] {
|
|
585
|
+
:where(&) {
|
|
586
|
+
--face: light-dark(var(--liquid-glass-bg), var(--liquid-glass-bg-dark));
|
|
587
|
+
//light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
588
|
+
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
:where(& [is='form-view']) {
|
|
592
|
+
--list--highlighteditem-background-color: transparent;
|
|
593
|
+
--list--highlighteditem-color: var(--accentColor);
|
|
594
|
+
}
|
|
595
|
+
// :where(& [is='tab-item'][aria-selected='true']) {
|
|
596
|
+
// --itemtext: blue;
|
|
597
|
+
// --itemhighlighttext: blue;
|
|
598
|
+
// --itemactivetext: blue;
|
|
599
|
+
// }
|
|
23
600
|
}
|
|
24
601
|
|
|
25
|
-
|
|
26
|
-
--
|
|
27
|
-
--
|
|
602
|
+
:where([is='tab-bar']) {
|
|
603
|
+
--toolbaritemtext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
604
|
+
--toolbaritemhighlighttext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
605
|
+
--toolbaritemactivetext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
28
606
|
}
|
|
29
607
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
608
|
+
tool-bar-item,
|
|
609
|
+
tool-bar-item-group {
|
|
610
|
+
// navigation-split-view sidebar-toggle { // NOTE: removed since all s-toggles alreay have a toolbaritem inside
|
|
611
|
+
:where(&) {
|
|
612
|
+
//, list-view) {
|
|
613
|
+
//, [is='form-view'] BREAKS sidebar
|
|
614
|
+
--toolbaritemface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
615
|
+
--toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
616
|
+
--toolbaritemactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
617
|
+
// --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark)); //light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
618
|
+
|
|
619
|
+
// @media (pointer: fine) {
|
|
620
|
+
// --toolbaritemface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
621
|
+
// --toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
622
|
+
// --toolbaritemactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
623
|
+
// // --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
624
|
+
// }
|
|
625
|
+
}
|
|
33
626
|
}
|
|
34
627
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
628
|
+
tool-bar-item[tint]:not(tool-bar-item-group tool-bar-item),
|
|
629
|
+
tool-bar-item-group[tint],
|
|
630
|
+
tool-bar-item-group[tint] > tool-bar-item:not([tint]) {
|
|
631
|
+
:where(&) {
|
|
632
|
+
// --toolbaritemtext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
633
|
+
// --toolbaritemhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
634
|
+
// --toolbaritemactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
635
|
+
|
|
636
|
+
@include mixins.wire-tinted-glass(toolbaritem);
|
|
637
|
+
|
|
638
|
+
> button {
|
|
639
|
+
@include mixins.takeover-color-vars(toolbaritem);
|
|
640
|
+
// --secondary: var(--btntext);
|
|
641
|
+
// --blue: var(--btntext);
|
|
642
|
+
|
|
643
|
+
// --accentColorEffective: var(--btntext);
|
|
644
|
+
// --accentColor: var(--btntext);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
38
647
|
}
|
|
39
648
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
649
|
+
// [is='tab-bar'] [is='tab-item'] {
|
|
650
|
+
// :where(&) {
|
|
651
|
+
// --toolbaritemhighlighttext: yellow;
|
|
652
|
+
// --toolbaritemactivetext: chocolate;
|
|
653
|
+
// }
|
|
654
|
+
// }
|
|
655
|
+
|
|
656
|
+
sidebar-toggle {
|
|
657
|
+
// tool-bar-item,
|
|
658
|
+
// [is='tab-item'],
|
|
659
|
+
// list-view > button,
|
|
660
|
+
// this is temp for toolbar look aboove tables
|
|
661
|
+
// menu-view {
|
|
662
|
+
// [is='disclosure-group'] {
|
|
663
|
+
:where(&) {
|
|
664
|
+
--toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
665
|
+
--toolbaritemactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
666
|
+
}
|
|
43
667
|
}
|
|
44
668
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
669
|
+
menu-view {
|
|
670
|
+
:where(&) {
|
|
671
|
+
--menuitemhighlightface: light-dark(var(--clear), var(--clear));
|
|
672
|
+
|
|
673
|
+
--menuitemactiveface: light-dark(oklch(0 0 0 / 20%), oklch(1 0 0 / 20%));
|
|
674
|
+
|
|
675
|
+
@media (pointer: fine) {
|
|
676
|
+
--menuitemhighlightface: light-dark(var(--accentColor), var(--accentColor));
|
|
677
|
+
|
|
678
|
+
--menuitemhighlighttext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
679
|
+
|
|
680
|
+
--menuitemactivetext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
681
|
+
|
|
682
|
+
--menuitemactiveface: light-dark(
|
|
683
|
+
oklch(from var(--accentColor) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h),
|
|
684
|
+
oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.2), c) h)
|
|
685
|
+
); //color-mix(in oklch, black 10%, var(--accentColor)); //color-mix(in oklch, white 10%, var(--accentColor));
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
--menusummaryhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
689
|
+
--menusummaryactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
tool-bar-item > picker-view > &,
|
|
693
|
+
tool-bar-item > & {
|
|
694
|
+
:where(&) {
|
|
695
|
+
--menusummaryface: var(--toolbaritemface);
|
|
696
|
+
--menusummaryhighlightface: var(--toolbaritemhighlightface);
|
|
697
|
+
--menusummaryactiveface: var(--toolbaritemactiveface);
|
|
698
|
+
--menusummarytext: var(--toolbaritemtext);
|
|
699
|
+
--menusummaryhighlighttext: var(--toolbaritemhighlighttext);
|
|
700
|
+
--menusummaryactivetext: var(--toolbaritemactivetext);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
// :where(&[tint]) {
|
|
705
|
+
// @include mixins.wire-tinted-menu(menuitemface, menuitemhighlightface, menuitemactiveface);
|
|
706
|
+
// @include mixins.wire-menu-colors;
|
|
707
|
+
// }
|
|
48
708
|
}
|
|
49
709
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
--
|
|
58
|
-
--
|
|
710
|
+
:where([is='confirmation-dialog'], [is='alert-dialog']) {
|
|
711
|
+
--dialogbtnface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
712
|
+
--dialogbtnhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
713
|
+
--dialogbtnactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
714
|
+
// --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark)); //light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
715
|
+
|
|
716
|
+
// @media (pointer: fine) {
|
|
717
|
+
// --dialogbtnface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
718
|
+
// --dialogbtnhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
719
|
+
// --dialogbtnactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
720
|
+
// // --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
721
|
+
// }
|
|
59
722
|
}
|
|
60
723
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
> body-view
|
|
66
|
-
> body-view
|
|
67
|
-
> body-view
|
|
68
|
-
> body-view {
|
|
69
|
-
--primary-bg: oklch(0.45 0.085 224.283);
|
|
70
|
-
--secondary-bg: oklch(0.45 0.085 224.283);
|
|
724
|
+
:where([is='borderless-button']) {
|
|
725
|
+
--btntext: var(--accentColor);
|
|
726
|
+
--btnhighlighttext: light-dark(oklch(from var(--accentColor) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h));
|
|
727
|
+
--btnactivetext: light-dark(oklch(from var(--accentColor) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h));
|
|
71
728
|
}
|
|
72
729
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
--
|
|
730
|
+
/**
|
|
731
|
+
* NOTE: --accentColorEffective does NOT exist, it is NOT set anywhere initially!
|
|
732
|
+
* NOTE: Some controls use it to override the initial style WHEN/IF ...Effective is set by someone above.
|
|
733
|
+
*/
|
|
734
|
+
:where([is='bordered-button']) {
|
|
735
|
+
--btntext: var(--accentColorEffective, var(--accentColor));
|
|
736
|
+
--btnhighlighttext: light-dark(
|
|
737
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h),
|
|
738
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h)
|
|
739
|
+
);
|
|
740
|
+
--btnactivetext: light-dark(
|
|
741
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h),
|
|
742
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h)
|
|
743
|
+
);
|
|
744
|
+
|
|
745
|
+
--btnface: light-dark(var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)), var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)));
|
|
746
|
+
--btnhighlightface: light-dark(
|
|
747
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.95), 0) min(calc(c * 1.8), c) h),
|
|
748
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.2), 1) min(calc(c * 1.8), c) h)
|
|
749
|
+
);
|
|
750
|
+
--btnactiveface: light-dark(
|
|
751
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.9), 0) min(calc(c * 1.8), c) h),
|
|
752
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.3), 1) min(calc(c * 1.8), c) h)
|
|
753
|
+
);
|
|
754
|
+
// --btnface: light-dark(var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)), var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)));
|
|
755
|
+
// --btnhighlightface: light-dark(
|
|
756
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.95), 0) min(calc(c * 1.8), c) h),
|
|
757
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.2), 1) min(calc(c * 1.8), c) h)
|
|
758
|
+
// );
|
|
759
|
+
// --btnactiveface: light-dark(
|
|
760
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.9), 0) min(calc(c * 1.8), c) h),
|
|
761
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.3), 1) min(calc(c * 1.8), c) h)
|
|
762
|
+
// );
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
:where([is='bordered-prominent-button']) {
|
|
766
|
+
--btntext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
767
|
+
--btnhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
768
|
+
--btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
769
|
+
|
|
770
|
+
--btnface: var(--accentColor); //light-dark(var(--accentColor), var(--accentColor));
|
|
771
|
+
--btnhighlightface: light-dark(oklch(from var(--accentColor) max(calc(l * 0.9), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.4), c) h));
|
|
772
|
+
--btnactiveface: light-dark(oklch(from var(--accentColor) max(calc(l * 0.8), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h));
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
:where([is='glass-button']) {
|
|
776
|
+
--btntext: var(--accentColorEffective, var(--accentColor));
|
|
777
|
+
--btnhighlighttext: light-dark(
|
|
778
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h),
|
|
779
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h)
|
|
780
|
+
);
|
|
781
|
+
--btnactivetext: light-dark(
|
|
782
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h),
|
|
783
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h)
|
|
784
|
+
);
|
|
785
|
+
|
|
786
|
+
--btnface: light-dark(var(--clear-glass-bg), var(--clear-glass-bg-dark));
|
|
787
|
+
--btnhighlightface: light-dark(var(--clear-glass-focus-bg), var(--clear-glass-focus-bg-dark));
|
|
788
|
+
--btnactiveface: light-dark(var(--clear-glass-active-bg), var(--clear-glass-active-bg-dark));
|
|
84
789
|
}
|
|
85
790
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
> body-view
|
|
93
|
-
> body-view
|
|
94
|
-
> body-view
|
|
95
|
-
> body-view {
|
|
96
|
-
--primary-bg: oklch(0.302 0.056 229.695);
|
|
97
|
-
--secondary-bg: oklch(0.302 0.056 229.695);
|
|
791
|
+
:where([is='glass-prominent-button']) {
|
|
792
|
+
// --btntext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
793
|
+
// --btnhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
794
|
+
// --btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
795
|
+
|
|
796
|
+
@include mixins.wire-tinted-glass(btn);
|
|
98
797
|
}
|
|
798
|
+
|
|
799
|
+
/* list-view {
|
|
800
|
+
:where(&) {
|
|
801
|
+
// --toolbaritemface: ;
|
|
802
|
+
// --toolbaritemhighlightface: magenta;
|
|
803
|
+
--toolbaritemactiveface: light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
804
|
+
// --toolbaritemhighlighttext: yellow;
|
|
805
|
+
--toolbaritemactivetext: white;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
:where(& [aria-selected='true']) {
|
|
809
|
+
--toolbaritemface: light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
810
|
+
--toolbaritemhighlightface: light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
811
|
+
--toolbaritemactiveface: light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
812
|
+
--toolbaritemtext: white;
|
|
813
|
+
--toolbaritemhighlighttext: white;
|
|
814
|
+
--toolbaritemactivetext: white;
|
|
815
|
+
}
|
|
816
|
+
} */
|
|
99
817
|
}
|