Ejemplos
Ejemplos prácticos. Demos en vivo.
Elige un ejemplo para abrirlo a pantalla completa, con la demo en vivo y su código fuente lado a lado.
Elige un ejemplo para abrirlo a pantalla completa, con la demo en vivo y su código fuente lado a lado.
Una pequeña biblioteca de componentes: createCss() nombra los tokens y variants() arma con ellos botones, insignias, tarjetas, inputs, alertas e interruptores. Los tokens son variables CSS, así que cada clase se compila una sola vez. Cada control modifica un objeto de tema simple y llama a update(), que reescribe el texto de un único elemento style.
$24 per seat / month
Billed yearly. Cancel any time.
Four intents, three sizes. The large primary also gets a shadow: a compound variant.
// app.ts: the editor. The preview's classes are compiled once, by createCss() // and variants() in theme.ts, and editing the theme never compiles them again. // Every control writes the plain `theme` object and calls update(). What // changes is the text of one <style> element, the theme as CSS variables, and // the browser re-applies those to the preview. import "nuclo"; import { Gallery } from "./gallery.ts"; import { FONTS, PRESETS, theme, variables, type Preset, type Theme } from "./theme.ts"; import { s } from "./styles.ts"; const COLORS = { primary: "Primary", onPrimary: "On primary", accent: "Accent", background: "Background", surface: "Surface", text: "Text", muted: "Muted text", border: "Border", danger: "Danger", success: "Success", } satisfies Partial<Record<keyof Theme, string>>; type ColorKey = keyof typeof COLORS; let preset: Preset = "Nuclo"; let exporting = false; let copyLabel = "Copy"; let copyTimer: ReturnType<typeof setTimeout> | undefined; function set<K extends keyof Theme>(key: K, value: Theme[K]) { theme[key] = value; update(); } function apply(name: Preset) { preset = name; Object.assign(theme, PRESETS[name]); update(); } function copy() { const show = (text: string) => { copyLabel = text; update(); clearTimeout(copyTimer); copyTimer = setTimeout(() => { copyLabel = "Copy"; update(); }, 1500); }; navigator.clipboard.writeText(variables(":root")).then(() => show("Copied"), () => show("Copy failed")); } // WCAG 2 contrast: the relative luminance of each #rrggbb, then (lighter + 0.05) / (darker + 0.05). function luminance(hex: string) { const [r, g, b] = [1, 3, 5].map((i) => { const c = parseInt(hex.slice(i, i + 2), 16) / 255; return c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4; }); return 0.2126 * r + 0.7152 * g + 0.0722 * b; } function contrast(a: string, b: string) { const [hi, lo] = [luminance(a), luminance(b)].sort((x, y) => y - x); return (hi + 0.05) / (lo + 0.05); } function Contrast(name: string, fg: ColorKey, bg: ColorKey) { const ratio = () => contrast(theme[fg], theme[bg]); return div( s.contrast, span(s.sample, { style: () => ({ color: theme[fg], backgroundColor: theme[bg] }) }, "Aa"), span(name), strong(() => `${ratio().toFixed(2)}:1`), span(() => cx(s.verdict, ratio() >= 4.5 ? s.pass : s.fail), () => (ratio() >= 4.5 ? "AA ✓" : "fails")), ); } function ColorField(key: ColorKey) { return label( s.color, input({ type: "color", value: () => theme[key] }, { onInput: (e) => set(key, e.currentTarget.value) }), span(COLORS[key]), input(s.hex, { "aria-label": `${COLORS[key]} hex`, spellcheck: false, value: () => theme[key] }, { // Only a complete #rrggbb reaches the theme; leaving the field puts the last good one back. onInput: (e) => { if (/^#[0-9a-f]{6}$/i.test(e.currentTarget.value)) set(key, e.currentTarget.value); }, onChange: (e) => { e.currentTarget.value = theme[key]; }, }), ); } // `value` comes last: a range clamps it to the min, max and step already set. function Range(name: string, key: "radius" | "density" | "shadow", min: string, max: string, step: string, show: (v: number) => string) { return label( s.field, span(name), input({ type: "range", min, max, step, value: () => String(theme[key]) }, { onInput: (e) => set(key, Number(e.currentTarget.value)) }), span(s.value, () => show(theme[key])), ); } function Panel() { return aside( s.panel, div( s.head, strong("Theme"), button(() => cx(s.btn, exporting && s.active), "Export", { "aria-pressed": () => String(exporting), onClick: () => { exporting = !exporting; update(); } }), ), p(s.hint, "The preview's classes were compiled once. These controls only rewrite the CSS variables those classes read."), when( () => exporting, div( s.group, div(s.head, h3(s.label, "CSS variables"), button(s.btn, () => copyLabel, { onClick: copy })), pre(s.pre, () => variables(":root")), ), ), div( s.group, h3(s.label, "Presets"), div( s.row, ...(Object.keys(PRESETS) as Preset[]).map((name) => button(() => cx(s.btn, preset === name && s.active), name, { "aria-pressed": () => String(preset === name), onClick: () => apply(name) }), ), button(s.btn, "Reset", { title: "Drop your edits: back to the preset", onClick: () => apply(preset) }), ), ), div(s.group, h3(s.label, "Colors"), ...(Object.keys(COLORS) as ColorKey[]).map(ColorField)), div(s.group, h3(s.label, "Contrast"), Contrast("Text on background", "text", "background"), Contrast("Label on primary", "onPrimary", "primary")), div( s.group, h3(s.label, "Shape and type"), Range("Radius", "radius", "0", "24", "1", (v) => `${v}px`), Range("Density", "density", "0.75", "1.5", "0.05", (v) => `${v}×`), Range("Shadow", "shadow", "0", "60", "1", (v) => `${v}%`), label( s.field, span("Font"), select(s.select, { value: () => theme.font }, { onChange: (e) => set("font", e.currentTarget.value as Theme["font"]) }, ...Object.keys(FONTS).map((font) => option({ value: font }, font))), ), ), ); } export function ThemeEditor() { return div( s.app, on("destroy", () => { clearTimeout(copyTimer); copyLabel = "Copy"; }), Panel(), section( s.preview, { "data-te-preview": "", "aria-label": "Preview" }, // The live theme: one <style> with one dynamic text. An inline style // object can't set custom properties, so the variables are written as CSS. style(() => variables("[data-te-preview]")), Gallery(), ), ); }
// theme.ts: the design system. createCss() names the tokens, variants() turns // them into components. A token is resolved to its value when a class is // compiled, so a token holding "#d92d00" would stay that color whatever the // theme object says later. Here every token holds a CSS variable instead: each // class is compiled once, and restyling is left to the browser, which re-reads // the variables whenever variables() below produces new ones. import "nuclo"; export const FONTS = { "System sans": 'system-ui, -apple-system, "Segoe UI", Roboto, sans-serif', Serif: 'ui-serif, Georgia, Cambria, "Times New Roman", serif', Mono: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", Rounded: 'ui-rounded, "SF Pro Rounded", Nunito, "Varela Round", system-ui, sans-serif', }; export interface Theme { primary: string; onPrimary: string; accent: string; background: string; surface: string; text: string; muted: string; border: string; danger: string; success: string; radius: number; // px density: number; // multiplies every padding, gap and control height shadow: number; // % of black in the card shadow font: keyof typeof FONTS; } export const PRESETS = { Nuclo: { primary: "#d92d00", onPrimary: "#ffffff", accent: "#2563eb", background: "#f6f6f7", surface: "#ffffff", text: "#0b0d12", muted: "#5e6673", border: "#e3e5e8", danger: "#c81e1e", success: "#15803d", radius: 10, density: 1, shadow: 12, font: "System sans" }, Ocean: { primary: "#0b6bcb", onPrimary: "#ffffff", accent: "#0e9f8e", background: "#eef5fa", surface: "#ffffff", text: "#0c2235", muted: "#4f6577", border: "#d2e1ec", danger: "#d03b3b", success: "#0f8a5f", radius: 16, density: 1.1, shadow: 15, font: "Rounded" }, Forest: { primary: "#2e6b3f", onPrimary: "#f5f1e6", accent: "#b7791f", background: "#f3efe4", surface: "#fbf8f1", text: "#1e2a20", muted: "#5a6657", border: "#ddd6c3", danger: "#b3261e", success: "#2e6b3f", radius: 4, density: 1, shadow: 8, font: "Serif" }, "Grape dark": { primary: "#a78bfa", onPrimary: "#1a1033", accent: "#f472b6", background: "#110c1d", surface: "#1b142d", text: "#ede9fe", muted: "#a197bd", border: "#31284a", danger: "#f87171", success: "#4ade80", radius: 12, density: 1, shadow: 45, font: "System sans" }, Mono: { primary: "#111111", onPrimary: "#ffffff", accent: "#555555", background: "#ffffff", surface: "#ffffff", text: "#111111", muted: "#5c5c5c", border: "#bdbdbd", danger: "#b91c1c", success: "#166534", radius: 0, density: 0.9, shadow: 0, font: "Mono" }, } satisfies Record<string, Theme>; export type Preset = keyof typeof PRESETS; // The values the editor changes. Plain data: a preset is copied in with Object.assign(). export const theme: Theme = { ...PRESETS.Nuclo }; // The theme as CSS: the only output that changes when a control moves. The // preview holds it in a <style> element; Export shows the same text under :root. export const variables = (selector: string) => `${selector} { --te-primary: ${theme.primary}; --te-on-primary: ${theme.onPrimary}; --te-accent: ${theme.accent}; --te-background: ${theme.background}; --te-surface: ${theme.surface}; --te-text: ${theme.text}; --te-muted: ${theme.muted}; --te-border: ${theme.border}; --te-danger: ${theme.danger}; --te-success: ${theme.success}; --te-radius: ${theme.radius}px; --te-density: ${theme.density}; --te-shadow: 0 1px 2px rgb(0 0 0 / ${theme.shadow / 2}%), 0 12px 32px -12px rgb(0 0 0 / ${theme.shadow}%); --te-font: ${FONTS[theme.font]}; }`; export const ui = createCss({ colors: { primary: "var(--te-primary)", onPrimary: "var(--te-on-primary)", accent: "var(--te-accent)", background: "var(--te-background)", surface: "var(--te-surface)", text: "var(--te-text)", muted: "var(--te-muted)", border: "var(--te-border)", danger: "var(--te-danger)", success: "var(--te-success)", }, radii: { ui: "var(--te-radius)", card: "calc(var(--te-radius) * 1.5)", pill: "999px" }, shadows: { card: "var(--te-shadow)", ring: "0 0 0 3px color-mix(in srgb, var(--te-primary) 35%, transparent)" }, fonts: { ui: "var(--te-font)" }, }); /** A length that follows the density slider. */ export const sp = (px: number) => `calc(${px}px * var(--te-density))`; // A tone's soft background, readable text and border, mixed from the same // variables: derived shades follow their base color with no variable of their own. const tint = (tone: "primary" | "accent" | "success" | "danger" | "muted") => ({ bg: `color-mix(in srgb, var(--te-${tone}) 14%, transparent)`, color: `color-mix(in srgb, var(--te-${tone}) 75%, var(--te-text))`, borderColor: `color-mix(in srgb, var(--te-${tone}) 35%, transparent)`, }); // The component library. A selection compiles on its first call and is a // cache lookup after that. The gallery calls these; the editor never does. export const kit = { button: ui.variants({ base: { display: "inline-flex", items: "center", justify: "center", border: "1px solid transparent", rounded: "ui", font: "ui", weight: 600, whiteSpace: "nowrap", transition: "filter 0.15s, background-color 0.15s", focusVisible: { outline: "none", shadow: "ring" }, disabled: { opacity: 0.5, cursor: "not-allowed" } }, variants: { intent: { primary: { bg: "primary", color: "onPrimary", hover: { filter: "brightness(1.1)" } }, secondary: { bg: "surface", color: "text", borderColor: "border", hover: { bg: "background" } }, ghost: { bg: "transparent", color: "primary", hover: { bg: tint("primary").bg } }, danger: { bg: "danger", color: "#fff", hover: { filter: "brightness(1.1)" } }, }, size: { sm: { h: sp(28), px: sp(10), text: 12 }, md: { h: sp(36), px: sp(14), text: 14 }, lg: { h: sp(44), px: sp(20), text: 16 }, }, block: { true: { w: "100%" } }, }, defaultVariants: { intent: "secondary", size: "md" }, // Only the large primary button, a page's main call to action, is lifted. compoundVariants: [{ intent: "primary", size: "lg", css: { shadow: "card" } }], }), badge: ui.variants({ base: { display: "inline-flex", items: "center", h: sp(22), px: sp(8), rounded: "pill", text: 12, weight: 600, whiteSpace: "nowrap" }, variants: { tone: { neutral: tint("muted"), primary: tint("primary"), accent: tint("accent"), success: tint("success"), danger: tint("danger") } }, defaultVariants: { tone: "neutral" }, }), card: ui.variants({ base: { col: true, gap: sp(12), p: sp(20), bg: "surface", color: "text", border: "1px solid", borderColor: "border", rounded: "card", shadow: "card" }, variants: { featured: { true: { borderColor: "primary", shadow: "0 0 0 1px var(--te-primary), var(--te-shadow)" } } }, }), input: ui.variants({ base: { w: "100%", h: sp(36), px: sp(10), bg: "background", color: "text", border: "1px solid", borderColor: "border", rounded: "ui", font: "ui", text: 14, outline: "none", focus: { borderColor: "primary", shadow: "ring" } }, variants: { invalid: { true: { borderColor: "danger", focus: { borderColor: "danger", shadow: `0 0 0 3px ${tint("danger").borderColor}` } } } }, }), alert: ui.variants({ base: { p: sp(12), border: "1px solid", rounded: "ui", text: 13, leading: 1.5 }, variants: { tone: { info: tint("primary"), success: tint("success"), danger: tint("danger") } }, defaultVariants: { tone: "info" }, }), switch: ui.variants({ base: { position: "relative", flexShrink: 0, w: 40, h: 22, rounded: "pill", bg: "border", transition: "background-color 0.15s", focusVisible: { outline: "none", shadow: "ring" }, after: { content: '""', position: "absolute", top: 3, left: 3, size: 16, rounded: "pill", bg: "#fff", shadow: "0 1px 2px rgb(0 0 0 / 30%)", transition: "transform 0.15s" }, }, variants: { on: { true: { bg: "primary", after: { transform: "translateX(18px)" } } } }, }), };
// gallery.ts: the preview. A small product UI built from the recipes in // theme.ts, plus a little layout written with the same tokens. Nothing here // names a color, so the whole page follows the theme. import "nuclo"; import { kit, sp, ui } from "./theme.ts"; const g = { root: ui.css("te-ui-root", { minHeight: "100%", p: sp(20), bg: "background", color: "text", font: "ui", text: 14, leading: 1.5 }), top: ui.css("te-ui-top", { row: true, flexWrap: "wrap", items: "center", gap: sp(8), mb: sp(16), "& h2": { text: 20, weight: 700, mr: "auto" } }), grid: ui.css("te-ui-grid", { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 260px), 1fr))", alignItems: "start", gap: sp(16) }), title: ui.css("te-ui-title", { text: 15, weight: 600 }), between: ui.css("te-ui-between", { row: true, items: "center", justify: "space-between", gap: sp(8) }), muted: ui.css("te-ui-muted", { color: "muted", text: 13 }), field: ui.css("te-ui-field", { col: true, gap: sp(6), text: 13, weight: 500 }), error: ui.css("te-ui-error", { color: "danger", text: 12, weight: 400 }), row: ui.css("te-ui-row", { row: true, items: "center", justify: "space-between", gap: sp(10), pt: sp(10), borderTop: "1px solid", borderTopColor: "border", text: 13 }), actions: ui.css("te-ui-actions", { row: true, justify: "flex-end", gap: sp(8) }), price: ui.css("te-ui-price", { text: 32, weight: 700, leading: 1.1, "& span": { text: 13, weight: 400, color: "muted" } }), features: ui.css("te-ui-features", { col: true, gap: sp(6), listStyle: "none", text: 13, "& span": { color: "success", weight: 700, mr: sp(6) } }), buttons: ui.css("te-ui-buttons", { row: true, flexWrap: "wrap", items: "center", gap: sp(8) }), avatar: ui.css("te-ui-avatar", { size: 32, px: 0, justify: "center", flexShrink: 0 }), who: ui.css("te-ui-who", { col: true, flex: 1, minW: 0, leading: 1.3, "& span": { truncate: true, color: "muted", text: 12 } }), }; const form = { email: "ada@acme", alerts: true, digest: false }; const emailOk = () => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(form.email); const INTENTS = [["primary", "Deploy"], ["secondary", "Preview"], ["ghost", "Details"], ["danger", "Delete"]] as const; const SIZES = ["sm", "md", "lg"] as const; const FEATURES = ["Unlimited projects", "Preview deployments", "SSO and audit log", "Priority support"]; const MEMBERS = [ { name: "Ada Lovelace", email: "[email protected]", role: "Owner", tone: "primary" }, { name: "Grace Hopper", email: "[email protected]", role: "Admin", tone: "accent" }, { name: "Dennis Ritchie", email: "[email protected]", role: "Member", tone: "neutral" }, { name: "Radia Perlman", email: "[email protected]", role: "Invited", tone: "neutral" }, ] as const; function Setting(text: string, key: "alerts" | "digest") { return div( g.row, span(text), button(() => kit.switch({ on: form[key] }), { type: "button", role: "switch", "aria-label": text, "aria-checked": () => String(form[key]) }, { onClick: () => { form[key] = !form[key]; update(); }, }), ); } function Settings() { return section( kit.card(), h3(g.title, "Profile"), label(g.field, "Display name", input(kit.input(), { value: "Ada Lovelace" })), label( g.field, "Email", // The boolean variant is picked again on every update(); each of its two selections compiles once. input(() => kit.input({ invalid: !emailOk() }), { type: "email", value: form.email, "aria-invalid": () => String(!emailOk()) }, { onInput: (e) => { form.email = e.currentTarget.value; update(); }, }), when(() => !emailOk(), span(g.error, "Add a domain, like [email protected].")), ), Setting("Deploy alerts", "alerts"), Setting("Weekly digest", "digest"), div(g.actions, button(kit.button({ intent: "ghost" }), "Cancel"), button(kit.button({ intent: "primary" }), { disabled: () => !emailOk() }, "Save")), ); } function Pricing() { return section( kit.card({ featured: true }), div(g.between, h3(g.title, "Team"), span(kit.badge({ tone: "accent" }), "Most popular")), p(g.price, "$24", span(" per seat / month")), ul(g.features, ...FEATURES.map((feature) => li(span("✓"), feature))), button(kit.button({ intent: "primary", size: "lg", block: true }), "Upgrade to Team"), p(g.muted, "Billed yearly. Cancel any time."), ); } function Buttons() { return section( kit.card(), h3(g.title, "Buttons"), p(g.muted, "Four intents, three sizes. The large primary also gets a shadow: a compound variant."), ...INTENTS.map(([intent, text]) => div(g.buttons, ...SIZES.map((size) => button(kit.button({ intent, size }), text)))), ); } function Members() { return section( kit.card(), div(g.between, h3(g.title, "Members"), button(kit.button({ size: "sm" }), "Invite")), ...MEMBERS.map((m) => div( g.row, // cx() composes a recipe with a local override: the badge's colors, the avatar's size. span(ui.cx(kit.badge({ tone: m.tone }), g.avatar), m.name.split(" ").map((w) => w[0]).join("")), div(g.who, strong(m.name), span(m.email)), span(kit.badge({ tone: m.tone }), m.role), ), ), ); } function Activity() { return section( kit.card(), h3(g.title, "Activity"), div(kit.alert({ tone: "success" }), strong("Deployed. "), "main is live on production."), div(kit.alert({ tone: "info" }), strong("Heads up. "), "Builds move to the new runners on Monday."), div(kit.alert({ tone: "danger" }), strong("Check failed. "), "2 type errors in app.ts."), ); } export function Gallery() { return div( g.root, header(g.top, h2("Acme Cloud"), span(kit.badge({ tone: "success" }), "Operational"), span(kit.badge({ tone: "danger" }), "1 failing check")), div(g.grid, Settings(), Pricing(), Buttons(), Members(), Activity()), ); }
// styles.ts: the editor's own chrome. It uses the global css() and the docs // theme, so it follows the docs light/dark switch and none of the theme it edits. import "nuclo"; const mono = "ui-monospace, monospace"; const control = { height: "30px", padding: "0 10px", borderRadius: "8px", border: "1px solid var(--c-border-light)", backgroundColor: "var(--c-bg)", color: "var(--c-text)", fontFamily: "inherit", fontSize: "0.8125rem", fontWeight: "600" }; export const s = { // Phones: one scrolling column. Wider: the panel and the preview scroll side by side. app: css("te-app", { display: "flex", flexDirection: "column", gap: "12px", width: "100%", height: "100%", overflowY: "auto", "@media (min-width: 900px)": { flexDirection: "row", overflowY: "hidden" } }), panel: css("te-panel", { display: "flex", flexDirection: "column", gap: "16px", flexShrink: 0, "@media (min-width: 900px)": { width: "300px", overflowY: "auto", paddingRight: "6px" } }), head: css("te-head", { display: "flex", alignItems: "center", gap: "8px", "& > :first-child": { flex: "1" }, "& strong": { fontSize: "0.9375rem" } }), hint: css("te-hint", { fontSize: "0.8125rem", lineHeight: "1.5", color: "var(--c-text-dim)" }), group: css("te-group", { display: "flex", flexDirection: "column", gap: "8px" }), label: css("te-label", { fontSize: "0.6875rem", fontWeight: "600", textTransform: "uppercase", letterSpacing: "0.06em", color: "var(--c-text-muted)" }), row: css("te-row", { display: "flex", flexWrap: "wrap", alignItems: "center", gap: "6px" }), btn: css("te-btn", { ...control, hover: { backgroundColor: "var(--c-bg-secondary)" } }), active: css("te-active", { borderColor: "var(--c-primary)", backgroundColor: "var(--c-primary-alpha-13)", color: "var(--c-primary-ink)", hover: { backgroundColor: "var(--c-primary-alpha-19)" } }), color: css("te-color", { display: "grid", gridTemplateColumns: "28px 1fr 88px", alignItems: "center", gap: "8px", fontSize: "0.8125rem", color: "var(--c-text-dim)", "& input[type=color]": { width: "28px", height: "28px", padding: "0", border: "none", backgroundColor: "transparent", cursor: "pointer" } }), hex: css("te-hex", { ...control, width: "100%", height: "28px", fontFamily: mono, fontSize: "0.75rem", fontWeight: "400" }), field: css("te-field", { display: "grid", gridTemplateColumns: "64px 1fr 44px", alignItems: "center", gap: "8px", fontSize: "0.8125rem", color: "var(--c-text-dim)", "& input": { width: "100%", accentColor: "var(--c-primary)" } }), value: css("te-value", { fontFamily: mono, fontSize: "0.75rem", textAlign: "right", fontVariantNumeric: "tabular-nums" }), select: css("te-select", { ...control, gridColumn: "2 / 4", fontWeight: "400" }), contrast: css("te-contrast", { display: "grid", gridTemplateColumns: "32px 1fr auto auto", alignItems: "center", gap: "8px", fontSize: "0.8125rem", color: "var(--c-text-dim)", "& strong": { fontFamily: mono, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums", color: "var(--c-text)" } }), sample: css("te-sample", { display: "flex", alignItems: "center", justifyContent: "center", height: "24px", borderRadius: "6px", border: "1px solid var(--c-border)", fontSize: "0.75rem", fontWeight: "700" }), verdict: css("te-verdict", { minWidth: "48px", padding: "1px 6px", borderRadius: "999px", fontSize: "0.6875rem", fontWeight: "700", textAlign: "center" }), pass: css("te-pass", { backgroundColor: "rgba(34,197,94,0.18)", color: "var(--c-text)" }), fail: css("te-fail", { backgroundColor: "var(--c-primary-alpha-13)", color: "var(--c-primary-ink)" }), pre: css("te-pre", { maxHeight: "260px", overflow: "auto", padding: "10px 12px", borderRadius: "10px", border: "1px solid var(--c-border)", backgroundColor: "var(--c-bg-secondary)", fontFamily: mono, fontSize: "0.6875rem", lineHeight: "1.6", whiteSpace: "pre" }), preview: css("te-preview", { flexShrink: 0, borderRadius: "12px", border: "1px solid var(--c-border)", overflow: "hidden", "@media (min-width: 900px)": { flex: "1", minWidth: "0", overflowY: "auto" } }), };