@korzun/design 0.0.5 → 0.0.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/component/card/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEnE,eAAO,MAAM,QAAQ;;oRAkElB,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/component/card/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEnE,eAAO,MAAM,QAAQ;;oRAoElB,CAAC"}
@@ -2,7 +2,9 @@ import { createUseStyles } from '../../theme/index.js';
2
2
  export const useStyle = createUseStyles((theme) => ({
3
3
  root: {
4
4
  ...theme.recipe.card.shell,
5
- '&$small': { borderRadius: '9px' },
5
+ // A small card insets its content by 1px, so it is md + 1px: concentric with the
6
+ // md-cornered children (covers, rows) that sit flush inside it.
7
+ '&$small': { borderRadius: `calc(${theme.radius.md} + 1px)` },
6
8
  },
7
9
  header: {
8
10
  ...theme.recipe.card.header,
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/component/card/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,sBAAsB,CAAC;AAEnE,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE;QACJ,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK;QAC1B,SAAS,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;KACnC;IACD,MAAM,EAAE;QACN,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM;QAC3B,UAAU,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,K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AAC,UAAU,CAAC,MAAM,EAAE;KACnD;IACD,gBAAgB,EAAE;QAChB,SAAS,EAAE,cAAc;KAC1B;IACD,eAAe,EAAE;QACf,SAAS,EAAE,eAAe;KAC3B;IACD,SAAS,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;IAChC,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;CACV,CAAC,CAAC,CAAC","sourcesContent":["import { createUseStyles, type Theme } from '../../theme/index.js';\n\nexport const useStyle = createUseStyles((theme: Theme) => ({\n root: {\n ...theme.recipe.card.shell,\n '&$small': { borderRadius: '9px' },\n },\n header: {\n ...theme.recipe.card.header,\n '&$danger': { color: theme.color.danger.default },\n '&$collapsed': {\n borderBottomStyle: 'none',\n },\n },\n headerAction: {\n display: 'flex',\n gap: theme.space.sm,\n },\n footer: {\n ...theme.recipe.card.footer,\n },\n title: {\n fontWeight: theme.fontWeight.semibold,\n fontSize: theme.fontSize.md,\n color: theme.color.text.muted,\n },\n subTitle: {\n fontSize: theme.fontSize.xs,\n color: theme.color.text.faint,\n marginLeft: theme.space.xs,\n },\n spacer: { flexGrow: 1 },\n content: {\n '&$small': {\n padding: '1px',\n },\n '&$large': { padding: theme.space.xl },\n },\n titleGroup: {\n display: 'flex',\n alignItems: 'baseline',\n },\n titleWrapper: {\n display: 'flex',\n alignItems: 'baseline',\n gap: theme.space.xl,\n },\n chevron: {\n position: 'relative',\n top: '4.5px', // sub-pixel optical centering\n left: '1.5px',\n display: 'block',\n height: '20px',\n width: '20px',\n margin: '-6px',\n transition: `transform ${theme.transition.medium}`,\n },\n chevronCollapsed: {\n transform: 'rotate(0deg)',\n },\n chevronExpanded: {\n transform: 'rotate(90deg)',\n },\n clickable: { cursor: 'pointer' },\n collapsed: {},\n danger: {},\n small: {},\n large: {},\n}));\n"]}
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/component/card/style.ts"],"names":[],"mappings":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AK,CAAC,KAAK,CAAC,EAAE,EAAE;KACvC;IACD,UAAU,EAAE;QACV,OAAO,EAAE,MAAM;QACf,UAAU,EAAE,UAAU;KACvB;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,MAAM;QACf,UAAU,EAAE,UAAU;QACtB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;KACpB;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,OAAO,EAAE,8BAA8B;QAC5C,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,aAAa,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE;KACnD;IACD,gBAAgB,EAAE;QAChB,SAAS,EAAE,cAAc;KAC1B;IACD,eAAe,EAAE;QACf,SAAS,EAAE,eAAe;KAC3B;IACD,SAAS,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;IAChC,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;CACV,CAAC,CAAC,CAAC","sourcesContent":["import { createUseStyles, type Theme } from '../../theme/index.js';\n\nexport const useStyle = createUseStyles((theme: Theme) => ({\n root: {\n ...theme.recipe.card.shell,\n // A small card insets its content by 1px, so it is md + 1px: concentric with the\n // md-cornered children (covers, rows) that sit flush inside it.\n '&$small': { borderRadius: `calc(${theme.radius.md} + 1px)` },\n },\n header: {\n ...theme.recipe.card.header,\n '&$danger': { color: theme.color.danger.default },\n '&$collapsed': {\n borderBottomStyle: 'none',\n },\n },\n headerAction: {\n display: 'flex',\n gap: theme.space.sm,\n },\n footer: {\n ...theme.recipe.card.footer,\n },\n title: {\n fontWeight: theme.fontWeight.semibold,\n fontSize: theme.fontSize.md,\n color: theme.color.text.muted,\n },\n subTitle: {\n fontSize: theme.fontSize.xs,\n color: theme.color.text.faint,\n marginLeft: theme.space.xs,\n },\n spacer: { flexGrow: 1 },\n content: {\n '&$small': {\n padding: '1px',\n },\n '&$large': { padding: theme.space.xl },\n },\n titleGroup: {\n display: 'flex',\n alignItems: 'baseline',\n },\n titleWrapper: {\n display: 'flex',\n alignItems: 'baseline',\n gap: theme.space.xl,\n },\n chevron: {\n position: 'relative',\n top: '4.5px', // sub-pixel optical centering\n left: '1.5px',\n display: 'block',\n height: '20px',\n width: '20px',\n margin: '-6px',\n transition: `transform ${theme.transition.medium}`,\n },\n chevronCollapsed: {\n transform: 'rotate(0deg)',\n },\n chevronExpanded: {\n transform: 'rotate(90deg)',\n },\n clickable: { cursor: 'pointer' },\n collapsed: {},\n danger: {},\n small: {},\n large: {},\n}));\n"]}
@@ -4,7 +4,7 @@ export const useStyle = createUseStyles((theme) => ({
4
4
  ...theme.recipe.card.shell,
5
5
  backgroundColor: theme.color.bg.card,
6
6
  padding: '6px', // row-specific compact padding
7
- borderRadius: '12px', // row-specific 10px radius (not on theme scale)
7
+ // Corners come from recipe.card.shell (radius.lg): a row sits on the page background.
8
8
  },
9
9
  clickable: {
10
10
  cursor: 'pointer',
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/component/card-row/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,sBAAsB,CAAC;AAEnE,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE;QACJ,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK;QAC1B,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI;QACpC,OAAO,EAAE,KAAK,EAAE,+BAA+B;QAC/C,YAAY,EAAE,MAAM,EAAE,gDAAgD;KACvE;IACD,SAAS,EAAE;QACT,MAAM,EAAE,SAAS;KAClB;CACF,CAAC,CAAC,CAAC","sourcesContent":["import { createUseStyles, type Theme } from '../../theme/index.js';\n\nexport const useStyle = createUseStyles((theme: Theme) => ({\n root: {\n ...theme.recipe.card.shell,\n backgroundColor: theme.color.bg.card,\n padding: '6px', // row-specific compact padding\n borderRadius: '12px', // row-specific 10px radius (not on theme scale)\n },\n clickable: {\n cursor: 'pointer',\n },\n}));\n"]}
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/component/card-row/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,sBAAsB,CAAC;AAEnE,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE;QACJ,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK;QAC1B,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI;QACpC,OAAO,EAAE,KAAK,EAAE,+BAA+B;QAC/C,sFAAsF;KACvF;IACD,SAAS,EAAE;QACT,MAAM,EAAE,SAAS;KAClB;CACF,CAAC,CAAC,CAAC","sourcesContent":["import { createUseStyles, type Theme } from '../../theme/index.js';\n\nexport const useStyle = createUseStyles((theme: Theme) => ({\n root: {\n ...theme.recipe.card.shell,\n backgroundColor: theme.color.bg.card,\n padding: '6px', // row-specific compact padding\n // Corners come from recipe.card.shell (radius.lg): a row sits on the page background.\n },\n clickable: {\n cursor: 'pointer',\n },\n}));\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/control/switch/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,CAAC;AACjD,oBAAY,YAAY;IACtB;;;;OAIG;IACH,KAAK,UAAU;IACf;;;;;;;;;;OAUG;IACH,IAAI,SAAS;CACd;AAED,eAAO,MAAM,QAAQ;;2MAyIlB,CAAC"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/control/switch/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,CAAC;AACjD,oBAAY,YAAY;IACtB;;;;OAIG;IACH,KAAK,UAAU;IACf;;;;;;;;;;OAUG;IACH,IAAI,SAAS;CACd;AAED,eAAO,MAAM,QAAQ;;2MAuIlB,CAAC"}
@@ -128,9 +128,7 @@ export const useStyle = createUseStyles((theme) => ({
128
128
  alignItems: 'center',
129
129
  gap: theme.space.md,
130
130
  width: '100%',
131
- backgroundColor: theme.color.bg.cardHeader,
132
- borderRadius: theme.radius.md,
133
- padding: `${theme.space.md} ${theme.space.lg} ${theme.space.md} ${theme.space.sm}`,
131
+ ...theme.recipe.row,
134
132
  '& $content': {
135
133
  display: 'flex',
136
134
  flexDirection: 'column',
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/control/switch/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,sBAAsB,CAAC;AAanE,MAAM,CAAN,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACtB;;;;OAIG;IACH,+BAAe,CAAA;IACf;;;;;;;;;;OAUG;IACH,6BAAa,CAAA;AACf,CAAC,EAnBW,YAAY,KAAZ,YAAY,QAmBvB;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE;QACJ,OAAO,EAAE,aAAa;QACtB,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,YAAY;QACxB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;QACnB,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,MAAM;QA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D,OAAO,EAAE,EAAE;IACX,UAAU,EAAE;QACV,+EAA+E;QAC/E,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;QACnB,KAAK,EAAE,MAAM;QACb,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU;QAC1C,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;QAC7B,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE;QAClF,YAAY,EAAE;YACZ,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;YACnB,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,CAAC;SACZ;QACD,UAAU,EAAE;YACV,6DAA6D;YAC7D,SAAS,EAAE,MAAM;SAClB;QACD,gBAAgB,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,gFAAgF;YAChF,MAAM,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACV,mEAAmE;YACnE,UAAU,EAAE,CAAC;SACd;KACF;IACD,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE;CACX,CAAC,CAAC,CAAC","sourcesContent":["import { createUseStyles, type Theme } from '../../theme/index.js';\n\n/**\n * Named for what the switch SITS IN rather than for a size, matching\n * `ButtonRadius`: a caller knows its own surroundings, not which step of the\n * radius scale suits a 16px-tall track.\n *\n * Deliberately two values, where `ButtonRadius` has four. A switch's track is\n * 16px tall, so any radius of 8px or more clamps to a full pill — `card`\n * (`radius.md`) and `pill` would be the same shape, named twice, and could\n * never diverge while the track keeps that height.\n */\nexport type SwitchRadiusValue = 'inset' | 'pill';\nexport enum SwitchRadius {\n /**\n * Concentric with the shaded input row the switch sits in: 16px card, 8px\n * row, 4px track, 2px thumb. The default, because that row is where every\n * switch in this app currently lives.\n */\n Inset = 'inset',\n /**\n * The classic capsule, and the rule for a switch in a CARD HEADER.\n *\n * Not about shading — a card header is painted `bg.cardHeader`, the same\n * colour as the input row. It is about whether there is anything nearby to\n * be concentric WITH. An input row is a small rounded rectangle wrapping the\n * switch, so a 4px track echoes its 8px corner a few pixels away. A card\n * header is a full-width bar whose only corners are the card's own, far off\n * at either end: nothing for the track to relate to, so it reads better as a\n * self-contained control than as a square-ish chip floating in a bar.\n */\n Pill = 'pill',\n}\n\nexport const useStyle = createUseStyles((theme: Theme) => ({\n root: {\n display: 'inline-flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: theme.space.xs,\n cursor: 'pointer',\n userSelect: 'none',\n '-webkit-user-select': 'none',\n },\n row: {\n display: 'flex',\n alignItems: 'center',\n gap: theme.space.md,\n },\n description: {\n // Indent under the label (past the 28px track + row gap) so it reads as\n // helper text for this toggle rather than a separate row.\n marginLeft: `calc(28px + ${theme.space.md})`,\n fontSize: theme.fontSize.sm,\n // Dedicated description colour — darker than faint for readable helper text,\n // especially on the shaded background of the horizontal layout.\n color: theme.color.text.description,\n cursor: 'auto',\n },\n track: {\n position: 'relative',\n width: '28px',\n height: '16px',\n backgroundColor: theme.color.border.default,\n ...theme.recipe.focusRing,\n transitionProperty: 'background-color, outline-color',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'ease-in',\n '$root:hover &': { outlineColor: theme.color.brand.outline },\n '$root:focus &': { outlineColor: theme.color.brand.outline },\n '&$checked': { backgroundColor: theme.color.brand.default },\n '&$disabled': { opacity: 0.4, cursor: 'not-allowed' },\n },\n thumb: {\n position: 'absolute',\n top: '2px',\n left: '2px',\n width: '12px',\n height: '12px',\n backgroundColor: theme.color.bg.input,\n transitionProperty: 'left',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'ease-in',\n '$checked &': { left: '14px' },\n },\n /**\n * Each value sets the track AND its thumb together, because the two are not\n * independent: the thumb is inset 2px on every side, so a concentric thumb\n * is always the track's radius less that inset. Splitting them into two\n * props would let a caller produce a square thumb in a capsule track.\n */\n [SwitchRadius.Inset]: {\n borderRadius: theme.radius.sm,\n // Arithmetic rather than a token so it follows the track automatically if\n // that radius ever changes — and because the scale has no 2px step.\n '& $thumb': { borderRadius: `calc(${theme.radius.sm} - 2px)` },\n },\n [SwitchRadius.Pill]: {\n borderRadius: theme.radius.pill,\n '& $thumb': { borderRadius: theme.radius.circle },\n },\n\n /**\n * Replaces the thumb while a save is in flight. Sized to the thumb it\n * stands in for, and inheriting `currentColor` from `$track` below so it\n * stays legible against both track colours.\n */\n spinner: {\n ...theme.recipe.spinner,\n position: 'absolute',\n top: '2px',\n width: '12px',\n height: '12px',\n // Matches the thumb's own transition, so a click that both moves the\n // switch AND starts a save does not animate the two at different speeds.\n transitionProperty: 'left',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'ease-in',\n left: '2px',\n '$checked &': { left: '14px' },\n },\n loading: {\n // The track keeps its colour — this is \"working\", not \"unavailable\",\n // which `disabled` already says by fading to 40%. Only the cursor and the\n // thumb change.\n cursor: 'progress',\n // `currentColor` for the spinner: muted against the pale unchecked track,\n // white against the saturated checked one. A single colour would vanish\n // into one of the two.\n color: theme.color.text.muted,\n '&$checked': { color: theme.color.bg.input },\n },\n\n label: {\n ...theme.recipe.label,\n },\n content: {},\n horizontal: {\n // Two columns: content (label + description) on the left, toggle on the right.\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: theme.space.md,\n width: '100%',\n backgroundColor: theme.color.bg.cardHeader,\n borderRadius: theme.radius.md,\n padding: `${theme.space.md} ${theme.space.lg} ${theme.space.md} ${theme.space.sm}`,\n '& $content': {\n display: 'flex',\n flexDirection: 'column',\n gap: theme.space.xs,\n flexGrow: 1,\n minWidth: 0,\n },\n '& $label': {\n // Left-aligned to the same edge as the other fields' labels.\n textAlign: 'left',\n },\n '& $description': {\n margin: 0,\n // The whole shaded row toggles, so the description shows the toggle cursor too.\n cursor: 'pointer',\n },\n '& $track': {\n // Kept in its own column so the description never runs beneath it.\n flexShrink: 0,\n },\n },\n checked: {},\n disabled: {},\n danger: {},\n}));\n"]}
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/control/switch/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,sBAAsB,CAAC;AAanE,MAAM,CAAN,IAAY,YAmBX;AAnBD,WAAY,YAAY;IACtB;;;;OAIG;IACH,+BAAe,CAAA;IACf;;;;;;;;;;OAUG;IACH,6BAAa,CAAA;AACf,CAAC,EAnBW,YAAY,KAAZ,YAAY,QAmBvB;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACzD,IAAI,EAAE;QACJ,OAAO,EAAE,aAAa;QACtB,aAAa,EAAE,QAAQ;QACvB,UAAU,EAAE,YAAY;QACxB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;QACnB,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,MAAM;QAClB,qBAAqB,EAAE,MAAM;KAC9B;IACD,GAAG,EAAE;QACH,OAAO,EAAE,MAAM;QACf,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;KACpB;IACD,WAAW,EAAE;QACX,wEAAwE;QACxE,0DAA0D;QAC1D,UAAU,EAAE,eAAe,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG;QAC5C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE;QAC3B,6EAA6E;QAC7E,gEAAgE;QAChE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW;QACnC,MAAM,EAAE,MAAM;KACf;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,UAAU;QACp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,gBAAgB,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,gFAAgF;YAChF,MAAM,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACV,mEAAmE;YACnE,UAAU,EAAE,CAAC;SACd;KACF;IACD,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE;CACX,CAAC,CAAC,CAAC","sourcesContent":["import { createUseStyles, type Theme } from '../../theme/index.js';\n\n/**\n * Named for what the switch SITS IN rather than for a size, matching\n * `ButtonRadius`: a caller knows its own surroundings, not which step of the\n * radius scale suits a 16px-tall track.\n *\n * Deliberately two values, where `ButtonRadius` has four. A switch's track is\n * 16px tall, so any radius of 8px or more clamps to a full pill — `card`\n * (`radius.md`) and `pill` would be the same shape, named twice, and could\n * never diverge while the track keeps that height.\n */\nexport type SwitchRadiusValue = 'inset' | 'pill';\nexport enum SwitchRadius {\n /**\n * Concentric with the shaded input row the switch sits in: 16px card, 8px\n * row, 4px track, 2px thumb. The default, because that row is where every\n * switch in this app currently lives.\n */\n Inset = 'inset',\n /**\n * The classic capsule, and the rule for a switch in a CARD HEADER.\n *\n * Not about shading — a card header is painted `bg.cardHeader`, the same\n * colour as the input row. It is about whether there is anything nearby to\n * be concentric WITH. An input row is a small rounded rectangle wrapping the\n * switch, so a 4px track echoes its 8px corner a few pixels away. A card\n * header is a full-width bar whose only corners are the card's own, far off\n * at either end: nothing for the track to relate to, so it reads better as a\n * self-contained control than as a square-ish chip floating in a bar.\n */\n Pill = 'pill',\n}\n\nexport const useStyle = createUseStyles((theme: Theme) => ({\n root: {\n display: 'inline-flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: theme.space.xs,\n cursor: 'pointer',\n userSelect: 'none',\n '-webkit-user-select': 'none',\n },\n row: {\n display: 'flex',\n alignItems: 'center',\n gap: theme.space.md,\n },\n description: {\n // Indent under the label (past the 28px track + row gap) so it reads as\n // helper text for this toggle rather than a separate row.\n marginLeft: `calc(28px + ${theme.space.md})`,\n fontSize: theme.fontSize.sm,\n // Dedicated description colour — darker than faint for readable helper text,\n // especially on the shaded background of the horizontal layout.\n color: theme.color.text.description,\n cursor: 'auto',\n },\n track: {\n position: 'relative',\n width: '28px',\n height: '16px',\n backgroundColor: theme.color.border.default,\n ...theme.recipe.focusRing,\n transitionProperty: 'background-color, outline-color',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'ease-in',\n '$root:hover &': { outlineColor: theme.color.brand.outline },\n '$root:focus &': { outlineColor: theme.color.brand.outline },\n '&$checked': { backgroundColor: theme.color.brand.default },\n '&$disabled': { opacity: 0.4, cursor: 'not-allowed' },\n },\n thumb: {\n position: 'absolute',\n top: '2px',\n left: '2px',\n width: '12px',\n height: '12px',\n backgroundColor: theme.color.bg.input,\n transitionProperty: 'left',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'ease-in',\n '$checked &': { left: '14px' },\n },\n /**\n * Each value sets the track AND its thumb together, because the two are not\n * independent: the thumb is inset 2px on every side, so a concentric thumb\n * is always the track's radius less that inset. Splitting them into two\n * props would let a caller produce a square thumb in a capsule track.\n */\n [SwitchRadius.Inset]: {\n borderRadius: theme.radius.sm,\n // Arithmetic rather than a token so it follows the track automatically if\n // that radius ever changes — and because the scale has no 2px step.\n '& $thumb': { borderRadius: `calc(${theme.radius.sm} - 2px)` },\n },\n [SwitchRadius.Pill]: {\n borderRadius: theme.radius.pill,\n '& $thumb': { borderRadius: theme.radius.circle },\n },\n\n /**\n * Replaces the thumb while a save is in flight. Sized to the thumb it\n * stands in for, and inheriting `currentColor` from `$track` below so it\n * stays legible against both track colours.\n */\n spinner: {\n ...theme.recipe.spinner,\n position: 'absolute',\n top: '2px',\n width: '12px',\n height: '12px',\n // Matches the thumb's own transition, so a click that both moves the\n // switch AND starts a save does not animate the two at different speeds.\n transitionProperty: 'left',\n transitionDuration: '0.1s',\n transitionTimingFunction: 'ease-in',\n left: '2px',\n '$checked &': { left: '14px' },\n },\n loading: {\n // The track keeps its colour — this is \"working\", not \"unavailable\",\n // which `disabled` already says by fading to 40%. Only the cursor and the\n // thumb change.\n cursor: 'progress',\n // `currentColor` for the spinner: muted against the pale unchecked track,\n // white against the saturated checked one. A single colour would vanish\n // into one of the two.\n color: theme.color.text.muted,\n '&$checked': { color: theme.color.bg.input },\n },\n\n label: {\n ...theme.recipe.label,\n },\n content: {},\n horizontal: {\n // Two columns: content (label + description) on the left, toggle on the right.\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: theme.space.md,\n width: '100%',\n ...theme.recipe.row,\n '& $content': {\n display: 'flex',\n flexDirection: 'column',\n gap: theme.space.xs,\n flexGrow: 1,\n minWidth: 0,\n },\n '& $label': {\n // Left-aligned to the same edge as the other fields' labels.\n textAlign: 'left',\n },\n '& $description': {\n margin: 0,\n // The whole shaded row toggles, so the description shows the toggle cursor too.\n cursor: 'pointer',\n },\n '& $track': {\n // Kept in its own column so the description never runs beneath it.\n flexShrink: 0,\n },\n },\n checked: {},\n disabled: {},\n danger: {},\n}));\n"]}
@@ -248,6 +248,8 @@ export interface Theme {
248
248
  spinner: Recipe;
249
249
  glass: Recipe;
250
250
  glassHighlight: Recipe;
251
+ /** The shaded field row (`bg.cardHeader`, `md` corners) a control sits in inside a card. */
252
+ row: Recipe;
251
253
  modal: {
252
254
  dialog: Recipe;
253
255
  header: Recipe;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme/theme.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAGzC,QAAA,MAAM,IAAI;aACR,EAAE,EAAE,SAAS;aACb,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,SAAS;aACd,GAAG,EAAE,MAAM;CACH,CAA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AM,CAAC;KAChB,CAAC;IAIF,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,MAAM,CAAC;QACvB,4FAA4F;QAC5F,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC;CACH;AA2dD,eAAO,MAAM,UAAU,EAAE,KAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,EAAE,KAA0B,CAAC;AACnD,eAAO,MAAM,YAAY,EAAE,KAAkB,CAAC"}
@@ -375,6 +375,11 @@ function buildTheme(mode) {
375
375
  borderColor: color.border.glassActive,
376
376
  boxShadow: shadow.glassActive,
377
377
  },
378
+ row: {
379
+ backgroundColor: color.bg.cardHeader,
380
+ borderRadius: radius.md,
381
+ padding: `${space.md} ${space.lg} ${space.md} ${space.sm}`,
382
+ },
378
383
  modal: {
379
384
  dialog: {
380
385
  cursor: 'default',
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD,6BAA6B;AAC7B,MAAM,IAAI,GAAG;IACX,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAA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W,EAAE,KAAK,CAAC,EAAE;gBACrB,YAAY,EAAE,KAAK,CAAC,EAAE;aACvB;SACF;KACF,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,KAAK;QACL,KAAK;QACL,MAAM;QACN,IAAI;QACJ,MAAM;QACN,QAAQ;QACR,UAAU;QACV,UAAU;QACV,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;KACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAU,UAAU,CAAC,OAAO,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,SAAS,GAAU,UAAU,CAAC,MAAM,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,YAAY,GAAU,UAAU,CAAC","sourcesContent":["import { applyTransparency } from '../utils.js';\n\nexport type ThemeMode = 'light' | 'dark';\n\n// ─── Primitive palettes ───\nconst gray = {\n 50: '#FCFCFC',\n 100: '#EEEEEE',\n 150: '#e5e7eb',\n 200: '#DDDDDD',\n 300: '#D9D9D9',\n 400: '#D0D0D0',\n 500: '#9ca3af',\n 600: '#6E6E6E',\n 700: '#5A6375',\n 900: '#111',\n} as const;\n\nconst blue = {\n 50: '#EFF6FF',\n 100: '#dbeafe',\n 200: '#91CAFF',\n 300: '#87BAFF',\n 400: '#3696fe',\n 500: '#1777FF',\n 600: '#1D4ED8',\n 700: '#0758d9',\n 800: '#083FBC',\n} as const;\n\nconst red = {\n 50: '#fff1f0',\n 100: '#FFA8A6',\n 300: '#ff7874',\n 400: '#FF8E8E',\n 500: '#FF4D4F',\n 600: '#e98182',\n 700: '#D9373e',\n} as const;\n\n// JSS-spreadable style fragment. Loose by design: recipes nest pseudo-selectors\n// (`&:hover`) and string/number CSS values, which a stricter type can't capture\n// without inviting more friction than safety it would provide.\ntype Recipe = { [key: string]: Recipe | string | number };\n\n// ─── Theme interface ───\nexport interface Theme {\n colorScheme: ThemeMode;\n color: {\n gray: typeof gray;\n blue: typeof blue;\n red: typeof red;\n text: {\n primary: string;\n secondary: string;\n muted: string;\n faint: string;\n onPrimary: string;\n onDanger: string;\n description: string;\n };\n bg: {\n page: string;\n card: string;\n cardHeader: string;\n /**\n * The rail behind a segmented control's sliding lens. Its own token, not\n * `cardHeader`, because it must read against BOTH `page` and `card` — and\n * in dark mode those sit on either side of `cardHeader`, which left the\n * rail invisible on the page.\n */\n track: string;\n input: string;\n footer: string;\n glass: string;\n glassFallback: string;\n glassActive: string;\n selected: string;\n hover: string;\n success: string;\n placeholder: string;\n };\n border: {\n default: string;\n strong: string;\n light: string;\n focus: string;\n hover: string;\n danger: string;\n glass: string;\n glassActive: string;\n faint: string;\n loading: string;\n success: string;\n section: string;\n };\n success: string;\n brand: {\n default: string;\n hover: string;\n active: string;\n light: string;\n outline: string;\n loading: string;\n loadingHover: string;\n loadingActive: string;\n linkHover: string;\n };\n danger: {\n default: string;\n hover: string;\n active: string;\n light: string;\n outline: string;\n loading: string;\n loadingHover: string;\n loadingActive: string;\n };\n overlay: { backdrop: string };\n chip: {\n status: { text: string; bg: string; border: string };\n author: { text: string; bg: string; border: string };\n series: { text: string; bg: string; border: string };\n subject: { text: string; bg: string; border: string };\n book: { text: string; bg: string; border: string };\n entryType: { text: string; bg: string; border: string };\n user: { text: string; bg: string; border: string };\n rating: { text: string; bg: string; border: string };\n // Quiet grey for states that carry no category (e.g. \"no change\"), built\n // from the mode's muted text colour.\n neutral: { text: string; bg: string; border: string };\n };\n };\n space: {\n xxxs: string;\n xxs: string;\n xs: string;\n sm: string;\n md: string;\n lg: string;\n xl: string;\n xxl: string;\n xxxl: string;\n xxxxl: string;\n xxxxxl: string;\n };\n radius: { sm: string; md: string; lg: string; circle: string; pill: string };\n size: { metadataValue: string };\n // Intrinsic sizes of chrome that other elements must lay out around. These are\n // measured, not derived (the element's real height comes from its content), so\n // they need on-device tuning — keep the single source of truth here.\n // `floatingControlTopBase` is the odd one out: a POSITION, not a size — see\n // its definition below.\n layout: {\n navHeightMobile: string;\n modalWidth: string;\n controlHeight: string;\n floatingControlTopBase: string;\n };\n fontSize: {\n xxs: string;\n xs: string;\n sm: string;\n md: string;\n lg: string;\n xl: string;\n xxl: string;\n };\n fontFamily: { body: string; mono: string };\n fontWeight: { medium: number; semibold: number; bold: number; extrabold: number };\n lineHeight: { tight: number; body: number };\n shadow: {\n card: string;\n cardStack: string;\n hoverLift: string;\n dangerStack: string;\n brandStack: string;\n glass: string;\n glassActive: string;\n };\n transition: { fast: string; medium: string; slide: string; slow: string; spring: string };\n zIndex: {\n behind: number;\n base: number;\n stack: { lo: number; md: number; hi: number };\n header: number;\n sticky: number;\n toast: number;\n };\n breakpoint: {\n mobile: string;\n normal: string;\n };\n\n // Recipes are JSS-spreadable fragments. Loose typing lets them include\n // pseudo-selectors (`&:hover`) and nested rules without fighting JSS's TS surface.\n recipe: {\n input: Recipe;\n focusRing: Recipe;\n label: Recipe;\n spinner: Recipe;\n glass: Recipe;\n glassHighlight: Recipe;\n modal: {\n dialog: Recipe;\n header: Recipe;\n footer: Recipe;\n };\n card: {\n shell: Recipe;\n header: Recipe;\n footer: Recipe;\n };\n };\n}\n\n// ─── Build defaults ───\nfunction buildTheme(mode: ThemeMode): Theme {\n const lightColor: Theme['color'] = {\n gray,\n blue,\n red,\n text: {\n primary: gray[900],\n secondary: gray[700],\n muted: gray[600],\n faint: gray[500],\n onPrimary: '#FFFFFF',\n onDanger: '#FFFFFF',\n description: '#585863',\n },\n bg: {\n page: '#F6F6F9',\n card: gray[50],\n cardHeader: gray[100],\n // Unchanged from the `cardHeader` this used to borrow: in light mode the\n // track was already a step darker than the page, so light renders as before.\n track: gray[100],\n input: '#FFFFFF',\n footer: gray[100],\n glass: applyTransparency('#FFFFFF', 0.6),\n glassFallback: applyTransparency('#FFFFFF', 0.92),\n glassActive: applyTransparency('#FFFFFF', 0.55),\n selected: blue[100],\n // A translucent scrim, not an opaque grey: hover has to read on whatever\n // surface it lands on. The old '#f0f0f0' was lighter than the modal\n // footer (gray[100]) it was painted over, so hovering a text button\n // there produced no visible change at all.\n hover: applyTransparency('#000000', 0.07),\n success: '#f0fdf4',\n placeholder: '#d1d5db',\n },\n border: {\n default: gray[300],\n strong: gray[200],\n light: gray[150],\n focus: blue[700],\n hover: blue[200],\n danger: red[500],\n glass: applyTransparency('#000', 0.08),\n glassActive: applyTransparency('#FFFFFF', 0.7),\n faint: gray[500],\n loading: '#e6e6e6',\n success: '#bbf7d0',\n section: '#E6E6E9',\n },\n success: '#16a34a',\n brand: {\n default: blue[500],\n hover: blue[400],\n active: blue[700],\n light: blue[50],\n outline: blue[200],\n loading: '#73A6FF',\n loadingHover: blue[300],\n loadingActive: '#6893e7',\n linkHover: blue[300],\n },\n danger: {\n default: red[500],\n hover: red[300],\n active: red[700],\n light: red[50],\n outline: applyTransparency(red[300], 0.5),\n loading: red[400],\n loadingHover: red[100],\n loadingActive: red[600],\n },\n overlay: { backdrop: applyTransparency('#000', 0.7) },\n chip: {\n status: { text: '#6d3fc0', bg: 'rgba(109,63,192,0.08)', border: 'rgba(109,63,192,0.22)' },\n author: { text: '#1a7a52', bg: 'rgba(26,122,82,0.08)', border: 'rgba(26,122,82,0.22)' },\n series: { text: '#1a5fa8', bg: 'rgba(26,95,168,0.08)', border: 'rgba(26,95,168,0.22)' },\n subject: { text: '#8a5e00', bg: 'rgba(138,94,0,0.08)', border: 'rgba(138,94,0,0.22)' },\n book: { text: '#0e6b7d', bg: 'rgba(14, 107, 125, 0.08)', border: 'rgba(14, 107, 125, 0.22)' },\n entryType: {\n text: '#c0415e',\n bg: 'rgba(192, 65, 94, 0.08)',\n border: 'rgba(192, 65, 94, 0.22)',\n },\n user: { text: '#a23a95', bg: 'rgba(162,58,149,0.08)', border: 'rgba(162,58,149,0.22)' },\n rating: { text: '#b5451b', bg: 'rgba(181,69,27,0.08)', border: 'rgba(181,69,27,0.22)' },\n neutral: {\n text: gray[600],\n bg: applyTransparency(gray[600], 0.08),\n border: applyTransparency(gray[600], 0.22),\n },\n },\n };\n\n const darkMuted = '#9CA1AB';\n const darkColor: Theme['color'] = {\n gray,\n blue,\n red,\n text: {\n primary: '#F5F5F7',\n secondary: '#C8CBD2',\n muted: darkMuted,\n faint: '#6E7480',\n onPrimary: '#FFFFFF',\n onDanger: '#FFFFFF',\n description: '#A8ADB6',\n },\n bg: {\n page: '#242527',\n card: '#1A1B1E',\n cardHeader: '#232427',\n // A step LIGHTER than the page, not darker. This palette puts `page`\n // (#242527) above `card`/`input` (#1A1B1E), so the light-mode move —\n // recess the track below the surface — has nowhere to go in dark without\n // colliding with the lens. Raising it instead keeps the same ~8-per-channel\n // separation light mode has, in the only direction that is still free.\n track: '#2C2D31',\n input: '#1A1B1E',\n footer: '#232427',\n glass: applyTransparency('#1C1C1E', 0.6),\n glassFallback: applyTransparency('#1C1C1E', 0.92),\n glassActive: applyTransparency('#2C2C2E', 0.55),\n selected: applyTransparency(blue[500], 0.24),\n hover: applyTransparency('#FFFFFF', 0.12),\n success: applyTransparency('#22C55E', 0.14),\n placeholder: '#2A2B2F',\n },\n border: {\n default: '#3A3B40',\n strong: '#48494F',\n light: '#2B2C30',\n faint: '#3A3B40',\n focus: blue[400],\n hover: blue[600],\n danger: red[500],\n glass: applyTransparency('#FFFFFF', 0.12),\n glassActive: applyTransparency('#FFFFFF', 0.18),\n loading: '#34353A',\n success: applyTransparency('#22C55E', 0.4),\n section: '#2B2C30',\n },\n success: '#22C55E',\n brand: {\n default: blue[400],\n hover: blue[300],\n active: blue[200],\n light: applyTransparency(blue[500], 0.2),\n outline: applyTransparency(blue[400], 0.45),\n linkHover: blue[200],\n loading: '#3E5A8A',\n loadingHover: blue[600],\n loadingActive: '#33507F',\n },\n danger: {\n default: red[500],\n hover: red[400],\n active: red[700],\n light: applyTransparency(red[500], 0.18),\n outline: applyTransparency(red[300], 0.5),\n loading: red[400],\n loadingHover: red[600],\n loadingActive: red[700],\n },\n overlay: { backdrop: applyTransparency('#000', 0.7) },\n chip: {\n status: { text: '#C9B0F2', bg: 'rgba(167,139,250,0.16)', border: 'rgba(167,139,250,0.30)' },\n author: { text: '#7EE6B4', bg: 'rgba(52,211,153,0.16)', border: 'rgba(52,211,153,0.30)' },\n series: { text: '#8EC3F5', bg: 'rgba(96,165,250,0.16)', border: 'rgba(96,165,250,0.30)' },\n subject: { text: '#E8C879', bg: 'rgba(217,168,67,0.16)', border: 'rgba(217,168,67,0.30)' },\n book: { text: '#7FD0DE', bg: 'rgba(45, 170, 190, 0.18)', border: 'rgba(45, 170, 190, 0.32)' },\n entryType: {\n text: '#E89BAC',\n bg: 'rgba(192, 65, 94, 0.18)',\n border: 'rgba(192, 65, 94, 0.32)',\n },\n user: { text: '#E7A6DA', bg: 'rgba(162,58,149,0.16)', border: 'rgba(162,58,149,0.30)' },\n rating: { text: '#F2A07B', bg: 'rgba(181,69,27,0.18)', border: 'rgba(181,69,27,0.32)' },\n // Dark chips run stronger alphas (0.16 / 0.30) than light (0.08 / 0.22).\n neutral: {\n text: darkMuted,\n bg: applyTransparency(darkMuted, 0.16),\n border: applyTransparency(darkMuted, 0.3),\n },\n },\n };\n\n const color: Theme['color'] = mode === 'dark' ? darkColor : lightColor;\n\n const space: Theme['space'] = {\n xxxs: '0.1rem',\n xxs: '0.125rem',\n xs: '0.25rem',\n sm: '0.375rem',\n md: '0.5rem',\n lg: '0.625rem',\n xl: '0.75rem',\n xxl: '1rem',\n xxxl: '1.25rem',\n xxxxl: '1.5rem',\n xxxxxl: '2rem',\n };\n\n const radius: Theme['radius'] = {\n sm: '4px',\n md: '8px',\n lg: '16px',\n circle: '50%',\n pill: '999px',\n };\n const size: Theme['size'] = { metadataValue: '15rem' };\n // The floating mobile nav capsule is ~96px tall on-device (content + padding +\n // the min bottom floor). Tune against the measured height during on-device\n // verification; page padding and bottom-docked toasts both clear it via this token.\n // modalWidth: one width for every dialog so modals read as a single system.\n // controlHeight: the shared single-line height for inputs/select/chips (~33px)\n // so form controls line up on one row. Single source of truth.\n // Where the mobile controls (back button, page actions menu) pin once the page\n // has scrolled them up to it — the `top` of the sticky row `component/page`\n // holds them in. One rule, both contexts (no iOS-unreliable display-mode\n // query): a browser tab has no top safe-area inset, so env() ~ 0 and this\n // resolves to the fixed floor (room for the frosted shadow); in standalone the\n // notch inset dominates and pins the controls below the status bar — by\n // `space.xxxxl`, not the `space.lg` it used to be: `TopFade` blurs across the\n // inset there and a control resting `space.lg` under it read as caught in the\n // blur, so the controls (and the admin picker, which keeps the same gap —\n // `router/nav-layout-style`) rest a clear step below where it ends.\n const floatingControlTopBase = `max(${space.xxxl}, calc(env(safe-area-inset-top) + ${space.xxxxl}))`;\n const layout: Theme['layout'] = {\n navHeightMobile: '96px',\n modalWidth: '500px',\n controlHeight: '2.0625rem',\n floatingControlTopBase,\n };\n const fontSize: Theme['fontSize'] = {\n xxs: '0.6rem',\n xs: '0.7rem',\n sm: '0.75rem',\n md: '0.875rem',\n lg: '1rem',\n xl: '1.25rem',\n xxl: '1.75rem',\n };\n const fontFamily: Theme['fontFamily'] = {\n body: 'system-ui, sans-serif',\n mono: \"'Cascadia Code', 'Fira Code', monospace\",\n };\n const fontWeight: Theme['fontWeight'] = { medium: 500, semibold: 600, bold: 700, extrabold: 800 };\n const lineHeight: Theme['lineHeight'] = { tight: 1, body: 1.3 };\n\n const lightShadow: Theme['shadow'] = {\n card: '0 1px 3px rgba(0,0,0,0.07)',\n cardStack: `0px 2px 0px ${applyTransparency('#D9D9D9', 0.2)}`,\n hoverLift: '0 2px 8px rgba(0,0,0,0.15)',\n dangerStack: `0px 2px 0px ${applyTransparency('#FF4D4F', 0.1)}`,\n brandStack: `0px 2px 0px ${applyTransparency('#1777FF', 0.2)}`,\n glass: `0 8px 32px ${applyTransparency('#000', 0.12)}`,\n glassActive: `0 2px 6px ${applyTransparency('#000', 0.12)}`,\n };\n\n const darkShadow: Theme['shadow'] = {\n card: '0 1px 3px rgba(0,0,0,0.5)',\n cardStack: `0px 2px 0px ${applyTransparency('#000', 0.4)}`,\n hoverLift: '0 2px 8px rgba(0,0,0,0.6)',\n dangerStack: `0px 2px 0px ${applyTransparency('#000', 0.4)}`,\n brandStack: `0px 2px 0px ${applyTransparency('#000', 0.4)}`,\n glass: `0 8px 32px ${applyTransparency('#000', 0.5)}`,\n glassActive: `0 2px 6px ${applyTransparency('#000', 0.5)}`,\n };\n\n const shadow: Theme['shadow'] = mode === 'dark' ? darkShadow : lightShadow;\n\n const transition: Theme['transition'] = {\n fast: '0.1s ease-in',\n medium: '0.2s ease-in',\n slide: '0.2s ease-out',\n slow: '0.3s linear',\n spring: '0.35s cubic-bezier(0.4, 0, 0.2, 1)',\n };\n\n const zIndex: Theme['zIndex'] = {\n behind: -1,\n base: 1,\n stack: { lo: 1, md: 2, hi: 3 },\n header: 10,\n sticky: 1000,\n toast: 9999,\n };\n\n const breakpoint: Theme['breakpoint'] = {\n mobile: '@media (max-width: 640px)',\n normal: '@media (min-width: 641px)',\n };\n\n const recipe: Theme['recipe'] = {\n input: {\n fontFamily: fontFamily.body,\n // Match the select controls (0.80rem); without this, inputs fall back to the\n // smaller browser default and look inconsistent next to selects/chips.\n fontSize: '0.80rem',\n // Restore the 16px floor on mobile: this class-level font-size otherwise\n // out-specifies the global `input` rule and would let iOS auto-zoom on\n // focus. See global-styles.ts.\n [breakpoint.mobile]: { fontSize: '16px' },\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: 'transparent',\n backgroundColor: color.bg.input,\n borderColor: color.border.default,\n borderStyle: 'solid',\n borderWidth: '1px',\n borderRadius: radius.md,\n padding: space.md,\n '-webkit-appearance': 'none',\n '&:hover': { borderColor: color.border.hover },\n '&:focus': { borderColor: color.border.focus },\n '&$danger': { borderColor: color.border.danger },\n },\n focusRing: {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: 'transparent',\n },\n label: {\n fontWeight: fontWeight.semibold,\n fontSize: fontSize.md,\n color: color.text.muted,\n display: 'block',\n '&$danger': { color: color.danger.default },\n },\n spinner: {\n animation: 'theme-rotation 1s infinite linear',\n height: '1em',\n width: '1em',\n },\n glass: {\n backgroundColor: color.bg.glass,\n backdropFilter: 'blur(20px) saturate(180%)',\n '-webkit-backdrop-filter': 'blur(20px) saturate(180%)',\n borderStyle: 'solid',\n borderWidth: '1px',\n borderColor: color.border.glass,\n boxShadow: shadow.glass,\n '@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)))': {\n backgroundColor: color.bg.glassFallback,\n },\n },\n glassHighlight: {\n backgroundColor: color.bg.glassActive,\n borderStyle: 'solid',\n borderWidth: '1px',\n borderColor: color.border.glassActive,\n boxShadow: shadow.glassActive,\n },\n modal: {\n dialog: {\n cursor: 'default',\n fontFamily: fontFamily.body,\n fontSize: fontSize.lg,\n fontStyle: 'normal',\n letterSpacing: 'normal',\n lineHeight: lineHeight.body,\n textTransform: 'none',\n wordBreak: 'normal',\n overflowWrap: 'break-word',\n borderRadius: radius.lg,\n border: 'none',\n padding: 0,\n overflow: 'hidden',\n // One shared width for every modal; the maxWidth keeps it inside a\n // narrow viewport (the auto side-margins then center it).\n width: layout.modalWidth,\n maxWidth: `calc(100vw - ${space.xxl} * 2)`,\n marginTop: '100px',\n marginLeft: 'auto',\n marginRight: 'auto',\n marginBottom: '50px',\n outline: 'none',\n '&::backdrop': {\n backgroundColor: color.overlay.backdrop,\n backdropFilter: 'blur(2px) saturate(0%)',\n },\n [breakpoint.mobile]: {\n marginTop: `calc(${space.xxxxxl} + env(safe-area-inset-top))`,\n marginBottom: `calc(${space.xxxxxl} + env(safe-area-inset-bottom))`,\n maxHeight: `calc(100dvh - ${space.xxxxxl} * 2 - env(safe-area-inset-top) - env(safe-area-inset-bottom))`,\n overflowY: 'auto',\n },\n },\n header: {\n fontWeight: fontWeight.semibold,\n fontSize: fontSize.xl,\n padding: space.xxl,\n },\n footer: {\n backgroundColor: color.bg.footer,\n borderTopStyle: 'solid',\n borderTopColor: color.border.strong,\n borderTopWidth: '1px',\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'end',\n gap: space.md,\n paddingTop: space.xl,\n paddingBottom: space.xl,\n paddingLeft: space.xl,\n paddingRight: space.xl,\n },\n },\n card: {\n shell: {\n backgroundColor: color.bg.card,\n borderRadius: radius.lg,\n borderStyle: 'solid',\n borderWidth: '1px',\n borderColor: color.border.strong,\n overflow: 'hidden',\n boxShadow: shadow.cardStack,\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: `${space.md} ${space.xl}`,\n backgroundColor: color.bg.cardHeader,\n borderBottomStyle: 'solid',\n borderBottomWidth: '1px',\n borderBottomColor: color.border.strong,\n userSelect: 'none',\n '-webkit-user-select': 'none',\n },\n footer: {\n backgroundColor: color.bg.footer,\n borderTopStyle: 'solid',\n borderTopColor: color.border.strong,\n borderTopWidth: '1px',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'end',\n gap: space.md,\n paddingTop: space.xl,\n paddingBottom: space.xl,\n paddingLeft: space.xl,\n paddingRight: space.xl,\n },\n },\n };\n\n return {\n colorScheme: mode,\n color,\n space,\n radius,\n size,\n layout,\n fontSize,\n fontFamily,\n fontWeight,\n lineHeight,\n shadow,\n transition,\n zIndex,\n breakpoint,\n recipe,\n };\n}\n\nexport const lightTheme: Theme = buildTheme('light');\nexport const darkTheme: Theme = buildTheme('dark');\nexport const defaultTheme: Theme = lightTheme;\n"]}
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD,6BAA6B;AAC7B,MAAM,IAAI,GAAG;IACX,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,MAAM;C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BACpB,UAAU,EAAE,QAAQ;gBACpB,cAAc,EAAE,KAAK;gBACrB,GAAG,EAAE,KAAK,CAAC,EAAE;gBACb,UAAU,EAAE,KAAK,CAAC,EAAE;gBACpB,aAAa,EAAE,KAAK,CAAC,EAAE;gBACvB,WAAW,EAAE,KAAK,CAAC,EAAE;gBACrB,YAAY,EAAE,KAAK,CAAC,EAAE;aACvB;SACF;KACF,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,KAAK;QACL,KAAK;QACL,MAAM;QACN,IAAI;QACJ,MAAM;QACN,QAAQ;QACR,UAAU;QACV,UAAU;QACV,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;QACN,UAAU;QACV,MAAM;KACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAU,UAAU,CAAC,OAAO,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,SAAS,GAAU,UAAU,CAAC,MAAM,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,YAAY,GAAU,UAAU,CAAC","sourcesContent":["import { applyTransparency } from '../utils.js';\n\nexport type ThemeMode = 'light' | 'dark';\n\n// ─── Primitive palettes ───\nconst gray = {\n 50: '#FCFCFC',\n 100: '#EEEEEE',\n 150: '#e5e7eb',\n 200: '#DDDDDD',\n 300: '#D9D9D9',\n 400: '#D0D0D0',\n 500: '#9ca3af',\n 600: '#6E6E6E',\n 700: '#5A6375',\n 900: '#111',\n} as const;\n\nconst blue = {\n 50: '#EFF6FF',\n 100: '#dbeafe',\n 200: '#91CAFF',\n 300: '#87BAFF',\n 400: '#3696fe',\n 500: '#1777FF',\n 600: '#1D4ED8',\n 700: '#0758d9',\n 800: '#083FBC',\n} as const;\n\nconst red = {\n 50: '#fff1f0',\n 100: '#FFA8A6',\n 300: '#ff7874',\n 400: '#FF8E8E',\n 500: '#FF4D4F',\n 600: '#e98182',\n 700: '#D9373e',\n} as const;\n\n// JSS-spreadable style fragment. Loose by design: recipes nest pseudo-selectors\n// (`&:hover`) and string/number CSS values, which a stricter type can't capture\n// without inviting more friction than safety it would provide.\ntype Recipe = { [key: string]: Recipe | string | number };\n\n// ─── Theme interface ───\nexport interface Theme {\n colorScheme: ThemeMode;\n color: {\n gray: typeof gray;\n blue: typeof blue;\n red: typeof red;\n text: {\n primary: string;\n secondary: string;\n muted: string;\n faint: string;\n onPrimary: string;\n onDanger: string;\n description: string;\n };\n bg: {\n page: string;\n card: string;\n cardHeader: string;\n /**\n * The rail behind a segmented control's sliding lens. Its own token, not\n * `cardHeader`, because it must read against BOTH `page` and `card` — and\n * in dark mode those sit on either side of `cardHeader`, which left the\n * rail invisible on the page.\n */\n track: string;\n input: string;\n footer: string;\n glass: string;\n glassFallback: string;\n glassActive: string;\n selected: string;\n hover: string;\n success: string;\n placeholder: string;\n };\n border: {\n default: string;\n strong: string;\n light: string;\n focus: string;\n hover: string;\n danger: string;\n glass: string;\n glassActive: string;\n faint: string;\n loading: string;\n success: string;\n section: string;\n };\n success: string;\n brand: {\n default: string;\n hover: string;\n active: string;\n light: string;\n outline: string;\n loading: string;\n loadingHover: string;\n loadingActive: string;\n linkHover: string;\n };\n danger: {\n default: string;\n hover: string;\n active: string;\n light: string;\n outline: string;\n loading: string;\n loadingHover: string;\n loadingActive: string;\n };\n overlay: { backdrop: string };\n chip: {\n status: { text: string; bg: string; border: string };\n author: { text: string; bg: string; border: string };\n series: { text: string; bg: string; border: string };\n subject: { text: string; bg: string; border: string };\n book: { text: string; bg: string; border: string };\n entryType: { text: string; bg: string; border: string };\n user: { text: string; bg: string; border: string };\n rating: { text: string; bg: string; border: string };\n // Quiet grey for states that carry no category (e.g. \"no change\"), built\n // from the mode's muted text colour.\n neutral: { text: string; bg: string; border: string };\n };\n };\n space: {\n xxxs: string;\n xxs: string;\n xs: string;\n sm: string;\n md: string;\n lg: string;\n xl: string;\n xxl: string;\n xxxl: string;\n xxxxl: string;\n xxxxxl: string;\n };\n radius: { sm: string; md: string; lg: string; circle: string; pill: string };\n size: { metadataValue: string };\n // Intrinsic sizes of chrome that other elements must lay out around. These are\n // measured, not derived (the element's real height comes from its content), so\n // they need on-device tuning — keep the single source of truth here.\n // `floatingControlTopBase` is the odd one out: a POSITION, not a size — see\n // its definition below.\n layout: {\n navHeightMobile: string;\n modalWidth: string;\n controlHeight: string;\n floatingControlTopBase: string;\n };\n fontSize: {\n xxs: string;\n xs: string;\n sm: string;\n md: string;\n lg: string;\n xl: string;\n xxl: string;\n };\n fontFamily: { body: string; mono: string };\n fontWeight: { medium: number; semibold: number; bold: number; extrabold: number };\n lineHeight: { tight: number; body: number };\n shadow: {\n card: string;\n cardStack: string;\n hoverLift: string;\n dangerStack: string;\n brandStack: string;\n glass: string;\n glassActive: string;\n };\n transition: { fast: string; medium: string; slide: string; slow: string; spring: string };\n zIndex: {\n behind: number;\n base: number;\n stack: { lo: number; md: number; hi: number };\n header: number;\n sticky: number;\n toast: number;\n };\n breakpoint: {\n mobile: string;\n normal: string;\n };\n\n // Recipes are JSS-spreadable fragments. Loose typing lets them include\n // pseudo-selectors (`&:hover`) and nested rules without fighting JSS's TS surface.\n recipe: {\n input: Recipe;\n focusRing: Recipe;\n label: Recipe;\n spinner: Recipe;\n glass: Recipe;\n glassHighlight: Recipe;\n /** The shaded field row (`bg.cardHeader`, `md` corners) a control sits in inside a card. */\n row: Recipe;\n modal: {\n dialog: Recipe;\n header: Recipe;\n footer: Recipe;\n };\n card: {\n shell: Recipe;\n header: Recipe;\n footer: Recipe;\n };\n };\n}\n\n// ─── Build defaults ───\nfunction buildTheme(mode: ThemeMode): Theme {\n const lightColor: Theme['color'] = {\n gray,\n blue,\n red,\n text: {\n primary: gray[900],\n secondary: gray[700],\n muted: gray[600],\n faint: gray[500],\n onPrimary: '#FFFFFF',\n onDanger: '#FFFFFF',\n description: '#585863',\n },\n bg: {\n page: '#F6F6F9',\n card: gray[50],\n cardHeader: gray[100],\n // Unchanged from the `cardHeader` this used to borrow: in light mode the\n // track was already a step darker than the page, so light renders as before.\n track: gray[100],\n input: '#FFFFFF',\n footer: gray[100],\n glass: applyTransparency('#FFFFFF', 0.6),\n glassFallback: applyTransparency('#FFFFFF', 0.92),\n glassActive: applyTransparency('#FFFFFF', 0.55),\n selected: blue[100],\n // A translucent scrim, not an opaque grey: hover has to read on whatever\n // surface it lands on. The old '#f0f0f0' was lighter than the modal\n // footer (gray[100]) it was painted over, so hovering a text button\n // there produced no visible change at all.\n hover: applyTransparency('#000000', 0.07),\n success: '#f0fdf4',\n placeholder: '#d1d5db',\n },\n border: {\n default: gray[300],\n strong: gray[200],\n light: gray[150],\n focus: blue[700],\n hover: blue[200],\n danger: red[500],\n glass: applyTransparency('#000', 0.08),\n glassActive: applyTransparency('#FFFFFF', 0.7),\n faint: gray[500],\n loading: '#e6e6e6',\n success: '#bbf7d0',\n section: '#E6E6E9',\n },\n success: '#16a34a',\n brand: {\n default: blue[500],\n hover: blue[400],\n active: blue[700],\n light: blue[50],\n outline: blue[200],\n loading: '#73A6FF',\n loadingHover: blue[300],\n loadingActive: '#6893e7',\n linkHover: blue[300],\n },\n danger: {\n default: red[500],\n hover: red[300],\n active: red[700],\n light: red[50],\n outline: applyTransparency(red[300], 0.5),\n loading: red[400],\n loadingHover: red[100],\n loadingActive: red[600],\n },\n overlay: { backdrop: applyTransparency('#000', 0.7) },\n chip: {\n status: { text: '#6d3fc0', bg: 'rgba(109,63,192,0.08)', border: 'rgba(109,63,192,0.22)' },\n author: { text: '#1a7a52', bg: 'rgba(26,122,82,0.08)', border: 'rgba(26,122,82,0.22)' },\n series: { text: '#1a5fa8', bg: 'rgba(26,95,168,0.08)', border: 'rgba(26,95,168,0.22)' },\n subject: { text: '#8a5e00', bg: 'rgba(138,94,0,0.08)', border: 'rgba(138,94,0,0.22)' },\n book: { text: '#0e6b7d', bg: 'rgba(14, 107, 125, 0.08)', border: 'rgba(14, 107, 125, 0.22)' },\n entryType: {\n text: '#c0415e',\n bg: 'rgba(192, 65, 94, 0.08)',\n border: 'rgba(192, 65, 94, 0.22)',\n },\n user: { text: '#a23a95', bg: 'rgba(162,58,149,0.08)', border: 'rgba(162,58,149,0.22)' },\n rating: { text: '#b5451b', bg: 'rgba(181,69,27,0.08)', border: 'rgba(181,69,27,0.22)' },\n neutral: {\n text: gray[600],\n bg: applyTransparency(gray[600], 0.08),\n border: applyTransparency(gray[600], 0.22),\n },\n },\n };\n\n const darkMuted = '#9CA1AB';\n const darkColor: Theme['color'] = {\n gray,\n blue,\n red,\n text: {\n primary: '#F5F5F7',\n secondary: '#C8CBD2',\n muted: darkMuted,\n faint: '#6E7480',\n onPrimary: '#FFFFFF',\n onDanger: '#FFFFFF',\n description: '#A8ADB6',\n },\n bg: {\n page: '#242527',\n card: '#1A1B1E',\n cardHeader: '#232427',\n // A step LIGHTER than the page, not darker. This palette puts `page`\n // (#242527) above `card`/`input` (#1A1B1E), so the light-mode move —\n // recess the track below the surface — has nowhere to go in dark without\n // colliding with the lens. Raising it instead keeps the same ~8-per-channel\n // separation light mode has, in the only direction that is still free.\n track: '#2C2D31',\n input: '#1A1B1E',\n footer: '#232427',\n glass: applyTransparency('#1C1C1E', 0.6),\n glassFallback: applyTransparency('#1C1C1E', 0.92),\n glassActive: applyTransparency('#2C2C2E', 0.55),\n selected: applyTransparency(blue[500], 0.24),\n hover: applyTransparency('#FFFFFF', 0.12),\n success: applyTransparency('#22C55E', 0.14),\n placeholder: '#2A2B2F',\n },\n border: {\n default: '#3A3B40',\n strong: '#48494F',\n light: '#2B2C30',\n faint: '#3A3B40',\n focus: blue[400],\n hover: blue[600],\n danger: red[500],\n glass: applyTransparency('#FFFFFF', 0.12),\n glassActive: applyTransparency('#FFFFFF', 0.18),\n loading: '#34353A',\n success: applyTransparency('#22C55E', 0.4),\n section: '#2B2C30',\n },\n success: '#22C55E',\n brand: {\n default: blue[400],\n hover: blue[300],\n active: blue[200],\n light: applyTransparency(blue[500], 0.2),\n outline: applyTransparency(blue[400], 0.45),\n linkHover: blue[200],\n loading: '#3E5A8A',\n loadingHover: blue[600],\n loadingActive: '#33507F',\n },\n danger: {\n default: red[500],\n hover: red[400],\n active: red[700],\n light: applyTransparency(red[500], 0.18),\n outline: applyTransparency(red[300], 0.5),\n loading: red[400],\n loadingHover: red[600],\n loadingActive: red[700],\n },\n overlay: { backdrop: applyTransparency('#000', 0.7) },\n chip: {\n status: { text: '#C9B0F2', bg: 'rgba(167,139,250,0.16)', border: 'rgba(167,139,250,0.30)' },\n author: { text: '#7EE6B4', bg: 'rgba(52,211,153,0.16)', border: 'rgba(52,211,153,0.30)' },\n series: { text: '#8EC3F5', bg: 'rgba(96,165,250,0.16)', border: 'rgba(96,165,250,0.30)' },\n subject: { text: '#E8C879', bg: 'rgba(217,168,67,0.16)', border: 'rgba(217,168,67,0.30)' },\n book: { text: '#7FD0DE', bg: 'rgba(45, 170, 190, 0.18)', border: 'rgba(45, 170, 190, 0.32)' },\n entryType: {\n text: '#E89BAC',\n bg: 'rgba(192, 65, 94, 0.18)',\n border: 'rgba(192, 65, 94, 0.32)',\n },\n user: { text: '#E7A6DA', bg: 'rgba(162,58,149,0.16)', border: 'rgba(162,58,149,0.30)' },\n rating: { text: '#F2A07B', bg: 'rgba(181,69,27,0.18)', border: 'rgba(181,69,27,0.32)' },\n // Dark chips run stronger alphas (0.16 / 0.30) than light (0.08 / 0.22).\n neutral: {\n text: darkMuted,\n bg: applyTransparency(darkMuted, 0.16),\n border: applyTransparency(darkMuted, 0.3),\n },\n },\n };\n\n const color: Theme['color'] = mode === 'dark' ? darkColor : lightColor;\n\n const space: Theme['space'] = {\n xxxs: '0.1rem',\n xxs: '0.125rem',\n xs: '0.25rem',\n sm: '0.375rem',\n md: '0.5rem',\n lg: '0.625rem',\n xl: '0.75rem',\n xxl: '1rem',\n xxxl: '1.25rem',\n xxxxl: '1.5rem',\n xxxxxl: '2rem',\n };\n\n const radius: Theme['radius'] = {\n sm: '4px',\n md: '8px',\n lg: '16px',\n circle: '50%',\n pill: '999px',\n };\n const size: Theme['size'] = { metadataValue: '15rem' };\n // The floating mobile nav capsule is ~96px tall on-device (content + padding +\n // the min bottom floor). Tune against the measured height during on-device\n // verification; page padding and bottom-docked toasts both clear it via this token.\n // modalWidth: one width for every dialog so modals read as a single system.\n // controlHeight: the shared single-line height for inputs/select/chips (~33px)\n // so form controls line up on one row. Single source of truth.\n // Where the mobile controls (back button, page actions menu) pin once the page\n // has scrolled them up to it — the `top` of the sticky row `component/page`\n // holds them in. One rule, both contexts (no iOS-unreliable display-mode\n // query): a browser tab has no top safe-area inset, so env() ~ 0 and this\n // resolves to the fixed floor (room for the frosted shadow); in standalone the\n // notch inset dominates and pins the controls below the status bar — by\n // `space.xxxxl`, not the `space.lg` it used to be: `TopFade` blurs across the\n // inset there and a control resting `space.lg` under it read as caught in the\n // blur, so the controls (and the admin picker, which keeps the same gap —\n // `router/nav-layout-style`) rest a clear step below where it ends.\n const floatingControlTopBase = `max(${space.xxxl}, calc(env(safe-area-inset-top) + ${space.xxxxl}))`;\n const layout: Theme['layout'] = {\n navHeightMobile: '96px',\n modalWidth: '500px',\n controlHeight: '2.0625rem',\n floatingControlTopBase,\n };\n const fontSize: Theme['fontSize'] = {\n xxs: '0.6rem',\n xs: '0.7rem',\n sm: '0.75rem',\n md: '0.875rem',\n lg: '1rem',\n xl: '1.25rem',\n xxl: '1.75rem',\n };\n const fontFamily: Theme['fontFamily'] = {\n body: 'system-ui, sans-serif',\n mono: \"'Cascadia Code', 'Fira Code', monospace\",\n };\n const fontWeight: Theme['fontWeight'] = { medium: 500, semibold: 600, bold: 700, extrabold: 800 };\n const lineHeight: Theme['lineHeight'] = { tight: 1, body: 1.3 };\n\n const lightShadow: Theme['shadow'] = {\n card: '0 1px 3px rgba(0,0,0,0.07)',\n cardStack: `0px 2px 0px ${applyTransparency('#D9D9D9', 0.2)}`,\n hoverLift: '0 2px 8px rgba(0,0,0,0.15)',\n dangerStack: `0px 2px 0px ${applyTransparency('#FF4D4F', 0.1)}`,\n brandStack: `0px 2px 0px ${applyTransparency('#1777FF', 0.2)}`,\n glass: `0 8px 32px ${applyTransparency('#000', 0.12)}`,\n glassActive: `0 2px 6px ${applyTransparency('#000', 0.12)}`,\n };\n\n const darkShadow: Theme['shadow'] = {\n card: '0 1px 3px rgba(0,0,0,0.5)',\n cardStack: `0px 2px 0px ${applyTransparency('#000', 0.4)}`,\n hoverLift: '0 2px 8px rgba(0,0,0,0.6)',\n dangerStack: `0px 2px 0px ${applyTransparency('#000', 0.4)}`,\n brandStack: `0px 2px 0px ${applyTransparency('#000', 0.4)}`,\n glass: `0 8px 32px ${applyTransparency('#000', 0.5)}`,\n glassActive: `0 2px 6px ${applyTransparency('#000', 0.5)}`,\n };\n\n const shadow: Theme['shadow'] = mode === 'dark' ? darkShadow : lightShadow;\n\n const transition: Theme['transition'] = {\n fast: '0.1s ease-in',\n medium: '0.2s ease-in',\n slide: '0.2s ease-out',\n slow: '0.3s linear',\n spring: '0.35s cubic-bezier(0.4, 0, 0.2, 1)',\n };\n\n const zIndex: Theme['zIndex'] = {\n behind: -1,\n base: 1,\n stack: { lo: 1, md: 2, hi: 3 },\n header: 10,\n sticky: 1000,\n toast: 9999,\n };\n\n const breakpoint: Theme['breakpoint'] = {\n mobile: '@media (max-width: 640px)',\n normal: '@media (min-width: 641px)',\n };\n\n const recipe: Theme['recipe'] = {\n input: {\n fontFamily: fontFamily.body,\n // Match the select controls (0.80rem); without this, inputs fall back to the\n // smaller browser default and look inconsistent next to selects/chips.\n fontSize: '0.80rem',\n // Restore the 16px floor on mobile: this class-level font-size otherwise\n // out-specifies the global `input` rule and would let iOS auto-zoom on\n // focus. See global-styles.ts.\n [breakpoint.mobile]: { fontSize: '16px' },\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: 'transparent',\n backgroundColor: color.bg.input,\n borderColor: color.border.default,\n borderStyle: 'solid',\n borderWidth: '1px',\n borderRadius: radius.md,\n padding: space.md,\n '-webkit-appearance': 'none',\n '&:hover': { borderColor: color.border.hover },\n '&:focus': { borderColor: color.border.focus },\n '&$danger': { borderColor: color.border.danger },\n },\n focusRing: {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineColor: 'transparent',\n },\n label: {\n fontWeight: fontWeight.semibold,\n fontSize: fontSize.md,\n color: color.text.muted,\n display: 'block',\n '&$danger': { color: color.danger.default },\n },\n spinner: {\n animation: 'theme-rotation 1s infinite linear',\n height: '1em',\n width: '1em',\n },\n glass: {\n backgroundColor: color.bg.glass,\n backdropFilter: 'blur(20px) saturate(180%)',\n '-webkit-backdrop-filter': 'blur(20px) saturate(180%)',\n borderStyle: 'solid',\n borderWidth: '1px',\n borderColor: color.border.glass,\n boxShadow: shadow.glass,\n '@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)))': {\n backgroundColor: color.bg.glassFallback,\n },\n },\n glassHighlight: {\n backgroundColor: color.bg.glassActive,\n borderStyle: 'solid',\n borderWidth: '1px',\n borderColor: color.border.glassActive,\n boxShadow: shadow.glassActive,\n },\n row: {\n backgroundColor: color.bg.cardHeader,\n borderRadius: radius.md,\n padding: `${space.md} ${space.lg} ${space.md} ${space.sm}`,\n },\n modal: {\n dialog: {\n cursor: 'default',\n fontFamily: fontFamily.body,\n fontSize: fontSize.lg,\n fontStyle: 'normal',\n letterSpacing: 'normal',\n lineHeight: lineHeight.body,\n textTransform: 'none',\n wordBreak: 'normal',\n overflowWrap: 'break-word',\n borderRadius: radius.lg,\n border: 'none',\n padding: 0,\n overflow: 'hidden',\n // One shared width for every modal; the maxWidth keeps it inside a\n // narrow viewport (the auto side-margins then center it).\n width: layout.modalWidth,\n maxWidth: `calc(100vw - ${space.xxl} * 2)`,\n marginTop: '100px',\n marginLeft: 'auto',\n marginRight: 'auto',\n marginBottom: '50px',\n outline: 'none',\n '&::backdrop': {\n backgroundColor: color.overlay.backdrop,\n backdropFilter: 'blur(2px) saturate(0%)',\n },\n [breakpoint.mobile]: {\n marginTop: `calc(${space.xxxxxl} + env(safe-area-inset-top))`,\n marginBottom: `calc(${space.xxxxxl} + env(safe-area-inset-bottom))`,\n maxHeight: `calc(100dvh - ${space.xxxxxl} * 2 - env(safe-area-inset-top) - env(safe-area-inset-bottom))`,\n overflowY: 'auto',\n },\n },\n header: {\n fontWeight: fontWeight.semibold,\n fontSize: fontSize.xl,\n padding: space.xxl,\n },\n footer: {\n backgroundColor: color.bg.footer,\n borderTopStyle: 'solid',\n borderTopColor: color.border.strong,\n borderTopWidth: '1px',\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'end',\n gap: space.md,\n paddingTop: space.xl,\n paddingBottom: space.xl,\n paddingLeft: space.xl,\n paddingRight: space.xl,\n },\n },\n card: {\n shell: {\n backgroundColor: color.bg.card,\n borderRadius: radius.lg,\n borderStyle: 'solid',\n borderWidth: '1px',\n borderColor: color.border.strong,\n overflow: 'hidden',\n boxShadow: shadow.cardStack,\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: `${space.md} ${space.xl}`,\n backgroundColor: color.bg.cardHeader,\n borderBottomStyle: 'solid',\n borderBottomWidth: '1px',\n borderBottomColor: color.border.strong,\n userSelect: 'none',\n '-webkit-user-select': 'none',\n },\n footer: {\n backgroundColor: color.bg.footer,\n borderTopStyle: 'solid',\n borderTopColor: color.border.strong,\n borderTopWidth: '1px',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'end',\n gap: space.md,\n paddingTop: space.xl,\n paddingBottom: space.xl,\n paddingLeft: space.xl,\n paddingRight: space.xl,\n },\n },\n };\n\n return {\n colorScheme: mode,\n color,\n space,\n radius,\n size,\n layout,\n fontSize,\n fontFamily,\n fontWeight,\n lineHeight,\n shadow,\n transition,\n zIndex,\n breakpoint,\n recipe,\n };\n}\n\nexport const lightTheme: Theme = buildTheme('light');\nexport const darkTheme: Theme = buildTheme('dark');\nexport const defaultTheme: Theme = lightTheme;\n"]}
@@ -2,12 +2,13 @@
2
2
 
3
3
  `import { CardRow, type CardRowProps } from '@korzun/design/component'`
4
4
 
5
- A compact bordered row (card background, 6px padding) for stacking items inside
6
- a `Card` body. Optionally clickable.
5
+ A compact card-shell row (card background, border, stacked shadow, 6px
6
+ padding) that sits on the page background, for a stack of list items. Optionally
7
+ clickable.
7
8
 
8
- Use something else for: a list of rows each sitting on the page background
9
- (Bookplate uses `<Card size="small" onClick>` per row), a section split
10
- (`CardDivider`), a key/value line (`MetadataList`).
9
+ Use something else for: rows inside a `Card` body (a shaded row built on
10
+ `theme.recipe.row`), a section split (`CardDivider`), a key/value line
11
+ (`MetadataList`). Bookplate itself lists items with `<Card size="small" onClick>`.
11
12
 
12
13
  ## Props
13
14
 
@@ -30,20 +31,19 @@ No `className`, no `ariaLabel`, no `role`.
30
31
 
31
32
  ## Corners
32
33
 
33
- Hard-codes `borderRadius: '12px'` (its own source comment says "10px"), off
34
- the radius scale. By the [corner rule](../corners.md) a row inside a card
35
- should be `radius.md`. Known inconsistency, don't copy the value.
34
+ `radius.lg` from `recipe.card.shell`: a row sits on the page background. Content
35
+ inside it steps down to `md`. See [corners](../corners.md).
36
36
 
37
37
  ## Examples
38
38
 
39
39
  ```tsx
40
- <Card title="Recent uploads">
40
+ <Page documentTitle="Uploads">
41
41
  {uploads.map((u) => (
42
42
  <CardRow key={u.id} onClick={() => open(u.id)}>
43
43
  {u.fileName}
44
44
  </CardRow>
45
45
  ))}
46
- </Card>
46
+ </Page>
47
47
 
48
48
  // Accessible alternative: the action is a real control.
49
49
  <CardRow>
@@ -53,6 +53,5 @@ should be `radius.md`. Known inconsistency, don't copy the value.
53
53
 
54
54
  ## Do / don't
55
55
 
56
- - Do use it only inside a `Card` body.
56
+ - Do place it on the page background, not inside a `Card`.
57
57
  - Don't rely on `onClick` as the only way to reach an action from the keyboard.
58
- - Don't copy its 12px radius into your own styles; use `theme.radius.md`.
@@ -20,7 +20,7 @@ a disclosure section with no card chrome (`CollapsibleSection`), a modal
20
20
  | `subTitle` | `string` | | Small faint text after the title. |
21
21
  | `headerAction` | `ReactNode \| ReactElement[]` | | Right side of the header. Clicks and keys here do **not** bubble to `onClick` / the collapse toggle. |
22
22
  | `footer` | `ReactNode` | | Grey footer bar, children right-aligned. Clicks do not bubble to `onClick`. Hidden while a collapsible card is collapsed. |
23
- | `size` | `'small' \| 'large'` | `'large'` | `large`: body padding `space.xl`. `small`: body padding `1px` and a 9px corner (see below). |
23
+ | `size` | `'small' \| 'large'` | `'large'` | `large`: body padding `space.xl`. `small`: body padding `1px` and a `calc(md + 1px)` corner (see below). |
24
24
  | `isCollapsible` | `boolean` | `false` | Header becomes a `role="button"` toggle (Enter/Space) with a rotating chevron before the title. |
25
25
  | `defaultCollapsed` | `boolean` | **`true`** | **A collapsible card starts collapsed unless you pass `defaultCollapsed={false}`.** Uncontrolled; there is no `open` prop. |
26
26
  | `onClick` | `() => void` | | Whole-card click; adds a pointer cursor. See the keyboard caveat below. |
@@ -44,8 +44,8 @@ The header renders only if one of `title`, `subTitle`, `headerAction`,
44
44
 
45
45
  The shell uses `radius.lg`: a Card sits on the page background. Buttons inside
46
46
  (body or footer) take `radius="card"`. See [corners](../corners.md).
47
- `size="small"` hard-codes `borderRadius: '9px'`, off the radius scale: known
48
- inconsistency, don't copy the value.
47
+ `size="small"` insets its body by only 1px, so its corner is `calc(radius.md + 1px)`
48
+ (9px): concentric with the `md`-cornered covers and rows flush inside it.
49
49
 
50
50
  ## Examples
51
51
 
package/docs/corners.md CHANGED
@@ -21,7 +21,7 @@ Find where the element sits, then read its radius from this table:
21
21
  | Where the element sits | Radius | Examples |
22
22
  |---|---|---|
23
23
  | On the page background | `lg` | `Card`, modal dialog (`recipe.modal.dialog`), a standalone `Button` (default `radius`), `<Select surface="page">` |
24
- | Inside a card or modal | `md` | inputs (`recipe.input`), `Button radius="card"` / `"modal"`, `Tag`, shaded rows, inset boxes |
24
+ | Inside a card or modal | `md` | inputs (`recipe.input`), `Button radius="card"` / `"modal"`, `Tag`, shaded rows (`recipe.row`), inset boxes |
25
25
  | Inside one of those | `sm` | a chip inside an input, `Button radius="inset"` inside an inset box, a menu item, a Switch track in a shaded row |
26
26
  | Flush with its parent (zero inset, edges touch) | the parent's radius | an unlabelled Select's trigger, an input filling its row |
27
27
  | Inset 4px or less from its parent | `calc(parent − inset)` | a Switch thumb 2px inside a 4px track is 2px |
@@ -63,6 +63,6 @@ const useStyles = createUseStyles((theme: Theme) => ({
63
63
  ```
64
64
 
65
65
  - Never write a literal `borderRadius` (`'12px'`, `'50%'`). The only
66
- non-token form allowed is `calc(theme.radius.X - Npx)` for tight insets.
67
- - Known off-scale values in the library (don't copy them): `CardRow` uses
68
- `12px`, and `Card size="small"` uses `9px`.
66
+ non-token form allowed is `calc(theme.radius.X ± Npx)` for tight insets.
67
+ - A 1px inset works the other way too: `Card size="small"` is
68
+ `calc(radius.md + 1px)` so its flush `md` children stay concentric.
@@ -42,7 +42,7 @@ These are the rules the code already enforces, extracted from the source comment
42
42
 
43
43
  **Rule:** Express shared styling as a `Recipe` object that styles spread (`...theme.recipe.glass`), not as a component.
44
44
 
45
- **Why:** `src/theme/theme.ts`: "Recipes are JSS-spreadable fragments. Loose typing lets them include pseudo-selectors (`&:hover`) and nested rules without fighting JSS's TS surface." The `Recipe` type is deliberately loose for the same reason. `recipe.input`, `focusRing`, `label`, `spinner`, `glass`, `glassHighlight`, `modal.*` and `card.*` are all plain objects, and consumers such as `src/control/button/style.ts` spread them (`...theme.recipe.focusRing`).
45
+ **Why:** `src/theme/theme.ts`: "Recipes are JSS-spreadable fragments. Loose typing lets them include pseudo-selectors (`&:hover`) and nested rules without fighting JSS's TS surface." The `Recipe` type is deliberately loose for the same reason. `recipe.input`, `focusRing`, `label`, `spinner`, `glass`, `glassHighlight`, `row`, `modal.*` and `card.*` are all plain objects, and consumers such as `src/control/button/style.ts` spread them (`...theme.recipe.focusRing`).
46
46
 
47
47
  ## Measured layout numbers live in tokens
48
48
 
package/docs/theme.md CHANGED
@@ -89,6 +89,7 @@ Recipes are style fragments that you spread into a rule: `{ ...theme.recipe.inpu
89
89
  | `recipe.focusRing` | Transparent 2px outline; set `outlineColor: theme.color.brand.outline` on `'&:focus'` |
90
90
  | `recipe.spinner` | 1em rotating box; apply to `SpinnerIcon` |
91
91
  | `recipe.glass` / `glassHighlight` | Frosted translucent surface (floating chrome) and its active state |
92
+ | `recipe.row` | The shaded field row a control sits in inside a card: `bg.cardHeader`, `md` corners, padding `md lg md sm`. Use it for custom rows next to form fields |
92
93
  | `recipe.card.shell` / `header` / `footer` | The Card surface (`lg`), its header bar, and its footer bar |
93
94
  | `recipe.modal.dialog` / `header` / `footer` | A `<dialog>` surface (`lg`, shared width, backdrop), its title, and its button bar |
94
95
 
package/docs/tokens.md CHANGED
@@ -78,6 +78,7 @@ JSS-spreadable style fragments (`...theme.recipe.x`), not components.
78
78
  - `recipe.spinner`: a 1em rotating indicator using the `theme-rotation` keyframes.
79
79
  - `recipe.glass`: frosted, blurred chrome with a solid fallback where backdrop blur is unsupported.
80
80
  - `recipe.glassHighlight`: the active or pressed fill that sits on top of glass.
81
+ - `recipe.row`: the shaded field row (`bg.cardHeader` fill, `radius.md`, padding `space.md space.lg space.md space.sm`) that `Switch`'s horizontal layout uses; spread it for any custom row that sits beside form fields in a card.
81
82
  - `recipe.modal.dialog`: the shared dialog shell (one width, backdrop, mobile margins and safe-area insets).
82
83
  - `recipe.modal.header`: dialog title row.
83
84
  - `recipe.modal.footer`: dialog action row.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korzun/design",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -3,7 +3,9 @@ import { createUseStyles, type Theme } from '../../theme/index.js';
3
3
  export const useStyle = createUseStyles((theme: Theme) => ({
4
4
  root: {
5
5
  ...theme.recipe.card.shell,
6
- '&$small': { borderRadius: '9px' },
6
+ // A small card insets its content by 1px, so it is md + 1px: concentric with the
7
+ // md-cornered children (covers, rows) that sit flush inside it.
8
+ '&$small': { borderRadius: `calc(${theme.radius.md} + 1px)` },
7
9
  },
8
10
  header: {
9
11
  ...theme.recipe.card.header,
@@ -5,7 +5,7 @@ export const useStyle = createUseStyles((theme: Theme) => ({
5
5
  ...theme.recipe.card.shell,
6
6
  backgroundColor: theme.color.bg.card,
7
7
  padding: '6px', // row-specific compact padding
8
- borderRadius: '12px', // row-specific 10px radius (not on theme scale)
8
+ // Corners come from recipe.card.shell (radius.lg): a row sits on the page background.
9
9
  },
10
10
  clickable: {
11
11
  cursor: 'pointer',
@@ -142,9 +142,7 @@ export const useStyle = createUseStyles((theme: Theme) => ({
142
142
  alignItems: 'center',
143
143
  gap: theme.space.md,
144
144
  width: '100%',
145
- backgroundColor: theme.color.bg.cardHeader,
146
- borderRadius: theme.radius.md,
147
- padding: `${theme.space.md} ${theme.space.lg} ${theme.space.md} ${theme.space.sm}`,
145
+ ...theme.recipe.row,
148
146
  '& $content': {
149
147
  display: 'flex',
150
148
  flexDirection: 'column',
@@ -201,6 +201,8 @@ export interface Theme {
201
201
  spinner: Recipe;
202
202
  glass: Recipe;
203
203
  glassHighlight: Recipe;
204
+ /** The shaded field row (`bg.cardHeader`, `md` corners) a control sits in inside a card. */
205
+ row: Recipe;
204
206
  modal: {
205
207
  dialog: Recipe;
206
208
  header: Recipe;
@@ -568,6 +570,11 @@ function buildTheme(mode: ThemeMode): Theme {
568
570
  borderColor: color.border.glassActive,
569
571
  boxShadow: shadow.glassActive,
570
572
  },
573
+ row: {
574
+ backgroundColor: color.bg.cardHeader,
575
+ borderRadius: radius.md,
576
+ padding: `${space.md} ${space.lg} ${space.md} ${space.sm}`,
577
+ },
571
578
  modal: {
572
579
  dialog: {
573
580
  cursor: 'default',