macbetter 0.0.0-stage → 0.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +92 -2
- package/dist/components/accessory-tile.d.ts +50 -0
- package/dist/components/accessory-tile.js +46 -0
- package/dist/components/activity-indicator.d.ts +15 -0
- package/dist/components/activity-indicator.js +15 -0
- package/dist/components/alert.d.ts +29 -0
- package/dist/components/alert.js +30 -0
- package/dist/components/artifact-card.d.ts +41 -0
- package/dist/components/artifact-card.js +57 -0
- package/dist/components/artwork.d.ts +44 -0
- package/dist/components/artwork.js +935 -0
- package/dist/components/attachment.d.ts +48 -0
- package/dist/components/attachment.js +65 -0
- package/dist/components/automation-row.d.ts +24 -0
- package/dist/components/automation-row.js +12 -0
- package/dist/components/avatar.d.ts +33 -0
- package/dist/components/avatar.js +45 -0
- package/dist/components/badge.d.ts +24 -0
- package/dist/components/badge.js +19 -0
- package/dist/components/button.d.ts +20 -0
- package/dist/components/button.js +10 -0
- package/dist/components/calendar.d.ts +30 -0
- package/dist/components/calendar.js +47 -0
- package/dist/components/camera-view.d.ts +40 -0
- package/dist/components/camera-view.js +44 -0
- package/dist/components/card.d.ts +14 -0
- package/dist/components/card.js +21 -0
- package/dist/components/carousel.d.ts +18 -0
- package/dist/components/carousel.js +33 -0
- package/dist/components/chat.d.ts +29 -0
- package/dist/components/chat.js +29 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.js +16 -0
- package/dist/components/code-block.d.ts +39 -0
- package/dist/components/code-block.js +65 -0
- package/dist/components/code-field.d.ts +16 -0
- package/dist/components/code-field.js +29 -0
- package/dist/components/color-well.d.ts +23 -0
- package/dist/components/color-well.js +27 -0
- package/dist/components/combo-box.d.ts +42 -0
- package/dist/components/combo-box.js +102 -0
- package/dist/components/command-palette.d.ts +33 -0
- package/dist/components/command-palette.js +55 -0
- package/dist/components/confirmation.d.ts +24 -0
- package/dist/components/confirmation.js +50 -0
- package/dist/components/content-unavailable.d.ts +19 -0
- package/dist/components/content-unavailable.js +21 -0
- package/dist/components/context-menu.d.ts +9 -0
- package/dist/components/context-menu.js +15 -0
- package/dist/components/date-picker.d.ts +53 -0
- package/dist/components/date-picker.js +86 -0
- package/dist/components/description-list.d.ts +18 -0
- package/dist/components/description-list.js +17 -0
- package/dist/components/device-frame.d.ts +18 -0
- package/dist/components/device-frame.js +16 -0
- package/dist/components/dialog.d.ts +27 -0
- package/dist/components/dialog.js +35 -0
- package/dist/components/disclosure.d.ts +32 -0
- package/dist/components/disclosure.js +35 -0
- package/dist/components/dock.d.ts +28 -0
- package/dist/components/dock.js +80 -0
- package/dist/components/door-control.d.ts +20 -0
- package/dist/components/door-control.js +43 -0
- package/dist/components/energy-readout.d.ts +32 -0
- package/dist/components/energy-readout.js +27 -0
- package/dist/components/field.d.ts +28 -0
- package/dist/components/field.js +32 -0
- package/dist/components/gauge.d.ts +25 -0
- package/dist/components/gauge.js +42 -0
- package/dist/components/generated-image.d.ts +39 -0
- package/dist/components/generated-image.js +47 -0
- package/dist/components/glass.d.ts +34 -0
- package/dist/components/glass.js +31 -0
- package/dist/components/home-backdrop.d.ts +23 -0
- package/dist/components/home-backdrop.js +12 -0
- package/dist/components/home-section.d.ts +19 -0
- package/dist/components/home-section.js +21 -0
- package/dist/components/home-status.d.ts +24 -0
- package/dist/components/home-status.js +14 -0
- package/dist/components/hover-card.d.ts +14 -0
- package/dist/components/hover-card.js +16 -0
- package/dist/components/inspector.d.ts +29 -0
- package/dist/components/inspector.js +40 -0
- package/dist/components/level-control.d.ts +19 -0
- package/dist/components/level-control.js +13 -0
- package/dist/components/light-color-picker.d.ts +33 -0
- package/dist/components/light-color-picker.js +56 -0
- package/dist/components/list.d.ts +42 -0
- package/dist/components/list.js +42 -0
- package/dist/components/listbox.d.ts +16 -0
- package/dist/components/listbox.js +28 -0
- package/dist/components/lock-control.d.ts +20 -0
- package/dist/components/lock-control.js +35 -0
- package/dist/components/menu-bar.d.ts +14 -0
- package/dist/components/menu-bar.js +16 -0
- package/dist/components/menu.d.ts +40 -0
- package/dist/components/menu.js +54 -0
- package/dist/components/message.d.ts +65 -0
- package/dist/components/message.js +69 -0
- package/dist/components/model-picker.d.ts +61 -0
- package/dist/components/model-picker.js +59 -0
- package/dist/components/navigation-bar.d.ts +24 -0
- package/dist/components/navigation-bar.js +54 -0
- package/dist/components/outline.d.ts +21 -0
- package/dist/components/outline.js +40 -0
- package/dist/components/page-control.d.ts +10 -0
- package/dist/components/page-control.js +8 -0
- package/dist/components/plan.d.ts +25 -0
- package/dist/components/plan.js +43 -0
- package/dist/components/popover.d.ts +16 -0
- package/dist/components/popover.js +24 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +27 -0
- package/dist/components/prompt-input.d.ts +93 -0
- package/dist/components/prompt-input.js +172 -0
- package/dist/components/radio.d.ts +16 -0
- package/dist/components/radio.js +13 -0
- package/dist/components/rating.d.ts +10 -0
- package/dist/components/rating.js +12 -0
- package/dist/components/reasoning.d.ts +28 -0
- package/dist/components/reasoning.js +52 -0
- package/dist/components/response.d.ts +14 -0
- package/dist/components/response.js +14 -0
- package/dist/components/scene-tile.d.ts +22 -0
- package/dist/components/scene-tile.js +13 -0
- package/dist/components/scroll-view.d.ts +21 -0
- package/dist/components/scroll-view.js +13 -0
- package/dist/components/search-field.d.ts +16 -0
- package/dist/components/search-field.js +12 -0
- package/dist/components/secure-field.d.ts +23 -0
- package/dist/components/secure-field.js +21 -0
- package/dist/components/segmented-control.d.ts +12 -0
- package/dist/components/segmented-control.js +10 -0
- package/dist/components/select.d.ts +45 -0
- package/dist/components/select.js +79 -0
- package/dist/components/sensor-readout.d.ts +29 -0
- package/dist/components/sensor-readout.js +12 -0
- package/dist/components/separator.d.ts +14 -0
- package/dist/components/separator.js +11 -0
- package/dist/components/setup-code.d.ts +29 -0
- package/dist/components/setup-code.js +47 -0
- package/dist/components/sheet.d.ts +31 -0
- package/dist/components/sheet.js +51 -0
- package/dist/components/shimmer.d.ts +18 -0
- package/dist/components/shimmer.js +17 -0
- package/dist/components/sidebar.d.ts +30 -0
- package/dist/components/sidebar.js +26 -0
- package/dist/components/slider.d.ts +27 -0
- package/dist/components/slider.js +43 -0
- package/dist/components/sources.d.ts +51 -0
- package/dist/components/sources.js +46 -0
- package/dist/components/split-view.d.ts +11 -0
- package/dist/components/split-view.js +13 -0
- package/dist/components/squircle.d.ts +41 -0
- package/dist/components/squircle.js +63 -0
- package/dist/components/stepper.d.ts +30 -0
- package/dist/components/stepper.js +28 -0
- package/dist/components/suggestion.d.ts +23 -0
- package/dist/components/suggestion.js +29 -0
- package/dist/components/switch.d.ts +10 -0
- package/dist/components/switch.js +10 -0
- package/dist/components/tab-bar.d.ts +20 -0
- package/dist/components/tab-bar.js +17 -0
- package/dist/components/table.d.ts +49 -0
- package/dist/components/table.js +179 -0
- package/dist/components/tabs.d.ts +16 -0
- package/dist/components/tabs.js +19 -0
- package/dist/components/text-area.d.ts +14 -0
- package/dist/components/text-area.js +9 -0
- package/dist/components/text-field.d.ts +26 -0
- package/dist/components/text-field.js +23 -0
- package/dist/components/thermostat-control.d.ts +30 -0
- package/dist/components/thermostat-control.js +139 -0
- package/dist/components/toast.d.ts +30 -0
- package/dist/components/toast.js +114 -0
- package/dist/components/toggle.d.ts +21 -0
- package/dist/components/toggle.js +19 -0
- package/dist/components/token-field.d.ts +31 -0
- package/dist/components/token-field.js +78 -0
- package/dist/components/tool-call.d.ts +48 -0
- package/dist/components/tool-call.js +77 -0
- package/dist/components/toolbar.d.ts +27 -0
- package/dist/components/toolbar.js +39 -0
- package/dist/components/tooltip.d.ts +11 -0
- package/dist/components/tooltip.js +18 -0
- package/dist/components/window.d.ts +56 -0
- package/dist/components/window.js +61 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +98 -0
- package/dist/lib/agent-glyphs.d.ts +10 -0
- package/dist/lib/agent-glyphs.js +19 -0
- package/dist/lib/cx.d.ts +9 -0
- package/dist/lib/cx.js +14 -0
- package/dist/lib/derive.d.ts +53 -0
- package/dist/lib/derive.js +255 -0
- package/dist/lib/field-glyphs.d.ts +13 -0
- package/dist/lib/field-glyphs.js +28 -0
- package/dist/lib/menu-glyphs.d.ts +6 -0
- package/dist/lib/menu-glyphs.js +15 -0
- package/dist/lib/platform.d.ts +18 -0
- package/dist/lib/platform.js +17 -0
- package/dist/lib/squircle.d.ts +23 -0
- package/dist/lib/squircle.js +69 -0
- package/dist/lib/theme.d.ts +42 -0
- package/dist/lib/theme.js +62 -0
- package/dist/styles/base.css +115 -0
- package/dist/styles/components/accessory-tile.css +461 -0
- package/dist/styles/components/activity-indicator.css +63 -0
- package/dist/styles/components/alert.css +433 -0
- package/dist/styles/components/artifact-card.css +238 -0
- package/dist/styles/components/artwork.css +380 -0
- package/dist/styles/components/attachment.css +540 -0
- package/dist/styles/components/automation-row.css +52 -0
- package/dist/styles/components/avatar.css +230 -0
- package/dist/styles/components/badge.css +204 -0
- package/dist/styles/components/button.css +298 -0
- package/dist/styles/components/calendar.css +287 -0
- package/dist/styles/components/camera-view.css +239 -0
- package/dist/styles/components/card.css +100 -0
- package/dist/styles/components/carousel.css +210 -0
- package/dist/styles/components/chat.css +209 -0
- package/dist/styles/components/checkbox.css +212 -0
- package/dist/styles/components/code-block.css +162 -0
- package/dist/styles/components/code-field.css +163 -0
- package/dist/styles/components/color-well.css +452 -0
- package/dist/styles/components/combo-box.css +222 -0
- package/dist/styles/components/command-palette.css +379 -0
- package/dist/styles/components/confirmation.css +189 -0
- package/dist/styles/components/content-unavailable.css +105 -0
- package/dist/styles/components/context-menu.css +43 -0
- package/dist/styles/components/date-picker.css +356 -0
- package/dist/styles/components/description-list.css +92 -0
- package/dist/styles/components/device-frame.css +202 -0
- package/dist/styles/components/dialog.css +366 -0
- package/dist/styles/components/disclosure.css +197 -0
- package/dist/styles/components/dock.css +404 -0
- package/dist/styles/components/door-control.css +187 -0
- package/dist/styles/components/energy-readout.css +161 -0
- package/dist/styles/components/field.css +175 -0
- package/dist/styles/components/gauge.css +239 -0
- package/dist/styles/components/generated-image.css +248 -0
- package/dist/styles/components/glass.css +113 -0
- package/dist/styles/components/home-backdrop.css +81 -0
- package/dist/styles/components/home-section.css +100 -0
- package/dist/styles/components/home-status.css +215 -0
- package/dist/styles/components/hover-card.css +145 -0
- package/dist/styles/components/index.css +94 -0
- package/dist/styles/components/inspector.css +236 -0
- package/dist/styles/components/level-control.css +247 -0
- package/dist/styles/components/light-color-picker.css +94 -0
- package/dist/styles/components/list.css +411 -0
- package/dist/styles/components/listbox.css +168 -0
- package/dist/styles/components/lock-control.css +164 -0
- package/dist/styles/components/menu-bar.css +94 -0
- package/dist/styles/components/menu.css +454 -0
- package/dist/styles/components/message.css +236 -0
- package/dist/styles/components/model-picker.css +64 -0
- package/dist/styles/components/navigation-bar.css +249 -0
- package/dist/styles/components/outline.css +248 -0
- package/dist/styles/components/page-control.css +127 -0
- package/dist/styles/components/plan.css +212 -0
- package/dist/styles/components/popover.css +186 -0
- package/dist/styles/components/progress.css +228 -0
- package/dist/styles/components/prompt-input.css +503 -0
- package/dist/styles/components/radio.css +281 -0
- package/dist/styles/components/rating.css +122 -0
- package/dist/styles/components/reasoning.css +214 -0
- package/dist/styles/components/response.css +303 -0
- package/dist/styles/components/scene-tile.css +295 -0
- package/dist/styles/components/scroll-view.css +195 -0
- package/dist/styles/components/search-field.css +128 -0
- package/dist/styles/components/secure-field.css +189 -0
- package/dist/styles/components/segmented-control.css +183 -0
- package/dist/styles/components/select.css +290 -0
- package/dist/styles/components/sensor-readout.css +231 -0
- package/dist/styles/components/separator.css +62 -0
- package/dist/styles/components/setup-code.css +138 -0
- package/dist/styles/components/sheet.css +345 -0
- package/dist/styles/components/shimmer.css +60 -0
- package/dist/styles/components/sidebar.css +261 -0
- package/dist/styles/components/slider.css +208 -0
- package/dist/styles/components/sources.css +349 -0
- package/dist/styles/components/split-view.css +75 -0
- package/dist/styles/components/squircle.css +44 -0
- package/dist/styles/components/stepper.css +278 -0
- package/dist/styles/components/suggestion.css +203 -0
- package/dist/styles/components/switch.css +115 -0
- package/dist/styles/components/tab-bar.css +223 -0
- package/dist/styles/components/table.css +313 -0
- package/dist/styles/components/tabs.css +262 -0
- package/dist/styles/components/text-area.css +94 -0
- package/dist/styles/components/text-field.css +294 -0
- package/dist/styles/components/thermostat-control.css +214 -0
- package/dist/styles/components/toast.css +418 -0
- package/dist/styles/components/toggle.css +312 -0
- package/dist/styles/components/token-field.css +193 -0
- package/dist/styles/components/tool-call.css +391 -0
- package/dist/styles/components/toolbar.css +370 -0
- package/dist/styles/components/tooltip.css +69 -0
- package/dist/styles/components/window.css +428 -0
- package/dist/styles/index.css +17 -0
- package/dist/styles/materials.css +263 -0
- package/dist/styles/platforms.css +214 -0
- package/dist/styles/themes/ember.css +24 -0
- package/dist/styles/themes/graphite.css +16 -0
- package/dist/styles/themes/nebula.css +16 -0
- package/dist/styles/themes/system.css +28 -0
- package/dist/styles/tokens.css +299 -0
- package/package.json +82 -3
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Artwork — an abstract picture drawn from a seed. The SVG paints with five
|
|
3
|
+
* variables, so a palette is only a set of system colors and follows the theme.
|
|
4
|
+
* --mb-artwork-1 … -4 hues
|
|
5
|
+
* --mb-artwork-ground the deep base
|
|
6
|
+
* --mb-artwork-light highlights
|
|
7
|
+
* --mb-artwork-paper a warm off-white ground; --mb-artwork-ink is drawn on it
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.mb-artwork {
|
|
11
|
+
--mb-artwork-1: var(--mb-accent);
|
|
12
|
+
--mb-artwork-2: var(--mb-pink);
|
|
13
|
+
--mb-artwork-3: var(--mb-yellow);
|
|
14
|
+
--mb-artwork-4: var(--mb-indigo);
|
|
15
|
+
--mb-artwork-ground: oklch(from var(--mb-artwork-1) 0.21 calc(c * 0.4) h);
|
|
16
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-artwork-1) 16%, white);
|
|
17
|
+
--mb-artwork-paper: color-mix(in oklch, var(--mb-artwork-4) 5%, color-mix(in oklch, var(--mb-yellow) 9%, white));
|
|
18
|
+
--mb-artwork-ink: var(--mb-artwork-ground);
|
|
19
|
+
/* The background variants paint with these three, pale in light mode and deep in dark mode,
|
|
20
|
+
so text in the label color reads on them in either scheme. */
|
|
21
|
+
--mb-artwork-base: light-dark(
|
|
22
|
+
oklch(from var(--mb-artwork-1) 0.93 calc(c * 0.16) h),
|
|
23
|
+
oklch(from var(--mb-artwork-ground) max(l, 0.2) c h)
|
|
24
|
+
);
|
|
25
|
+
--mb-artwork-deep: light-dark(
|
|
26
|
+
oklch(from var(--mb-artwork-4) 0.82 calc(c * 0.3) h),
|
|
27
|
+
oklch(from var(--mb-artwork-ground) calc(l * 0.72) c h)
|
|
28
|
+
);
|
|
29
|
+
--mb-artwork-haze: light-dark(
|
|
30
|
+
oklch(from var(--mb-artwork-light) 0.99 c h),
|
|
31
|
+
color-mix(in oklch, var(--mb-artwork-light) 52%, var(--mb-artwork-ground))
|
|
32
|
+
);
|
|
33
|
+
--mb-artwork-dim: 0;
|
|
34
|
+
--mb-artwork-corner: 0%;
|
|
35
|
+
--mb-artwork-min-radius: 0px;
|
|
36
|
+
|
|
37
|
+
position: relative;
|
|
38
|
+
display: block;
|
|
39
|
+
flex: none;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
inline-size: var(--mb-artwork-size, 100%);
|
|
42
|
+
aspect-ratio: var(--mb-artwork-aspect, 1);
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
isolation: isolate;
|
|
45
|
+
/* A percentage radius is elliptical on a wide box; divide it by the aspect so corners stay round. */
|
|
46
|
+
border-radius: var(
|
|
47
|
+
--mb-artwork-radius,
|
|
48
|
+
max(var(--mb-artwork-min-radius), calc(var(--mb-artwork-corner) / max(var(--mb-artwork-aspect, 1), 1))) /
|
|
49
|
+
max(var(--mb-artwork-min-radius), calc(var(--mb-artwork-corner) * min(var(--mb-artwork-aspect, 1), 1)))
|
|
50
|
+
);
|
|
51
|
+
background-color: var(--mb-artwork-ground);
|
|
52
|
+
user-select: none;
|
|
53
|
+
-webkit-user-select: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Shapes */
|
|
57
|
+
|
|
58
|
+
.mb-artwork[data-shape="rounded"] {
|
|
59
|
+
--mb-artwork-corner: 4.5%;
|
|
60
|
+
--mb-artwork-min-radius: 3px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.mb-artwork[data-shape="circle"] {
|
|
64
|
+
--mb-artwork-corner: 50%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mb-artwork[data-shape="app"] {
|
|
68
|
+
--mb-artwork-corner: var(--mb-squircle-radius-icon);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Continuous corners for covers and icons; never the circle, which would turn into a squircle. */
|
|
72
|
+
@supports (corner-shape: squircle) {
|
|
73
|
+
.mb-artwork:is([data-shape="rounded"], [data-shape="app"]) {
|
|
74
|
+
/* A caller's radius scales too; unset, it leaves this unset and the fallback applies. */
|
|
75
|
+
--mb-artwork-radius-continuous: calc(var(--mb-artwork-radius) * var(--mb-corner-factor));
|
|
76
|
+
|
|
77
|
+
corner-shape: var(--mb-corner-shape);
|
|
78
|
+
border-radius: var(
|
|
79
|
+
--mb-artwork-radius-continuous,
|
|
80
|
+
max(
|
|
81
|
+
calc(var(--mb-artwork-min-radius) * var(--mb-corner-factor)),
|
|
82
|
+
calc(var(--mb-artwork-corner) * var(--mb-corner-factor) / max(var(--mb-artwork-aspect, 1), 1))
|
|
83
|
+
) /
|
|
84
|
+
max(
|
|
85
|
+
calc(var(--mb-artwork-min-radius) * var(--mb-corner-factor)),
|
|
86
|
+
calc(var(--mb-artwork-corner) * var(--mb-corner-factor) * min(var(--mb-artwork-aspect, 1), 1))
|
|
87
|
+
)
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.mb-artwork:is([data-shape="rounded"], [data-shape="app"])::after {
|
|
92
|
+
corner-shape: inherit;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* A faint inner edge, so a pale cover doesn't melt into a pale page. */
|
|
97
|
+
.mb-artwork::after {
|
|
98
|
+
content: "";
|
|
99
|
+
position: absolute;
|
|
100
|
+
inset: 0;
|
|
101
|
+
z-index: 2;
|
|
102
|
+
border-radius: inherit;
|
|
103
|
+
box-shadow: inset 0 0 0 var(--mb-hairline) light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.1));
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.mb-artwork-svg {
|
|
108
|
+
position: absolute;
|
|
109
|
+
inset: 0;
|
|
110
|
+
display: block;
|
|
111
|
+
inline-size: 100%;
|
|
112
|
+
block-size: 100%;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
isolation: isolate;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.mb-artwork-blend :is(path, rect) {
|
|
118
|
+
mix-blend-mode: screen;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.mb-artwork-grain {
|
|
122
|
+
mix-blend-mode: overlay;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Text laid over the art sits on a soft scrim at the bottom. */
|
|
126
|
+
.mb-artwork-content {
|
|
127
|
+
position: absolute;
|
|
128
|
+
inset: 0;
|
|
129
|
+
z-index: 1;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
justify-content: flex-end;
|
|
133
|
+
gap: 2px;
|
|
134
|
+
padding: 16px;
|
|
135
|
+
background-image: linear-gradient(to top, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.12) 45%, transparent 70%);
|
|
136
|
+
color: #ffffff;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Dim: a veil of the page's background color, so the art recedes behind content in either scheme.
|
|
140
|
+
It sits under children and under the inner edge. */
|
|
141
|
+
.mb-artwork[data-dim]::before {
|
|
142
|
+
content: "";
|
|
143
|
+
position: absolute;
|
|
144
|
+
inset: 0;
|
|
145
|
+
z-index: 1;
|
|
146
|
+
border-radius: inherit;
|
|
147
|
+
/* A third more in light mode, where gray secondary text sits on pastels. */
|
|
148
|
+
background: light-dark(
|
|
149
|
+
color-mix(in oklch, var(--mb-bg) min(100%, calc(var(--mb-artwork-dim) * 135%)), transparent),
|
|
150
|
+
color-mix(in oklch, var(--mb-bg) min(100%, calc(var(--mb-artwork-dim) * 110%)), transparent)
|
|
151
|
+
);
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@supports (corner-shape: squircle) {
|
|
156
|
+
.mb-artwork:is([data-shape="rounded"], [data-shape="app"])::before {
|
|
157
|
+
corner-shape: inherit;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Palettes */
|
|
162
|
+
|
|
163
|
+
.mb-artwork[data-palette="accent"] {
|
|
164
|
+
--mb-artwork-1: var(--mb-accent);
|
|
165
|
+
--mb-artwork-2: oklch(from var(--mb-accent) calc(l + 0.08) c calc(h + 22));
|
|
166
|
+
--mb-artwork-3: oklch(from var(--mb-accent) calc(l + 0.04) c calc(h - 30));
|
|
167
|
+
--mb-artwork-4: oklch(from var(--mb-accent) calc(l - 0.06) c calc(h - 62));
|
|
168
|
+
--mb-artwork-ground: oklch(from var(--mb-accent) 0.2 calc(c * 0.4) calc(h + 20));
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.mb-artwork[data-palette="sunset"] {
|
|
172
|
+
--mb-artwork-1: var(--mb-orange);
|
|
173
|
+
--mb-artwork-2: var(--mb-pink);
|
|
174
|
+
--mb-artwork-3: var(--mb-yellow);
|
|
175
|
+
--mb-artwork-4: var(--mb-purple);
|
|
176
|
+
--mb-artwork-ground: oklch(from var(--mb-purple) 0.2 0.08 h);
|
|
177
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-yellow) 18%, white);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.mb-artwork[data-palette="ocean"] {
|
|
181
|
+
--mb-artwork-1: var(--mb-blue);
|
|
182
|
+
--mb-artwork-2: var(--mb-cyan);
|
|
183
|
+
--mb-artwork-3: var(--mb-teal);
|
|
184
|
+
--mb-artwork-4: var(--mb-indigo);
|
|
185
|
+
--mb-artwork-ground: oklch(from var(--mb-blue) 0.18 0.07 h);
|
|
186
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-cyan) 14%, white);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.mb-artwork[data-palette="forest"] {
|
|
190
|
+
--mb-artwork-1: var(--mb-green);
|
|
191
|
+
--mb-artwork-2: var(--mb-mint);
|
|
192
|
+
--mb-artwork-3: var(--mb-yellow);
|
|
193
|
+
--mb-artwork-4: var(--mb-teal);
|
|
194
|
+
--mb-artwork-ground: oklch(from var(--mb-green) 0.19 0.045 h);
|
|
195
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-yellow) 14%, white);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mb-artwork[data-palette="berry"] {
|
|
199
|
+
--mb-artwork-1: var(--mb-pink);
|
|
200
|
+
--mb-artwork-2: var(--mb-purple);
|
|
201
|
+
--mb-artwork-3: var(--mb-red);
|
|
202
|
+
--mb-artwork-4: var(--mb-indigo);
|
|
203
|
+
--mb-artwork-ground: oklch(from var(--mb-purple) 0.17 0.07 h);
|
|
204
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-pink) 14%, white);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.mb-artwork[data-palette="citrus"] {
|
|
208
|
+
--mb-artwork-1: var(--mb-yellow);
|
|
209
|
+
--mb-artwork-2: var(--mb-orange);
|
|
210
|
+
--mb-artwork-3: var(--mb-mint);
|
|
211
|
+
--mb-artwork-4: var(--mb-green);
|
|
212
|
+
--mb-artwork-ground: oklch(from var(--mb-green) 0.22 0.06 h);
|
|
213
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-yellow) 20%, white);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.mb-artwork[data-palette="dusk"] {
|
|
217
|
+
--mb-artwork-1: var(--mb-indigo);
|
|
218
|
+
--mb-artwork-2: var(--mb-pink);
|
|
219
|
+
--mb-artwork-3: var(--mb-orange);
|
|
220
|
+
--mb-artwork-4: var(--mb-purple);
|
|
221
|
+
--mb-artwork-ground: oklch(from var(--mb-indigo) 0.16 0.07 h);
|
|
222
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-orange) 14%, white);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.mb-artwork[data-palette="ember"] {
|
|
226
|
+
--mb-artwork-1: var(--mb-red);
|
|
227
|
+
--mb-artwork-2: var(--mb-orange);
|
|
228
|
+
--mb-artwork-3: var(--mb-yellow);
|
|
229
|
+
--mb-artwork-4: var(--mb-brown);
|
|
230
|
+
--mb-artwork-ground: oklch(from var(--mb-red) 0.16 0.06 h);
|
|
231
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-yellow) 20%, white);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.mb-artwork[data-palette="glacier"] {
|
|
235
|
+
--mb-artwork-1: var(--mb-cyan);
|
|
236
|
+
--mb-artwork-2: var(--mb-mint);
|
|
237
|
+
--mb-artwork-3: var(--mb-blue);
|
|
238
|
+
--mb-artwork-4: color-mix(in oklch, var(--mb-cyan) 35%, white);
|
|
239
|
+
--mb-artwork-ground: oklch(from var(--mb-blue) 0.2 0.06 h);
|
|
240
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-cyan) 10%, white);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.mb-artwork[data-palette="candy"] {
|
|
244
|
+
--mb-artwork-1: color-mix(in oklch, var(--mb-pink) 72%, white);
|
|
245
|
+
--mb-artwork-2: color-mix(in oklch, var(--mb-cyan) 68%, white);
|
|
246
|
+
--mb-artwork-3: color-mix(in oklch, var(--mb-yellow) 72%, white);
|
|
247
|
+
--mb-artwork-4: color-mix(in oklch, var(--mb-purple) 70%, white);
|
|
248
|
+
--mb-artwork-ground: oklch(from var(--mb-purple) 0.32 0.1 h);
|
|
249
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-pink) 8%, white);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* Graphite, tinted toward the theme's gray. */
|
|
253
|
+
.mb-artwork[data-palette="mono"] {
|
|
254
|
+
--mb-artwork-1: oklch(from var(--mb-tint) 0.9 0.012 h);
|
|
255
|
+
--mb-artwork-2: oklch(from var(--mb-tint) 0.68 0.02 h);
|
|
256
|
+
--mb-artwork-3: oklch(from var(--mb-tint) 0.5 0.024 h);
|
|
257
|
+
--mb-artwork-4: oklch(from var(--mb-tint) 0.36 0.02 h);
|
|
258
|
+
--mb-artwork-ground: oklch(from var(--mb-tint) 0.15 0.01 h);
|
|
259
|
+
--mb-artwork-light: oklch(from var(--mb-tint) 0.98 0.005 h);
|
|
260
|
+
--mb-artwork-paper: oklch(from var(--mb-tint) 0.95 0.008 h);
|
|
261
|
+
--mb-artwork-ink: oklch(from var(--mb-tint) 0.2 0.012 h);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Palettes for rooms and times of day. Calmer than the cover palettes: the background variants
|
|
265
|
+
mix them into --mb-artwork-base, so they come out pastel in light mode and deep in dark mode.
|
|
266
|
+
Hue 2 is the warm light; hue 4 is the shade. */
|
|
267
|
+
|
|
268
|
+
.mb-artwork[data-palette="dawn"] {
|
|
269
|
+
--mb-artwork-1: color-mix(in oklch, var(--mb-pink) 55%, var(--mb-purple));
|
|
270
|
+
--mb-artwork-2: color-mix(in oklch, var(--mb-orange) 70%, var(--mb-yellow));
|
|
271
|
+
--mb-artwork-3: color-mix(in oklch, var(--mb-pink) 70%, var(--mb-orange));
|
|
272
|
+
--mb-artwork-4: color-mix(in oklch, var(--mb-indigo) 70%, var(--mb-purple));
|
|
273
|
+
--mb-artwork-ground: oklch(from var(--mb-indigo) 0.19 0.06 h);
|
|
274
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-yellow) 16%, white);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.mb-artwork[data-palette="sky"] {
|
|
278
|
+
--mb-artwork-1: var(--mb-blue);
|
|
279
|
+
--mb-artwork-2: color-mix(in oklch, var(--mb-yellow) 60%, white);
|
|
280
|
+
--mb-artwork-3: var(--mb-cyan);
|
|
281
|
+
--mb-artwork-4: var(--mb-indigo);
|
|
282
|
+
--mb-artwork-ground: oklch(from var(--mb-blue) 0.2 0.07 h);
|
|
283
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-cyan) 8%, white);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.mb-artwork[data-palette="night"] {
|
|
287
|
+
--mb-artwork-1: color-mix(in oklch, var(--mb-indigo) 60%, var(--mb-blue));
|
|
288
|
+
--mb-artwork-2: color-mix(in oklch, var(--mb-teal) 55%, var(--mb-blue));
|
|
289
|
+
--mb-artwork-3: color-mix(in oklch, var(--mb-purple) 60%, var(--mb-indigo));
|
|
290
|
+
--mb-artwork-4: oklch(from var(--mb-indigo) 0.42 0.12 h);
|
|
291
|
+
--mb-artwork-ground: oklch(from var(--mb-indigo) 0.15 0.05 h);
|
|
292
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-cyan) 10%, white);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.mb-artwork[data-palette="amber"] {
|
|
296
|
+
--mb-artwork-1: var(--mb-orange);
|
|
297
|
+
--mb-artwork-2: color-mix(in oklch, var(--mb-yellow) 75%, var(--mb-orange));
|
|
298
|
+
--mb-artwork-3: color-mix(in oklch, var(--mb-red) 50%, var(--mb-brown));
|
|
299
|
+
--mb-artwork-4: color-mix(in oklch, var(--mb-brown) 70%, var(--mb-purple));
|
|
300
|
+
--mb-artwork-ground: oklch(from var(--mb-orange) 0.19 0.04 h);
|
|
301
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-yellow) 20%, white);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.mb-artwork[data-palette="water"] {
|
|
305
|
+
--mb-artwork-1: var(--mb-teal);
|
|
306
|
+
--mb-artwork-2: color-mix(in oklch, var(--mb-mint) 60%, white);
|
|
307
|
+
--mb-artwork-3: var(--mb-cyan);
|
|
308
|
+
--mb-artwork-4: var(--mb-blue);
|
|
309
|
+
--mb-artwork-ground: oklch(from var(--mb-teal) 0.18 0.04 h);
|
|
310
|
+
--mb-artwork-light: color-mix(in oklch, var(--mb-cyan) 10%, white);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* Gray with a cool cast, and one warm lamp. */
|
|
314
|
+
.mb-artwork[data-palette="slate"] {
|
|
315
|
+
--mb-artwork-1: oklch(from var(--mb-blue) 0.62 0.045 h);
|
|
316
|
+
--mb-artwork-2: oklch(from var(--mb-orange) 0.78 0.07 h);
|
|
317
|
+
--mb-artwork-3: oklch(from var(--mb-cyan) 0.74 0.03 h);
|
|
318
|
+
--mb-artwork-4: oklch(from var(--mb-indigo) 0.46 0.04 h);
|
|
319
|
+
--mb-artwork-ground: oklch(from var(--mb-blue) 0.18 0.02 h);
|
|
320
|
+
--mb-artwork-light: oklch(from var(--mb-orange) 0.97 0.01 h);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* Motion: a slow drift of a few layers, only when asked for. */
|
|
324
|
+
|
|
325
|
+
.mb-artwork[data-animated] .mb-artwork-drift {
|
|
326
|
+
transform-box: view-box;
|
|
327
|
+
transform-origin: 50% 50%;
|
|
328
|
+
animation: mb-artwork-drift-1 28s var(--mb-ease-in-out) infinite alternate;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.mb-artwork[data-animated] .mb-artwork-drift[data-drift="2"] {
|
|
332
|
+
animation-name: mb-artwork-drift-2;
|
|
333
|
+
animation-duration: 34s;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.mb-artwork[data-animated] .mb-artwork-drift[data-drift="3"] {
|
|
337
|
+
animation-name: mb-artwork-drift-3;
|
|
338
|
+
animation-duration: 22s;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.mb-artwork[data-animated] .mb-artwork-drift[data-drift="4"] {
|
|
342
|
+
animation-name: mb-artwork-drift-4;
|
|
343
|
+
animation-duration: 40s;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.mb-artwork[data-animated] .mb-artwork-drift[data-drift="5"] {
|
|
347
|
+
animation-name: mb-artwork-drift-5;
|
|
348
|
+
animation-duration: 36s;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@keyframes mb-artwork-drift-1 {
|
|
352
|
+
from { translate: -4% -3%; rotate: -3deg; }
|
|
353
|
+
to { translate: 4% 3%; rotate: 3deg; scale: 1.04; }
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
@keyframes mb-artwork-drift-2 {
|
|
357
|
+
from { translate: 5% -2%; scale: 1.06; }
|
|
358
|
+
to { translate: -4% 4%; scale: 0.98; }
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
@keyframes mb-artwork-drift-3 {
|
|
362
|
+
from { translate: 0 0; }
|
|
363
|
+
to { translate: -6% 3%; }
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@keyframes mb-artwork-drift-4 {
|
|
367
|
+
from { rotate: -3deg; scale: 1.06; }
|
|
368
|
+
to { rotate: 3deg; scale: 1.06; }
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@keyframes mb-artwork-drift-5 {
|
|
372
|
+
from { rotate: -3deg; }
|
|
373
|
+
to { rotate: 3deg; }
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
@media (prefers-reduced-motion: reduce) {
|
|
377
|
+
.mb-artwork[data-animated] .mb-artwork-drift {
|
|
378
|
+
animation: none;
|
|
379
|
+
}
|
|
380
|
+
}
|