@dou-ui/theme 0.1.0-alpha.1 → 0.1.0-alpha.11
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 +1 -1
- package/dist/components/alert.css +1 -1
- package/dist/components/autocomplete.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/calendar-view.css +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/chat-artifact.css +1 -1
- package/dist/components/chat-confirm.css +1 -1
- package/dist/components/chat-context-meter.css +1 -1
- package/dist/components/chat-input.css +1 -1
- package/dist/components/chat-message.css +1 -1
- package/dist/components/chat-plan.css +1 -1
- package/dist/components/chat-question.css +1 -0
- package/dist/components/chat-sources.css +1 -1
- package/dist/components/chat-tool-call.css +1 -1
- package/dist/components/code-block.css +1 -1
- package/dist/components/collapse.css +1 -1
- package/dist/components/color-panel.css +1 -1
- package/dist/components/descriptions.css +1 -1
- package/dist/components/dialog-box.css +1 -1
- package/dist/components/dialog.css +1 -1
- package/dist/components/dock.css +1 -0
- package/dist/components/dropdown.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/input-tag.css +1 -1
- package/dist/components/layout.css +1 -1
- package/dist/components/link.css +1 -1
- package/dist/components/markdown.css +1 -0
- package/dist/components/menu.css +1 -1
- package/dist/components/node-graph.css +1 -1
- package/dist/components/picker.css +1 -1
- package/dist/components/progress-group.css +1 -1
- package/dist/components/qrcode.css +1 -1
- package/dist/components/result.css +1 -1
- package/dist/components/select.css +1 -1
- package/dist/components/status-dot.css +1 -0
- package/dist/components/steps.css +1 -1
- package/dist/components/stream-text.css +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/tabs.css +1 -1
- package/dist/components/tag.css +1 -1
- package/dist/components/timeline.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +40 -15
- package/dist/tokens/create.d.ts +4 -1
- package/dist/tokens/types.d.ts +9 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
var light = {
|
|
3
3
|
scheme: { dark: "0" },
|
|
4
4
|
color: {
|
|
5
|
-
neutral: { DEFAULT: "#171717", on: "#ffffff", text: "#171717" },
|
|
6
|
-
primary: { DEFAULT: "#3f56b5", on: "#ffffff", text: "#3f56b5" },
|
|
7
|
-
success: { DEFAULT: "#2e7d5b", on: "#ffffff", text: "#2c7756" },
|
|
8
|
-
warning: { DEFAULT: "#92651d", on: "#ffffff", text: "#8b5f1c" },
|
|
9
|
-
danger: { DEFAULT: "#b2423e", on: "#ffffff", text: "#b2423e" },
|
|
5
|
+
neutral: { DEFAULT: "#171717", on: "#ffffff", text: "#171717", soft: "#ececec" },
|
|
6
|
+
primary: { DEFAULT: "#3f56b5", on: "#ffffff", text: "#3f56b5", soft: "#f0f3fb" },
|
|
7
|
+
success: { DEFAULT: "#2e7d5b", on: "#ffffff", text: "#2c7756", soft: "#f0f6f3" },
|
|
8
|
+
warning: { DEFAULT: "#92651d", on: "#ffffff", text: "#8b5f1c", soft: "#f7f4ef" },
|
|
9
|
+
danger: { DEFAULT: "#b2423e", on: "#ffffff", text: "#b2423e", soft: "#fbf2f1" },
|
|
10
10
|
bg: {
|
|
11
11
|
canvas: "#fafafa",
|
|
12
12
|
surface: "#ffffff",
|
|
@@ -111,11 +111,11 @@ function merge(base, overrides) {
|
|
|
111
111
|
var dark = defineTheme(light, {
|
|
112
112
|
scheme: { dark: "1" },
|
|
113
113
|
color: {
|
|
114
|
-
neutral: { DEFAULT: "#ededed", on: "#0a0a0a", text: "#ededed" },
|
|
115
|
-
primary: { DEFAULT: "#4c66cb", on: "#ffffff", text: "#768ad7" },
|
|
116
|
-
success: { DEFAULT: "#2f8060", on: "#ffffff", text: "#42a87d" },
|
|
117
|
-
warning: { DEFAULT: "#c18a3c", on: "#1a1206", text: "#c99852" },
|
|
118
|
-
danger: { DEFAULT: "#c5453e", on: "#ffffff", text: "#d4746f" },
|
|
114
|
+
neutral: { DEFAULT: "#ededed", on: "#0a0a0a", text: "#ededed", soft: "#1d1d1d" },
|
|
115
|
+
primary: { DEFAULT: "#4c66cb", on: "#ffffff", text: "#768ad7", soft: "#15171c" },
|
|
116
|
+
success: { DEFAULT: "#2f8060", on: "#ffffff", text: "#42a87d", soft: "#141816" },
|
|
117
|
+
warning: { DEFAULT: "#c18a3c", on: "#1a1206", text: "#c99852", soft: "#1b1815" },
|
|
118
|
+
danger: { DEFAULT: "#c5453e", on: "#ffffff", text: "#d4746f", soft: "#1c1514" },
|
|
119
119
|
bg: {
|
|
120
120
|
canvas: "#0a0a0a",
|
|
121
121
|
surface: "#111111",
|
|
@@ -171,6 +171,7 @@ var dark = defineTheme(light, {
|
|
|
171
171
|
// src/tokens/create.ts
|
|
172
172
|
var TEXT_CONTRAST = 4.5;
|
|
173
173
|
var FOCUS_CONTRAST = 3;
|
|
174
|
+
var SOFT_AMOUNT = 0.07;
|
|
174
175
|
function createTheme(colors, options = {}) {
|
|
175
176
|
return {
|
|
176
177
|
light: themeFor(options.light ?? light, colors),
|
|
@@ -179,10 +180,12 @@ function createTheme(colors, options = {}) {
|
|
|
179
180
|
}
|
|
180
181
|
function themeFor(base, colors) {
|
|
181
182
|
const color = {};
|
|
182
|
-
for (const name of ["primary", "success", "warning", "danger"]) {
|
|
183
|
-
const value = colors[name];
|
|
183
|
+
for (const name of ["neutral", "primary", "success", "warning", "danger"]) {
|
|
184
|
+
const value = name === "neutral" ? undefined : colors[name];
|
|
184
185
|
if (value)
|
|
185
186
|
color[name] = createTone(value, base);
|
|
187
|
+
else
|
|
188
|
+
color[name] = retint(base.color[name], base);
|
|
186
189
|
}
|
|
187
190
|
if (colors.primary)
|
|
188
191
|
color.focus = focusColor(colors.primary, base);
|
|
@@ -202,9 +205,31 @@ function createTone(value, base = light) {
|
|
|
202
205
|
fill = Math.abs(darker[0] - seed[0]) <= Math.abs(lighter[0] - seed[0]) ? darker : lighter;
|
|
203
206
|
on = pickOn(fromOklch(fill), white, ink);
|
|
204
207
|
}
|
|
205
|
-
const
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
+
const DEFAULT = toHex(fromOklch(fill));
|
|
209
|
+
const soft = softTint(DEFAULT, base);
|
|
210
|
+
const text = readableText(toHex(fromOklch(fill)), soft, base);
|
|
211
|
+
return { DEFAULT, on: toHex(on), text, soft };
|
|
212
|
+
}
|
|
213
|
+
function retint(tone, base) {
|
|
214
|
+
const computed = [light, dark, base].some((theme) => tone.soft === softTint(tone.DEFAULT, theme));
|
|
215
|
+
if (!computed)
|
|
216
|
+
return tone;
|
|
217
|
+
const soft = softTint(tone.DEFAULT, base);
|
|
218
|
+
if (soft === tone.soft)
|
|
219
|
+
return tone;
|
|
220
|
+
return { ...tone, soft, text: readableText(tone.text, soft, base) };
|
|
221
|
+
}
|
|
222
|
+
function softTint(color, base) {
|
|
223
|
+
return mixColors(color, base.color.bg.surface, SOFT_AMOUNT);
|
|
224
|
+
}
|
|
225
|
+
function readableText(color, soft, base) {
|
|
226
|
+
const backgrounds = [base.color.bg.canvas, base.color.bg.surface, base.color.bg.muted, soft].map(parseColor);
|
|
227
|
+
const isDark = luminance(backgrounds[1]) < 0.18;
|
|
228
|
+
const reads = (rgb) => backgrounds.every((surface) => contrast(rgb, surface) >= TEXT_CONTRAST);
|
|
229
|
+
const rgb = parseColor(color);
|
|
230
|
+
if (reads(rgb))
|
|
231
|
+
return color;
|
|
232
|
+
return toHex(fromOklch(adjust(toOklch(rgb), isDark ? 1 : -1, reads)));
|
|
208
233
|
}
|
|
209
234
|
function focusColor(value, base) {
|
|
210
235
|
const page = parseColor(base.color.bg.canvas);
|
package/dist/tokens/create.d.ts
CHANGED
|
@@ -16,7 +16,10 @@ export interface CreateThemeOptions {
|
|
|
16
16
|
* Build a light and a dark theme from a few brand colors.
|
|
17
17
|
*
|
|
18
18
|
* Each color becomes a full tone: the color itself, the text color that
|
|
19
|
-
* reads on it,
|
|
19
|
+
* reads on it, a version that reads as text on the page, and a faint tint
|
|
20
|
+
* for faint backgrounds. Tones that are not given keep their values, except
|
|
21
|
+
* that a soft tint computed for another surface is mixed again over the
|
|
22
|
+
* base theme's surface (a soft tint written by hand stays as it is). Lightness is
|
|
20
23
|
* adjusted in OKLCH until every pair reaches 4.5:1, so the hue stays
|
|
21
24
|
* recognizable while text stays legible. The focus ring follows `primary`.
|
|
22
25
|
*
|
package/dist/tokens/types.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ export interface ThemeTokens {
|
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
/** A tone is a single color plus the
|
|
171
|
+
/** A tone is a single color plus the colors that go with it. */
|
|
172
172
|
export interface ToneTokens {
|
|
173
173
|
DEFAULT: string;
|
|
174
174
|
/** Foreground (text / icon) color used on a solid `DEFAULT` background. */
|
|
@@ -180,6 +180,14 @@ export interface ToneTokens {
|
|
|
180
180
|
* as text on a dark page.
|
|
181
181
|
*/
|
|
182
182
|
text: string;
|
|
183
|
+
/**
|
|
184
|
+
* A faint tint of the tone over the surface: the fill of soft buttons and
|
|
185
|
+
* tags, and a faint toned background for things such as a status pill
|
|
186
|
+
* or a highlighted row. Computed as
|
|
187
|
+
* `color-mix(in oklab, DEFAULT 7%, bg.surface)`; `text` and the body
|
|
188
|
+
* text color both read on it at 4.5:1 or more.
|
|
189
|
+
*/
|
|
190
|
+
soft: string;
|
|
183
191
|
}
|
|
184
192
|
/** Eight series colors, `--dou-color-chart-1` to `--dou-color-chart-8`. */
|
|
185
193
|
export interface ChartPalette {
|
package/dist/tokens.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer dou.tokens{:root,[data-dou-theme=light]{--dou-scheme-dark:0;--dou-color-neutral:#171717;--dou-color-neutral-on:#fff;--dou-color-neutral-text:#171717;--dou-color-primary:#3f56b5;--dou-color-primary-on:#fff;--dou-color-primary-text:#3f56b5;--dou-color-success:#2e7d5b;--dou-color-success-on:#fff;--dou-color-success-text:#2c7756;--dou-color-warning:#92651d;--dou-color-warning-on:#fff;--dou-color-warning-text:#8b5f1c;--dou-color-danger:#b2423e;--dou-color-danger-on:#fff;--dou-color-danger-text:#b2423e;--dou-color-bg-canvas:#fafafa;--dou-color-bg-surface:#fff;--dou-color-bg-muted:#f2f2f2;--dou-color-text:#171717;--dou-color-text-secondary:#5c5c5c;--dou-color-text-tertiary:#737373;--dou-color-text-disabled:#b5b5b5;--dou-color-border-subtle:#f0f0f0;--dou-color-border:#e6e6e6;--dou-color-border-strong:#d1d1d1;--dou-color-focus:#6a82cf;--dou-color-edge:#000;--dou-color-chart-1:#3d3d3d;--dou-color-chart-2:#3f6aa1;--dou-color-chart-3:#b08341;--dou-color-chart-4:#2a9f9a;--dou-color-chart-5:#b4666d;--dou-color-chart-6:#5b4481;--dou-color-chart-7:#48773e;--dou-color-chart-8:#7e3e1e;--dou-color-syntax-keyword:#7b3f99;--dou-color-syntax-string:#3c7536;--dou-color-syntax-number:#a14a24;--dou-color-syntax-comment:#6b6b6b;--dou-color-syntax-function:#3550a8;--dou-color-syntax-type:#1d726c;--dou-color-syntax-variable:#171717;--dou-color-syntax-property:#2c6688;--dou-color-syntax-operator:#5c5c5c;--dou-color-syntax-punctuation:#5c5c5c;--dou-color-syntax-tag:#9a3a4c;--dou-color-syntax-attribute:#7d5d16;--dou-color-syntax-meta:#666;--dou-color-syntax-invalid:#b2423e;--dou-font-family:system-ui,-apple-system,"Segoe UI","Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--dou-font-family-mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;--dou-font-size-sm:13px;--dou-font-size-md:14px;--dou-font-size-lg:16px;--dou-font-weight-regular:400;--dou-font-weight-medium:500;--dou-font-weight-bold:600;--dou-font-line-height:1.6;--dou-radius-control:6px;--dou-radius-container:12px;--dou-radius-full:9999px;--dou-control-height-sm:28px;--dou-control-height-md:32px;--dou-control-height-lg:40px;--dou-control-padding-x-sm:10px;--dou-control-padding-x-md:12px;--dou-control-padding-x-lg:16px;--dou-control-gap-sm:4px;--dou-control-gap-md:6px;--dou-control-gap-lg:8px;--dou-space-sm:8px;--dou-space-md:12px;--dou-space-lg:20px;--dou-shadow-sm:0 1px 1px #00000008,0 1px 2px #0000000d;--dou-shadow-md:0 1px 2px #0000000a,0 4px 12px -2px #0000000f;--dou-shadow-lg:0 2px 4px #0000000a,0 16px 32px -8px #0000001a;--dou-shadow-highlight:inset 0 1px 0 #ffffff24;--dou-motion-duration-instant:.1s;--dou-motion-duration-fast:.15s;--dou-motion-duration-normal:.22s;--dou-motion-duration-slow:.32s;--dou-motion-easing:cubic-bezier(.2,0,0,1);--dou-motion-easing-enter:cubic-bezier(.16,1,.3,1);--dou-motion-easing-exit:cubic-bezier(.4,0,1,1);--dou-motion-easing-spring:linear(0,.192,.408,.616,.797,.94,1.043,1.107,1.138,1.145,1.133,1.111,1.084,1.057,1.033,1.013,.998,.989,.983,.982,.983,.985,.988,.992,1);--dou-motion-distance-sm:4px;--dou-motion-distance-md:8px;--dou-motion-scale:.98;--dou-motion-loop-spin:.8s;--dou-motion-loop-pulse:1.6s;--dou-motion-loop-sweep:2s}[data-dou-theme=light]{--buncss-light:initial;--buncss-dark: ;color-scheme:light}[data-dou-theme=dark]{--dou-scheme-dark:1;--dou-color-neutral:#ededed;--dou-color-neutral-on:#0a0a0a;--dou-color-neutral-text:#ededed;--dou-color-primary:#4c66cb;--dou-color-primary-on:#fff;--dou-color-primary-text:#768ad7;--dou-color-success:#2f8060;--dou-color-success-on:#fff;--dou-color-success-text:#42a87d;--dou-color-warning:#c18a3c;--dou-color-warning-on:#1a1206;--dou-color-warning-text:#c99852;--dou-color-danger:#c5453e;--dou-color-danger-on:#fff;--dou-color-danger-text:#d4746f;--dou-color-bg-canvas:#0a0a0a;--dou-color-bg-surface:#111;--dou-color-bg-muted:#1c1c1c;--dou-color-text:#ededed;--dou-color-text-secondary:#a3a3a3;--dou-color-text-tertiary:#858585;--dou-color-text-disabled:#4d4d4d;--dou-color-border-subtle:#1a1a1a;--dou-color-border:#262626;--dou-color-border-strong:#3a3a3a;--dou-color-focus:#5a73b3;--dou-color-edge:#000;--dou-color-chart-1:#d4d4d4;--dou-color-chart-2:#8db4e7;--dou-color-chart-3:#deb67f;--dou-color-chart-4:#36908b;--dou-color-chart-5:#e29ba0;--dou-color-chart-6:#9480b8;--dou-color-chart-7:#7ca573;--dou-color-chart-8:#ab7055;--dou-color-syntax-keyword:#c3a0de;--dou-color-syntax-string:#9fc48f;--dou-color-syntax-number:#e2a382;--dou-color-syntax-comment:#858585;--dou-color-syntax-function:#94adea;--dou-color-syntax-type:#6fc2b9;--dou-color-syntax-variable:#ededed;--dou-color-syntax-property:#8bbcd9;--dou-color-syntax-operator:#a3a3a3;--dou-color-syntax-punctuation:#a3a3a3;--dou-color-syntax-tag:#e39aa6;--dou-color-syntax-attribute:#d6b46f;--dou-color-syntax-meta:#949494;--dou-color-syntax-invalid:#d4746f;--dou-font-family:system-ui,-apple-system,"Segoe UI","Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--dou-font-family-mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;--dou-font-size-sm:13px;--dou-font-size-md:14px;--dou-font-size-lg:16px;--dou-font-weight-regular:400;--dou-font-weight-medium:500;--dou-font-weight-bold:600;--dou-font-line-height:1.6;--dou-radius-control:6px;--dou-radius-container:12px;--dou-radius-full:9999px;--dou-control-height-sm:28px;--dou-control-height-md:32px;--dou-control-height-lg:40px;--dou-control-padding-x-sm:10px;--dou-control-padding-x-md:12px;--dou-control-padding-x-lg:16px;--dou-control-gap-sm:4px;--dou-control-gap-md:6px;--dou-control-gap-lg:8px;--dou-space-sm:8px;--dou-space-md:12px;--dou-space-lg:20px;--dou-shadow-sm:0 1px 2px #00000080;--dou-shadow-md:0 1px 2px #00000080,0 4px 12px -2px #00000080;--dou-shadow-lg:0 2px 4px #00000080,0 16px 32px -8px #000000b3;--dou-shadow-highlight:inset 0 1px 0 #ffffff1a;--dou-motion-duration-instant:.1s;--dou-motion-duration-fast:.15s;--dou-motion-duration-normal:.22s;--dou-motion-duration-slow:.32s;--dou-motion-easing:cubic-bezier(.2,0,0,1);--dou-motion-easing-enter:cubic-bezier(.16,1,.3,1);--dou-motion-easing-exit:cubic-bezier(.4,0,1,1);--dou-motion-easing-spring:linear(0,.192,.408,.616,.797,.94,1.043,1.107,1.138,1.145,1.133,1.111,1.084,1.057,1.033,1.013,.998,.989,.983,.982,.983,.985,.988,.992,1);--dou-motion-distance-sm:4px;--dou-motion-distance-md:8px;--dou-motion-scale:.98;--dou-motion-loop-spin:.8s;--dou-motion-loop-pulse:1.6s;--dou-motion-loop-sweep:2s;--buncss-light: ;--buncss-dark:initial;--buncss-light: ;--buncss-dark:initial;color-scheme:dark}}
|
|
1
|
+
@layer dou.tokens{:root,[data-dou-theme=light]{--dou-scheme-dark:0;--dou-color-neutral:#171717;--dou-color-neutral-on:#fff;--dou-color-neutral-text:#171717;--dou-color-neutral-soft:#ececec;--dou-color-primary:#3f56b5;--dou-color-primary-on:#fff;--dou-color-primary-text:#3f56b5;--dou-color-primary-soft:#f0f3fb;--dou-color-success:#2e7d5b;--dou-color-success-on:#fff;--dou-color-success-text:#2c7756;--dou-color-success-soft:#f0f6f3;--dou-color-warning:#92651d;--dou-color-warning-on:#fff;--dou-color-warning-text:#8b5f1c;--dou-color-warning-soft:#f7f4ef;--dou-color-danger:#b2423e;--dou-color-danger-on:#fff;--dou-color-danger-text:#b2423e;--dou-color-danger-soft:#fbf2f1;--dou-color-bg-canvas:#fafafa;--dou-color-bg-surface:#fff;--dou-color-bg-muted:#f2f2f2;--dou-color-text:#171717;--dou-color-text-secondary:#5c5c5c;--dou-color-text-tertiary:#737373;--dou-color-text-disabled:#b5b5b5;--dou-color-border-subtle:#f0f0f0;--dou-color-border:#e6e6e6;--dou-color-border-strong:#d1d1d1;--dou-color-focus:#6a82cf;--dou-color-edge:#000;--dou-color-chart-1:#3d3d3d;--dou-color-chart-2:#3f6aa1;--dou-color-chart-3:#b08341;--dou-color-chart-4:#2a9f9a;--dou-color-chart-5:#b4666d;--dou-color-chart-6:#5b4481;--dou-color-chart-7:#48773e;--dou-color-chart-8:#7e3e1e;--dou-color-syntax-keyword:#7b3f99;--dou-color-syntax-string:#3c7536;--dou-color-syntax-number:#a14a24;--dou-color-syntax-comment:#6b6b6b;--dou-color-syntax-function:#3550a8;--dou-color-syntax-type:#1d726c;--dou-color-syntax-variable:#171717;--dou-color-syntax-property:#2c6688;--dou-color-syntax-operator:#5c5c5c;--dou-color-syntax-punctuation:#5c5c5c;--dou-color-syntax-tag:#9a3a4c;--dou-color-syntax-attribute:#7d5d16;--dou-color-syntax-meta:#666;--dou-color-syntax-invalid:#b2423e;--dou-font-family:system-ui,-apple-system,"Segoe UI","Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--dou-font-family-mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;--dou-font-size-sm:13px;--dou-font-size-md:14px;--dou-font-size-lg:16px;--dou-font-weight-regular:400;--dou-font-weight-medium:500;--dou-font-weight-bold:600;--dou-font-line-height:1.6;--dou-radius-control:6px;--dou-radius-container:12px;--dou-radius-full:9999px;--dou-control-height-sm:28px;--dou-control-height-md:32px;--dou-control-height-lg:40px;--dou-control-padding-x-sm:10px;--dou-control-padding-x-md:12px;--dou-control-padding-x-lg:16px;--dou-control-gap-sm:4px;--dou-control-gap-md:6px;--dou-control-gap-lg:8px;--dou-space-sm:8px;--dou-space-md:12px;--dou-space-lg:20px;--dou-shadow-sm:0 1px 1px #00000008,0 1px 2px #0000000d;--dou-shadow-md:0 1px 2px #0000000a,0 4px 12px -2px #0000000f;--dou-shadow-lg:0 2px 4px #0000000a,0 16px 32px -8px #0000001a;--dou-shadow-highlight:inset 0 1px 0 #ffffff24;--dou-motion-duration-instant:.1s;--dou-motion-duration-fast:.15s;--dou-motion-duration-normal:.22s;--dou-motion-duration-slow:.32s;--dou-motion-easing:cubic-bezier(.2,0,0,1);--dou-motion-easing-enter:cubic-bezier(.16,1,.3,1);--dou-motion-easing-exit:cubic-bezier(.4,0,1,1);--dou-motion-easing-spring:linear(0,.192,.408,.616,.797,.94,1.043,1.107,1.138,1.145,1.133,1.111,1.084,1.057,1.033,1.013,.998,.989,.983,.982,.983,.985,.988,.992,1);--dou-motion-distance-sm:4px;--dou-motion-distance-md:8px;--dou-motion-scale:.98;--dou-motion-loop-spin:.8s;--dou-motion-loop-pulse:1.6s;--dou-motion-loop-sweep:2s}[data-dou-theme=light]{--buncss-light:initial;--buncss-dark: ;color-scheme:light}[data-dou-theme=dark]{--dou-scheme-dark:1;--dou-color-neutral:#ededed;--dou-color-neutral-on:#0a0a0a;--dou-color-neutral-text:#ededed;--dou-color-neutral-soft:#1d1d1d;--dou-color-primary:#4c66cb;--dou-color-primary-on:#fff;--dou-color-primary-text:#768ad7;--dou-color-primary-soft:#15171c;--dou-color-success:#2f8060;--dou-color-success-on:#fff;--dou-color-success-text:#42a87d;--dou-color-success-soft:#141816;--dou-color-warning:#c18a3c;--dou-color-warning-on:#1a1206;--dou-color-warning-text:#c99852;--dou-color-warning-soft:#1b1815;--dou-color-danger:#c5453e;--dou-color-danger-on:#fff;--dou-color-danger-text:#d4746f;--dou-color-danger-soft:#1c1514;--dou-color-bg-canvas:#0a0a0a;--dou-color-bg-surface:#111;--dou-color-bg-muted:#1c1c1c;--dou-color-text:#ededed;--dou-color-text-secondary:#a3a3a3;--dou-color-text-tertiary:#858585;--dou-color-text-disabled:#4d4d4d;--dou-color-border-subtle:#1a1a1a;--dou-color-border:#262626;--dou-color-border-strong:#3a3a3a;--dou-color-focus:#5a73b3;--dou-color-edge:#000;--dou-color-chart-1:#d4d4d4;--dou-color-chart-2:#8db4e7;--dou-color-chart-3:#deb67f;--dou-color-chart-4:#36908b;--dou-color-chart-5:#e29ba0;--dou-color-chart-6:#9480b8;--dou-color-chart-7:#7ca573;--dou-color-chart-8:#ab7055;--dou-color-syntax-keyword:#c3a0de;--dou-color-syntax-string:#9fc48f;--dou-color-syntax-number:#e2a382;--dou-color-syntax-comment:#858585;--dou-color-syntax-function:#94adea;--dou-color-syntax-type:#6fc2b9;--dou-color-syntax-variable:#ededed;--dou-color-syntax-property:#8bbcd9;--dou-color-syntax-operator:#a3a3a3;--dou-color-syntax-punctuation:#a3a3a3;--dou-color-syntax-tag:#e39aa6;--dou-color-syntax-attribute:#d6b46f;--dou-color-syntax-meta:#949494;--dou-color-syntax-invalid:#d4746f;--dou-font-family:system-ui,-apple-system,"Segoe UI","Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--dou-font-family-mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;--dou-font-size-sm:13px;--dou-font-size-md:14px;--dou-font-size-lg:16px;--dou-font-weight-regular:400;--dou-font-weight-medium:500;--dou-font-weight-bold:600;--dou-font-line-height:1.6;--dou-radius-control:6px;--dou-radius-container:12px;--dou-radius-full:9999px;--dou-control-height-sm:28px;--dou-control-height-md:32px;--dou-control-height-lg:40px;--dou-control-padding-x-sm:10px;--dou-control-padding-x-md:12px;--dou-control-padding-x-lg:16px;--dou-control-gap-sm:4px;--dou-control-gap-md:6px;--dou-control-gap-lg:8px;--dou-space-sm:8px;--dou-space-md:12px;--dou-space-lg:20px;--dou-shadow-sm:0 1px 2px #00000080;--dou-shadow-md:0 1px 2px #00000080,0 4px 12px -2px #00000080;--dou-shadow-lg:0 2px 4px #00000080,0 16px 32px -8px #000000b3;--dou-shadow-highlight:inset 0 1px 0 #ffffff1a;--dou-motion-duration-instant:.1s;--dou-motion-duration-fast:.15s;--dou-motion-duration-normal:.22s;--dou-motion-duration-slow:.32s;--dou-motion-easing:cubic-bezier(.2,0,0,1);--dou-motion-easing-enter:cubic-bezier(.16,1,.3,1);--dou-motion-easing-exit:cubic-bezier(.4,0,1,1);--dou-motion-easing-spring:linear(0,.192,.408,.616,.797,.94,1.043,1.107,1.138,1.145,1.133,1.111,1.084,1.057,1.033,1.013,.998,.989,.983,.982,.983,.985,.988,.992,1);--dou-motion-distance-sm:4px;--dou-motion-distance-md:8px;--dou-motion-scale:.98;--dou-motion-loop-spin:.8s;--dou-motion-loop-pulse:1.6s;--dou-motion-loop-sweep:2s;--buncss-light: ;--buncss-dark:initial;--buncss-light: ;--buncss-dark:initial;color-scheme:dark}}
|