@sobagu/cli 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","names":["scale"],"sources":["../../core/dist/index.js","../src/classes.ts","../src/print.ts","../src/migrate.ts","../src/tokens.ts","../src/init.ts","../src/audit.ts","../src/cli.ts"],"sourcesContent":["// sobagu/packages/core/src/tokens.ts\nvar space = {\n\tnone: \"0\",\n\t\"2xs\": \"2px\",\n\txs: \"4px\",\n\tsm: \"8px\",\n\tmd: \"16px\",\n\tlg: \"24px\",\n\txl: \"32px\",\n\t\"2xl\": \"48px\",\n\t\"3xl\": \"64px\",\n\t\"4xl\": \"96px\"\n};\nvar sizes = {\n\t...space,\n\tnone: \"none\",\n\tfull: \"100%\",\n\thalf: \"50%\",\n\tauto: \"auto\",\n\tfit: \"fit-content\",\n\tmin: \"min-content\",\n\tmax: \"max-content\",\n\tprose: \"65ch\",\n\tnarrow: \"640px\",\n\tcontent: \"960px\",\n\twide: \"1200px\",\n\tscreen: \"100vw\"\n};\nvar sizesY = {\n\t...sizes,\n\tscreen: \"100dvh\"\n};\nvar radii = {\n\tnone: \"0\",\n\txs: \"2px\",\n\tsm: \"4px\",\n\tmd: \"8px\",\n\tlg: \"12px\",\n\txl: \"16px\",\n\t\"2xl\": \"24px\",\n\tfull: \"9999px\"\n};\nvar fontSizes = {\n\txs: \"0.75rem\",\n\tsm: \"0.875rem\",\n\tmd: \"1rem\",\n\tlg: \"1.2rem\",\n\txl: \"1.44rem\",\n\t\"2xl\": \"1.728rem\",\n\t\"3xl\": \"2.074rem\",\n\t\"4xl\": \"2.488rem\",\n\t\"5xl\": \"2.986rem\"\n};\nvar fontWeights = {\n\tlight: \"300\",\n\tnormal: \"400\",\n\tmedium: \"500\",\n\tsemibold: \"600\",\n\tbold: \"700\",\n\tblack: \"900\"\n};\nvar lineHeights = {\n\tnone: \"1\",\n\ttight: \"1.2\",\n\tsnug: \"1.35\",\n\tnormal: \"1.55\",\n\trelaxed: \"1.75\"\n};\nvar letterSpacings = {\n\ttight: \"-0.02em\",\n\tnormal: \"0\",\n\twide: \"0.04em\",\n\twider: \"0.08em\"\n};\nvar fonts = {\n\tsans: \"system-ui, -apple-system, \\\"Segoe UI\\\", Roboto, \\\"Noto Sans\\\", \\\"Noto Sans Kannada\\\", sans-serif\",\n\tserif: \"ui-serif, Georgia, \\\"Noto Serif\\\", serif\",\n\tmono: \"ui-monospace, \\\"Cascadia Code\\\", Menlo, Consolas, monospace\"\n};\nvar shadows = {\n\tnone: \"none\",\n\tsm: \"0 1px 2px rgb(15 20 30 / 0.08)\",\n\tmd: \"0 2px 6px rgb(15 20 30 / 0.10), 0 1px 2px rgb(15 20 30 / 0.06)\",\n\tlg: \"0 8px 20px rgb(15 20 30 / 0.12), 0 2px 6px rgb(15 20 30 / 0.06)\",\n\txl: \"0 16px 40px rgb(15 20 30 / 0.16), 0 4px 12px rgb(15 20 30 / 0.08)\"\n};\nvar zIndices = {\n\tbase: \"0\",\n\traised: \"10\",\n\tdropdown: \"1000\",\n\tsticky: \"1100\",\n\toverlay: \"1300\",\n\tmodal: \"1400\",\n\ttoast: \"1700\",\n\ttooltip: \"1800\"\n};\nvar transitions = {\n\tnone: \"none\",\n\tfast: \"all 120ms ease-out\",\n\tnormal: \"all 200ms ease-out\",\n\tslow: \"all 320ms ease-out\"\n};\n/** Built-in animations (keyframes are defined in the reset layer). */\nvar animations = {\n\tnone: \"none\",\n\tspin: \"sb-spin 1s linear infinite\",\n\tping: \"sb-ping 1s cubic-bezier(0,0,.2,1) infinite\",\n\tpulse: \"sb-pulse 2s ease-in-out infinite\",\n\tbounce: \"sb-bounce 1s infinite\",\n\tfadeIn: \"sb-fade-in 200ms ease-out both\",\n\tslideUp: \"sb-slide-up 240ms ease-out both\",\n\tscaleIn: \"sb-scale-in 180ms ease-out both\"\n};\nvar keyframesCss = [\n\t\"@keyframes sb-spin{to{transform:rotate(360deg)}}\",\n\t\"@keyframes sb-ping{75%,100%{transform:scale(1.8);opacity:0}}\",\n\t\"@keyframes sb-pulse{50%{opacity:.5}}\",\n\t\"@keyframes sb-bounce{0%,100%{transform:translateY(-20%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}\",\n\t\"@keyframes sb-fade-in{from{opacity:0}}\",\n\t\"@keyframes sb-slide-up{from{opacity:0;transform:translateY(8px)}}\",\n\t\"@keyframes sb-scale-in{from{opacity:0;transform:scale(.96)}}\"\n].join(\"\\n\");\nvar textShadows = {\n\tnone: \"none\",\n\tsm: \"0 1px 1px rgb(0 0 0 / 0.12)\",\n\tmd: \"0 1px 3px rgb(0 0 0 / 0.18)\",\n\tlg: \"0 2px 8px rgb(0 0 0 / 0.24)\"\n};\nvar breakpoints = {\n\tsm: 600,\n\tmd: 840,\n\tlg: 1024,\n\txl: 1440\n};\n/** Container-query sizes (width of the nearest `container` parent). */\nvar containerSizes = {\n\txs: 320,\n\tsm: 480,\n\tmd: 640,\n\tlg: 840,\n\txl: 1024\n};\nvar steps = [\n\t50,\n\t100,\n\t200,\n\t300,\n\t400,\n\t500,\n\t600,\n\t700,\n\t800,\n\t900,\n\t950\n];\nvar hues = {\n\tgray: [255, .018],\n\tred: [25, .2],\n\torange: [50, .17],\n\tamber: [80, .16],\n\tgreen: [150, .16],\n\tteal: [185, .12],\n\tblue: [255, .18],\n\tindigo: [275, .18],\n\tviolet: [300, .2],\n\tpink: [350, .19]\n};\nvar lightness = [\n\t.975,\n\t.945,\n\t.885,\n\t.8,\n\t.705,\n\t.615,\n\t.53,\n\t.45,\n\t.375,\n\t.3,\n\t.215\n];\nvar chromaCurve = [\n\t.12,\n\t.25,\n\t.5,\n\t.75,\n\t.92,\n\t1,\n\t.97,\n\t.88,\n\t.74,\n\t.58,\n\t.42\n];\nfunction paletteColor(name, step) {\n\tconst [h, c] = hues[name];\n\tconst i = steps.indexOf(step);\n\treturn `oklch(${lightness[i] ?? .5} ${+(c * (chromaCurve[i] ?? 1)).toFixed(4)} ${h})`;\n}\nvar semanticColors = {\n\tcanvas: [\"gray.50\", \"gray.950\"],\n\tsurface: [\"white\", \"gray.900\"],\n\tsurfaceAlt: [\"gray.100\", \"gray.800\"],\n\ttext: [\"gray.900\", \"gray.50\"],\n\tmuted: [\"gray.600\", \"gray.400\"],\n\tsubtle: [\"gray.200\", \"gray.800\"],\n\tborder: [\"gray.200\", \"gray.700\"],\n\t/** For borders that must be visible to everyone: inputs, checkboxes (WCAG 1.4.11, 3:1). */\n\tborderStrong: [\"gray.500\", \"gray.500\"],\n\tprimary: [\"blue.600\", \"blue.400\"],\n\tprimaryHover: [\"blue.700\", \"blue.300\"],\n\tonPrimary: [\"white\", \"gray.950\"],\n\taccent: [\"violet.600\", \"violet.400\"],\n\tdanger: [\"red.600\", \"red.400\"],\n\tsuccess: [\"green.600\", \"green.400\"],\n\twarning: [\"amber.600\", \"amber.400\"]\n};\nvar tokens = {\n\tspace,\n\tsizes,\n\tsizesY,\n\tradii,\n\tfontSizes,\n\tfontWeights,\n\tlineHeights,\n\tletterSpacings,\n\tfonts,\n\tshadows,\n\tzIndices,\n\ttransitions,\n\tbreakpoints\n};\n// sobagu/packages/core/src/conditions.ts\nvar sel = (template, rank, element = false) => ({\n\tkind: \"selector\",\n\ttemplate,\n\trank,\n\telement\n});\nvar media$1 = (q, rank) => ({\n\tkind: \"at\",\n\tprelude: `@media ${q}`,\n\tgroup: \"media\",\n\trank\n});\nvar cq = (w, rank) => ({\n\tkind: \"at\",\n\tprelude: `@container (min-width: ${w}px)`,\n\tgroup: \"container\",\n\trank\n});\nvar at = (prelude, rank) => ({\n\tkind: \"at\",\n\tprelude,\n\tgroup: \"other\",\n\trank\n});\nvar min = (w) => `(min-width: ${w}px)`;\n/**\n* Conditions: use them as object props, e.g. hover={{ bg: 'primaryHover' }} or md={{ cols: 2 }}.\n* Names that are also HTML attributes start with \"_\" (_disabled, _checked, _placeholder, _required, _readOnly)\n* so <Box as=\"button\" disabled _disabled={{ opacity: 0.5 }}> can use both.\n*/\nvar conditions = {\n\tfirst: sel(\"&:first-child\", 1),\n\tlast: sel(\"&:last-child\", 2),\n\tonly: sel(\"&:only-child\", 3),\n\todd: sel(\"&:nth-child(odd)\", 4),\n\teven: sel(\"&:nth-child(even)\", 5),\n\tfirstOfType: sel(\"&:first-of-type\", 6),\n\tlastOfType: sel(\"&:last-of-type\", 7),\n\tempty: sel(\"&:empty\", 8),\n\tvisited: sel(\"&:visited\", 9),\n\ttarget: sel(\"&:target\", 10),\n\topen: sel(\"&:is([open], :popover-open)\", 11),\n\t_checked: sel(\"&:checked\", 12),\n\tindeterminate: sel(\"&:indeterminate\", 13),\n\t_required: sel(\"&:required\", 14),\n\toptional: sel(\"&:optional\", 15),\n\t_readOnly: sel(\"&:read-only\", 16),\n\tvalid: sel(\"&:user-valid\", 17),\n\tinvalid: sel(\"&:user-invalid\", 18),\n\tautofill: sel(\"&:autofill\", 19),\n\tplaceholderShown: sel(\"&:placeholder-shown\", 20),\n\tfocusWithin: sel(\"&:focus-within\", 21),\n\thover: sel(\"&:hover\", 22),\n\tfocus: sel(\"&:focus\", 23),\n\tfocusVisible: sel(\"&:focus-visible\", 24),\n\tactive: sel(\"&:active\", 25),\n\t_disabled: sel(\"&:disabled\", 26),\n\tariaExpanded: sel(\"&[aria-expanded=\\\"true\\\"]\", 27),\n\tariaSelected: sel(\"&[aria-selected=\\\"true\\\"]\", 28),\n\tariaChecked: sel(\"&[aria-checked=\\\"true\\\"]\", 29),\n\tariaPressed: sel(\"&[aria-pressed=\\\"true\\\"]\", 30),\n\tariaCurrent: sel(\"&[aria-current]:not([aria-current=\\\"false\\\"])\", 31),\n\tariaInvalid: sel(\"&[aria-invalid=\\\"true\\\"]\", 32),\n\tariaDisabled: sel(\"&[aria-disabled=\\\"true\\\"]\", 33),\n\tdataOpen: sel(\"&[data-state=\\\"open\\\"]\", 34),\n\tdataClosed: sel(\"&[data-state=\\\"closed\\\"]\", 35),\n\tgroupHover: sel(\".sb-group:hover &\", 36),\n\tgroupFocusWithin: sel(\".sb-group:focus-within &\", 37),\n\tgroupActive: sel(\".sb-group:active &\", 38),\n\tgroupOpen: sel(\".sb-group:is([open], [data-state=\\\"open\\\"], [aria-expanded=\\\"true\\\"]) &\", 39),\n\tpeerHover: sel(\".sb-peer:hover ~ &\", 40),\n\tpeerFocus: sel(\".sb-peer:focus ~ &\", 41),\n\tpeerChecked: sel(\".sb-peer:checked ~ &\", 42),\n\tpeerInvalid: sel(\".sb-peer:user-invalid ~ &\", 43),\n\tpeerDisabled: sel(\".sb-peer:disabled ~ &\", 44),\n\trtl: sel(\"&:dir(rtl)\", 45),\n\tltr: sel(\"&:dir(ltr)\", 46),\n\tbefore: sel(\"&::before\", 50, true),\n\tafter: sel(\"&::after\", 51, true),\n\t_placeholder: sel(\"&::placeholder\", 52, true),\n\tselection: sel(\"&::selection\", 53, true),\n\tmarker: sel(\"&::marker\", 54, true),\n\tfile: sel(\"&::file-selector-button\", 55, true),\n\tbackdrop: sel(\"&::backdrop\", 56, true),\n\tfirstLine: sel(\"&::first-line\", 57, true),\n\tfirstLetter: sel(\"&::first-letter\", 58, true),\n\tmobile: media$1(`(max-width: ${breakpoints.sm - .02}px)`, 1),\n\tsm: media$1(min(breakpoints.sm), 2),\n\ttablet: media$1(min(breakpoints.sm), 2),\n\tmd: media$1(min(breakpoints.md), 3),\n\tlg: media$1(min(breakpoints.lg), 4),\n\tdesktop: media$1(min(breakpoints.lg), 4),\n\txl: media$1(min(breakpoints.xl), 5),\n\tmotionSafe: media$1(\"(prefers-reduced-motion: no-preference)\", 6),\n\treduceMotion: media$1(\"(prefers-reduced-motion: reduce)\", 6),\n\tcontrastMore: media$1(\"(prefers-contrast: more)\", 6),\n\tforcedColors: media$1(\"(forced-colors: active)\", 6),\n\ttouch: media$1(\"(pointer: coarse)\", 6),\n\tmouse: media$1(\"(pointer: fine)\", 6),\n\tportrait: media$1(\"(orientation: portrait)\", 6),\n\tlandscape: media$1(\"(orientation: landscape)\", 6),\n\tprint: media$1(\"print\", 7),\n\tcqXs: cq(containerSizes.xs, 1),\n\tcqSm: cq(containerSizes.sm, 2),\n\tcqMd: cq(containerSizes.md, 3),\n\tcqLg: cq(containerSizes.lg, 4),\n\tcqXl: cq(containerSizes.xl, 5),\n\tstarting: at(\"@starting-style\", 1),\n\tdark: { kind: \"dark\" }\n};\n/** Marker props that add a plain class: <Box group> → \"sb-group\", <Box as=\"input\" peer> → \"sb-peer\". */\nvar markers = [\"group\", \"peer\"];\n/** Raw conditions: '&:has(img)', '& > li', '.theme-x &' (selectors) and '@supports (…)', '@media (…)' (at-rules). */\nvar isRawSelector = (k) => k.includes(\"&\");\nvar isRawAt = (k) => k.startsWith(\"@\");\n// sobagu/packages/core/src/theme.ts\nvar PREFIX = \"--sb\";\nvar paletteVar = (name, step) => `${PREFIX}-${name}-${step}`;\nvar colorVar = (name) => `${PREFIX}-c-${name}`;\nfunction refToCss(ref) {\n\tif (ref === \"white\" || ref === \"black\") return ref;\n\tconst [name, step] = ref.split(\".\");\n\treturn `var(${paletteVar(name, step)})`;\n}\nfunction semanticBlock(mode) {\n\treturn Object.entries(semanticColors).map(([name, pair]) => `${colorVar(name)}:${refToCss(pair[mode])}`).join(\";\");\n}\n/**\n* Cascade layers, lowest to highest priority. Your own un-layered CSS always beats Sobagu,\n* so overriding never needs !important.\n*/\nvar LAYERS = \"@layer sobagu.theme, sobagu.reset, sobagu.utilities;\";\nvar inLayer = (layer, css) => `@layer sobagu.${layer}{${css}}`;\nvar themeMemo;\n/**\n* CSS variables for the palette, the fonts and the semantic colours.\n* Semantic colours use light-dark(), so a single declaration covers both modes, and the browser picks\n* the value from color-scheme: the OS setting by default, or forced with data-theme=\"light|dark\".\n*/\nfunction themeCss() {\n\tconst key = JSON.stringify([\n\t\thues,\n\t\tfonts,\n\t\tsemanticColors\n\t]);\n\tif (themeMemo?.key !== key) themeMemo = {\n\t\tkey,\n\t\tcss: buildThemeCss()\n\t};\n\treturn themeMemo.css;\n}\nfunction buildThemeCss() {\n\tconst palette = [];\n\tfor (const name of Object.keys(hues)) for (const step of steps) palette.push(`${paletteVar(name, step)}:${paletteColor(name, step)}`);\n\tconst fontVars = Object.entries(fonts).map(([k, v]) => `${PREFIX}-font-${k}:${v}`);\n\tconst semantic = Object.entries(semanticColors).map(([name, [l, d]]) => `${colorVar(name)}:light-dark(${refToCss(l)}, ${refToCss(d)})`);\n\treturn inLayer(\"theme\", [\n\t\t`:root{${[\n\t\t\t...palette,\n\t\t\t...fontVars,\n\t\t\t...semantic\n\t\t].join(\";\")};color-scheme:light dark}`,\n\t\t`[data-theme=\"dark\"]{${semanticBlock(1)};color-scheme:dark}`,\n\t\t`[data-theme=\"light\"]{${semanticBlock(0)};color-scheme:light}`\n\t].join(\"\\n\"));\n}\n/** Sobagu base reset. Written from scratch, following MDN guidance. */\nfunction resetCss() {\n\treturn [\n\t\t\"*,*::before,*::after{box-sizing:border-box}\",\n\t\t\"*{margin:0}\",\n\t\t\"html{-webkit-text-size-adjust:100%;text-size-adjust:100%}\",\n\t\t`body{min-height:100dvh;line-height:1.55;font-family:var(${PREFIX}-font-sans);color:var(${colorVar(\"text\")});background:var(${colorVar(\"canvas\")});-webkit-font-smoothing:antialiased}`,\n\t\t\"img,picture,video,canvas,svg{display:block;max-width:100%}\",\n\t\t\"input,button,textarea,select{font:inherit;color:inherit}\",\n\t\t\"p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}\",\n\t\t`:where(:focus-visible){outline:2px solid var(${colorVar(\"primary\")});outline-offset:2px}`,\n\t\t\"@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}\",\n\t\t`:where(${INDIC.map((l) => `:lang(${l})`).join(\",\")}){line-height:1.8}`,\n\t\t`:where(:lang(kn)){font-family:\"Noto Sans Kannada\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(hi),:lang(mr)){font-family:\"Noto Sans Devanagari\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(ta)){font-family:\"Noto Sans Tamil\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(te)){font-family:\"Noto Sans Telugu\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(ml)){font-family:\"Noto Sans Malayalam\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(bn)){font-family:\"Noto Sans Bengali\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(gu)){font-family:\"Noto Sans Gujarati\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(pa)){font-family:\"Noto Sans Gurmukhi\",var(${PREFIX}-font-sans)}`,\n\t\t`:where(:lang(ar),:lang(ur)){font-family:\"Noto Naskh Arabic\",\"Noto Nastaliq Urdu\",var(${PREFIX}-font-sans);line-height:1.9}`,\n\t\tkeyframesCss\n\t].join(\"\\n\");\n}\n/** Indian-language codes that get Indic typography defaults. */\nvar INDIC = [\n\t\"kn\",\n\t\"hi\",\n\t\"mr\",\n\t\"ta\",\n\t\"te\",\n\t\"ml\",\n\t\"bn\",\n\t\"gu\",\n\t\"pa\",\n\t\"or\",\n\t\"as\",\n\t\"sa\"\n];\n// sobagu/packages/core/src/config.ts\n/** 1 unit = 4px, so p={4} → 16px. */\nvar unit = (n) => n === 0 ? \"0\" : `${n * 4}px`;\nvar px = (n) => n === 0 ? \"0\" : `${n}px`;\nvar spaceP = (...properties) => ({\n\tproperties,\n\tscale: space,\n\tnumber: unit\n});\nvar sizeP = (...properties) => ({\n\tproperties,\n\tscale: sizes,\n\tnumber: unit\n});\nvar sizeYP = (...properties) => ({\n\tproperties,\n\tscale: sizesY,\n\tnumber: unit\n});\nvar colorP = (...properties) => ({\n\tproperties,\n\tscale: \"color\"\n});\nvar rawP = (...properties) => ({ properties });\n/** Resolve a colour token ('primary', 'blue.500', 'blue-500') or pass a raw CSS colour through. */\nfunction resolveColor(v) {\n\tconst a = /^([a-zA-Z][\\w.-]*|#[\\da-fA-F]{3,8})\\/(\\d{1,3})$/.exec(v);\n\tif (a) return `color-mix(in oklch, ${resolveColor(a[1])} ${Math.min(+a[2], 100)}%, transparent)`;\n\tif (v in semanticColors) return `var(${colorVar(v)})`;\n\tconst m = /^([a-z]+)[.-](\\d{2,3})$/.exec(v);\n\tif (m && m[1] in hues) return `var(${paletteVar(m[1], m[2])})`;\n\treturn v;\n}\nvar borderP = (property) => ({\n\tproperties: [property],\n\tnumber: (n) => `${px(n)} solid var(${colorVar(\"border\")})`,\n\ttransform: (v) => {\n\t\tif (v === \"none\" || v === \"0\") return v;\n\t\tconst c = resolveColor(v);\n\t\treturn c !== v ? `1px solid ${c}` : v;\n\t}\n});\nvar alias = (m) => (v) => m[v] ?? v;\nvar FILTERS = [\n\t\"blur\",\n\t\"brightness\",\n\t\"contrast\",\n\t\"grayscale\",\n\t\"hueRotate\",\n\t\"invert\",\n\t\"saturate\",\n\t\"sepia\",\n\t\"dropShadow\"\n];\nvar BACKDROPS = [\n\t\"blur\",\n\t\"brightness\",\n\t\"contrast\",\n\t\"grayscale\",\n\t\"hueRotate\",\n\t\"saturate\",\n\t\"invert\",\n\t\"sepia\",\n\t\"opacity\"\n];\nvar fvar = (n) => `--sb-f-${n}`;\nvar bvar = (n) => `--sb-bf-${n}`;\nvar FILTER_ALL = FILTERS.map((n) => `var(${fvar(n)},)`).join(\" \");\nvar BACKDROP_ALL = BACKDROPS.map((n) => `var(${bvar(n)},)`).join(\" \");\nvar filterP = (name, fn, number) => ({\n\tproperties: [\"filter\"],\n\tnumber,\n\tdecl: (v) => `${fvar(name)}:${v === \"none\" ? \"none\" : `${fn}(${v})`};filter:${FILTER_ALL}`\n});\nvar backdropP = (name, fn, number) => ({\n\tproperties: [\"backdrop-filter\"],\n\tnumber,\n\tdecl: (v) => {\n\t\tconst val = `${fn}(${v})`;\n\t\treturn `${bvar(name)}:${val};-webkit-backdrop-filter:${BACKDROP_ALL};backdrop-filter:${BACKDROP_ALL}`;\n\t}\n});\n/** @property rules that stop the filter variables from inheriting (added to the reset). */\nvar FILTER_PROPERTIES = [...FILTERS.map(fvar), ...BACKDROPS.map(bvar)].map((v) => `@property ${v}{syntax:'*';inherits:false}`).join(\"\\n\");\nvar pxN = (n) => `${n}px`;\nvar degN = (n) => `${n}deg`;\nvar lines = (n) => `repeat(${n}, minmax(0, 1fr))`;\nvar span = (n) => `span ${n} / span ${n}`;\nvar propConfig = {\n\tp: spaceP(\"padding\"),\n\tpx: spaceP(\"padding-inline\"),\n\tpy: spaceP(\"padding-block\"),\n\tpt: spaceP(\"padding-top\"),\n\tpr: spaceP(\"padding-right\"),\n\tpb: spaceP(\"padding-bottom\"),\n\tpl: spaceP(\"padding-left\"),\n\tm: spaceP(\"margin\"),\n\tmx: spaceP(\"margin-inline\"),\n\tmy: spaceP(\"margin-block\"),\n\tmt: spaceP(\"margin-top\"),\n\tmr: spaceP(\"margin-right\"),\n\tmb: spaceP(\"margin-bottom\"),\n\tml: spaceP(\"margin-left\"),\n\tgap: spaceP(\"gap\"),\n\tgapX: spaceP(\"column-gap\"),\n\tgapY: spaceP(\"row-gap\"),\n\tw: sizeP(\"width\"),\n\tminW: sizeP(\"min-width\"),\n\tmaxW: sizeP(\"max-width\"),\n\th: sizeYP(\"height\"),\n\tminH: sizeYP(\"min-height\"),\n\tinlineSize: sizeP(\"inline-size\"),\n\tminInlineSize: sizeP(\"min-inline-size\"),\n\tmaxInlineSize: sizeP(\"max-inline-size\"),\n\tblockSize: sizeYP(\"block-size\"),\n\tminBlockSize: sizeYP(\"min-block-size\"),\n\tmaxBlockSize: sizeYP(\"max-block-size\"),\n\tmaxH: sizeYP(\"max-height\"),\n\taspect: {\n\t\tproperties: [\"aspect-ratio\"],\n\t\ttransform: alias({\n\t\t\tsquare: \"1 / 1\",\n\t\t\tvideo: \"16 / 9\"\n\t\t})\n\t},\n\tdisplay: rawP(\"display\"),\n\tposition: rawP(\"position\"),\n\ttop: spaceP(\"top\"),\n\tright: spaceP(\"right\"),\n\tbottom: spaceP(\"bottom\"),\n\tleft: spaceP(\"left\"),\n\tinset: spaceP(\"inset\"),\n\tz: {\n\t\tproperties: [\"z-index\"],\n\t\tscale: zIndices\n\t},\n\toverflow: rawP(\"overflow\"),\n\toverflowX: rawP(\"overflow-x\"),\n\toverflowY: rawP(\"overflow-y\"),\n\tobjectFit: rawP(\"object-fit\"),\n\tobjectPosition: rawP(\"object-position\"),\n\tbreakBefore: rawP(\"break-before\"),\n\tbreakAfter: rawP(\"break-after\"),\n\tbreakInside: rawP(\"break-inside\"),\n\tboxDecoration: rawP(\"box-decoration-break\", \"-webkit-box-decoration-break\"),\n\tcontentVisibility: rawP(\"content-visibility\"),\n\tvisibility: rawP(\"visibility\"),\n\tclip: rawP(\"clip\"),\n\tflexDir: {\n\t\tproperties: [\"flex-direction\"],\n\t\ttransform: alias({\n\t\t\tcol: \"column\",\n\t\t\tcolReverse: \"column-reverse\",\n\t\t\trowReverse: \"row-reverse\"\n\t\t})\n\t},\n\twrap: rawP(\"flex-wrap\"),\n\talign: rawP(\"align-items\"),\n\tjustify: {\n\t\tproperties: [\"justify-content\"],\n\t\ttransform: alias({\n\t\t\tbetween: \"space-between\",\n\t\t\taround: \"space-around\",\n\t\t\tevenly: \"space-evenly\"\n\t\t})\n\t},\n\tself: rawP(\"align-self\"),\n\tgrow: rawP(\"flex-grow\"),\n\tshrink: rawP(\"flex-shrink\"),\n\tbasis: sizeP(\"flex-basis\"),\n\torder: rawP(\"order\"),\n\tcols: {\n\t\tproperties: [\"grid-template-columns\"],\n\t\tnumber: lines\n\t},\n\trows: {\n\t\tproperties: [\"grid-template-rows\"],\n\t\tnumber: lines\n\t},\n\tspan: {\n\t\tproperties: [\"grid-column\"],\n\t\tnumber: span,\n\t\ttransform: (v) => v === \"full\" ? \"1 / -1\" : v\n\t},\n\tspanRows: {\n\t\tproperties: [\"grid-row\"],\n\t\tnumber: span,\n\t\ttransform: (v) => v === \"full\" ? \"1 / -1\" : v\n\t},\n\tplaceItems: rawP(\"place-items\"),\n\tbg: colorP(\"background\"),\n\tcolor: colorP(\"color\"),\n\tborderColor: colorP(\"border-color\"),\n\tborder: borderP(\"border\"),\n\tborderTop: borderP(\"border-top\"),\n\tborderRight: borderP(\"border-right\"),\n\tborderBottom: borderP(\"border-bottom\"),\n\tborderLeft: borderP(\"border-left\"),\n\tborderWidth: {\n\t\tproperties: [\"border-width\"],\n\t\tnumber: px\n\t},\n\tradius: {\n\t\tproperties: [\"border-radius\"],\n\t\tscale: radii,\n\t\tnumber: px\n\t},\n\tradiusTop: {\n\t\tproperties: [\"border-top-left-radius\", \"border-top-right-radius\"],\n\t\tscale: radii,\n\t\tnumber: px\n\t},\n\tradiusBottom: {\n\t\tproperties: [\"border-bottom-left-radius\", \"border-bottom-right-radius\"],\n\t\tscale: radii,\n\t\tnumber: px\n\t},\n\tradiusStart: {\n\t\tproperties: [\"border-start-start-radius\", \"border-end-start-radius\"],\n\t\tscale: radii,\n\t\tnumber: px\n\t},\n\tradiusEnd: {\n\t\tproperties: [\"border-start-end-radius\", \"border-end-end-radius\"],\n\t\tscale: radii,\n\t\tnumber: px\n\t},\n\tshadow: {\n\t\tproperties: [\"box-shadow\"],\n\t\tscale: shadows\n\t},\n\topacity: rawP(\"opacity\"),\n\ttext: {\n\t\tproperties: [\"font-size\"],\n\t\tscale: fontSizes,\n\t\tnumber: px\n\t},\n\tweight: {\n\t\tproperties: [\"font-weight\"],\n\t\tscale: fontWeights\n\t},\n\tfont: {\n\t\tproperties: [\"font-family\"],\n\t\tscale: fonts\n\t},\n\tleading: {\n\t\tproperties: [\"line-height\"],\n\t\tscale: lineHeights\n\t},\n\ttracking: {\n\t\tproperties: [\"letter-spacing\"],\n\t\tscale: letterSpacings\n\t},\n\ttextAlign: rawP(\"text-align\"),\n\ttextTransform: rawP(\"text-transform\"),\n\ttextOverflow: rawP(\"text-overflow\"),\n\tdecoration: rawP(\"text-decoration\"),\n\twhiteSpace: rawP(\"white-space\"),\n\twordBreak: rawP(\"word-break\"),\n\tcursor: rawP(\"cursor\"),\n\tpointerEvents: rawP(\"pointer-events\"),\n\tuserSelect: rawP(\"user-select\"),\n\ttransition: {\n\t\tproperties: [\"transition\"],\n\t\tscale: transitions\n\t},\n\ttransform: rawP(\"transform\"),\n\ttransformStyle: {\n\t\tproperties: [\"transform-style\"],\n\t\ttransform: alias({\n\t\t\t\"3d\": \"preserve-3d\",\n\t\t\tflat: \"flat\"\n\t\t})\n\t},\n\tperspectiveOrigin: rawP(\"perspective-origin\"),\n\ttranslate: rawP(\"translate\"),\n\tskew: {\n\t\tproperties: [\"transform\"],\n\t\tnumber: (n) => `skew(${n}deg)`,\n\t\ttransform: (v) => `skew(${v})`\n\t},\n\tskewX: {\n\t\tproperties: [\"transform\"],\n\t\tnumber: (n) => `skewX(${n}deg)`,\n\t\ttransform: (v) => `skewX(${v})`\n\t},\n\tskewY: {\n\t\tproperties: [\"transform\"],\n\t\tnumber: (n) => `skewY(${n}deg)`,\n\t\ttransform: (v) => `skewY(${v})`\n\t},\n\tzoom: rawP(\"zoom\"),\n\trotate: rawP(\"rotate\"),\n\tscale: rawP(\"scale\"),\n\ttransformOrigin: rawP(\"transform-origin\"),\n\tperspective: rawP(\"perspective\"),\n\tbackface: rawP(\"backface-visibility\"),\n\ttransitionProperty: rawP(\"transition-property\"),\n\ttransitionBehavior: rawP(\"transition-behavior\"),\n\tduration: {\n\t\tproperties: [\"transition-duration\"],\n\t\tnumber: (n) => `${n}ms`\n\t},\n\tease: {\n\t\tproperties: [\"transition-timing-function\"],\n\t\ttransform: alias({\n\t\t\tin: \"cubic-bezier(.4,0,1,1)\",\n\t\t\tout: \"cubic-bezier(0,0,.2,1)\",\n\t\t\tinOut: \"cubic-bezier(.4,0,.2,1)\"\n\t\t})\n\t},\n\tdelay: {\n\t\tproperties: [\"transition-delay\"],\n\t\tnumber: (n) => `${n}ms`\n\t},\n\tanimate: {\n\t\tproperties: [\"animation\"],\n\t\tscale: animations\n\t},\n\twillChange: rawP(\"will-change\"),\n\tps: spaceP(\"padding-inline-start\"),\n\tpe: spaceP(\"padding-inline-end\"),\n\tms: spaceP(\"margin-inline-start\"),\n\tme: spaceP(\"margin-inline-end\"),\n\tstart: spaceP(\"inset-inline-start\"),\n\tend: spaceP(\"inset-inline-end\"),\n\tinsetX: spaceP(\"inset-inline\"),\n\tinsetY: spaceP(\"inset-block\"),\n\tborderStart: borderP(\"border-inline-start\"),\n\tborderEnd: borderP(\"border-inline-end\"),\n\tcontainer: {\n\t\tproperties: [\"container-type\"],\n\t\ttransform: alias({ true: \"inline-size\" })\n\t},\n\tcontainerName: rawP(\"container-name\"),\n\tboxSizing: rawP(\"box-sizing\"),\n\tfloat: rawP(\"float\"),\n\tclear: rawP(\"clear\"),\n\tisolation: rawP(\"isolation\"),\n\toverscroll: rawP(\"overscroll-behavior\"),\n\tcolumns: rawP(\"columns\"),\n\tautoFlow: {\n\t\tproperties: [\"grid-auto-flow\"],\n\t\ttransform: alias({\n\t\t\tcol: \"column\",\n\t\t\tcolDense: \"column dense\",\n\t\t\trowDense: \"row dense\"\n\t\t})\n\t},\n\tautoCols: rawP(\"grid-auto-columns\"),\n\tautoRows: rawP(\"grid-auto-rows\"),\n\tareas: rawP(\"grid-template-areas\"),\n\tarea: rawP(\"grid-area\"),\n\tcolStart: rawP(\"grid-column-start\"),\n\tcolEnd: rawP(\"grid-column-end\"),\n\trowStart: rawP(\"grid-row-start\"),\n\trowEnd: rawP(\"grid-row-end\"),\n\talignContent: {\n\t\tproperties: [\"align-content\"],\n\t\ttransform: alias({\n\t\t\tbetween: \"space-between\",\n\t\t\taround: \"space-around\",\n\t\t\tevenly: \"space-evenly\"\n\t\t})\n\t},\n\tjustifyItems: rawP(\"justify-items\"),\n\tjustifySelf: rawP(\"justify-self\"),\n\tplaceContent: rawP(\"place-content\"),\n\tplaceSelf: rawP(\"place-self\"),\n\tflex: rawP(\"flex\"),\n\tbgImage: rawP(\"background-image\"),\n\tbgGradient: {\n\t\tproperties: [\"background-image\"],\n\t\ttransform: (v) => /^(repeating-)?(linear|radial|conic)-gradient\\(/.test(v) ? v : `linear-gradient(${v})`\n\t},\n\tbgSize: rawP(\"background-size\"),\n\tbgPosition: rawP(\"background-position\"),\n\tbgRepeat: rawP(\"background-repeat\"),\n\tbgClip: {\n\t\tproperties: [\"background-clip\", \"-webkit-background-clip\"],\n\t\ttransform: alias({ text: \"text\" })\n\t},\n\tbgAttachment: rawP(\"background-attachment\"),\n\tbgOrigin: rawP(\"background-origin\"),\n\tblend: rawP(\"mix-blend-mode\"),\n\tbgBlend: rawP(\"background-blend-mode\"),\n\tfilter: rawP(\"filter\"),\n\tblur: filterP(\"blur\", \"blur\", pxN),\n\tbrightness: filterP(\"brightness\", \"brightness\"),\n\tcontrast: filterP(\"contrast\", \"contrast\"),\n\tgrayscale: filterP(\"grayscale\", \"grayscale\"),\n\thueRotate: filterP(\"hueRotate\", \"hue-rotate\", degN),\n\tinvert: filterP(\"invert\", \"invert\"),\n\tsaturate: filterP(\"saturate\", \"saturate\"),\n\tsepia: filterP(\"sepia\", \"sepia\"),\n\tdropShadow: filterP(\"dropShadow\", \"drop-shadow\"),\n\tbackdropFilter: rawP(\"backdrop-filter\", \"-webkit-backdrop-filter\"),\n\tbackdropBlur: backdropP(\"blur\", \"blur\", pxN),\n\tbackdropBrightness: backdropP(\"brightness\", \"brightness\"),\n\tbackdropContrast: backdropP(\"contrast\", \"contrast\"),\n\tbackdropGrayscale: backdropP(\"grayscale\", \"grayscale\"),\n\tbackdropSaturate: backdropP(\"saturate\", \"saturate\"),\n\tbackdropInvert: backdropP(\"invert\", \"invert\"),\n\tbackdropSepia: backdropP(\"sepia\", \"sepia\"),\n\tbackdropOpacity: backdropP(\"opacity\", \"opacity\"),\n\tbackdropHueRotate: backdropP(\"hueRotate\", \"hue-rotate\", degN),\n\tmask: rawP(\"mask\", \"-webkit-mask\"),\n\tmaskImage: rawP(\"mask-image\", \"-webkit-mask-image\"),\n\tmaskClip: rawP(\"mask-clip\", \"-webkit-mask-clip\"),\n\tmaskComposite: rawP(\"mask-composite\", \"-webkit-mask-composite\"),\n\tmaskMode: rawP(\"mask-mode\"),\n\tmaskOrigin: rawP(\"mask-origin\", \"-webkit-mask-origin\"),\n\tmaskPosition: rawP(\"mask-position\", \"-webkit-mask-position\"),\n\tmaskRepeat: rawP(\"mask-repeat\", \"-webkit-mask-repeat\"),\n\tmaskSize: rawP(\"mask-size\", \"-webkit-mask-size\"),\n\tmaskType: rawP(\"mask-type\"),\n\ttextShadow: {\n\t\tproperties: [\"text-shadow\"],\n\t\tscale: textShadows\n\t},\n\toutline: borderP(\"outline\"),\n\toutlineColor: colorP(\"outline-color\"),\n\toutlineOffset: {\n\t\tproperties: [\"outline-offset\"],\n\t\tnumber: px\n\t},\n\tring: {\n\t\tproperties: [\"outline\"],\n\t\tnumber: (n) => `${px(n)} solid var(${colorVar(\"primary\")})`,\n\t\ttransform: (v) => {\n\t\t\tconst c = resolveColor(v);\n\t\t\treturn c !== v ? `2px solid ${c}` : v;\n\t\t}\n\t},\n\tringOffset: {\n\t\tproperties: [\"outline-offset\"],\n\t\tnumber: px\n\t},\n\tborderStyle: rawP(\"border-style\"),\n\tdivide: {\n\t\tproperties: [\"border-color\"],\n\t\tscale: \"color\"\n\t},\n\tfontStyle: rawP(\"font-style\"),\n\tnumeric: {\n\t\tproperties: [\"font-variant-numeric\"],\n\t\ttransform: alias({\n\t\t\ttabular: \"tabular-nums\",\n\t\t\toldstyle: \"oldstyle-nums\",\n\t\t\tslashed: \"slashed-zero\"\n\t\t})\n\t},\n\tfontFeatures: rawP(\"font-feature-settings\"),\n\ttextWrap: rawP(\"text-wrap\"),\n\thyphens: rawP(\"hyphens\"),\n\tindent: spaceP(\"text-indent\"),\n\tunderlineOffset: {\n\t\tproperties: [\"text-underline-offset\"],\n\t\tnumber: px\n\t},\n\tdecorationColor: colorP(\"text-decoration-color\"),\n\tdecorationThickness: {\n\t\tproperties: [\"text-decoration-thickness\"],\n\t\tnumber: px\n\t},\n\tverticalAlign: rawP(\"vertical-align\"),\n\tlistStyle: rawP(\"list-style\"),\n\tlistStyleType: rawP(\"list-style-type\"),\n\tlistStyleImage: rawP(\"list-style-image\"),\n\ttabSize: rawP(\"tab-size\"),\n\tlistStylePosition: rawP(\"list-style-position\"),\n\tfontStretch: rawP(\"font-stretch\"),\n\tsmoothing: {\n\t\tproperties: [\"-webkit-font-smoothing\"],\n\t\tdecl: (v) => v === \"antialiased\" ? \"-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale\" : \"-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto\"\n\t},\n\tdecorationStyle: rawP(\"text-decoration-style\"),\n\toverflowWrap: rawP(\"overflow-wrap\"),\n\tforcedColorAdjust: rawP(\"forced-color-adjust\"),\n\toutlineStyle: rawP(\"outline-style\"),\n\toutlineWidth: {\n\t\tproperties: [\"outline-width\"],\n\t\tnumber: px\n\t},\n\tlineClamp: {\n\t\tproperties: [\"-webkit-line-clamp\"],\n\t\tdecl: (v) => `display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:${v};line-clamp:${v};overflow:hidden`\n\t},\n\tcontent: rawP(\"content\"),\n\taccent: colorP(\"accent-color\"),\n\tcaret: colorP(\"caret-color\"),\n\tcolorScheme: rawP(\"color-scheme\"),\n\tappearance: rawP(\"appearance\"),\n\tresize: rawP(\"resize\"),\n\ttouchAction: rawP(\"touch-action\"),\n\tscrollBehavior: rawP(\"scroll-behavior\"),\n\tscrollMargin: spaceP(\"scroll-margin\"),\n\tscrollPadding: spaceP(\"scroll-padding\"),\n\tsnapType: rawP(\"scroll-snap-type\"),\n\tsnapAlign: rawP(\"scroll-snap-align\"),\n\tsnapStop: rawP(\"scroll-snap-stop\"),\n\tscrollbarColor: rawP(\"scrollbar-color\"),\n\tscrollbarWidth: rawP(\"scrollbar-width\"),\n\tscrollbarGutter: rawP(\"scrollbar-gutter\"),\n\tfieldSizing: rawP(\"field-sizing\"),\n\ttableLayout: rawP(\"table-layout\"),\n\tborderCollapse: rawP(\"border-collapse\"),\n\tborderSpacing: spaceP(\"border-spacing\"),\n\tcaptionSide: rawP(\"caption-side\"),\n\tfill: colorP(\"fill\"),\n\tstroke: colorP(\"stroke\"),\n\tstrokeWidth: rawP(\"stroke-width\")\n};\n/** Token names allowed per scale — used for \"did you mean\" hints. */\nfunction scaleKeys(cfg) {\n\tif (cfg.scale === \"color\") return [...Object.keys(semanticColors)];\n\treturn cfg.scale ? Object.keys(cfg.scale) : [];\n}\n// sobagu/packages/core/src/dev.ts\nvar enabled = (() => {\n\treturn (globalThis.process?.env)?.NODE_ENV !== \"production\";\n})();\n/** Turn dev warnings on or off (they're on unless NODE_ENV is \"production\"). */\nfunction setDevWarnings(on) {\n\tenabled = on;\n}\nvar said = /* @__PURE__ */ new Set();\nfunction warn(message) {\n\tif (!enabled || said.has(message)) return;\n\tsaid.add(message);\n\tconsole.warn(`[sobagu] ${message}`);\n}\nfunction distance(a, b) {\n\tconst d = Array.from({ length: a.length + 1 }, (_, i) => [i, ...Array(b.length).fill(0)]);\n\tfor (let j = 1; j <= b.length; j++) d[0][j] = j;\n\tfor (let i = 1; i <= a.length; i++) for (let j = 1; j <= b.length; j++) d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1));\n\treturn d[a.length][b.length];\n}\n/** Closest candidate within an edit distance of `max` (default 2), if any. */\nfunction suggest(input, candidates, max = 2) {\n\tlet best;\n\tlet bestD = max + 1;\n\tfor (const c of candidates) {\n\t\tconst dd = distance(input.toLowerCase(), c.toLowerCase());\n\t\tif (dd < bestD) [best, bestD] = [c, dd];\n\t}\n\treturn best;\n}\nvar hint = (s) => s ? ` Did you mean '${s}'?` : \"\";\n// sobagu/packages/core/src/shortcuts.ts\n/**\n* Boolean shortcuts for the layouts people write every day.\n* <Box center> · <Box card> · <Stack row> · <Text muted>\n* Explicit props always win over a shortcut: <Box card p=\"sm\"> keeps the card but with small padding.\n*/\nvar shortcuts = {\n\tcenter: {\n\t\tdisplay: \"flex\",\n\t\talign: \"center\",\n\t\tjustify: \"center\"\n\t},\n\trow: {\n\t\tdisplay: \"flex\",\n\t\tflexDir: \"row\"\n\t},\n\tcol: {\n\t\tdisplay: \"flex\",\n\t\tflexDir: \"col\"\n\t},\n\tcard: {\n\t\tbg: \"surface\",\n\t\tp: \"lg\",\n\t\tradius: \"lg\",\n\t\tshadow: \"sm\",\n\t\tborder: \"border\"\n\t},\n\tmuted: { color: \"muted\" },\n\tfull: {\n\t\tw: \"full\",\n\t\th: \"full\"\n\t},\n\ttruncate: {\n\t\toverflow: \"hidden\",\n\t\ttextOverflow: \"ellipsis\",\n\t\twhiteSpace: \"nowrap\"\n\t},\n\tsrOnly: {\n\t\tposition: \"absolute\",\n\t\tw: \"1px\",\n\t\th: \"1px\",\n\t\tp: 0,\n\t\tm: \"-1px\",\n\t\toverflow: \"hidden\",\n\t\tclip: \"rect(0, 0, 0, 0)\",\n\t\twhiteSpace: \"nowrap\",\n\t\tborderWidth: 0\n\t},\n\t/** Readable long-form content (Markdown, CMS, blog posts): <Box as=\"article\" prose>. */\n\tprose: {\n\t\tcolor: \"text\",\n\t\tleading: \"relaxed\",\n\t\tmaxW: \"prose\",\n\t\t\"& :where(h1)\": {\n\t\t\ttext: \"3xl\",\n\t\t\tweight: \"bold\",\n\t\t\tleading: \"tight\",\n\t\t\tmt: \"xl\",\n\t\t\tmb: \"md\"\n\t\t},\n\t\t\"& :where(h2)\": {\n\t\t\ttext: \"2xl\",\n\t\t\tweight: \"bold\",\n\t\t\tleading: \"snug\",\n\t\t\tmt: \"xl\",\n\t\t\tmb: \"sm\"\n\t\t},\n\t\t\"& :where(h3)\": {\n\t\t\ttext: \"xl\",\n\t\t\tweight: \"semibold\",\n\t\t\tleading: \"snug\",\n\t\t\tmt: \"lg\",\n\t\t\tmb: \"xs\"\n\t\t},\n\t\t\"& :where(h4, h5, h6)\": {\n\t\t\tweight: \"semibold\",\n\t\t\tmt: \"md\",\n\t\t\tmb: \"xs\"\n\t\t},\n\t\t\"& :where(p, ul, ol, blockquote, pre, table, figure)\": { my: \"md\" },\n\t\t\"& :where(a)\": {\n\t\t\tcolor: \"primary\",\n\t\t\tdecoration: \"underline\",\n\t\t\tunderlineOffset: 2\n\t\t},\n\t\t\"& :where(strong)\": { weight: \"semibold\" },\n\t\t\"& :where(ul, ol)\": { ps: \"lg\" },\n\t\t\"& :where(li)\": { my: \"2xs\" },\n\t\t\"& :where(li::marker)\": { color: \"muted\" },\n\t\t\"& :where(code)\": {\n\t\t\tfont: \"mono\",\n\t\t\ttext: \"0.9em\",\n\t\t\tbg: \"surfaceAlt\",\n\t\t\tpx: \"2xs\",\n\t\t\tradius: \"sm\"\n\t\t},\n\t\t\"& :where(pre)\": {\n\t\t\tfont: \"mono\",\n\t\t\ttext: \"sm\",\n\t\t\tbg: \"surfaceAlt\",\n\t\t\tp: \"md\",\n\t\t\tradius: \"md\",\n\t\t\toverflowX: \"auto\",\n\t\t\tleading: \"normal\"\n\t\t},\n\t\t\"& :where(pre code)\": {\n\t\t\tbg: \"transparent\",\n\t\t\tp: 0\n\t\t},\n\t\t\"& :where(blockquote)\": {\n\t\t\tborderStart: \"primary\",\n\t\t\tps: \"md\",\n\t\t\tcolor: \"muted\",\n\t\t\tfontStyle: \"italic\"\n\t\t},\n\t\t\"& :where(img, video)\": { radius: \"md\" },\n\t\t\"& :where(figcaption)\": {\n\t\t\ttext: \"sm\",\n\t\t\tcolor: \"muted\",\n\t\t\tmt: \"xs\"\n\t\t},\n\t\t\"& :where(hr)\": {\n\t\t\tborder: \"none\",\n\t\t\tborderTop: \"border\",\n\t\t\tmy: \"xl\"\n\t\t},\n\t\t\"& :where(table)\": {\n\t\t\tw: \"full\",\n\t\t\tborderCollapse: \"collapse\",\n\t\t\ttext: \"sm\"\n\t\t},\n\t\t\"& :where(th, td)\": {\n\t\t\tp: \"sm\",\n\t\t\tborderBottom: \"border\",\n\t\t\ttextAlign: \"start\"\n\t\t},\n\t\t\"& :where(th)\": { weight: \"semibold\" },\n\t\t\"& > :where(:first-child)\": { mt: 0 }\n\t},\n\t/** Consistent text inputs, selects and textareas: <Box as=\"input\" input>. */\n\tinput: {\n\t\tappearance: \"none\",\n\t\tw: \"full\",\n\t\tpx: \"sm\",\n\t\tpy: \"xs\",\n\t\tbg: \"surface\",\n\t\tcolor: \"text\",\n\t\tborder: \"borderStrong\",\n\t\tradius: \"md\",\n\t\tleading: \"normal\",\n\t\ttransition: \"fast\",\n\t\t_placeholder: { color: \"muted\" },\n\t\thover: { borderColor: \"muted\" },\n\t\tfocusVisible: {\n\t\t\tring: \"primary\",\n\t\t\tringOffset: 1,\n\t\t\tborderColor: \"primary\"\n\t\t},\n\t\t_disabled: {\n\t\t\topacity: .6,\n\t\t\tcursor: \"not-allowed\"\n\t\t},\n\t\tinvalid: { borderColor: \"danger\" },\n\t\tariaInvalid: { borderColor: \"danger\" }\n\t}\n};\n// sobagu/packages/core/src/plugins.ts\n/** The live registry css() reads from: built-ins plus every plugin added with use(). */\nvar registry = {\n\tprops: { ...propConfig },\n\tconditions: { ...conditions },\n\tshortcuts: { ...shortcuts }\n};\nvar installed = /* @__PURE__ */ new Set();\n/** Add a plugin. Adding the same plugin name twice does nothing. */\nfunction use(...list) {\n\tfor (const p of list) {\n\t\tif (installed.has(p.name)) continue;\n\t\tinstalled.add(p.name);\n\t\tObject.assign(registry.props, p.props);\n\t\tObject.assign(registry.conditions, p.conditions);\n\t\tObject.assign(registry.shortcuts, p.shortcuts);\n\t}\n}\n/** Typed helper for writing plugins. */\nvar definePlugin = (p) => p;\n// sobagu/packages/core/src/sheet.ts\n/** Class put in every compiler-built stylesheet so the runtime can recognise it. */\nvar STATIC_MARKER = \".sb-static\";\nvar staticMarkerCss = inLayer(\"utilities\", `${STATIC_MARKER}{--sb-static:1}`);\n/**\n* Stores the generated CSS in ordered buckets so that the cascade is predictable:\n* base < states < dark < breakpoints (small → large). In the browser, each bucket gets its own\n* <style data-sobagu=\"N\"> element, kept in bucket order. Outside a browser (SSR, tests), use getCssText().\n*/\nvar Sheet = class {\n\tbuckets = /* @__PURE__ */ new Map();\n\tseen = /* @__PURE__ */ new Set();\n\tels = /* @__PURE__ */ new Map();\n\tglobalsDone = false;\n\t/** getCssText() result, kept until the next rule is added or the sheet is reset. */\n\ttext;\n\thas(key) {\n\t\tthis.ensureGlobals();\n\t\treturn this.seen.has(key);\n\t}\n\tinsert(bucket, key, rules) {\n\t\tif (this.seen.has(key)) return;\n\t\tthis.seen.add(key);\n\t\tthis.ensureGlobals();\n\t\tthis.add(bucket, rules);\n\t}\n\t/** Add a global block (e.g. @keyframes) once, before the utilities. */\n\tglobal(key, css) {\n\t\tthis.insert(-.8, key, [css]);\n\t}\n\tgetCssText() {\n\t\tthis.ensureGlobals();\n\t\treturn this.text ??= [...this.buckets.entries()].sort((a, b) => a[0] - b[0]).map(([, rules]) => rules.join(\"\\n\")).join(\"\\n\");\n\t}\n\t/** Test helper: forget everything and remove injected <style> elements. */\n\treset() {\n\t\tfor (const el of this.els.values()) el.remove();\n\t\tthis.buckets.clear();\n\t\tthis.seen.clear();\n\t\tthis.els.clear();\n\t\tthis.globalsDone = false;\n\t\tthis.text = void 0;\n\t}\n\tensureGlobals() {\n\t\tif (this.globalsDone) return;\n\t\tthis.globalsDone = true;\n\t\tif (this.adoptStatic()) return;\n\t\tthis.add(-1, [\n\t\t\tLAYERS,\n\t\t\tFILTER_PROPERTIES,\n\t\t\tthemeCss(),\n\t\t\tinLayer(\"reset\", resetCss())\n\t\t]);\n\t}\n\t/**\n\t* Look for a pre-built Sobagu stylesheet (it contains the `.sb-static` marker). If there is one, remember\n\t* its class names so they are never injected again. Returns true when one was found.\n\t*/\n\tadoptStatic() {\n\t\tif (typeof document === \"undefined\") return false;\n\t\tlet found = false;\n\t\tconst collect = (text) => {\n\t\t\tif (!text.includes(\".sb-static\")) return;\n\t\t\tfound = true;\n\t\t\tfor (const m of text.matchAll(/\\.(sb-[A-Za-z0-9_-]+)/g)) this.seen.add(m[1]);\n\t\t};\n\t\tfor (const el of Array.from(document.querySelectorAll(\"style\"))) if (!el.hasAttribute(\"data-sobagu\")) collect(el.textContent ?? \"\");\n\t\tfor (const s of Array.from(document.styleSheets ?? [])) {\n\t\t\tif (s.ownerNode instanceof HTMLStyleElement) continue;\n\t\t\ttry {\n\t\t\t\tcollect(Array.from(s.cssRules).map((r) => r.cssText).join(\"\\n\"));\n\t\t\t} catch {}\n\t\t}\n\t\treturn found;\n\t}\n\tadd(bucket, rules) {\n\t\tlet list = this.buckets.get(bucket);\n\t\tif (!list) this.buckets.set(bucket, list = []);\n\t\tlist.push(...rules);\n\t\tthis.text = void 0;\n\t\tif (typeof document === \"undefined\") return;\n\t\tconst el = this.element(bucket);\n\t\tfor (const rule of rules) el.appendChild(document.createTextNode(rule + \"\\n\"));\n\t}\n\telement(bucket) {\n\t\tconst found = this.els.get(bucket);\n\t\tif (found) return found;\n\t\tconst el = document.createElement(\"style\");\n\t\tel.setAttribute(\"data-sobagu\", String(bucket));\n\t\tlet next;\n\t\tlet nextBucket = Infinity;\n\t\tfor (const [b, e] of this.els) if (b > bucket && b < nextBucket) [next, nextBucket] = [e, b];\n\t\tif (next) next.before(el);\n\t\telse document.head.appendChild(el);\n\t\tthis.els.set(bucket, el);\n\t\treturn el;\n\t}\n};\nvar sheet = new Sheet();\n/** All CSS generated so far (theme + reset + utilities). Use it for server-side rendering. */\nvar getCssText = () => sheet.getCssText();\nvar resetStyles = () => sheet.reset();\n// sobagu/packages/core/src/css.ts\nvar isObject = (v) => typeof v === \"object\" && v !== null && !Array.isArray(v);\nvar has = (o, k) => Object.prototype.hasOwnProperty.call(o, k);\nvar props = () => registry.props;\nvar conds = () => registry.conditions;\nvar shorts = () => registry.shortcuts;\nvar isMarker = (k) => markers.includes(k);\nvar styleNames = () => [\n\t...Object.keys(props()),\n\t...Object.keys(conds()),\n\t...Object.keys(shorts()),\n\t...markers\n];\n/** True when `key` names a condition (built-in, plugin, or a raw '&…' / '@…' key). */\nfunction isCondition(key) {\n\treturn has(conds(), key) || isRawSelector(key) || isRawAt(key);\n}\n/**\n* True when a component prop is a style prop rather than an HTML attribute.\n* Conditions count only with object values, shortcuts and markers only with booleans, so an\n* attribute that happens to share a name never gets swallowed as styling.\n*/\nfunction isStyleProp(key, value) {\n\tif (has(props(), key)) return true;\n\tif (isCondition(key)) return isObject(value);\n\tif (has(shorts(), key) || isMarker(key)) return typeof value === \"boolean\";\n\treturn false;\n}\nfunction deepAssign(target, src) {\n\tfor (const k of Object.keys(src)) {\n\t\tconst v = src[k];\n\t\tconst cur = target[k];\n\t\ttarget[k] = isObject(v) && isObject(cur) ? deepAssign({ ...cur }, v) : isObject(v) ? deepAssign({}, v) : v;\n\t}\n\treturn target;\n}\n/** Expand shortcuts first, then explicit props, so explicit props always win. */\nfunction expand(style) {\n\tconst s = shorts();\n\tconst out = {};\n\tconst keys = Object.keys(style);\n\tfor (const k of keys) if (style[k] === true && has(s, k)) deepAssign(out, expand(s[k]));\n\tfor (const k of keys) {\n\t\tconst v = style[k];\n\t\tif (v === void 0 || v === null) continue;\n\t\tif (typeof v === \"boolean\" && has(s, k)) continue;\n\t\tif (isObject(v) && isCondition(k)) out[k] = deepAssign(isObject(out[k]) ? out[k] : {}, expand(v));\n\t\telse out[k] = v;\n\t}\n\treturn out;\n}\nvar root = {\n\tselectors: [],\n\twrappers: [],\n\tmedia: 0,\n\tcontainer: 0,\n\tother: 0,\n\tstate: 0,\n\tdark: false,\n\thead: \"sb-\",\n\tkids: /* @__PURE__ */ new Map(),\n\tnames: /* @__PURE__ */ new Map()\n};\n/** FNV-1a → short base-36 string, for values that aren't class-name safe. */\nfunction hash$1(s) {\n\tlet h = 2166136261;\n\tfor (let i = 0; i < s.length; i++) h = Math.imul(h ^ s.charCodeAt(i), 16777619);\n\treturn (h >>> 0).toString(36);\n}\nvar slug = (v) => /^[A-Za-z0-9-]+$/.test(v) ? v : hash$1(v);\n/** The context inside condition `name`, built once per parent context and reused while its definition is unchanged. */\nfunction enter(ctx, name) {\n\tconst def = isRawSelector(name) || isRawAt(name) ? void 0 : conds()[name];\n\tconst known = ctx.kids.get(name);\n\tif (known && known.def === def) return known.ctx;\n\tconst next = build(ctx, name);\n\tctx.kids.set(name, {\n\t\tdef,\n\t\tctx: next\n\t});\n\treturn next;\n}\nfunction build(ctx, name) {\n\tconst part = /^[A-Za-z0-9_-]+$/.test(name) ? name : hash$1(name);\n\tconst next = {\n\t\t...ctx,\n\t\thead: `${ctx.head}${part}_`,\n\t\tkids: /* @__PURE__ */ new Map(),\n\t\tnames: /* @__PURE__ */ new Map()\n\t};\n\tif (isRawSelector(name)) {\n\t\tnext.selectors = [...ctx.selectors, {\n\t\t\ttemplate: name,\n\t\t\telement: /::/.test(name)\n\t\t}];\n\t\tnext.state = Math.max(ctx.state, 59);\n\t\treturn next;\n\t}\n\tif (isRawAt(name)) {\n\t\tnext.wrappers = [...ctx.wrappers, name];\n\t\tnext.other = Math.max(ctx.other, 9);\n\t\treturn next;\n\t}\n\tconst def = conds()[name];\n\tif (def.kind === \"selector\") {\n\t\tnext.selectors = [...ctx.selectors, {\n\t\t\ttemplate: def.template,\n\t\t\telement: !!def.element\n\t\t}];\n\t\tnext.state = Math.max(ctx.state, def.rank);\n\t} else if (def.kind === \"at\") {\n\t\tnext.wrappers = [...ctx.wrappers, def.prelude];\n\t\tif (def.group === \"media\") next.media = Math.max(ctx.media, def.rank);\n\t\telse if (def.group === \"container\") next.container = Math.max(ctx.container, def.rank);\n\t\telse next.other = Math.max(ctx.other, def.rank);\n\t} else next.dark = true;\n\treturn next;\n}\nvar KEYWORDS = /* @__PURE__ */ new Set([\n\t\"auto\",\n\t\"inherit\",\n\t\"initial\",\n\t\"unset\",\n\t\"revert\",\n\t\"none\",\n\t\"normal\",\n\t\"currentColor\",\n\t\"transparent\"\n]);\nfunction resolve(key, cfg, value) {\n\tif (typeof value === \"number\") return cfg.number ? cfg.number(value) : String(value);\n\tif (cfg.scale === \"color\") {\n\t\tconst c = resolveColor(value);\n\t\tif (c === value && /^[a-z][a-zA-Z]*$/.test(value) && !KEYWORDS.has(value)) {\n\t\t\tconst supports = globalThis.CSS?.supports;\n\t\t\tif (supports && !supports(\"color\", value)) warn(`Unknown colour '${value}' for '${key}'.${hint(suggest(value, scaleKeys(cfg)))}`);\n\t\t}\n\t\treturn cfg.transform ? cfg.transform(c) : c;\n\t}\n\tif (cfg.scale && has(cfg.scale, value)) return cfg.scale[value];\n\tif (cfg.scale && /^[a-z][a-zA-Z0-9]*$/.test(value) && !KEYWORDS.has(value) && !cfg.transform) {\n\t\tconst s = suggest(value, scaleKeys(cfg));\n\t\tif (s) warn(`Unknown token '${value}' for '${key}'.${hint(s)}`);\n\t}\n\treturn cfg.transform ? cfg.transform(value) : value;\n}\nfunction selectorFor(cls, ctx) {\n\tconst ordered = [...ctx.selectors.filter((s) => !s.element), ...ctx.selectors.filter((s) => s.element)];\n\tconst weight = 1 + ctx.media + (ctx.container ? 1 : 0) + (ctx.other ? 1 : 0);\n\treturn ordered.reduce((acc, s) => s.template.split(\"&\").join(acc), `.${cls}`.repeat(weight));\n}\nvar wrap = (wrappers, rule) => wrappers.reduceRight((inner, w) => `${w}{${inner}}`, rule);\n/** The class for `key: value` in `ctx`: its head + \"key-slug\". Cached: it depends only on the names. */\nfunction className(key, value, ctx) {\n\tlet byValue = ctx.names.get(key);\n\tif (!byValue) ctx.names.set(key, byValue = /* @__PURE__ */ new Map());\n\tlet cls = byValue.get(value);\n\tif (cls === void 0) byValue.set(value, cls = `${ctx.head}${key}-${slug(String(value))}`);\n\treturn cls;\n}\n/** Standard CSS property names in camelCase, vendor-free: boxShadow, strokeDasharray, all. */\nvar CSS_NAME = /^[a-z]+(?:[A-Z][a-z]+)*$/;\nvar raws = /* @__PURE__ */ new Map();\n/**\n* Config for a CSS property with no style prop of its own: one raw declaration, kebab-cased.\n* Properties ending in Color still take colour tokens. Warns (once) when the name looks invalid.\n*/\nfunction rawProp(key) {\n\tlet cfg = raws.get(key);\n\tif (cfg) return cfg;\n\tconst name = key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`);\n\traws.set(key, cfg = /Color$/.test(key) ? {\n\t\tproperties: [name],\n\t\tscale: \"color\"\n\t} : { properties: [name] });\n\tconst supports = globalThis.CSS?.supports;\n\tconst near = key.length > 2 ? suggest(key, styleNames(), 1) : void 0;\n\tconst typo = near !== void 0 && near.length !== key.length;\n\tif (supports ? !supports(name, \"initial\") : typo) warn(`Unknown style prop '${key}'.${hint(near)}`);\n\treturn cfg;\n}\nfunction emit(key, value, ctx, out) {\n\tconst cls = className(key, value, ctx);\n\tout.add(cls);\n\tif (sheet.has(cls)) return;\n\tconst cfg = props()[key] ?? rawProp(key);\n\tconst css = resolve(key, cfg, value);\n\tconst decl = cfg.decl ? cfg.decl(css) : cfg.properties.map((p) => `${p}:${css}`).join(\";\");\n\tconst sel = selectorFor(cls, ctx);\n\tconst rules = ctx.dark ? [wrap(ctx.wrappers, `[data-theme=\"dark\"] ${sel}{${decl}}`), wrap([...ctx.wrappers, \"@media (prefers-color-scheme: dark)\"], `:root:not([data-theme=\"light\"]) ${sel}{${decl}}`)] : [wrap(ctx.wrappers, `${sel}{${decl}}`)];\n\tconst bucket = ctx.media * 1e5 + ctx.container * 1e4 + ctx.other * 1e3 + (ctx.dark ? 500 : 0) + ctx.state;\n\tsheet.insert(bucket, cls, rules.map((r) => inLayer(\"utilities\", r)));\n}\nvar PSEUDO_CONTENT = /* @__PURE__ */ new Set([\"before\", \"after\"]);\nfunction walk(style, ctx, out) {\n\tconst p = props();\n\tfor (const k of Object.keys(style)) {\n\t\tconst v = style[k];\n\t\tif (v === void 0 || v === null || v === false || v === \"\") continue;\n\t\tif (v === true && isMarker(k)) out.add(`sb-${k}`);\n\t\telse if (isObject(v) && isCondition(k)) walk(PSEUDO_CONTENT.has(k) && !has(v, \"content\") ? {\n\t\t\tcontent: \"\\\"\\\"\",\n\t\t\t...v\n\t\t} : v, enter(ctx, k), out);\n\t\telse if ((typeof v === \"string\" || typeof v === \"number\") && (has(p, k) || CSS_NAME.test(k))) emit(k, v, ctx, out);\n\t\telse if (!has(p, k)) warn(`Unknown style prop '${k}'.${hint(suggest(k, styleNames()))}`);\n\t}\n}\n/**\n* Turn style objects into atomic class names. Later objects win.\n* css({ p: 'md', bg: 'surface', hover: { shadow: 'lg' }, md: { p: 'lg' } }) → \"sb-p-md sb-bg-surface …\"\n*/\nfunction css(...styles) {\n\tlet merged;\n\tfor (const s of styles) if (s) merged = merged ? deepAssign(merged, expand(s)) : expand(s);\n\tif (!merged) return \"\";\n\tconst out = /* @__PURE__ */ new Set();\n\twalk(merged, root, out);\n\tlet classes = \"\";\n\tfor (const cls of out) classes = classes ? `${classes} ${cls}` : cls;\n\treturn classes;\n}\n/** Join class names, skipping falsy values. */\nfunction cx(...names) {\n\treturn names.filter(Boolean).join(\" \");\n}\n// sobagu/packages/core/src/recipe.ts\nvar key = (v) => typeof v === \"boolean\" ? String(v) : v;\nfunction pick(config, props = {}) {\n\tconst chosen = {};\n\tfor (const name of Object.keys(config.variants ?? {})) chosen[name] = key(props[name] ?? config.defaultVariants?.[name]);\n\treturn chosen;\n}\nfunction matches(chosen, cond) {\n\treturn Object.entries(cond).every(([k, v]) => k === \"style\" || chosen[k] === key(v));\n}\n/**\n* A reusable, variant-driven style:\n* const button = recipe({ base: { px: 'md' }, variants: { tone: { solid: { bg: 'primary' }, ghost: {} } } })\n* button({ tone: 'solid' }) → \"sb-px-md sb-bg-primary\"\n*/\nfunction recipe(config) {\n\tconst fn = ((props) => {\n\t\tconst chosen = pick(config, props);\n\t\tconst parts = [config.base ?? {}];\n\t\tfor (const [name, value] of Object.entries(chosen)) {\n\t\t\tconst style = value !== void 0 ? config.variants?.[name]?.[value] : void 0;\n\t\t\tif (style) parts.push(style);\n\t\t}\n\t\tfor (const cv of config.compoundVariants ?? []) if (matches(chosen, cv)) parts.push(cv.style);\n\t\treturn cx(css(...parts), props?.class, props?.className);\n\t});\n\tfn.variantKeys = Object.keys(config.variants ?? {});\n\tfn.config = config;\n\treturn fn;\n}\n/**\n* A recipe for multi-part components. Returns a class name per slot:\n* const card = slotRecipe({ slots: ['root', 'title'], base: { root: { p: 'lg' }, title: { weight: 'bold' } } })\n* card().root, card().title\n*/\nfunction slotRecipe(config) {\n\tconst fn = (props = {}) => {\n\t\tconst chosen = {};\n\t\tfor (const name of Object.keys(config.variants ?? {})) chosen[name] = key(props[name] ?? config.defaultVariants?.[name]);\n\t\tconst out = {};\n\t\tfor (const slot of config.slots) {\n\t\t\tconst parts = [config.base?.[slot] ?? {}];\n\t\t\tfor (const [name, value] of Object.entries(chosen)) {\n\t\t\t\tconst s = value !== void 0 ? config.variants?.[name]?.[value]?.[slot] : void 0;\n\t\t\t\tif (s) parts.push(s);\n\t\t\t}\n\t\t\tfor (const cv of config.compoundVariants ?? []) if (matches(chosen, cv) && cv.style[slot]) parts.push(cv.style[slot]);\n\t\t\tout[slot] = css(...parts);\n\t\t}\n\t\treturn out;\n\t};\n\treturn Object.assign(fn, { variantKeys: Object.keys(config.variants ?? {}) });\n}\n// sobagu/packages/core/src/color.ts\nvar clamp01 = (x) => Math.min(1, Math.max(0, x));\nvar toLinear = (c) => c <= .04045 ? c / 12.92 : ((c + .055) / 1.055) ** 2.4;\nvar toGamma = (c) => c <= .0031308 ? 12.92 * c : 1.055 * c ** (1 / 2.4) - .055;\n/** '#7c3aed' or '#7c3' → [r, g, b] in 0..1 */\nfunction parseHex(hex) {\n\tlet h = hex.trim().replace(/^#/, \"\");\n\tif (h.length === 3) h = [...h].map((x) => x + x).join(\"\");\n\tif (!/^[0-9a-f]{6}$/i.test(h)) throw new Error(`Invalid hex colour: ${hex}`);\n\treturn [\n\t\t0,\n\t\t2,\n\t\t4\n\t].map((i) => parseInt(h.slice(i, i + 2), 16) / 255);\n}\nfunction rgbToOklch([r, g, b]) {\n\tconst [lr, lg, lb] = [\n\t\ttoLinear(r),\n\t\ttoLinear(g),\n\t\ttoLinear(b)\n\t];\n\tconst l = Math.cbrt(.4122214708 * lr + .5363325363 * lg + .0514459929 * lb);\n\tconst m = Math.cbrt(.2119034982 * lr + .6806995451 * lg + .1073969566 * lb);\n\tconst s = Math.cbrt(.0883024619 * lr + .2817188376 * lg + .6299787005 * lb);\n\tconst L = .2104542553 * l + .793617785 * m - .0040720468 * s;\n\tconst A = 1.9779984951 * l - 2.428592205 * m + .4505937099 * s;\n\tconst B = .0259040371 * l + .7827717662 * m - .808675766 * s;\n\treturn {\n\t\tl: L,\n\t\tc: Math.sqrt(A * A + B * B),\n\t\th: (Math.atan2(B, A) * 180 / Math.PI + 360) % 360\n\t};\n}\nfunction oklchToRgb({ l, c, h }) {\n\tconst hr = h * Math.PI / 180;\n\tconst A = c * Math.cos(hr);\n\tconst B = c * Math.sin(hr);\n\tconst l_ = (l + .3963377774 * A + .2158037573 * B) ** 3;\n\tconst m_ = (l - .1055613458 * A - .0638541728 * B) ** 3;\n\tconst s_ = (l - .0894841775 * A - 1.291485548 * B) ** 3;\n\tconst r = 4.0767416621 * l_ - 3.3077115913 * m_ + .2309699292 * s_;\n\tconst g = -1.2684380046 * l_ + 2.6097574011 * m_ - .3413193965 * s_;\n\tconst b = -.0041960863 * l_ - .7034186147 * m_ + 1.707614701 * s_;\n\treturn [\n\t\tclamp01(toGamma(r)),\n\t\tclamp01(toGamma(g)),\n\t\tclamp01(toGamma(b))\n\t];\n}\n/** WCAG 2 relative luminance of an sRGB colour (0..1 channels). */\nfunction luminance([r, g, b]) {\n\treturn .2126 * toLinear(r) + .7152 * toLinear(g) + .0722 * toLinear(b);\n}\n/** WCAG 2 contrast ratio between two colours (1..21). Accepts hex strings or OKLCH objects. */\nfunction contrastRatio(a, b) {\n\tconst rgb = (x) => typeof x === \"string\" ? parseHex(x) : oklchToRgb(x);\n\tconst [la, lb] = [luminance(rgb(a)), luminance(rgb(b))];\n\tconst [hi, lo] = la > lb ? [la, lb] : [lb, la];\n\treturn (hi + .05) / (lo + .05);\n}\nvar oklchCss = ({ l, c, h }) => `oklch(${+l.toFixed(4)} ${+c.toFixed(4)} ${+h.toFixed(2)})`;\n// sobagu/packages/core/src/create-theme.ts\n/** Corner scale factors: radius tokens (xs…2xl) are multiplied by these. */\nvar radiusFactors = {\n\tsharp: .25,\n\tsoft: 1,\n\tround: 2\n};\n/** Spacing scale factors: space tokens (2xs…4xl) are multiplied by these. */\nvar densityFactors = {\n\tcompact: .75,\n\tcomfortable: 1,\n\tspacious: 1.25\n};\n/** Neutral tints as [hue, chroma] for the grey ramp behind canvas, surfaces, borders and text ('tinted' takes the brand hue). */\nvar neutralTints = {\n\tplain: [0, 0],\n\tcool: [250, .04],\n\twarm: [65, .04],\n\ttinted: [-1, .05]\n};\nvar toOklch = (v) => typeof v === \"number\" ? {\n\tl: .6,\n\tc: .18,\n\th: (v % 360 + 360) % 360\n} : rgbToOklch(parseHex(v));\nfunction scale(base) {\n\tconst c = Math.min(Math.max(base.c, .04), .3);\n\tconst out = {};\n\tsteps.forEach((step, i) => out[step] = {\n\t\tl: lightness[i],\n\t\tc: c * chromaCurve[i],\n\t\th: base.h\n\t});\n\treturn out;\n}\nvar WHITE = {\n\tl: 1,\n\tc: 0,\n\th: 0\n};\nvar INK = {\n\tl: .2,\n\tc: .01,\n\th: 255\n};\nvar bestOn = (bg) => contrastRatio(WHITE, bg) >= contrastRatio(INK, bg) ? WHITE : INK;\n/**\n* Generate a full theme from one brand colour: an 11-step palette, primary / primaryHover / onPrimary\n* (and accent) for light and dark mode, with readable text colours chosen by WCAG contrast.\n*/\nfunction createTheme(options) {\n\tconst name = options.name ?? \"default\";\n\tconst selector = options.name ? `[data-sb-theme=\"${options.name}\"]` : \":root\";\n\tconst brand = scale(toOklch(options.brand));\n\tconst palette = Object.fromEntries(steps.map((s) => [s, oklchCss(brand[s])]));\n\tconst lightPrimary = brand[600];\n\tconst darkPrimary = brand[400];\n\tconst onLight = bestOn(lightPrimary);\n\tconst onDark = bestOn(darkPrimary);\n\tconst v = (s) => `var(--sb-brand-${name}-${s})`;\n\tconst decls = [\n\t\t...steps.map((s) => `--sb-brand-${name}-${s}:${palette[s]}`),\n\t\t`${colorVar(\"primary\")}:light-dark(${v(600)}, ${v(400)})`,\n\t\t`${colorVar(\"primaryHover\")}:light-dark(${v(700)}, ${v(300)})`,\n\t\t`${colorVar(\"onPrimary\")}:light-dark(${oklchCss(onLight)}, ${oklchCss(onDark)})`\n\t];\n\tconst style = [];\n\tconst factor = (o, table, scaleVar, k, tokens) => {\n\t\tif (o === void 0) return;\n\t\tconst f = typeof o === \"number\" ? o : table[o];\n\t\tstyle.push(`--sb-${scaleVar}:${f}`);\n\t\tfor (const [t, px] of Object.entries(tokens)) if (/^\\d{1,3}px$/.test(px)) style.push(`--sb-${k}-${t}:${Math.round(parseFloat(px) * f)}px`);\n\t};\n\tfactor(options.radius, radiusFactors, \"radius-scale\", \"radius\", radii);\n\tfactor(options.density, densityFactors, \"density\", \"space\", space);\n\tconst nt = options.neutral;\n\tlet neutrals;\n\tconst nRefs = [];\n\tif (nt) {\n\t\tconst [h, c] = neutralTints[nt];\n\t\tneutrals = Object.fromEntries(steps.map((s, i) => [s, oklchCss({\n\t\t\tl: lightness[i],\n\t\t\tc: c * chromaCurve[i],\n\t\t\th: h < 0 ? brand[600].h : h\n\t\t})]));\n\t\tsteps.forEach((s) => style.push(`--sb-neutral-${name}-${s}:${neutrals[s]}`));\n\t\tconst ref = (x) => x.startsWith(\"gray.\") ? `var(--sb-neutral-${name}-${x.slice(5)})` : x;\n\t\tfor (const [k, [l, d]] of Object.entries(semanticColors)) if (k !== \"onPrimary\" && (l + d).includes(\"gray\")) {\n\t\t\tnRefs.push([\n\t\t\t\tk,\n\t\t\t\tref(l),\n\t\t\t\tref(d)\n\t\t\t]);\n\t\t\tstyle.push(`${colorVar(k)}:light-dark(${ref(l)}, ${ref(d)})`);\n\t\t}\n\t}\n\tif (options.accent !== void 0) {\n\t\tconst acc = scale(toOklch(options.accent));\n\t\tdecls.push(`${colorVar(\"accent\")}:light-dark(${oklchCss(acc[600])}, ${oklchCss(acc[400])})`);\n\t}\n\tconst contrast = {\n\t\tprimaryOnSurface: +contrastRatio(lightPrimary, WHITE).toFixed(2),\n\t\tonPrimaryLight: +contrastRatio(onLight, lightPrimary).toFixed(2),\n\t\tonPrimaryDark: +contrastRatio(onDark, darkPrimary).toFixed(2)\n\t};\n\tconst warnings = [];\n\tif (contrast.primaryOnSurface < 4.5) warnings.push(`primary text on a white surface is ${contrast.primaryOnSurface}:1 (AA needs 4.5:1)`);\n\tif (contrast.onPrimaryLight < 4.5) warnings.push(`text on primary (light mode) is ${contrast.onPrimaryLight}:1 (AA needs 4.5:1)`);\n\tif (contrast.onPrimaryDark < 4.5) warnings.push(`text on primary (dark mode) is ${contrast.onPrimaryDark}:1 (AA needs 4.5:1)`);\n\tconst accent = options.accent !== void 0 ? scale(toOklch(options.accent)) : void 0;\n\tconst forced = (mode) => {\n\t\tconst d = mode === \"dark\";\n\t\tconst list = [\n\t\t\t`${colorVar(\"primary\")}:${v(d ? 400 : 600)}`,\n\t\t\t`${colorVar(\"primaryHover\")}:${v(d ? 300 : 700)}`,\n\t\t\t`${colorVar(\"onPrimary\")}:${oklchCss(d ? onDark : onLight)}`\n\t\t];\n\t\tif (accent) list.push(`${colorVar(\"accent\")}:${oklchCss(accent[d ? 400 : 600])}`);\n\t\tfor (const [k, l, dk] of nRefs) list.push(`${colorVar(k)}:${d ? dk : l}`);\n\t\tconst m = `[data-theme=\"${mode}\"]`;\n\t\treturn `${options.name ? `${selector}${m}, ${m} ${selector}, ${selector} ${m}` : m}{${list.join(\";\")}}`;\n\t};\n\treturn {\n\t\tname,\n\t\tselector,\n\t\tcss: `@layer sobagu.theme{${selector}{${[...decls, ...style].join(\";\")}}\\n${forced(\"light\")}\\n${forced(\"dark\")}}`,\n\t\tpalette,\n\t\t...neutrals ? { neutrals } : {},\n\t\tcontrast,\n\t\twarnings\n\t};\n}\n/** Inject a theme's CSS (browser) or add it to getCssText() (SSR). Safe to call more than once. */\nfunction applyTheme(theme) {\n\tsheet.insert(-.5, `theme:${theme.selector}`, [theme.css]);\n}\n// sobagu/packages/core/src/sb.ts\nvar NUMBER = /^-?\\d+(\\.\\d+)?$/;\n/**\n* Turn the short attribute syntax into a style object.\n*\n* \"card p=lg hover:shadow=lg md:cols=3\"\n* → { card: true, p: 'lg', hover: { shadow: 'lg' }, md: { cols: 3 } }\n*\n* Rules:\n* - `prop=value` sets a style prop. Number values become numbers (p=4 → 16px).\n* - A bare word is a shortcut: `card`, `center`, `row`, `muted`…\n* - Prefix with conditions separated by ':' to nest them: `md:hover:shadow=lg`.\n* - Values can't contain spaces, so write `_` instead: `border=2px_dashed_red`.\n*/\nfunction parseSb(input) {\n\tconst out = {};\n\tfor (const token of input.trim().split(/\\s+/)) {\n\t\tif (!token) continue;\n\t\tconst eq = token.indexOf(\"=\");\n\t\tconst head = eq === -1 ? token : token.slice(0, eq);\n\t\tconst raw = eq === -1 ? void 0 : token.slice(eq + 1);\n\t\tconst path = head.split(\":\").filter(Boolean);\n\t\tconst key = path.pop();\n\t\tif (!key) continue;\n\t\tlet target = out;\n\t\tfor (const cond of path) {\n\t\t\tconst next = target[cond];\n\t\t\ttarget = typeof next === \"object\" && next !== null ? next : target[cond] = {};\n\t\t}\n\t\tif (raw === void 0) target[key] = true;\n\t\telse target[key] = NUMBER.test(raw) ? Number(raw) : raw.replace(/_/g, \" \");\n\t}\n\treturn out;\n}\n// sobagu/packages/core/src/audit.ts\nfunction refToOklch(ref) {\n\tif (ref === \"white\") return {\n\t\tl: 1,\n\t\tc: 0,\n\t\th: 0\n\t};\n\tif (ref === \"black\") return {\n\t\tl: 0,\n\t\tc: 0,\n\t\th: 0\n\t};\n\tconst [name, stepStr] = ref.split(\".\");\n\tconst step = Number(stepStr);\n\tconst i = steps.indexOf(step);\n\tconst [h, c] = hues[name];\n\treturn {\n\t\tl: lightness[i],\n\t\tc: c * chromaCurve[i],\n\t\th\n\t};\n}\nvar mode = (name, m) => refToOklch(semanticColors[name][m]);\n/** The pairs Sobagu's own components rely on. */\nvar PAIRS = [\n\t[\n\t\t\"text\",\n\t\t\"canvas\",\n\t\t4.5\n\t],\n\t[\n\t\t\"text\",\n\t\t\"surface\",\n\t\t4.5\n\t],\n\t[\n\t\t\"text\",\n\t\t\"surfaceAlt\",\n\t\t4.5\n\t],\n\t[\n\t\t\"muted\",\n\t\t\"canvas\",\n\t\t4.5\n\t],\n\t[\n\t\t\"muted\",\n\t\t\"surface\",\n\t\t4.5\n\t],\n\t[\n\t\t\"primary\",\n\t\t\"surface\",\n\t\t4.5\n\t],\n\t[\n\t\t\"onPrimary\",\n\t\t\"primary\",\n\t\t4.5\n\t],\n\t[\n\t\t\"onPrimary\",\n\t\t\"primaryHover\",\n\t\t4.5\n\t],\n\t[\n\t\t\"danger\",\n\t\t\"surface\",\n\t\t4.5\n\t],\n\t[\n\t\t\"success\",\n\t\t\"surface\",\n\t\t4.5\n\t],\n\t[\n\t\t\"warning\",\n\t\t\"surface\",\n\t\t3\n\t],\n\t[\n\t\t\"accent\",\n\t\t\"surface\",\n\t\t4.5\n\t],\n\t[\n\t\t\"borderStrong\",\n\t\t\"surface\",\n\t\t3\n\t]\n];\n/**\n* Check the built-in semantic colours against WCAG 2.2 contrast levels, in light and dark mode.\n* auditContrast().filter(c => !c.pass)\n*/\nfunction auditContrast() {\n\treturn PAIRS.map(([fg, bg, required]) => {\n\t\tconst light = +contrastRatio(mode(fg, 0), mode(bg, 0)).toFixed(2);\n\t\tconst dark = +contrastRatio(mode(fg, 1), mode(bg, 1)).toFixed(2);\n\t\treturn {\n\t\t\tpair: `${fg} on ${bg}`,\n\t\t\tfg,\n\t\t\tbg,\n\t\t\trequired,\n\t\t\tlight,\n\t\t\tdark,\n\t\t\tpass: light >= required && dark >= required\n\t\t};\n\t});\n}\n// sobagu/packages/core/src/design-tokens.ts\nvar oklch = (name, i) => {\n\tconst [h, c] = hues[name];\n\treturn {\n\t\tcolorSpace: \"oklch\",\n\t\tcomponents: [\n\t\t\tlightness[i],\n\t\t\t+(c * chromaCurve[i]).toFixed(4),\n\t\t\th\n\t\t]\n\t};\n};\nvar dimension = (v) => {\n\tconst m = /^(-?[\\d.]+)(px|rem|em)$/.exec(v);\n\treturn m ? {\n\t\tvalue: Number(m[1]),\n\t\tunit: m[2]\n\t} : v === \"0\" ? {\n\t\tvalue: 0,\n\t\tunit: \"px\"\n\t} : v;\n};\nvar group = (type, values, map = (v) => v) => Object.fromEntries(Object.entries(values).map(([k, v]) => [k, {\n\t$type: type,\n\t$value: map(String(v))\n}]));\nfunction toDesignTokens() {\n\tconst palette = {};\n\tfor (const name of Object.keys(hues)) palette[name] = Object.fromEntries(steps.map((s, i) => [String(s), {\n\t\t$type: \"color\",\n\t\t$value: oklch(name, i)\n\t}]));\n\tconst ref = (r) => r === \"white\" || r === \"black\" ? r : `{color.palette.${r}}`;\n\tconst semantic = (mode) => Object.fromEntries(Object.entries(semanticColors).map(([k, pair]) => [k, {\n\t\t$type: \"color\",\n\t\t$value: ref(pair[mode])\n\t}]));\n\treturn {\n\t\tcolor: {\n\t\t\tpalette,\n\t\t\tlight: semantic(0),\n\t\t\tdark: semantic(1)\n\t\t},\n\t\tspace: group(\"dimension\", tokens.space, dimension),\n\t\tradius: group(\"dimension\", tokens.radii, dimension),\n\t\tfontSize: group(\"dimension\", tokens.fontSizes, dimension),\n\t\tfontWeight: group(\"fontWeight\", tokens.fontWeights, Number),\n\t\tlineHeight: group(\"number\", tokens.lineHeights, Number),\n\t\tletterSpacing: group(\"dimension\", tokens.letterSpacings, dimension),\n\t\tfontFamily: group(\"fontFamily\", tokens.fonts, (v) => v.split(\",\").map((f) => f.trim().replace(/^\"|\"$/g, \"\"))),\n\t\tshadow: group(\"shadow\", tokens.shadows),\n\t\tbreakpoint: group(\"dimension\", tokens.breakpoints, (v) => ({\n\t\t\tvalue: Number(v),\n\t\t\tunit: \"px\"\n\t\t}))\n\t};\n}\n// sobagu/packages/core/src/keyframes.ts\nvar kebab = (k) => k.startsWith(\"--\") ? k : k.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`);\nfunction hash(s) {\n\tlet h = 2166136261;\n\tfor (let i = 0; i < s.length; i++) h = Math.imul(h ^ s.charCodeAt(i), 16777619);\n\treturn (h >>> 0).toString(36);\n}\n/**\n* Define your own animation and get its name back:\n* const wiggle = keyframes({ '0%, 100%': { rotate: '-3deg' }, '50%': { rotate: '3deg' } })\n* <Box animate={`${wiggle} 1s ease-in-out infinite`} />\n* Frames use plain CSS properties (camelCase is fine). Pass a name to make it readable in DevTools.\n*/\nfunction keyframes(frames, name) {\n\tconst body = Object.entries(frames).map(([at, decls]) => `${at}{${Object.entries(decls).map(([k, v]) => `${kebab(k)}:${v}`).join(\";\")}}`).join(\"\");\n\tconst id = name ?? `sb-kf-${hash(body)}`;\n\tsheet.global(`kf:${id}`, `@layer sobagu.reset{@keyframes ${id}{${body}}}`);\n\treturn id;\n}\n// sobagu/packages/core/src/customize.ts\nvar SCALES = {\n\tspace: [\n\t\tspace,\n\t\tsizes,\n\t\tsizesY\n\t],\n\tsizes: [sizes, sizesY],\n\tradii: [radii],\n\tfontSizes: [fontSizes],\n\tfontWeights: [fontWeights],\n\tlineHeights: [lineHeights],\n\tletterSpacings: [letterSpacings],\n\tfonts: [fonts],\n\tshadows: [shadows],\n\tzIndices: [zIndices],\n\ttransitions: [transitions],\n\tanimations: [animations],\n\ttextShadows: [textShadows]\n};\nvar media = (min, rank) => ({\n\tkind: \"at\",\n\tprelude: `@media (min-width: ${min}px)`,\n\tgroup: \"media\",\n\trank\n});\n/**\n* Customise the built-in design tokens. Call it once at startup, before the first render.\n*\n* extendTokens({\n* space: { '5xl': '128px' },\n* radii: { card: '20px' },\n* fonts: { sans: '\"Inter\", system-ui, sans-serif' },\n* breakpoints: { '2xl': 1680 },\n* palette: { brand: '#7c3aed' },\n* semantic: { highlight: ['amber.200', 'amber.800'] },\n* })\n*/\nfunction extendTokens(overrides) {\n\tfor (const [key, scale] of Object.entries(overrides)) {\n\t\tconst targets = SCALES[key];\n\t\tif (targets && scale) for (const t of targets) Object.assign(t, scale);\n\t}\n\tif (overrides.breakpoints) {\n\t\tconst bp = breakpoints;\n\t\tObject.assign(bp, overrides.breakpoints);\n\t\tObject.entries(bp).sort((a, b) => a[1] - b[1]).forEach(([name, w], i) => registry.conditions[name] = media(w, 2 + i));\n\t\tregistry.conditions.mobile = {\n\t\t\tkind: \"at\",\n\t\t\tprelude: `@media (max-width: ${(bp.sm ?? 600) - .02}px)`,\n\t\t\tgroup: \"media\",\n\t\t\trank: 1\n\t\t};\n\t\tregistry.conditions.tablet = registry.conditions.sm;\n\t\tregistry.conditions.desktop = registry.conditions.lg;\n\t}\n\tif (overrides.palette) {\n\t\tconst css = [];\n\t\tfor (const [name, value] of Object.entries(overrides.palette)) {\n\t\t\tconst base = typeof value === \"number\" ? {\n\t\t\t\tl: .6,\n\t\t\t\tc: .16,\n\t\t\t\th: value\n\t\t\t} : rgbToOklch(parseHex(value));\n\t\t\tconst c = Math.min(Math.max(base.c, .02), .3);\n\t\t\thues[name] = [base.h, c];\n\t\t\tsteps.forEach((s, i) => css.push(`${paletteVar(name, s)}:${oklchCss({\n\t\t\t\tl: lightness[i],\n\t\t\t\tc: c * chromaCurve[i],\n\t\t\t\th: base.h\n\t\t\t})}`));\n\t\t}\n\t\tsheet.global(`palette:${Object.keys(overrides.palette).join(\",\")}`, `@layer sobagu.theme{:root{${css.join(\";\")}}}`);\n\t}\n\tif (overrides.semantic) {\n\t\tObject.assign(semanticColors, overrides.semantic);\n\t\tconst ref = (r) => r === \"white\" || r === \"black\" ? r : resolveColor(r);\n\t\tconst decl = (m) => Object.entries(overrides.semantic).map(([k, pair]) => `${colorVar(k)}:${ref(pair[m])}`).join(\";\");\n\t\tconst both = Object.entries(overrides.semantic).map(([k, [l, d]]) => `${colorVar(k)}:light-dark(${ref(l)}, ${ref(d)})`).join(\";\");\n\t\tsheet.global(`semantic:${Object.keys(overrides.semantic).join(\",\")}`, `@layer sobagu.theme{:root{${both}}\\n[data-theme=\"light\"]{${decl(0)}}\\n[data-theme=\"dark\"]{${decl(1)}}}`);\n\t}\n}\n/**\n* Read a token as a CSS value, for use in your own CSS-in-JS, inline styles or canvas code.\n* token('space.md') → \"16px\" · token('colors.primary') → \"var(--sb-c-primary)\" · token('blue.500') → \"var(--sb-blue-500)\"\n*/\nfunction token(path) {\n\tconst [group, ...rest] = path.split(\".\");\n\tconst key = rest.join(\".\");\n\tif (group === \"colors\" || group === \"color\") return resolveColor(key);\n\tconst scale = tokens[group];\n\tif (scale && key in scale) return String(scale[key]);\n\tconst color = resolveColor(path);\n\tif (color !== path) return color;\n\tthrow new Error(`Unknown token \"${path}\"`);\n}\nexport { INDIC, LAYERS, STATIC_MARKER, animations, applyTheme, auditContrast, breakpoints, colorVar, conditions, containerSizes, contrastRatio, createTheme, css, cx, definePlugin, densityFactors, extendTokens, getCssText, hues, isStyleProp, keyframes, luminance, markers, neutralTints, oklchToRgb, paletteColor, paletteVar, parseHex, parseSb, propConfig, radiusFactors, recipe, registry, resetCss, resetStyles, rgbToOklch, semanticColors, setDevWarnings, shortcuts, slotRecipe, staticMarkerCss, steps, themeCss, toDesignTokens, token, tokens, use };\n\n//# sourceMappingURL=index.js.map","// Utility class name → Sobagu style props.\n//\n// Written from scratch for Sobagu: the table below maps common functional\n// class *names* onto Sobagu props and tokens. It holds no other framework's code or config data; where\n// a class has no exact Sobagu equivalent we pick the closest Sobagu token and say so in the report.\n\nimport { steps } from '@sobagu/core'\n\nexport type Value = string | number | boolean\nexport interface StyleTree {\n [key: string]: Value | StyleTree\n}\n\nexport type NoteKind = 'unknown' | 'approx' | 'conflict' | 'info'\nexport interface Note {\n cls: string\n kind: NoteKind\n message: string\n}\n\nexport interface ConvertResult {\n /** Sobagu props, with conditions as nested objects. */\n style: StyleTree\n /** Classes that stay in className, in their original order. */\n kept: string[]\n notes: Note[]\n}\n\ntype Decl = readonly [prop: string, value: Value]\ninterface Hit {\n decls: Decl[]\n approx?: string\n /** A colour that merges with the width class in the same condition (border, outline, ring). */\n pending?: { kind: 'border' | 'outline' | 'ring'; value: string }\n}\n\n// ───────────────────────── variants ─────────────────────────\n\nconst BREAKPOINT_NOTE =\n 'breakpoint widths differ: Sobagu sm/md/lg/xl = 600/840/1024/1440px (check the layout at each size)'\n\n/** Variant prefix → Sobagu condition name. */\nexport const VARIANTS: Readonly<Record<string, string>> = {\n hover: 'hover',\n focus: 'focus',\n 'focus-visible': 'focusVisible',\n 'focus-within': 'focusWithin',\n active: 'active',\n disabled: '_disabled',\n visited: 'visited',\n checked: '_checked',\n required: '_required',\n 'read-only': '_readOnly',\n indeterminate: 'indeterminate',\n 'placeholder-shown': 'placeholderShown',\n open: 'open',\n first: 'first',\n last: 'last',\n only: 'only',\n odd: 'odd',\n even: 'even',\n 'first-of-type': 'firstOfType',\n 'last-of-type': 'lastOfType',\n empty: 'empty',\n target: 'target',\n before: 'before',\n after: 'after',\n placeholder: '_placeholder',\n selection: 'selection',\n marker: 'marker',\n file: 'file',\n backdrop: 'backdrop',\n 'first-line': 'firstLine',\n 'first-letter': 'firstLetter',\n 'group-hover': 'groupHover',\n 'group-focus-within': 'groupFocusWithin',\n 'group-active': 'groupActive',\n 'group-open': 'groupOpen',\n 'peer-hover': 'peerHover',\n 'peer-focus': 'peerFocus',\n 'peer-checked': 'peerChecked',\n 'peer-disabled': 'peerDisabled',\n 'aria-expanded': 'ariaExpanded',\n 'aria-selected': 'ariaSelected',\n 'aria-checked': 'ariaChecked',\n 'aria-pressed': 'ariaPressed',\n 'aria-disabled': 'ariaDisabled',\n rtl: 'rtl',\n ltr: 'ltr',\n dark: 'dark',\n sm: 'sm',\n md: 'md',\n lg: 'lg',\n xl: 'xl',\n 'motion-safe': 'motionSafe',\n 'motion-reduce': 'reduceMotion',\n 'contrast-more': 'contrastMore',\n 'forced-colors': 'forcedColors',\n portrait: 'portrait',\n landscape: 'landscape',\n print: 'print',\n}\n\nconst VARIANT_NOTES: Readonly<Record<string, string>> = {\n sm: BREAKPOINT_NOTE,\n md: BREAKPOINT_NOTE,\n lg: BREAKPOINT_NOTE,\n xl: BREAKPOINT_NOTE,\n 'group-hover': 'needs the `group` prop on a parent (a migrated `group` class becomes that prop)',\n 'group-focus-within': 'needs the `group` prop on a parent',\n 'group-active': 'needs the `group` prop on a parent',\n 'group-open': 'needs the `group` prop on a parent',\n 'peer-hover': 'needs the `peer` prop on an earlier sibling',\n 'peer-focus': 'needs the `peer` prop on an earlier sibling',\n 'peer-checked': 'needs the `peer` prop on an earlier sibling',\n 'peer-disabled': 'needs the `peer` prop on an earlier sibling',\n}\n\n// ───────────────────────── value helpers ─────────────────────────\n\nconst NUM = /^\\d+(?:\\.\\d+)?$/\nconst FRACTION = /^(\\d+)\\/(\\d+)$/\n\n/** \"[13px]\" → \"13px\", underscores become spaces. */\nfunction arbitrary(v: string): string | null {\n if (!v.startsWith('[') || !v.endsWith(']') || v.length < 3) return null\n return v.slice(1, -1).replace(/_/g, ' ')\n}\n\nfunction percent(a: number, b: number): string {\n return `${+((a / b) * 100).toFixed(6)}%`\n}\n\n/** Spacing value: numbers are 4px units in both systems, so they map 1:1. */\nfunction spaceValue(v: string, neg: boolean, extra: Record<string, Value> = {}): Value | null {\n if (NUM.test(v)) return neg ? -Number(v) : Number(v)\n if (v === 'px') return neg ? '-1px' : '1px'\n if (v in extra) return neg ? null : extra[v]!\n const a = arbitrary(v)\n if (a !== null) return neg ? null : a\n return null\n}\n\nfunction insetValue(v: string, neg: boolean): Value | null {\n const f = FRACTION.exec(v)\n if (f) return `${neg ? '-' : ''}${percent(Number(f[1]), Number(f[2]))}`\n if (v === 'full') return neg ? '-100%' : '100%'\n return spaceValue(v, neg, { auto: 'auto' })\n}\n\ninterface SizeResult {\n value: Value\n approx?: string\n}\n\nfunction sizeValue(v: string, axis: 'x' | 'y'): SizeResult | null {\n if (NUM.test(v)) return { value: Number(v) }\n if (v === 'px') return { value: '1px' }\n const f = FRACTION.exec(v)\n if (f) {\n const a = Number(f[1])\n const b = Number(f[2])\n if (b === 0) return null\n return { value: a * 2 === b ? 'half' : percent(a, b) }\n }\n switch (v) {\n case 'full':\n case 'auto':\n case 'fit':\n case 'min':\n case 'max':\n return { value: v }\n case 'screen':\n return axis === 'y'\n ? { value: 'screen', approx: 'Sobagu \"screen\" height is 100dvh (dynamic viewport), not 100vh' }\n : { value: 'screen' }\n case 'dvh':\n case 'svh':\n case 'lvh':\n return { value: `100${v}` }\n case 'dvw':\n case 'svw':\n case 'lvw':\n return { value: `100${v}` }\n }\n const a = arbitrary(v)\n return a === null ? null : { value: a }\n}\n\n/** Colour names that exist in Sobagu's palette, plus the nearest Sobagu hue for other common names. */\nconst PALETTE = new Set(['gray', 'red', 'orange', 'amber', 'green', 'teal', 'blue', 'indigo', 'violet', 'pink'])\nconst HUE_ALIAS: Readonly<Record<string, string>> = {\n slate: 'gray',\n zinc: 'gray',\n neutral: 'gray',\n stone: 'gray',\n sky: 'teal',\n cyan: 'teal',\n purple: 'violet',\n fuchsia: 'violet',\n rose: 'pink',\n emerald: 'green',\n lime: 'green',\n yellow: 'amber',\n}\nconst STEPS = new Set<string>(steps.map(String))\nconst PLAIN_COLORS: Readonly<Record<string, string>> = {\n white: 'white',\n black: 'black',\n transparent: 'transparent',\n current: 'currentColor',\n inherit: 'inherit',\n}\n\ninterface ColorResult {\n value: string\n approx?: string\n}\n\nexport function colorValue(v: string): ColorResult | null {\n if (v in PLAIN_COLORS) return { value: PLAIN_COLORS[v]! }\n const a = arbitrary(v)\n if (a !== null) return /^(#|rgb|hsl|oklch|oklab|lab|lch|color|var\\()/.test(a) ? { value: a } : null\n const m = /^([a-z]+)-(\\d{2,3})$/.exec(v)\n if (!m || !STEPS.has(m[2]!)) return null\n const hue = m[1]!\n if (PALETTE.has(hue)) return { value: `${hue}.${m[2]}` }\n const alias = HUE_ALIAS[hue]\n if (alias) return { value: `${alias}.${m[2]}`, approx: `\"${hue}\" is not in the Sobagu palette; using the nearest hue \"${alias}\"` }\n return null\n}\n\n// ───────────────────────── fixed classes ─────────────────────────\n\nconst d = (prop: string, value: Value): Decl[] => [[prop, value]]\n\nconst FIXED: Readonly<Record<string, Decl[]>> = {}\nconst fixed = FIXED as Record<string, Decl[]>\nconst add = (names: string[], prop: string, map: (n: string) => Value = (n) => n, prefix = '') => {\n for (const n of names) fixed[prefix + n] = d(prop, map(n))\n}\n\n// display & position\nadd(['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'grid', 'inline-grid', 'contents', 'table', 'table-row', 'table-cell', 'flow-root', 'list-item'], 'display')\nfixed.hidden = d('display', 'none')\nadd(['static', 'relative', 'absolute', 'fixed', 'sticky'], 'position')\n// flex & grid\nfixed['flex-row'] = d('flexDir', 'row')\nfixed['flex-col'] = d('flexDir', 'col')\nfixed['flex-row-reverse'] = d('flexDir', 'rowReverse')\nfixed['flex-col-reverse'] = d('flexDir', 'colReverse')\nadd(['wrap', 'nowrap', 'wrap-reverse'], 'wrap', (n) => n, 'flex-')\nfixed['flex-1'] = d('flex', '1 1 0%')\nfixed['flex-auto'] = d('flex', '1 1 auto')\nfixed['flex-initial'] = d('flex', '0 1 auto')\nfixed['flex-none'] = d('flex', 'none')\nfixed.grow = d('grow', 1)\nfixed['grow-0'] = d('grow', 0)\nfixed.shrink = d('shrink', 1)\nfixed['shrink-0'] = d('shrink', 0)\nconst flexPos = (n: string) => (n === 'start' || n === 'end' ? `flex-${n}` : n)\nadd(['start', 'end', 'center', 'baseline', 'stretch'], 'align', flexPos, 'items-')\nadd(['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'normal'], 'justify', flexPos, 'justify-')\nadd(['auto', 'start', 'end', 'center', 'stretch', 'baseline'], 'self', flexPos, 'self-')\nadd(['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'normal'], 'alignContent', flexPos, 'content-')\nadd(['start', 'end', 'center', 'stretch', 'baseline'], 'placeItems', (n) => n, 'place-items-')\nadd(['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'], 'placeContent', (n) => (['between', 'around', 'evenly'].includes(n) ? `space-${n}` : n), 'place-content-')\nadd(['auto', 'start', 'end', 'center', 'stretch'], 'placeSelf', (n) => n, 'place-self-')\nadd(['start', 'end', 'center', 'stretch'], 'justifyItems', (n) => n, 'justify-items-')\nadd(['auto', 'start', 'end', 'center', 'stretch'], 'justifySelf', (n) => n, 'justify-self-')\nfixed['grid-flow-row'] = d('autoFlow', 'row')\nfixed['grid-flow-col'] = d('autoFlow', 'col')\nfixed['grid-flow-dense'] = d('autoFlow', 'dense')\nfixed['grid-flow-row-dense'] = d('autoFlow', 'rowDense')\nfixed['grid-flow-col-dense'] = d('autoFlow', 'colDense')\nfixed['col-span-full'] = d('span', 'full')\nfixed['row-span-full'] = d('spanRows', 'full')\nfixed['grid-cols-none'] = d('cols', 'none')\nfixed['grid-rows-none'] = d('rows', 'none')\n// typography\nadd(['left', 'center', 'right', 'justify', 'start', 'end'], 'textAlign', (n) => n, 'text-')\nadd(['uppercase', 'lowercase', 'capitalize'], 'textTransform')\nfixed['normal-case'] = d('textTransform', 'none')\nfixed.italic = d('fontStyle', 'italic')\nfixed['not-italic'] = d('fontStyle', 'normal')\nadd(['underline', 'overline', 'line-through'], 'decoration')\nfixed['no-underline'] = d('decoration', 'none')\nadd(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'], 'whiteSpace', (n) => n, 'whitespace-')\nfixed['break-all'] = d('wordBreak', 'break-all')\nfixed['break-keep'] = d('wordBreak', 'keep-all')\nfixed['tabular-nums'] = d('numeric', 'tabular')\nfixed['oldstyle-nums'] = d('numeric', 'oldstyle')\nfixed['slashed-zero'] = d('numeric', 'slashed')\nadd(['sans', 'serif', 'mono'], 'font', (n) => n, 'font-')\nadd(['light', 'normal', 'medium', 'semibold', 'bold', 'black'], 'weight', (n) => n, 'font-')\nadd(['none', 'tight', 'snug', 'normal', 'relaxed'], 'leading', (n) => n, 'leading-')\nadd(['tight', 'normal', 'wide', 'wider'], 'tracking', (n) => n, 'tracking-')\nadd(['none', 'disc', 'decimal'], 'listStyle', (n) => n, 'list-')\nadd(['balance', 'pretty', 'nowrap', 'wrap'], 'textWrap', (n) => n, 'text-')\nfixed.truncate = d('truncate', true)\n// box, overflow, misc layout\nfor (const o of ['auto', 'hidden', 'clip', 'visible', 'scroll']) {\n fixed[`overflow-${o}`] = d('overflow', o)\n fixed[`overflow-x-${o}`] = d('overflowX', o)\n fixed[`overflow-y-${o}`] = d('overflowY', o)\n}\nfixed.visible = d('visibility', 'visible')\nfixed.invisible = d('visibility', 'hidden')\nfixed.collapse = d('visibility', 'collapse')\nadd(['contain', 'cover', 'fill', 'none', 'scale-down'], 'objectFit', (n) => n, 'object-')\nfixed['aspect-square'] = d('aspect', 'square')\nfixed['aspect-video'] = d('aspect', 'video')\nfixed['aspect-auto'] = d('aspect', 'auto')\nfixed.isolate = d('isolation', 'isolate')\nfixed['isolation-auto'] = d('isolation', 'auto')\nfixed['box-border'] = d('boxSizing', 'border-box')\nfixed['box-content'] = d('boxSizing', 'content-box')\nadd(['left', 'right', 'none', 'start', 'end'], 'float', (n) => (n === 'start' || n === 'end' ? `inline-${n}` : n), 'float-')\nadd(['left', 'right', 'both', 'none'], 'clear', (n) => n, 'clear-')\nfixed['sr-only'] = d('srOnly', true)\nfixed.group = d('group', true)\nfixed.peer = d('peer', true)\n// interaction\nfixed['pointer-events-none'] = d('pointerEvents', 'none')\nfixed['pointer-events-auto'] = d('pointerEvents', 'auto')\nadd(['none', 'text', 'all', 'auto'], 'userSelect', (n) => n, 'select-')\nfixed.resize = d('resize', 'both')\nfixed['resize-none'] = d('resize', 'none')\nfixed['resize-x'] = d('resize', 'horizontal')\nfixed['resize-y'] = d('resize', 'vertical')\nfixed['appearance-none'] = d('appearance', 'none')\nfixed['transition-none'] = d('transition', 'none')\nfixed['ease-linear'] = d('ease', 'linear')\nfixed['ease-in'] = d('ease', 'in')\nfixed['ease-out'] = d('ease', 'out')\nfixed['ease-in-out'] = d('ease', 'inOut')\nadd(['spin', 'ping', 'pulse', 'bounce', 'none'], 'animate', (n) => n, 'animate-')\n// surface\nfixed['shadow-none'] = d('shadow', 'none')\nfixed['rounded-none'] = d('radius', 'none')\nadd(['solid', 'dashed', 'dotted', 'double', 'none', 'hidden'], 'borderStyle', (n) => n, 'border-')\nadd(['cover', 'contain', 'auto'], 'bgSize', (n) => n, 'bg-')\nadd(['center', 'top', 'bottom', 'left', 'right'], 'bgPosition', (n) => n, 'bg-')\nfixed['bg-no-repeat'] = d('bgRepeat', 'no-repeat')\nfixed['bg-repeat'] = d('bgRepeat', 'repeat')\nfixed['bg-fixed'] = d('bgAttachment', 'fixed')\nfixed['outline-none'] = d('outline', 'none')\n\n/** Classes that map, but not exactly. */\nconst APPROX_FIXED: Readonly<Record<string, { decls: Decl[]; note: string }>> = {\n 'font-thin': { decls: d('weight', 'light'), note: 'Sobagu has no thinner weight than \"light\" (300)' },\n 'font-extralight': { decls: d('weight', 'light'), note: 'Sobagu has no thinner weight than \"light\" (300)' },\n 'font-extrabold': { decls: d('weight', 'black'), note: 'Sobagu has no 800 weight; using \"black\" (900)' },\n 'leading-loose': { decls: d('leading', 'relaxed'), note: 'Sobagu\\'s loosest line height is \"relaxed\" (1.75)' },\n 'tracking-tighter': { decls: d('tracking', 'tight'), note: 'Sobagu\\'s tightest letter spacing is \"tight\"' },\n 'tracking-widest': { decls: d('tracking', 'wider'), note: 'Sobagu\\'s widest letter spacing is \"wider\"' },\n transition: { decls: d('transition', 'normal'), note: 'Sobagu \"normal\" transition is all properties, 200ms ease-out' },\n 'transition-all': { decls: d('transition', 'normal'), note: 'Sobagu \"normal\" transition is all properties, 200ms ease-out' },\n shadow: { decls: d('shadow', 'sm'), note: 'plain `shadow` maps to Sobagu \"sm\"' },\n 'shadow-2xl': { decls: d('shadow', 'xl'), note: 'Sobagu\\'s largest shadow is \"xl\"' },\n rounded: { decls: d('radius', 'sm'), note: 'plain `rounded` maps to Sobagu \"sm\" (4px)' },\n 'rounded-3xl': { decls: d('radius', '2xl'), note: 'Sobagu\\'s largest radius below \"full\" is \"2xl\" (24px)' },\n}\n\n// Font sizes: mapped by value to the closest step of Sobagu's own 1.2-ratio scale.\nconst FONT_SIZE: Readonly<Record<string, { value: string; approx?: string }>> = {\n xs: { value: 'xs' },\n sm: { value: 'sm' },\n base: { value: 'md' },\n lg: { value: 'lg', approx: 'closest Sobagu size is \"lg\" (1.2rem)' },\n xl: { value: 'lg', approx: 'closest Sobagu size is \"lg\" (1.2rem)' },\n '2xl': { value: 'xl', approx: 'closest Sobagu size is \"xl\" (1.44rem)' },\n '3xl': { value: '2xl', approx: 'closest Sobagu size is \"2xl\" (1.728rem)' },\n '4xl': { value: '3xl', approx: 'closest Sobagu size is \"3xl\" (2.074rem)' },\n '5xl': { value: '5xl' },\n '6xl': { value: '5xl', approx: 'Sobagu\\'s largest size is \"5xl\" (2.986rem)' },\n}\n\n// Named max widths → Sobagu's layout sizes (narrow 640px, content 960px, wide 1200px).\nconst MAX_W: Readonly<Record<string, { value: string; approx?: string }>> = {\n none: { value: 'none' },\n full: { value: 'full' },\n prose: { value: 'prose' },\n fit: { value: 'fit' },\n min: { value: 'min' },\n max: { value: 'max' },\n screen: { value: 'screen' },\n lg: { value: 'narrow', approx: 'mapped to Sobagu \"narrow\" (640px)' },\n xl: { value: 'narrow', approx: 'mapped to Sobagu \"narrow\" (640px)' },\n '2xl': { value: 'narrow', approx: 'mapped to Sobagu \"narrow\" (640px)' },\n '3xl': { value: 'narrow', approx: 'mapped to Sobagu \"narrow\" (640px)' },\n '4xl': { value: 'content', approx: 'mapped to Sobagu \"content\" (960px)' },\n '5xl': { value: 'content', approx: 'mapped to Sobagu \"content\" (960px)' },\n '6xl': { value: 'wide', approx: 'mapped to Sobagu \"wide\" (1200px)' },\n '7xl': { value: 'wide', approx: 'mapped to Sobagu \"wide\" (1200px)' },\n}\n\nconst RADIUS = new Set(['sm', 'md', 'lg', 'xl', '2xl', 'full'])\nconst SHADOW = new Set(['sm', 'md', 'lg', 'xl'])\n\nconst SPACE_PROPS: Readonly<Record<string, string>> = {\n p: 'p', px: 'px', py: 'py', pt: 'pt', pr: 'pr', pb: 'pb', pl: 'pl', ps: 'ps', pe: 'pe',\n m: 'm', mx: 'mx', my: 'my', mt: 'mt', mr: 'mr', mb: 'mb', ml: 'ml', ms: 'ms', me: 'me',\n gap: 'gap', 'gap-x': 'gapX', 'gap-y': 'gapY',\n indent: 'indent', 'scroll-m': 'scrollMargin', 'scroll-p': 'scrollPadding',\n}\nconst INSET_PROPS: Readonly<Record<string, string>> = {\n inset: 'inset', 'inset-x': 'insetX', 'inset-y': 'insetY',\n top: 'top', right: 'right', bottom: 'bottom', left: 'left', start: 'start', end: 'end',\n}\nconst SIZE_PROPS: Readonly<Record<string, [string, 'x' | 'y']>> = {\n w: ['w', 'x'], 'min-w': ['minW', 'x'], h: ['h', 'y'], 'min-h': ['minH', 'y'], 'max-h': ['maxH', 'y'], basis: ['basis', 'x'],\n}\nconst BORDER_SIDES: Readonly<Record<string, string>> = {\n '': 'border', t: 'borderTop', r: 'borderRight', b: 'borderBottom', l: 'borderLeft', s: 'borderStart', e: 'borderEnd',\n}\nconst COLOR_PREFIX: Readonly<Record<string, string>> = {\n bg: 'bg', text: 'color', fill: 'fill', stroke: 'stroke', accent: 'accent', caret: 'caret', decoration: 'decorationColor',\n}\n\n// ───────────────────────── one utility (no variants) ─────────────────────────\n\n/** Map one utility (variants already removed) to declarations, or null when unknown. */\nexport function utility(name: string): Hit | null {\n const fx = FIXED[name]\n if (fx) return { decls: fx }\n const ap = APPROX_FIXED[name]\n if (ap) return { decls: ap.decls, approx: ap.note }\n\n const neg = name.startsWith('-')\n const n = neg ? name.slice(1) : name\n\n // spacing: p-4, -mt-2, mx-auto, gap-x-3, p-px, p-[13px]\n let m = /^(p[xytrblse]?|m[xytrblse]?|gap(?:-[xy])?|indent|scroll-[mp])-(.+)$/.exec(n)\n if (m && SPACE_PROPS[m[1]!]) {\n const isMargin = m[1]!.startsWith('m') || m[1]!.startsWith('scroll-m')\n if (neg && !isMargin && m[1] !== 'indent') return null\n const v = spaceValue(m[2]!, neg, isMargin ? { auto: 'auto' } : {})\n return v === null ? null : { decls: d(SPACE_PROPS[m[1]!]!, v) }\n }\n\n // inset / top / left …\n m = /^(inset(?:-[xy])?|top|right|bottom|left|start|end)-(.+)$/.exec(n)\n if (m && INSET_PROPS[m[1]!]) {\n const v = insetValue(m[2]!, neg)\n return v === null ? null : { decls: d(INSET_PROPS[m[1]!]!, v) }\n }\n if (neg) {\n m = /^z-(\\d+)$/.exec(n)\n if (m) return { decls: d('z', -Number(m[1])) }\n m = /^order-(\\d+)$/.exec(n)\n if (m) return { decls: d('order', -Number(m[1])) }\n return null\n }\n\n // sizes\n m = /^(w|min-w|h|min-h|max-h|basis)-(.+)$/.exec(name)\n if (m && SIZE_PROPS[m[1]!]) {\n const [prop, axis] = SIZE_PROPS[m[1]!]!\n const v = sizeValue(m[2]!, axis)\n return v ? { decls: d(prop, v.value), ...(v.approx ? { approx: v.approx } : {}) } : null\n }\n m = /^size-(.+)$/.exec(name)\n if (m) {\n const v = sizeValue(m[1]!, 'x')\n return v && v.value !== 'screen' ? { decls: [['w', v.value], ['h', v.value]] } : null\n }\n m = /^max-w-(.+)$/.exec(name)\n if (m) {\n const named = MAX_W[m[1]!]\n if (named) return { decls: d('maxW', named.value), ...(named.approx ? { approx: named.approx } : {}) }\n if (/^screen-/.test(m[1]!)) return null\n const v = sizeValue(m[1]!, 'x')\n return v ? { decls: d('maxW', v.value) } : null\n }\n\n // grid\n m = /^grid-(cols|rows)-(\\d+)$/.exec(name)\n if (m) return { decls: d(m[1]!, Number(m[2])) }\n m = /^grid-(cols|rows)-(\\[.+\\])$/.exec(name)\n if (m) return { decls: d(m[1]!, arbitrary(m[2]!)!) }\n m = /^(col|row)-span-(\\d+)$/.exec(name)\n if (m) return { decls: d(m[1] === 'col' ? 'span' : 'spanRows', Number(m[2])) }\n m = /^(col|row)-(start|end)-(\\d+|auto)$/.exec(name)\n if (m) {\n const prop = `${m[1]}${m[2] === 'start' ? 'Start' : 'End'}`\n return { decls: d(prop, m[3] === 'auto' ? 'auto' : m[3]!) }\n }\n m = /^order-(\\d+|none)$/.exec(name)\n if (m) return { decls: d('order', m[1] === 'none' ? 0 : Number(m[1])) }\n m = /^(grow|shrink)-(\\d+)$/.exec(name)\n if (m) return { decls: d(m[1]!, Number(m[2])) }\n\n // typography\n m = /^text-(xs|sm|base|lg|xl|[2-6]xl)$/.exec(name)\n if (m) {\n const fs = FONT_SIZE[m[1]!]!\n return { decls: d('text', fs.value), ...(fs.approx ? { approx: fs.approx } : {}) }\n }\n m = /^line-clamp-(\\d+)$/.exec(name)\n if (m) return { decls: d('lineClamp', Number(m[1])) }\n m = /^text-(\\[.+\\])$/.exec(name)\n if (m) {\n const a = arbitrary(m[1]!)!\n if (/^\\d*\\.?\\d+(px|rem|em|%|vw|vh|ch)$/.test(a) || a.startsWith('clamp(')) return { decls: d('text', a) }\n const c = colorValue(m[1]!)\n return c ? { decls: d('color', c.value) } : null\n }\n\n // colours: bg-blue-500, text-gray-700, fill-current …\n m = /^(bg|text|fill|stroke|accent|caret|decoration)-(.+)$/.exec(name)\n if (m) {\n const c = colorValue(m[2]!)\n if (!c) return null\n return { decls: d(COLOR_PREFIX[m[1]!]!, c.value), ...(c.approx ? { approx: c.approx } : {}) }\n }\n\n // radius & shadow\n m = /^rounded-(.+)$/.exec(name)\n if (m) {\n if (RADIUS.has(m[1]!)) return { decls: d('radius', m[1]!) }\n const a = arbitrary(m[1]!)\n return a === null ? null : { decls: d('radius', a) }\n }\n m = /^shadow-(.+)$/.exec(name)\n if (m && SHADOW.has(m[1]!)) return { decls: d('shadow', m[1]!) }\n\n // borders: border, border-2, border-t, border-b-4, border-gray-200\n m = /^border(?:-([trblse]))?(?:-(\\d+))?$/.exec(name)\n if (m) {\n const prop = BORDER_SIDES[m[1] ?? '']!\n const width = m[2] === undefined ? 1 : Number(m[2])\n if (width === 0) return prop === 'border' ? { decls: d('borderWidth', 0) } : null\n return { decls: d(prop, width) }\n }\n m = /^border-(.+)$/.exec(name)\n if (m) {\n const c = colorValue(m[1]!)\n return c ? { decls: [], pending: { kind: 'border', value: c.value }, ...(c.approx ? { approx: c.approx } : {}) } : null\n }\n\n // outline & ring\n m = /^outline(?:-(\\d+))?$/.exec(name)\n if (m) return { decls: d('outline', m[1] === undefined ? 1 : Number(m[1])), approx: 'Sobagu outline numbers set width, solid style and the \"border\" colour' }\n m = /^outline-offset-(\\d+)$/.exec(name)\n if (m) return { decls: d('outlineOffset', Number(m[1])) }\n m = /^ring(?:-(\\d+))?$/.exec(name)\n if (m) {\n const w = m[1] === undefined ? 3 : Number(m[1])\n return { decls: d('ring', w === 0 ? 'none' : w), approx: 'Sobagu `ring` is a solid outline (primary colour unless a ring colour is given), not a box-shadow' }\n }\n m = /^ring-offset-(\\d+)$/.exec(name)\n if (m) return { decls: d('ringOffset', Number(m[1])) }\n m = /^(outline|ring)-(.+)$/.exec(name)\n if (m) {\n const c = colorValue(m[2]!)\n const kind = m[1] as 'outline' | 'ring'\n return c ? { decls: [], pending: { kind, value: c.value }, ...(c.approx ? { approx: c.approx } : {}) } : null\n }\n\n // effects & misc\n m = /^opacity-(\\d+)$/.exec(name)\n if (m && Number(m[1]) <= 100) return { decls: d('opacity', Number(m[1]) / 100) }\n m = /^z-(\\d+|auto)$/.exec(name)\n if (m) return { decls: d('z', m[1] === 'auto' ? 'auto' : Number(m[1])) }\n m = /^cursor-([a-z-]+)$/.exec(name)\n if (m) return { decls: d('cursor', m[1]!) }\n m = /^(duration|delay)-(\\d+)$/.exec(name)\n if (m) return { decls: d(m[1]!, Number(m[2])) }\n\n return null\n}\n\n// ───────────────────────── a whole class string ─────────────────────────\n\n/** Split \"md:hover:p-4\" into [\"md\", \"hover\", \"p-4\"], ignoring \":\" inside [brackets]. */\nfunction splitVariants(cls: string): string[] {\n const parts: string[] = []\n let depth = 0\n let cur = ''\n for (const ch of cls) {\n if (ch === '[') depth++\n else if (ch === ']') depth--\n if (ch === ':' && depth === 0) {\n parts.push(cur)\n cur = ''\n } else cur += ch\n }\n parts.push(cur)\n return parts\n}\n\ninterface Pending {\n cls: string\n kind: 'border' | 'outline' | 'ring'\n value: string\n node: StyleTree\n}\n\n/** Where each prop came from, so a duplicate can be reported and kept. */\ntype Origin = Map<StyleTree, Map<string, string>>\n\nfunction nodeFor(root: StyleTree, path: string[]): StyleTree {\n let node = root\n for (const key of path) {\n const next = node[key]\n if (typeof next === 'object') node = next\n else {\n const created: StyleTree = {}\n node[key] = created\n node = created\n }\n }\n return node\n}\n\n/**\n * Convert a class string. Unknown classes are kept (never dropped) and listed in `notes`.\n * convertClasses('flex p-4 md:p-6 hover:bg-gray-100') →\n * { style: { display: 'flex', p: 4, md: { p: 6 }, hover: { bg: 'gray.100' } }, kept: [], notes: [...] }\n */\nexport function convertClasses(input: string): ConvertResult {\n const style: StyleTree = {}\n const kept: string[] = []\n const notes: Note[] = []\n const origin: Origin = new Map()\n const pending: Pending[] = []\n const noted = new Set<string>()\n const note = (cls: string, kind: NoteKind, message: string) => {\n const key = `${kind}|${cls}|${message}`\n if (noted.has(key)) return\n noted.add(key)\n notes.push({ cls, kind, message })\n }\n const keep = (cls: string, kind: NoteKind, message: string) => {\n kept.push(cls)\n note(cls, kind, message)\n }\n\n for (const cls of input.split(/\\s+/).filter(Boolean)) {\n const parts = splitVariants(cls)\n const base = parts.pop()!\n if (base.startsWith('!') || base.endsWith('!')) {\n keep(cls, 'unknown', 'important (!) modifier is not supported')\n continue\n }\n if (/\\/\\d+$/.test(base) && !/^-?(w|h|min-w|min-h|max-w|max-h|basis|size|inset(?:-[xy])?|top|right|bottom|left|start|end)-\\d+\\/\\d+$/.test(base)) {\n keep(cls, 'unknown', 'colour opacity modifiers (/NN) are not supported')\n continue\n }\n const path: string[] = []\n let bad: string | null = null\n for (const v of parts) {\n const cond = VARIANTS[v]\n if (!cond) {\n bad = v\n break\n }\n path.push(cond)\n }\n if (bad !== null) {\n keep(cls, 'unknown', `unknown variant \"${bad}:\"`)\n continue\n }\n const hit = utility(base)\n if (!hit) {\n keep(cls, 'unknown', 'no Sobagu mapping')\n continue\n }\n const node = nodeFor(style, path)\n let seen = origin.get(node)\n if (!seen) origin.set(node, (seen = new Map()))\n const clash = hit.decls.find(([p]) => seen!.has(p))\n if (clash || (hit.pending && pending.some((x) => x.node === node && x.kind === hit.pending!.kind))) {\n const other = clash ? seen.get(clash[0]) : pending.find((x) => x.node === node && x.kind === hit.pending!.kind)!.cls\n keep(cls, 'conflict', `sets the same prop as \"${other}\" in the same condition; kept as a class`)\n continue\n }\n for (const [p, v] of hit.decls) {\n node[p] = v\n seen.set(p, cls)\n }\n if (hit.pending) pending.push({ cls, ...hit.pending, node })\n if (hit.approx) note(cls, 'approx', hit.approx)\n for (const v of parts) if (VARIANT_NOTES[v]) note(`${v}:`, v.startsWith('group') || v.startsWith('peer') ? 'info' : 'approx', VARIANT_NOTES[v]!)\n }\n\n for (const p of pending) mergeColor(p, origin.get(p.node)!, keep, note)\n splitStyledBorders(style)\n pruneEmpty(style)\n return { style, kept, notes }\n}\n\nconst WIDTH_KEYS = ['border', 'borderTop', 'borderRight', 'borderBottom', 'borderLeft', 'borderStart', 'borderEnd']\n\n/** Merge a border / outline / ring colour with the width class in the same condition. */\nfunction mergeColor(\n p: Pending,\n seen: Map<string, string>,\n keep: (cls: string, kind: NoteKind, message: string) => void,\n note: (cls: string, kind: NoteKind, message: string) => void,\n): void {\n const node = p.node\n if (p.kind === 'border') {\n const widths = WIDTH_KEYS.filter((k) => k in node)\n if (widths.length === 0) {\n node.borderColor = p.value\n return\n }\n if (widths.length > 1) {\n keep(p.cls, 'conflict', 'colour for several border sides with widths; set borderColor by hand')\n return\n }\n const key = widths[0]!\n const w = node[key]\n if (w === 1 && !('borderStyle' in node)) {\n node[key] = p.value // 1px solid <colour>\n return\n }\n if (key === 'border' && typeof w === 'number') {\n replaceInOrder(node, 'border', { borderWidth: w, borderStyle: (node.borderStyle as string | undefined) ?? 'solid', borderColor: p.value })\n return\n }\n keep(p.cls, 'conflict', `colour together with ${seen.get(key)}; set the border by hand`)\n return\n }\n const key = p.kind // 'outline' | 'ring'\n if (!(key in node)) {\n node.outlineColor = p.value\n if (p.kind === 'ring') note(p.cls, 'approx', 'ring colour without a ring width here: mapped to outlineColor')\n return\n }\n const w = node[key]\n const solidWidth = p.kind === 'ring' ? 2 : 1\n if (w === solidWidth) {\n node[key] = p.value\n return\n }\n keep(p.cls, 'conflict', `colour with ${seen.get(key)}: Sobagu's ${key} colour form is ${solidWidth}px; set it by hand`)\n}\n\n/** Replace one key with several, keeping its position in the object. */\nfunction replaceInOrder(node: StyleTree, key: string, add: StyleTree): void {\n const entries = Object.entries(node)\n for (const k of Object.keys(node)) delete node[k]\n for (const [k, v] of entries) {\n if (k === key) Object.assign(node, add)\n else if (!(k in add)) node[k] = v\n }\n}\n\n/** `border-2 border-dashed`: the width shorthand would fight borderStyle, so use longhands instead. */\nfunction splitStyledBorders(node: StyleTree): void {\n if (typeof node.border === 'number' && typeof node.borderStyle === 'string') {\n replaceInOrder(node, 'border', { borderWidth: node.border, borderStyle: node.borderStyle, borderColor: 'border' })\n }\n for (const v of Object.values(node)) if (typeof v === 'object') splitStyledBorders(v)\n}\n\nfunction pruneEmpty(node: StyleTree): void {\n for (const [k, v] of Object.entries(node)) {\n if (typeof v === 'object') {\n pruneEmpty(v)\n if (Object.keys(v).length === 0) delete node[k]\n }\n }\n}\n","import type { StyleTree, Value } from './classes'\n\nconst IDENT = /^[A-Za-z_$][\\w$]*$/\n\nfunction literal(v: Value | StyleTree): string {\n if (typeof v === 'object') return objectLiteral(v)\n return typeof v === 'string' ? JSON.stringify(v) : String(v)\n}\n\n/** { p: 6, hover: { bg: \"gray.100\" } } */\nexport function objectLiteral(tree: StyleTree): string {\n const parts = Object.entries(tree).map(([k, v]) => `${IDENT.test(k) ? k : JSON.stringify(k)}: ${literal(v)}`)\n return parts.length ? `{ ${parts.join(', ')} }` : '{}'\n}\n\n/** One JSX attribute: p={4}, radius=\"lg\", truncate, md={{ p: 6 }}. */\nexport function jsxAttr(key: string, v: Value | StyleTree): string {\n if (v === true) return key\n if (typeof v === 'string') return /[\"{}<>]/.test(v) ? `${key}={${JSON.stringify(v)}}` : `${key}=\"${v}\"`\n if (typeof v === 'object') return `${key}={${objectLiteral(v)}}`\n return `${key}={${String(v)}}`\n}\n\n/** All props of a style tree as JSX attributes, in insertion order. */\nexport function jsxAttrs(tree: StyleTree): string[] {\n return Object.entries(tree).map(([k, v]) => jsxAttr(k, v))\n}\n","// `sobagu migrate`: utility classes in JSX className=\"…\" → Sobagu props on <Box>.\n//\n// Strategy: parse with @babel/parser, then splice new text into the original source at the parser's\n// node offsets. Everything outside the changed tags (formatting, comments, quotes) stays byte-for-byte.\n//\n// <div className=\"flex p-4\"> → <Box display=\"flex\" p={4}>\n// <section className=\"p-4\"> → <Box as=\"section\" p={4}>\n//\n// Only static class strings are converted: \"…\", {\"…\"} and {`…`} without ${}. Unknown classes stay in\n// className. Elements that already carry an attribute named like a Sobagu prop (e.g. <ol start>,\n// <textarea wrap>, <svg fill>) are skipped, because <Box> would read that attribute as styling.\n\nimport { parse } from '@babel/parser'\nimport { conditions, markers, propConfig, shortcuts } from '@sobagu/core'\nimport { convertClasses, type Note, type StyleTree } from './classes'\nimport { jsxAttrs } from './print'\n\nconst SOURCE = '@sobagu/react'\nconst SOBAGU_COMPONENTS = ['Box', 'Stack', 'Grid', 'Text']\n\ninterface Node {\n type: string\n start: number\n end: number\n loc: { start: { line: number; column: number } }\n [key: string]: unknown\n}\n\nexport interface ElementChange {\n line: number\n before: string\n after: string\n kept: string[]\n notes: Note[]\n}\n\nexport interface Skip {\n line: number\n reason: string\n classes?: string\n}\n\nexport interface MigrateResult {\n code: string\n changed: boolean\n changes: ElementChange[]\n skipped: Skip[]\n /** Set when the whole file was left alone (parse error, name clash). */\n error?: string\n}\n\ninterface Edit {\n start: number\n end: number\n text: string\n}\n\nconst isNode = (v: unknown): v is Node => typeof v === 'object' && v !== null && typeof (v as Node).type === 'string'\n\nfunction walk(node: Node, visit: (n: Node) => void): void {\n visit(node)\n for (const key of Object.keys(node)) {\n if (key === 'loc' || key === 'extra' || key === 'leadingComments' || key === 'trailingComments' || key === 'innerComments') continue\n const v = node[key]\n if (Array.isArray(v)) for (const c of v) isNode(c) && walk(c, visit)\n else if (isNode(v)) walk(v, visit)\n }\n}\n\n/** Attribute names that <Box> would treat as style props (so converting would change behaviour). */\nfunction clashesWithStyleProp(name: string, value: Node | null): boolean {\n if (name in propConfig) return true\n const boolLike = value === null || (value.type === 'JSXExpressionContainer' && (value.expression as Node).type === 'BooleanLiteral')\n if ((name in shortcuts || (markers as readonly string[]).includes(name)) && boolLike) return true\n if (name in conditions && value?.type === 'JSXExpressionContainer' && (value.expression as Node).type === 'ObjectExpression') return true\n return false\n}\n\n/** The class string of a static className value, or null for dynamic values. */\nfunction staticClasses(value: Node | null): string | null {\n if (!value) return null\n if (value.type === 'StringLiteral') return value.value as string\n if (value.type !== 'JSXExpressionContainer') return null\n const e = value.expression as Node\n if (e.type === 'StringLiteral') return e.value as string\n if (e.type === 'TemplateLiteral' && (e.expressions as Node[]).length === 0) {\n const q = (e.quasis as Node[])[0]\n return q ? ((q.value as { cooked: string | null }).cooked ?? null) : null\n }\n return null\n}\n\nfunction applyEdits(src: string, edits: Edit[], offset = 0): string {\n let out = src\n for (const e of [...edits].sort((a, b) => b.start - a.start)) {\n out = out.slice(0, e.start - offset) + e.text + out.slice(e.end - offset)\n }\n return out\n}\n\nexport interface MigrateOptions {\n /** File name, used to pick the parser plugins (.tsx/.ts → TypeScript). */\n filename?: string\n}\n\nexport function migrateSource(src: string, opts: MigrateOptions = {}): MigrateResult {\n const filename = opts.filename ?? 'file.tsx'\n const ts = /\\.[cm]?tsx?$/.test(filename)\n let ast: Node\n try {\n ast = parse(src, {\n sourceType: 'module',\n plugins: ts ? ['typescript', 'jsx'] : ['jsx'],\n }) as unknown as Node\n } catch (err) {\n return { code: src, changed: false, changes: [], skipped: [], error: `parse error: ${(err as Error).message}` }\n }\n const program = ast.program as Node\n\n // Which local name to use for Box, and does the file already import it?\n const imports = (program.body as Node[]).filter((n) => n.type === 'ImportDeclaration')\n let boxName: string | null = null\n let target: Node | undefined // an `import { … } from '@sobagu/react'` we can add Box to\n const sobaguLocals = new Set<string>() // Box, Stack, Grid, Text: they take style props already\n for (const imp of imports) {\n if ((imp.source as Node).value !== SOURCE || imp.importKind === 'type') continue\n for (const s of imp.specifiers as Node[]) {\n if (s.type !== 'ImportSpecifier' || s.importKind === 'type') continue\n const imported = ((s.imported as Node).name ?? (s.imported as Node).value) as string\n const local = (s.local as Node).name as string\n if (imported === 'Box') boxName = local\n if (SOBAGU_COMPONENTS.includes(imported)) sobaguLocals.add(local)\n }\n if ((imp.specifiers as Node[]).some((s) => s.type === 'ImportSpecifier')) target ??= imp\n }\n const usedNames = new Set<string>()\n walk(ast, (n) => {\n if (n.type === 'Identifier' || n.type === 'JSXIdentifier') usedNames.add(n.name as string)\n })\n let alias: string | null = null\n if (!boxName) {\n alias = !usedNames.has('Box') ? 'Box' : !usedNames.has('SobaguBox') ? 'SobaguBox' : null\n if (!alias) {\n return { code: src, changed: false, changes: [], skipped: [], error: 'both \"Box\" and \"SobaguBox\" are already used in this file' }\n }\n }\n const box = boxName ?? alias!\n\n const edits: Edit[] = []\n const changes: ElementChange[] = []\n const skipped: Skip[] = []\n let usesBox = false\n\n walk(ast, (n) => {\n if (n.type !== 'JSXElement') return\n const open = n.openingElement as Node\n const attrs = open.attributes as Node[]\n const classAttrs = attrs.filter((a) => a.type === 'JSXAttribute' && (a.name as Node).name === 'className')\n if (classAttrs.length === 0) return\n const line = open.loc.start.line\n const attr = classAttrs[0]!\n const classes = staticClasses(attr.value as Node | null)\n const nameNode = open.name as Node\n const tag = nameNode.type === 'JSXIdentifier' ? (nameNode.name as string) : null\n\n if (classes === null) return void skipped.push({ line, reason: 'dynamic className (only static strings are converted)' })\n if (classAttrs.length > 1) return void skipped.push({ line, reason: 'more than one className attribute', classes })\n const isSobagu = !!tag && sobaguLocals.has(tag)\n if (!tag || (!/^[a-z]/.test(tag) && !isSobagu)) {\n const shown = tag ?? src.slice(nameNode.start, nameNode.end)\n return void skipped.push({ line, reason: `<${shown}> is a component, not an HTML element`, classes })\n }\n const result = convertClasses(classes)\n if (isSobagu) {\n // Already a Sobagu component: add the props, but never override a prop it already has.\n const taken = attrs.find((a) => a.type === 'JSXAttribute' && ((a.name as Node).name as string) in result.style)\n if (taken) {\n const name = (taken.name as Node).name as string\n return void skipped.push({ line, reason: `<${tag}> already has a \"${name}\" prop that the classes would set`, classes })\n }\n }\n const clash = isSobagu ? undefined : attrs.find(\n (a) => a !== attr && a.type === 'JSXAttribute' && (a.name as Node).type === 'JSXIdentifier' && clashesWithStyleProp((a.name as Node).name as string, a.value as Node | null),\n )\n if (clash) {\n const name = (clash.name as Node).name as string\n return void skipped.push({ line, reason: `<${tag}> has a \"${name}\" attribute, which <Box> would read as a style prop`, classes })\n }\n\n if (Object.keys(result.style).length === 0) {\n if (result.kept.length) skipped.push({ line, reason: 'no class could be converted', classes })\n return\n }\n const notes = [...result.notes]\n if (attrs.some((a) => a.type === 'JSXSpreadAttribute')) {\n notes.push({ cls: '{...spread}', kind: 'info', message: 'spread props: any key named like a Sobagu prop will now be read as styling' })\n }\n\n const elementEdits: Edit[] = []\n if (!isSobagu) {\n const asAttr = tag === 'div' ? '' : ` as=\"${tag}\"`\n elementEdits.push({ start: nameNode.start, end: nameNode.end, text: box + asAttr })\n usesBox = true\n }\n const props = jsxAttrs(result.style as StyleTree)\n if (result.kept.length) {\n const q = (attr.value as Node).type === 'StringLiteral' && src[(attr.value as Node).start] === \"'\" ? \"'\" : '\"'\n props.push(`className=${q}${result.kept.join(' ')}${q}`)\n }\n elementEdits.push({ start: attr.start, end: attr.end, text: props.join(' ') })\n const close = n.closingElement as Node | null\n if (close && !isSobagu) {\n const cn = close.name as Node\n edits.push({ start: cn.start, end: cn.end, text: box })\n }\n edits.push(...elementEdits)\n const before = src.slice(open.start, open.end)\n changes.push({ line, before, after: applyEdits(before, elementEdits, open.start), kept: result.kept, notes })\n })\n\n if (edits.length === 0) return { code: src, changed: false, changes, skipped }\n\n if (!boxName && usesBox) edits.push(importEdit(src, program, imports, target, alias!))\n const code = applyEdits(src, edits)\n return { code, changed: code !== src, changes, skipped }\n}\n\n/** Add Box to an existing @sobagu/react import, or add a new import line after the last import. */\nfunction importEdit(src: string, program: Node, imports: Node[], target: Node | undefined, alias: string): Edit {\n const spec = alias === 'Box' ? 'Box' : `Box as ${alias}`\n if (target) {\n const named = (target.specifiers as Node[]).filter((s) => s.type === 'ImportSpecifier')\n const last = named[named.length - 1]!\n return { start: last.end, end: last.end, text: `, ${spec}` }\n }\n const eol = src.includes('\\r\\n') ? '\\r\\n' : '\\n'\n const first = imports[0]\n const quote = first && src[(first.source as Node).start] === '\"' ? '\"' : \"'\"\n const semi = first ? src.slice(first.start, first.end).trimEnd().endsWith(';') : false\n const line = `import { ${spec} } from ${quote}${SOURCE}${quote}${semi ? ';' : ''}`\n const lastImport = imports[imports.length - 1]\n if (lastImport) return { start: lastImport.end, end: lastImport.end, text: eol + line }\n const directives = program.directives as Node[]\n const lastDirective = directives[directives.length - 1]\n if (lastDirective) return { start: lastDirective.end, end: lastDirective.end, text: eol + line }\n const interpreter = program.interpreter as Node | null\n if (interpreter) return { start: interpreter.end, end: interpreter.end, text: eol + line }\n return { start: 0, end: 0, text: line + eol + eol }\n}\n","import { animations, breakpoints, containerSizes, hues, paletteColor, semanticColors, steps, tokens } from '@sobagu/core'\nimport type { PaletteName, Step } from '@sobagu/core'\n\ntype Rows = string[][]\n\nconst scale = (o: Readonly<Record<string, string | number>>): Rows => Object.entries(o).map(([k, v]) => [k, String(v)])\n\nconst KINDS: Record<string, { title: string; head: string[]; rows: () => Rows }> = {\n space: { title: 'Space (p, m, gap, inset…; numbers are 4px units)', head: ['token', 'value'], rows: () => scale(tokens.space) },\n sizes: { title: 'Sizes (w, minW, maxW, basis; h uses 100dvh for \"screen\")', head: ['token', 'value'], rows: () => scale(tokens.sizes) },\n radii: { title: 'Radii (radius)', head: ['token', 'value'], rows: () => scale(tokens.radii) },\n fontSizes: { title: 'Font sizes (text)', head: ['token', 'value'], rows: () => scale(tokens.fontSizes) },\n fontWeights: { title: 'Font weights (weight)', head: ['token', 'value'], rows: () => scale(tokens.fontWeights) },\n lineHeights: { title: 'Line heights (leading)', head: ['token', 'value'], rows: () => scale(tokens.lineHeights) },\n letterSpacings: { title: 'Letter spacing (tracking)', head: ['token', 'value'], rows: () => scale(tokens.letterSpacings) },\n fonts: { title: 'Fonts (font)', head: ['token', 'value'], rows: () => scale(tokens.fonts) },\n shadows: { title: 'Shadows (shadow)', head: ['token', 'value'], rows: () => scale(tokens.shadows) },\n zIndices: { title: 'Z-index (z)', head: ['token', 'value'], rows: () => scale(tokens.zIndices) },\n transitions: { title: 'Transitions (transition)', head: ['token', 'value'], rows: () => scale(tokens.transitions) },\n animations: { title: 'Animations (animate)', head: ['token', 'value'], rows: () => scale(animations) },\n breakpoints: { title: 'Breakpoints (sm, md, lg, xl: min-width)', head: ['token', 'px'], rows: () => scale(breakpoints) },\n containers: { title: 'Container sizes (cqXs…cqXl: min-width)', head: ['token', 'px'], rows: () => scale(containerSizes) },\n colors: {\n title: 'Semantic colours (bg, color, border…)',\n head: ['token', 'light', 'dark'],\n rows: () => Object.entries(semanticColors).map(([k, [light, dark]]) => [k, light, dark]),\n },\n palette: {\n title: 'Palette (e.g. \"blue.500\")',\n head: ['colour', ...steps.map(String)],\n rows: () => (Object.keys(hues) as PaletteName[]).map((h) => [h, ...steps.map((s: Step) => paletteColor(h, s).replace(/^oklch\\((.*)\\)$/, '$1'))]),\n },\n}\n\nexport const tokenKinds = Object.keys(KINDS)\n\nfunction table(head: string[], rows: Rows): string {\n const widths = head.map((h, i) => Math.max(h.length, ...rows.map((r) => (r[i] ?? '').length)))\n const line = (cells: string[]) => cells.map((c, i) => c.padEnd(widths[i]!)).join(' ').trimEnd()\n return [line(head), widths.map((w) => '─'.repeat(w)).join(' '), ...rows.map(line)].join('\\n')\n}\n\n/** One token kind as a plain-text table. */\nexport function tokenTable(kind: string): string {\n const k = KINDS[kind]\n if (!k) throw new Error(`Unknown token kind \"${kind}\"`)\n const note = kind === 'palette' ? '\\n(values are oklch(L C H))' : ''\n return `${k.title}${note}\\n${table(k.head, k.rows())}`\n}\n","export type Framework = 'react' | 'vue' | 'svelte' | 'solid' | 'angular' | 'none'\n\nexport interface InitPlan {\n framework: Framework\n command: string\n lines: string[]\n config: string\n}\n\nconst DETECT: [Framework, string][] = [\n ['angular', '@angular/core'],\n ['svelte', 'svelte'],\n ['solid', 'solid-js'],\n ['vue', 'vue'],\n ['react', 'react'],\n]\n\nconst LABEL: Record<Framework, string> = {\n react: 'React',\n vue: 'Vue',\n svelte: 'Svelte',\n solid: 'Solid',\n angular: 'Angular',\n none: 'no framework',\n}\n\n/** Detect the framework from package.json dependencies (Angular/Svelte/Solid win over a React or Vue dep). */\nexport function detectFramework(pkg: Record<string, unknown> | null): Framework {\n if (!pkg) return 'none'\n const deps = { ...(pkg.dependencies as object), ...(pkg.devDependencies as object), ...(pkg.peerDependencies as object) }\n for (const [fw, name] of DETECT) if (name in deps) return fw\n return 'none'\n}\n\nfunction installer(lockfiles: string[]): string {\n if (lockfiles.includes('pnpm-lock.yaml')) return 'pnpm add'\n if (lockfiles.includes('yarn.lock')) return 'yarn add'\n if (lockfiles.includes('bun.lockb') || lockfiles.includes('bun.lock')) return 'bun add'\n return 'npm i'\n}\n\nconst CONFIG = `// Sobagu config: your own props, conditions and shortcuts.\n// Import this file once at app start (for example in main.tsx), before the first render.\nimport { definePlugin, use } from '@sobagu/core'\n\nconst app = definePlugin({\n name: 'app',\n shortcuts: {\n // pill: { radius: 'full', px: 'md' },\n },\n conditions: {\n // hocus: { kind: 'selector', template: '&:is(:hover, :focus-visible)', rank: 25 },\n },\n})\n\nuse(app)\n\nexport default app\n`\n\nexport function initPlan(pkg: Record<string, unknown> | null, lockfiles: string[] = []): InitPlan {\n const framework = detectFramework(pkg)\n const add = installer(lockfiles)\n const adapter = framework === 'react' ? '@sobagu/react' : framework === 'vue' ? '@sobagu/vue' : null\n const command = `${add} @sobagu/core${adapter ? ` ${adapter}` : ''}`\n const lines = [pkg ? `Detected: ${LABEL[framework]}` : 'No package.json found here.', '', 'Install:', ` ${command}`]\n if (framework === 'react') lines.push('', \"Then: import { Box } from '@sobagu/react'\")\n else if (framework === 'vue') lines.push('', \"Then: app.use(Sobagu) with import { Sobagu } from '@sobagu/vue'\")\n else lines.push('', `No ${framework === 'none' ? '' : LABEL[framework] + ' '}adapter yet: use css() from '@sobagu/core' on any element.`)\n return { framework, command, lines, config: CONFIG }\n}\n","import { parseArgs } from 'node:util'\nimport { auditContrast, createTheme } from '@sobagu/core'\nimport type { IO } from './cli'\n\n/** sobagu audit [--brand <hex|hue>]: WCAG contrast of the semantic colours (and a brand theme). */\nexport function auditCmd(args: string[], io: IO): number {\n const { values } = parseArgs({ args, options: { brand: { type: 'string' } }, allowPositionals: false })\n const checks = auditContrast()\n const w = Math.max(...checks.map((c) => c.pair.length))\n io.out(`${'pair'.padEnd(w)} need light dark result`)\n for (const c of checks) {\n io.out(`${c.pair.padEnd(w)} ${String(c.required).padEnd(5)} ${c.light.toFixed(2).padStart(5)} ${c.dark.toFixed(2).padStart(5)} ${c.pass ? 'pass' : 'FAIL'}`)\n }\n let failed = checks.filter((c) => !c.pass).length\n if (values.brand) {\n const brand = /^\\d+(\\.\\d+)?$/.test(values.brand) ? Number(values.brand) : values.brand\n const theme = createTheme({ brand })\n io.out('')\n io.out(`brand ${values.brand}: primary on white ${theme.contrast.primaryOnSurface}:1, text on primary ${theme.contrast.onPrimaryLight}:1 (light) / ${theme.contrast.onPrimaryDark}:1 (dark)`)\n for (const warning of theme.warnings) io.out(` ! ${warning}`)\n failed += theme.warnings.length\n }\n io.out('')\n io.out(failed ? `${failed} problem(s) below WCAG AA` : 'All colours pass WCAG AA')\n return failed ? 1 : 0\n}\n","/// <reference types=\"node\" />\nimport { existsSync, globSync, readFileSync, statSync, writeFileSync } from 'node:fs'\nimport { join, relative, resolve } from 'node:path'\nimport { parseArgs } from 'node:util'\nimport type { Note } from './classes'\nimport { migrateSource, type MigrateResult } from './migrate'\nimport { tokenKinds, tokenTable } from './tokens'\nimport { initPlan } from './init'\nimport { auditCmd } from './audit'\nimport { toDesignTokens } from '@sobagu/core'\n\nexport interface IO {\n out: (line: string) => void\n err: (line: string) => void\n cwd: string\n}\n\nconst defaultIO: IO = {\n out: (l) => process.stdout.write(l + '\\n'),\n err: (l) => process.stderr.write(l + '\\n'),\n cwd: process.cwd(),\n}\n\nconst HELP = `sobagu — the Sobagu command line\n\nUsage:\n sobagu migrate <file|glob…> [--write] [--report] utility classes in className → <Box> props\n sobagu init [--write] install command for your framework (+ config stub)\n sobagu tokens [kind] [--json [--out <file>]] print design tokens (table, or W3C/DTCG JSON for design tools)\n sobagu audit [--brand <hex>] WCAG contrast check of the colours (exit 1 on failure)\n sobagu --help | --version\n\nmigrate is a dry run unless --write is given. --report lists unknown classes, approximations and\nskipped elements for all files.`\n\nexport async function main(argv: string[], io: IO = defaultIO): Promise<number> {\n const [cmd, ...rest] = argv\n try {\n switch (cmd) {\n case 'migrate':\n return migrateCmd(rest, io)\n case 'init':\n return initCmd(rest, io)\n case 'tokens':\n return tokensCmd(rest, io)\n case 'audit':\n return auditCmd(rest, io)\n case '--version':\n case '-v':\n io.out(readVersion())\n return 0\n case undefined:\n case '--help':\n case '-h':\n case 'help':\n io.out(HELP)\n return 0\n default:\n io.err(`Unknown command \"${cmd}\".\\n\\n${HELP}`)\n return 1\n }\n } catch (e) {\n io.err(`sobagu: ${(e as Error).message}`)\n return 1\n }\n}\n\nfunction readVersion(): string {\n const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')) as { version: string }\n return pkg.version\n}\n\n// ───────────────────────── migrate ─────────────────────────\n\nconst EXT = /\\.(jsx|tsx|js|mjs|cjs|mts|cts)$/\n\n/** Expand the arguments: existing files as-is, directories → their JSX/TSX files, anything else as a glob. */\nexport function expandFiles(patterns: string[], cwd: string): string[] {\n const out = new Set<string>()\n const ignore = (p: string) => /(^|[\\\\/])(node_modules|dist|\\.git)([\\\\/]|$)/.test(p)\n for (const p of patterns) {\n const abs = resolve(cwd, p)\n if (existsSync(abs) && statSync(abs).isFile()) {\n out.add(abs)\n continue\n }\n const pattern = existsSync(abs) && statSync(abs).isDirectory() ? `${p.replace(/[\\\\/]+$/, '')}/**/*.{jsx,tsx,js}` : p\n for (const f of globSync(pattern.replace(/\\\\/g, '/'), { cwd })) {\n const full = resolve(cwd, f)\n if (!ignore(relative(cwd, full)) && EXT.test(full) && statSync(full).isFile()) out.add(full)\n }\n }\n return [...out].sort()\n}\n\nfunction migrateCmd(args: string[], io: IO): number {\n const { values, positionals } = parseArgs({\n args,\n allowPositionals: true,\n options: { write: { type: 'boolean', default: false }, report: { type: 'boolean', default: false }, help: { type: 'boolean', short: 'h' } },\n })\n if (values.help || positionals.length === 0) {\n io.out('Usage: sobagu migrate <file|glob…> [--write] [--report]')\n return positionals.length === 0 && !values.help ? 1 : 0\n }\n const files = expandFiles(positionals, io.cwd)\n if (files.length === 0) {\n io.err(`No files matched: ${positionals.join(' ')}`)\n return 1\n }\n\n let failed = 0\n let converted = 0\n let changedFiles = 0\n const all: { file: string; result: MigrateResult }[] = []\n for (const file of files) {\n const rel = relative(io.cwd, file).replace(/\\\\/g, '/')\n const src = readFileSync(file, 'utf8')\n const result = migrateSource(src, { filename: file })\n all.push({ file: rel, result })\n if (result.error) {\n failed++\n io.err(`${rel}: skipped — ${result.error}`)\n continue\n }\n if (!result.changes.length && !result.skipped.length) continue\n converted += result.changes.length\n if (result.changed) changedFiles++\n io.out(`\\n${rel} (${result.changes.length} element${result.changes.length === 1 ? '' : 's'}${values.write ? '' : ', dry run'})`)\n const rows: { line: number; text: string[] }[] = [\n ...result.changes.map((c) => ({\n line: c.line,\n text: [\n `${String(c.line).padStart(5)} - ${oneLine(c.before)}`,\n `${' '.repeat(5)} + ${oneLine(c.after)}`,\n ...(c.kept.length ? [`${' '.repeat(7)}kept in className: ${c.kept.join(' ')}`] : []),\n ],\n })),\n ...result.skipped.map((s) => ({ line: s.line, text: [`${String(s.line).padStart(5)} ! skipped: ${s.reason}`] })),\n ]\n for (const r of rows.sort((a, b) => a.line - b.line)) for (const t of r.text) io.out(t)\n if (values.write && result.changed) writeFileSync(file, result.code)\n }\n\n const kept = all.reduce((n, { result }) => n + result.changes.reduce((k, c) => k + c.kept.length, 0), 0)\n const approx = all.reduce((n, { result }) => n + result.changes.reduce((k, c) => k + c.notes.filter((x) => x.kind === 'approx').length, 0), 0)\n io.out(\n `\\n${files.length} file${files.length === 1 ? '' : 's'} scanned, ${converted} element${converted === 1 ? '' : 's'} converted in ${changedFiles} file${changedFiles === 1 ? '' : 's'}, ` +\n `${kept} class${kept === 1 ? '' : 'es'} kept, ${approx} approximation${approx === 1 ? '' : 's'}.`,\n )\n if (values.report) printReport(all, io)\n else if (kept || approx) io.out('Run with --report for the list of kept classes and approximations.')\n if (!values.write && changedFiles) io.out('Dry run: nothing was written. Re-run with --write to save the changes.')\n return failed ? 1 : 0\n}\n\nconst oneLine = (s: string) => s.replace(/\\s*\\r?\\n\\s*/g, ' ').replace(/ (\\/?>)$/, '$1')\n\nfunction printReport(all: { file: string; result: MigrateResult }[], io: IO): void {\n const groups: Record<Note['kind'], Map<string, { message: string; where: string[] }>> = {\n unknown: new Map(),\n conflict: new Map(),\n approx: new Map(),\n info: new Map(),\n }\n for (const { file, result } of all) {\n for (const c of result.changes) {\n for (const n of c.notes) {\n const key = `${n.cls}|${n.message}`\n const g = groups[n.kind].get(key) ?? { message: n.message, where: [] }\n g.where.push(`${file}:${c.line}`)\n groups[n.kind].set(key, g)\n }\n }\n }\n const titles: Record<Note['kind'], string> = {\n unknown: 'Kept (no Sobagu mapping)',\n conflict: 'Kept (conflicting)',\n approx: 'Approximations (check visually)',\n info: 'Notes',\n }\n io.out('\\nReport')\n for (const kind of ['unknown', 'conflict', 'approx', 'info'] as const) {\n const g = groups[kind]\n if (!g.size) continue\n io.out(`\\n ${titles[kind]}:`)\n for (const [key, v] of g) {\n const cls = key.slice(0, key.indexOf('|'))\n io.out(` ${cls.padEnd(24)} ${v.message} (${v.where.length}×: ${v.where.slice(0, 3).join(', ')}${v.where.length > 3 ? ', …' : ''})`)\n }\n }\n const skipped = all.flatMap(({ file, result }) => [\n ...(result.error ? [`${file}: ${result.error}`] : []),\n ...result.skipped.map((s) => `${file}:${s.line} ${s.reason}${s.classes ? ` — \"${s.classes}\"` : ''}`),\n ])\n if (skipped.length) {\n io.out('\\n Skipped elements (left unchanged):')\n for (const s of skipped) io.out(` ${s}`)\n }\n}\n\n// ───────────────────────── init ─────────────────────────\n\nfunction initCmd(args: string[], io: IO): number {\n const { values } = parseArgs({ args, options: { write: { type: 'boolean', default: false }, cwd: { type: 'string' } } })\n const cwd = values.cwd ? resolve(io.cwd, values.cwd) : io.cwd\n const pkgPath = join(cwd, 'package.json')\n const pkg = existsSync(pkgPath) ? (JSON.parse(readFileSync(pkgPath, 'utf8')) as Record<string, unknown>) : null\n const lockfiles = ['pnpm-lock.yaml', 'yarn.lock', 'bun.lockb', 'bun.lock'].filter((f) => existsSync(join(cwd, f)))\n const plan = initPlan(pkg, lockfiles)\n for (const line of plan.lines) io.out(line)\n const configPath = join(cwd, 'sobagu.config.ts')\n if (!values.write) {\n io.out(`\\nNothing written. Run \"sobagu init --write\" to create sobagu.config.ts.`)\n return 0\n }\n if (existsSync(configPath)) {\n io.out('\\nsobagu.config.ts already exists; left unchanged.')\n return 0\n }\n writeFileSync(configPath, plan.config)\n io.out('\\nCreated sobagu.config.ts')\n return 0\n}\n\n// ───────────────────────── tokens ─────────────────────────\n\nfunction tokensCmd(args: string[], io: IO): number {\n const { positionals, values } = parseArgs({\n args,\n allowPositionals: true,\n options: { json: { type: 'boolean' }, out: { type: 'string' } },\n })\n if (values.json) {\n const json = JSON.stringify(toDesignTokens(), null, 2)\n if (values.out) {\n writeFileSync(resolve(io.cwd, values.out), json + '\\n')\n io.out(`wrote ${values.out} (W3C design tokens; import it with a design-token plugin)`)\n } else io.out(json)\n return 0\n }\n const kind = positionals[0]\n if (kind && !tokenKinds.includes(kind)) {\n io.err(`Unknown token kind \"${kind}\". Kinds: ${tokenKinds.join(', ')}`)\n return 1\n }\n const kinds = kind ? [kind] : tokenKinds\n io.out(kinds.map((k) => tokenTable(k)).join('\\n\\n'))\n return 0\n}\n"],"mappings":";;;;;AACA,IAAI,QAAQ;CACX,MAAM;CACN,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;AACR;AACA,IAAI,QAAQ;CACX,GAAG;CACH,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,KAAK;CACL,KAAK;CACL,KAAK;CACL,OAAO;CACP,QAAQ;CACR,SAAS;CACT,MAAM;CACN,QAAQ;AACT;AACA,IAAI,SAAS;CACZ,GAAG;CACH,QAAQ;AACT;AACA,IAAI,QAAQ;CACX,MAAM;CACN,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,MAAM;AACP;AACA,IAAI,YAAY;CACf,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACR;AACA,IAAI,cAAc;CACjB,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,MAAM;CACN,OAAO;AACR;AACA,IAAI,cAAc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D,OAAO;AACT"}
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "@sobagu/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Sobagu CSS command line: migrate utility classes to style props, init, tokens",
5
+ "keywords": [
6
+ "cli",
7
+ "codemod",
8
+ "migrate",
9
+ "design-tokens",
10
+ "css",
11
+ "styling"
12
+ ],
13
+ "license": "MIT",
14
+ "author": "Sobagu contributors",
15
+ "homepage": "https://sobagucss.com",
16
+ "type": "module",
17
+ "exports": {
18
+ "./package.json": "./package.json"
19
+ },
20
+ "bin": {
21
+ "sobagu": "./bin/sobagu.js"
22
+ },
23
+ "files": [
24
+ "bin",
25
+ "dist",
26
+ "LICENSE",
27
+ "README.md"
28
+ ],
29
+ "engines": {
30
+ "node": "^22.18.0 || >=24.11.0"
31
+ },
32
+ "scripts": {
33
+ "build": "vite build",
34
+ "prepack": "node ../../scripts/pack-manifest.mjs strip",
35
+ "postpack": "node ../../scripts/pack-manifest.mjs restore"
36
+ },
37
+ "dependencies": {
38
+ "@babel/parser": "^8.1.2",
39
+ "@sobagu/core": "0.1.0"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public",
43
+ "provenance": false
44
+ },
45
+ "sobaguOwnBuild": true
46
+ }