@lostgradient/cinder 0.20.0 → 0.21.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.
- package/CHANGELOG.md +162 -0
- package/components.json +1 -1
- package/dist/components/alert-dialog/index.js +481 -162
- package/dist/components/approval-card/approval-card.css +3 -0
- package/dist/components/approval-card/index.js +402 -119
- package/dist/components/area-chart/index.js +252 -1
- package/dist/components/autocomplete/index.js +124 -40
- package/dist/components/avatar-group/index.js +185 -81
- package/dist/components/bar-chart/index.js +252 -1
- package/dist/components/button/button.css +13 -3
- package/dist/components/calendar/calendar.css +3 -0
- package/dist/components/carousel/carousel.css +40 -6
- package/dist/components/carousel/carousel.schema.js +43 -2
- package/dist/components/carousel/carousel.svelte.d.ts +25 -4
- package/dist/components/carousel/carousel.types.d.ts +43 -2
- package/dist/components/carousel/carousel.variables.js +7 -2
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/carousel/index.js +2018 -351
- package/dist/components/checkbox/checkbox.css +1 -1
- package/dist/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/components/chip/chip.css +3 -0
- package/dist/components/code-block/code-block.css +35 -2
- package/dist/components/code-block/code-block.schema.js +9 -1
- package/dist/components/code-block/code-block.types.d.ts +8 -0
- package/dist/components/code-block/index.js +263 -4
- package/dist/components/color-field/color-field.css +1 -1
- package/dist/components/color-picker/color-picker.css +1 -1
- package/dist/components/combobox/combobox.css +4 -1
- package/dist/components/combobox/index.js +124 -40
- package/dist/components/command-menu/index.js +20 -17
- package/dist/components/confirm-dialog/index.js +497 -178
- package/dist/components/connection-indicator/connection-indicator.css +3 -2
- package/dist/components/context-menu/index.js +124 -40
- package/dist/components/copy-button/copy-button.css +4 -1
- package/dist/components/data-grid/data-grid.css +3 -0
- package/dist/components/data-table/index.js +252 -1
- package/dist/components/date-picker/date-picker.css +1 -1
- package/dist/components/date-picker/index.js +124 -40
- package/dist/components/date-range-field/date-range-field.css +7 -1
- package/dist/components/date-range-field/index.js +124 -40
- package/dist/components/diff-statistics/diff-statistics.css +2 -2
- package/dist/components/drawer/drawer.css +20 -12
- package/dist/components/drawer/index.js +106 -25
- package/dist/components/dropdown/dropdown.css +1 -1
- package/dist/components/dropdown/index.js +124 -40
- package/dist/components/dropdown-menu/index.js +20 -17
- package/dist/components/event-stream-viewer/event-stream-viewer.css +29 -4
- package/dist/components/event-stream-viewer/event-stream-viewer.variables.js +5 -2
- package/dist/components/event-timeline/event-timeline.css +3 -0
- package/dist/components/event-timeline/index.js +124 -40
- package/dist/components/focus-trap/index.js +105 -24
- package/dist/components/form-field/form-field.css +1 -1
- package/dist/components/hover-card/hover-card.css +45 -1
- package/dist/components/hover-card/index.js +144 -19
- package/dist/components/inline-loading/inline-loading.css +2 -2
- package/dist/components/input/input.css +1 -1
- package/dist/components/invocation-rule-builder/index.js +124 -40
- package/dist/components/invocation-rule-builder/invocation-rule-builder.css +18 -0
- package/dist/components/json-editor/json-editor.css +4 -1
- package/dist/components/json-schema-editor/index.js +152 -68
- package/dist/components/json-viewer/json-viewer.css +5 -2
- package/dist/components/kanban-board/index.js +2 -2
- package/dist/components/kanban-board/kanban-board.css +1 -1
- package/dist/components/line-chart/index.js +252 -1
- package/dist/components/marquee/marquee.css +3 -0
- package/dist/components/matrix-chart/index.js +252 -1
- package/dist/components/menu-bar/index.js +20 -17
- package/dist/components/menu-bar/menu-bar.css +3 -0
- package/dist/components/meter/index.js +13 -3
- package/dist/components/modal/index.js +447 -130
- package/dist/components/modal/modal.css +56 -24
- package/dist/components/multi-select/index.js +3553 -467
- package/dist/components/multi-select/multi-select.css +4 -10
- package/dist/components/navigation-bar/index.js +20 -17
- package/dist/components/navigation-item/navigation-item.css +3 -0
- package/dist/components/pagination/pagination.css +3 -0
- package/dist/components/permission-matrix/index.js +252 -1
- package/dist/components/permission-matrix/permission-matrix.css +15 -0
- package/dist/components/phone-input/phone-input.css +1 -1
- package/dist/components/pin-input/pin-input.css +10 -2
- package/dist/components/popover/index.js +124 -40
- package/dist/components/qr-code/qr-code.css +1 -1
- package/dist/components/radio-group/radio-group.css +1 -1
- package/dist/components/rating/rating.css +1 -1
- package/dist/components/schema-form/schema-form.css +1 -1
- package/dist/components/scroll-area/index.js +526 -22
- package/dist/components/scroll-area/scroll-area.css +30 -0
- package/dist/components/scroll-area/scroll-area.schema.js +9 -1
- package/dist/components/scroll-area/scroll-area.types.d.ts +17 -0
- package/dist/components/secret-value-field/secret-value-field.css +11 -1
- package/dist/components/segmented-control/segmented-control.css +12 -2
- package/dist/components/select/select.css +4 -1
- package/dist/components/selection-popover/index.js +149 -40
- package/dist/components/selection-popover/selection-popover.css +3 -0
- package/dist/components/selection-popover/virtual-keyboard-dismissal.svelte.d.ts +14 -0
- package/dist/components/sheet/index.js +106 -25
- package/dist/components/sheet/sheet.css +20 -12
- package/dist/components/sidebar/index.js +106 -25
- package/dist/components/sortable-list/index.js +2 -2
- package/dist/components/sortable-list/sortable-list.css +14 -9
- package/dist/components/speed-dial/index.js +20 -17
- package/dist/components/statistic/statistic.css +2 -2
- package/dist/components/statistic-group/statistic-group.css +2 -2
- package/dist/components/status-dot/status-dot.css +2 -2
- package/dist/components/table/index.js +252 -1
- package/dist/components/table/table.css +15 -0
- package/dist/components/tag-input/tag-input.css +1 -1
- package/dist/components/team-section/index.js +193 -89
- package/dist/components/textarea/textarea.css +4 -1
- package/dist/components/time-field/time-field.css +4 -1
- package/dist/components/tooltip/index.js +130 -46
- package/dist/components/tooltip/tooltip.schema.js +7 -3
- package/dist/components/tooltip/tooltip.types.d.ts +20 -2
- package/dist/components/transfer-list/index.js +253 -1
- package/dist/components/transfer-list/transfer-list.css +18 -0
- package/dist/index.js +22861 -22220
- package/dist/server/components/alert-dialog/index.js +7 -4
- package/dist/server/components/approval-card/index.js +9 -8
- package/dist/server/components/area-chart/index.js +6 -4
- package/dist/server/components/autocomplete/index.js +7 -7
- package/dist/server/components/avatar-group/index.js +7 -7
- package/dist/server/components/bar-chart/index.js +6 -4
- package/dist/server/components/carousel/index.js +6 -2
- package/dist/server/components/code-block/index.js +5 -3
- package/dist/server/components/combobox/index.js +8 -8
- package/dist/server/components/command-menu/index.js +5 -5
- package/dist/server/components/confirm-dialog/index.js +7 -4
- package/dist/server/components/context-menu/index.js +7 -7
- package/dist/server/components/data-table/index.js +5 -3
- package/dist/server/components/date-picker/index.js +8 -8
- package/dist/server/components/date-range-field/index.js +8 -8
- package/dist/server/components/drawer/index.js +4 -4
- package/dist/server/components/dropdown/index.js +7 -7
- package/dist/server/components/dropdown-menu/index.js +6 -6
- package/dist/server/components/event-timeline/index.js +6 -6
- package/dist/server/components/focus-trap/index.js +3 -3
- package/dist/server/components/hover-card/index.js +7 -6
- package/dist/server/components/invocation-rule-builder/index.js +8 -8
- package/dist/server/components/json-schema-editor/index.js +6 -6
- package/dist/server/components/kanban-board/index.js +2 -2
- package/dist/server/components/line-chart/index.js +6 -4
- package/dist/server/components/matrix-chart/index.js +6 -4
- package/dist/server/components/menu-bar/index.js +6 -6
- package/dist/server/components/meter/index.js +1 -1
- package/dist/server/components/modal/index.js +7 -4
- package/dist/server/components/multi-select/index.js +9 -2
- package/dist/server/components/navigation-bar/index.js +5 -5
- package/dist/server/components/permission-matrix/index.js +4 -2
- package/dist/server/components/popover/index.js +7 -7
- package/dist/server/components/portal/index.js +3 -3
- package/dist/server/components/run-step-timeline/index.js +1 -1
- package/dist/server/components/scroll-area/index.js +8 -2
- package/dist/server/components/selection-popover/index.js +6 -6
- package/dist/server/components/sheet/index.js +3 -3
- package/dist/server/components/sidebar/index.js +5 -5
- package/dist/server/components/sortable-list/index.js +2 -2
- package/dist/server/components/speed-dial/index.js +6 -6
- package/dist/server/components/speed-dial-action/index.js +4 -4
- package/dist/server/components/table/index.js +5 -3
- package/dist/server/components/team-section/index.js +7 -7
- package/dist/server/components/toast-region/index.js +3 -3
- package/dist/server/components/tooltip/index.js +6 -6
- package/dist/server/components/transfer-list/index.js +4 -2
- package/dist/server/index.js +69 -68
- package/dist/server/{index.server-dvd8t7ds.js → index.server-01bz4wmw.js} +1 -1
- package/dist/server/{index.server-gbj2zt1q.js → index.server-03ndc3td.js} +1 -1
- package/dist/server/{index.server-1qr1qkjb.js → index.server-0p1z1kbs.js} +1 -1
- package/dist/server/{index.server-b36zkjsr.js → index.server-1cnz5ax1.js} +30 -6
- package/dist/server/{index.server-xtx9sey2.js → index.server-2bw5fqwh.js} +1 -1
- package/dist/server/{index.server-v3t6v21s.js → index.server-2eb8pcev.js} +1 -1
- package/dist/server/{index.server-2n185esx.js → index.server-2h45p8kd.js} +2 -2
- package/dist/server/{index.server-3gm8s994.js → index.server-2k0cnsm4.js} +30 -2
- package/dist/server/{index.server-jwrnsnxk.js → index.server-2qydtmtp.js} +1 -1
- package/dist/server/{index.server-4bdnshs1.js → index.server-3e8n2sry.js} +2 -2
- package/dist/server/{index.server-dpyw7nad.js → index.server-4sr9f5r0.js} +1 -1
- package/dist/server/{index.server-rxvbt0y3.js → index.server-4w0rydct.js} +1 -1
- package/dist/server/{index.server-znrr9zve.js → index.server-6184qc69.js} +1 -1
- package/dist/server/{index.server-mw3z3nfz.js → index.server-64dvhh7s.js} +8 -2
- package/dist/server/{index.server-w9tnnse5.js → index.server-6771g0q4.js} +4 -4
- package/dist/server/{index.server-jxy33axv.js → index.server-6e5cj9hs.js} +1 -1
- package/dist/server/{index.server-gp0jh4cx.js → index.server-6z6s8qz8.js} +1 -1
- package/dist/server/{index.server-jj0tkfqp.js → index.server-72d0qgdy.js} +3 -3
- package/dist/server/{index.server-x93qnzqm.js → index.server-77p0jy71.js} +1 -1
- package/dist/server/{index.server-cepvcyxn.js → index.server-7kez94sz.js} +17 -6
- package/dist/server/{index.server-rd908evp.js → index.server-7sxx7645.js} +2 -2
- package/dist/server/{index.server-1br18a82.js → index.server-8t53gqe7.js} +3 -3
- package/dist/server/{index.server-jnp8yqgj.js → index.server-8w95jmf1.js} +1 -1
- package/dist/server/{index.server-g8j7wnpa.js → index.server-9emgn750.js} +1 -1
- package/dist/server/{index.server-zt8d7yer.js → index.server-9n2bc545.js} +1 -1
- package/dist/server/{index.server-bprjmaxb.js → index.server-a5w1wy5w.js} +1 -1
- package/dist/server/{index.server-t6dkkfxk.js → index.server-a5zsgn3k.js} +1 -1
- package/dist/server/{index.server-nsqx19rk.js → index.server-a8gpnzgg.js} +6 -6
- package/dist/server/{index.server-edx404az.js → index.server-ayhcc6z5.js} +1 -1
- package/dist/server/{index.server-z53avp9h.js → index.server-b7pq5xpd.js} +1 -1
- package/dist/server/{index.server-aerjcjgw.js → index.server-cptwpqbr.js} +1 -1
- package/dist/server/{index.server-85dr75be.js → index.server-d70brw24.js} +1 -1
- package/dist/server/{index.server-wsbwydct.js → index.server-fd3az8g2.js} +3 -3
- package/dist/server/{index.server-429t1qje.js → index.server-fka21791.js} +2 -2
- package/dist/server/{index.server-vb58jd7c.js → index.server-grq89cv5.js} +1 -1
- package/dist/server/{index.server-74g52t91.js → index.server-hxjkfdp2.js} +1 -1
- package/dist/server/{index.server-r5y5t888.js → index.server-j4akck2w.js} +1 -1
- package/dist/server/{index.server-sqtgjjc3.js → index.server-j57zek3p.js} +1 -1
- package/dist/server/index.server-ja3fmd29.js +211 -0
- package/dist/server/{index.server-66amt15s.js → index.server-kszs0qx5.js} +25 -2
- package/dist/server/{index.server-f02vwrw5.js → index.server-nbq0tmx1.js} +26 -16
- package/dist/server/{index.server-ktwnf9vg.js → index.server-nbspp00m.js} +1 -1
- package/dist/server/{index.server-xanhe43k.js → index.server-pee1wa4g.js} +1 -1
- package/dist/server/{index.server-dqt9we67.js → index.server-q7r53g7z.js} +1 -1
- package/dist/server/{index.server-1xq7j9dj.js → index.server-scdk1we9.js} +6 -6
- package/dist/server/{index.server-rgcepyhr.js → index.server-sfbna82r.js} +1 -1
- package/dist/server/{index.server-dpe08kr7.js → index.server-sgjc9gkq.js} +1 -1
- package/dist/server/{index.server-wm3t5yw7.js → index.server-sxkkaj8b.js} +13 -3
- package/dist/server/{index.server-r147w5z4.js → index.server-td8rx9dz.js} +1 -1
- package/dist/server/{index.server-3g76h7z7.js → index.server-th1tsad4.js} +62 -26
- package/dist/server/{index.server-ak9pqjfw.js → index.server-tpny5pjk.js} +224 -91
- package/dist/server/{index.server-8wb8g3w1.js → index.server-tvj0x3qy.js} +1 -1
- package/dist/server/{index.server-vqb9m9hq.js → index.server-w2jwyz17.js} +2 -2
- package/dist/server/{index.server-29sg0ywf.js → index.server-w5f4ex0f.js} +9 -6
- package/dist/server/{index.server-5p5r6t6n.js → index.server-w8phxx00.js} +1 -1
- package/dist/server/{index.server-tj2erfba.js → index.server-x6hbm4je.js} +2 -2
- package/dist/server/{index.server-7r9d6g1c.js → index.server-xqbes4jd.js} +6 -6
- package/dist/server/{index.server-j15z5xn7.js → index.server-xsh52hjt.js} +1 -1
- package/dist/server/{index.server-k1625sfw.js → index.server-y8m06g9p.js} +1 -1
- package/dist/server/{index.server-32p6dz3e.js → index.server-ybb5ery2.js} +1 -1
- package/dist/server/{index.server-1p7b8y48.js → index.server-yhjecwfj.js} +6 -6
- package/dist/server/{index.server-4nh4arvs.js → index.server-zfxb12hm.js} +30 -48
- package/dist/utilities/attachments.d.ts +63 -1
- package/dist/utilities/drag-scroll-physics.d.ts +48 -0
- package/dist/utilities/use-drag-scroll.svelte.d.ts +26 -0
- package/dist/utilities/use-drag-scroll.types.d.ts +15 -0
- package/dist/utilities/use-fine-pointer.svelte.d.ts +12 -0
- package/dist/utilities/use-fine-pointer.types.d.ts +4 -0
- package/package.json +2 -2
- package/src/_internal/anchored-overlay.svelte.ts +48 -26
- package/src/components/_sortable-item.svelte +21 -2
- package/src/components/approval-card/approval-card.css +3 -0
- package/src/components/avatar-group/avatar-group.svelte +46 -17
- package/src/components/button/button.css +13 -3
- package/src/components/calendar/calendar.css +3 -0
- package/src/components/carousel/carousel.css +40 -6
- package/src/components/carousel/carousel.examples.json +6 -0
- package/src/components/carousel/carousel.schema.json +42 -1
- package/src/components/carousel/carousel.schema.ts +49 -1
- package/src/components/carousel/carousel.svelte +311 -136
- package/src/components/carousel/carousel.types.ts +47 -2
- package/src/components/carousel/carousel.variables.json +6 -1
- package/src/components/carousel/carousel.variables.ts +6 -1
- package/src/components/carousel/index.ts +1 -0
- package/src/components/checkbox/checkbox.css +1 -1
- package/src/components/checkbox-group/checkbox-group.css +1 -1
- package/src/components/chip/chip.css +3 -0
- package/src/components/code-block/code-block.css +35 -2
- package/src/components/code-block/code-block.schema.json +4 -0
- package/src/components/code-block/code-block.schema.ts +5 -0
- package/src/components/code-block/code-block.svelte +12 -2
- package/src/components/code-block/code-block.types.ts +8 -0
- package/src/components/color-field/color-field.css +1 -1
- package/src/components/color-picker/color-picker.css +1 -1
- package/src/components/combobox/combobox.css +4 -1
- package/src/components/connection-indicator/connection-indicator.css +3 -2
- package/src/components/copy-button/copy-button.css +4 -1
- package/src/components/data-grid/data-grid.css +3 -0
- package/src/components/date-picker/date-picker.css +1 -1
- package/src/components/date-range-field/date-range-field.css +7 -1
- package/src/components/diff-statistics/diff-statistics.css +2 -2
- package/src/components/drawer/drawer.css +20 -12
- package/src/components/drawer/drawer.svelte +5 -1
- package/src/components/dropdown/dropdown.css +1 -1
- package/src/components/event-stream-viewer/event-stream-viewer.css +29 -4
- package/src/components/event-stream-viewer/event-stream-viewer.variables.json +1 -1
- package/src/components/event-stream-viewer/event-stream-viewer.variables.ts +4 -1
- package/src/components/event-timeline/event-timeline.css +3 -0
- package/src/components/form-field/form-field.css +1 -1
- package/src/components/hover-card/hover-card.css +45 -1
- package/src/components/hover-card/hover-card.svelte +64 -2
- package/src/components/inline-loading/inline-loading.css +2 -2
- package/src/components/input/input.css +1 -1
- package/src/components/invocation-rule-builder/invocation-rule-builder.css +18 -0
- package/src/components/json-editor/json-editor.css +4 -1
- package/src/components/json-viewer/json-viewer.css +5 -2
- package/src/components/kanban-board/kanban-board.css +1 -1
- package/src/components/marquee/marquee.css +3 -0
- package/src/components/menu-bar/menu-bar.css +3 -0
- package/src/components/meter/meter.svelte +19 -4
- package/src/components/meter/meter.types.ts +4 -0
- package/src/components/modal/modal.css +56 -24
- package/src/components/modal/modal.svelte +59 -99
- package/src/components/multi-select/multi-select.css +4 -10
- package/src/components/multi-select/multi-select.svelte +43 -0
- package/src/components/navigation-item/navigation-item.css +3 -0
- package/src/components/pagination/pagination.css +3 -0
- package/src/components/permission-matrix/permission-matrix.css +15 -0
- package/src/components/permission-matrix/permission-matrix.svelte +6 -1
- package/src/components/phone-input/phone-input.css +1 -1
- package/src/components/pin-input/pin-input.css +10 -2
- package/src/components/qr-code/qr-code.css +1 -1
- package/src/components/radio-group/radio-group.css +1 -1
- package/src/components/rating/rating.css +1 -1
- package/src/components/schema-form/schema-form.css +1 -1
- package/src/components/scroll-area/scroll-area.css +30 -0
- package/src/components/scroll-area/scroll-area.schema.json +8 -0
- package/src/components/scroll-area/scroll-area.schema.ts +10 -0
- package/src/components/scroll-area/scroll-area.svelte +44 -2
- package/src/components/scroll-area/scroll-area.types.ts +17 -0
- package/src/components/secret-value-field/secret-value-field.css +11 -1
- package/src/components/segmented-control/segmented-control.css +12 -2
- package/src/components/select/select.css +4 -1
- package/src/components/selection-popover/selection-popover.css +3 -0
- package/src/components/selection-popover/selection-popover.svelte +32 -0
- package/src/components/selection-popover/virtual-keyboard-dismissal.svelte.ts +16 -0
- package/src/components/sheet/sheet.css +20 -12
- package/src/components/sheet/sheet.svelte +1 -1
- package/src/components/sortable-list/sortable-list.css +14 -9
- package/src/components/statistic/statistic.css +2 -2
- package/src/components/statistic-group/statistic-group.css +2 -2
- package/src/components/status-dot/status-dot.css +2 -2
- package/src/components/table/table.css +15 -0
- package/src/components/table/table.svelte +2 -0
- package/src/components/tag-input/tag-input.css +1 -1
- package/src/components/textarea/textarea.css +4 -1
- package/src/components/time-field/time-field.css +4 -1
- package/src/components/tooltip/tooltip.schema.json +6 -2
- package/src/components/tooltip/tooltip.schema.ts +8 -2
- package/src/components/tooltip/tooltip.svelte +124 -23
- package/src/components/tooltip/tooltip.types.ts +20 -2
- package/src/components/transfer-list/transfer-list.css +18 -0
- package/src/components/transfer-list/transfer-list.svelte +3 -0
- package/src/styles/components/_control-item.css +3 -0
- package/src/styles/components/_field-label.css +1 -1
- package/src/styles/components/_input-frame.css +3 -0
- package/src/styles/components/_scroll-fade.css +317 -0
- package/src/styles/components/_status-surface.css +21 -1
- package/src/styles/components.css +5 -0
- package/src/styles/index.css +1 -0
- package/src/styles/tokens-base.css +207 -69
- package/src/styles/utilities.css +10 -1
- package/src/utilities/attachments.ts +202 -26
- package/src/utilities/drag-scroll-physics.ts +82 -0
- package/src/utilities/use-drag-scroll.svelte.ts +186 -0
- package/src/utilities/use-drag-scroll.types.ts +17 -0
- package/src/utilities/use-fine-pointer.svelte.ts +23 -0
- package/src/utilities/use-fine-pointer.types.ts +4 -0
|
@@ -43,6 +43,23 @@
|
|
|
43
43
|
|
|
44
44
|
/* ========================================
|
|
45
45
|
* RADII
|
|
46
|
+
* ----------------------------------------
|
|
47
|
+
* 6 / 8 / 12px. A previous pass stepped the whole scale down one notch to
|
|
48
|
+
* 4 / 6 / 8 on the theory that rounding compounds when controls nest. It does,
|
|
49
|
+
* but the fix for a bubbly NESTED corner is the concentric rule below, not
|
|
50
|
+
* shrinking every radius in the system: at 4/6/8 large panels — code blocks,
|
|
51
|
+
* cards, dialogs — read as hard-cornered plates, because a radius that is
|
|
52
|
+
* proportionate on a 28px button is nearly invisible on a 600px panel. Radius is
|
|
53
|
+
* not a single scalar shared by every size class; the nesting rule is what keeps
|
|
54
|
+
* compounding under control.
|
|
55
|
+
*
|
|
56
|
+
* NESTING RULE: an inner element inset by N inside a rounded container is
|
|
57
|
+
* concentric only at `outer − N`. Picking a smaller step off this scale is NOT
|
|
58
|
+
* the same thing — the two curves then have different centers and the inner
|
|
59
|
+
* corner reads as off-axis. Express the inner radius as
|
|
60
|
+
* `calc(var(--cinder-radius-<outer>) - <inset>)` so it tracks the outer token
|
|
61
|
+
* instead of drifting when either value changes. A container that clips with
|
|
62
|
+
* `overflow: hidden` (Accordion) needs no inner radius at all.
|
|
46
63
|
* ======================================== */
|
|
47
64
|
--cinder-radius-sm: 0.375rem;
|
|
48
65
|
--cinder-radius-md: 0.5rem;
|
|
@@ -190,11 +207,44 @@
|
|
|
190
207
|
* ======================================== */
|
|
191
208
|
color-scheme: light dark;
|
|
192
209
|
|
|
193
|
-
/* Backgrounds / surfaces
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
210
|
+
/* Backgrounds / surfaces
|
|
211
|
+
*
|
|
212
|
+
* LIGHT MODE ANCHORS AT WHITE. The previous tune (2026-08-05) read "light mode
|
|
213
|
+
* is drab" as "the tiers do not separate enough" and widened the light arm
|
|
214
|
+
* DOWNWARD — bg 0.95 → 0.921, inset 0.94 → 0.885 — so that four tiers spanned
|
|
215
|
+
* 11.5 lightness points and fills alone could draw a region boundary. That
|
|
216
|
+
* inverted how light UI works. The page canvas and every inset region are the
|
|
217
|
+
* DOMINANT areas of a light screen; pushing them to 0.921 and 0.885 turned them
|
|
218
|
+
* into blue-grey slabs and left white surviving only inside small raised cards.
|
|
219
|
+
* A 400px-tall chat transcript, a code-block header, a nav strip and a settings
|
|
220
|
+
* panel all became grey plates. Matching dark mode's end-to-end CONTRAST RATIO
|
|
221
|
+
* was a real calculation applied to the wrong goal: dark mode earns its span by
|
|
222
|
+
* building UP from near-black, and the light-mode mirror of that is not building
|
|
223
|
+
* DOWN from white.
|
|
224
|
+
*
|
|
225
|
+
* In light mode white is the DEFAULT and elevation is carried by a hairline
|
|
226
|
+
* border plus a shadow — the model GitHub, Stripe, Linear and Vercel all use. So
|
|
227
|
+
* the ramp is now anchored at the top and compressed: inset 0.960 → bg 0.984 →
|
|
228
|
+
* surface 0.994 → raised 1.000. The canvas reads as white to the eye; `inset` is
|
|
229
|
+
* a gentle well rather than a plate; `raised` stays the pure-white anchor. The
|
|
230
|
+
* span is 0.040, and that is correct rather than timid — the separation budget
|
|
231
|
+
* moved from FILL to BORDER + SHADOW, which is where light mode carries it.
|
|
232
|
+
*
|
|
233
|
+
* CHROMA drops roughly 3x (was 0.010–0.018, now 0.002–0.006). The old values put
|
|
234
|
+
* a blue cast on every large light surface, which is most of what "drab" and
|
|
235
|
+
* "sad" were actually describing: a 0.885/0.014-chroma canvas is not a neutral,
|
|
236
|
+
* it is a pale slate. The cast is kept monotonic — growing as the surface
|
|
237
|
+
* recedes, as the dark arm already does — but small enough that the surfaces
|
|
238
|
+
* read as white and the ACCENT is the only saturated thing on the page. That is
|
|
239
|
+
* where vibrancy comes from in a light theme: saturated accents against white,
|
|
240
|
+
* not tinted greys.
|
|
241
|
+
*
|
|
242
|
+
* The dark arm is unchanged — it was never the complaint, and it builds up from
|
|
243
|
+
* near-black where a wide fill-carried ramp is the right model. */
|
|
244
|
+
--cinder-bg: light-dark(oklch(98.4% 0.003 255), oklch(15% 0.035 245));
|
|
245
|
+
--cinder-surface: light-dark(oklch(99.4% 0.002 255), oklch(21% 0.04 245));
|
|
246
|
+
--cinder-surface-raised: light-dark(oklch(100% 0 255), oklch(28% 0.045 245));
|
|
247
|
+
--cinder-surface-inset: light-dark(oklch(96% 0.005 255), oklch(11% 0.03 245));
|
|
198
248
|
|
|
199
249
|
/* Upcoming step marker background — keeps the inset treatment in light mode
|
|
200
250
|
(surface-inset is visibly recessed vs surface), but lifts to surface in dark
|
|
@@ -209,31 +259,57 @@
|
|
|
209
259
|
--cinder-surface-inverse: light-dark(var(--cinder-text), var(--cinder-surface-raised));
|
|
210
260
|
--cinder-text-inverse: light-dark(var(--cinder-surface), var(--cinder-text));
|
|
211
261
|
--cinder-border-inverse: light-dark(transparent, var(--cinder-border-strong));
|
|
212
|
-
/* Hover/pressed surface derivatives.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
262
|
+
/* Hover/pressed surface derivatives.
|
|
263
|
+
LIGHT MIXES TOWARD THE ACCENT; DARK MIXES TOWARD WHITE.
|
|
264
|
+
|
|
265
|
+
The light arm no longer darkens toward black, and the first reason is
|
|
266
|
+
arithmetic rather than taste: these are PROPORTIONAL mixes, so once the light
|
|
267
|
+
ramp is anchored at white its four resting tiers occupy 0.040 lightness points
|
|
268
|
+
while a 6% black mix moves a surface by 0.060 — one hover step is wider than
|
|
269
|
+
the whole ramp it has to stay clear of. Every state lands on some resting tier,
|
|
270
|
+
and chasing that with ever-smaller percentages only makes hover invisible.
|
|
271
|
+
|
|
272
|
+
So stop separating states by LIGHTNESS alone. A light-mode hover that washes
|
|
273
|
+
toward the brand accent separates by CHROMA and HUE as well, which keeps it
|
|
274
|
+
legible at a lightness step small enough to fit the ramp, and reads as
|
|
275
|
+
intentional brand feedback rather than a smudge of grey. It is also the direct
|
|
276
|
+
answer to "they should be vibrant": the accent now appears on every
|
|
277
|
+
interactive surface in the theme instead of only on solid buttons.
|
|
278
|
+
|
|
279
|
+
The dark arm keeps mixing toward white at 2.5% / 6%. It builds UP from
|
|
280
|
+
near-black across 17 lightness points, so a proportional lightness mix has room
|
|
281
|
+
there and already works. The percentages therefore differ per arm, which is why
|
|
282
|
+
each token wraps two complete `color-mix()` expressions in `light-dark()`
|
|
283
|
+
instead of sharing one percentage across a `light-dark()` mix TARGET.
|
|
284
|
+
|
|
285
|
+
Resolved light ladder — neutral resting tiers vs accent-tinted states:
|
|
286
|
+
surface-pressed L 0.935 C 0.028
|
|
287
|
+
raised-pressed L 0.940 C 0.026
|
|
288
|
+
inset L 0.960 C 0.005
|
|
289
|
+
surface-hover L 0.964 C 0.015
|
|
290
|
+
raised-hover L 0.970 C 0.013
|
|
291
|
+
bg L 0.984 C 0.003
|
|
292
|
+
surface L 0.994 C 0.002
|
|
293
|
+
raised L 1.000 C 0
|
|
294
|
+
Several neighbours are close in L, which is exactly why the companion test
|
|
295
|
+
measures OKLab ΔE (lightness AND chroma AND hue) instead of ΔL: under an
|
|
296
|
+
L-only metric an accent wash and a grey plate at the same lightness are
|
|
297
|
+
identical to the test and obviously different to the eye. */
|
|
298
|
+
--cinder-surface-hover: light-dark(
|
|
299
|
+
color-mix(in oklch, var(--cinder-surface), var(--cinder-accent) 6%),
|
|
300
|
+
color-mix(in oklch, var(--cinder-surface), oklch(100% 0 0) 2.5%)
|
|
222
301
|
);
|
|
223
|
-
--cinder-surface-pressed:
|
|
224
|
-
in oklch,
|
|
225
|
-
var(--cinder-surface),
|
|
226
|
-
light-dark(oklch(0% 0 0), oklch(100% 0 0)) 8%
|
|
302
|
+
--cinder-surface-pressed: light-dark(
|
|
303
|
+
color-mix(in oklch, var(--cinder-surface), var(--cinder-accent) 12%),
|
|
304
|
+
color-mix(in oklch, var(--cinder-surface), oklch(100% 0 0) 6%)
|
|
227
305
|
);
|
|
228
|
-
--cinder-surface-raised-hover:
|
|
229
|
-
in oklch,
|
|
230
|
-
var(--cinder-surface-raised),
|
|
231
|
-
light-dark(oklch(0% 0 0), oklch(100% 0 0)) 3%
|
|
306
|
+
--cinder-surface-raised-hover: light-dark(
|
|
307
|
+
color-mix(in oklch, var(--cinder-surface-raised), var(--cinder-accent) 6%),
|
|
308
|
+
color-mix(in oklch, var(--cinder-surface-raised), oklch(100% 0 0) 2.5%)
|
|
232
309
|
);
|
|
233
|
-
--cinder-surface-raised-pressed:
|
|
234
|
-
in oklch,
|
|
235
|
-
var(--cinder-surface-raised),
|
|
236
|
-
light-dark(oklch(0% 0 0), oklch(100% 0 0)) 8%
|
|
310
|
+
--cinder-surface-raised-pressed: light-dark(
|
|
311
|
+
color-mix(in oklch, var(--cinder-surface-raised), var(--cinder-accent) 12%),
|
|
312
|
+
color-mix(in oklch, var(--cinder-surface-raised), oklch(100% 0 0) 6%)
|
|
237
313
|
);
|
|
238
314
|
|
|
239
315
|
/* Text */
|
|
@@ -245,13 +321,37 @@
|
|
|
245
321
|
misusing --cinder-text-disabled (a text-lightness token) as an assertive fill. Reads plainly
|
|
246
322
|
inert. NOTE the glyph on top must use --cinder-text-disabled, NOT --cinder-accent-contrast:
|
|
247
323
|
accent-contrast is dark ink in both arms and would be ~1.45:1 on the dark-arm fill (0.30) —
|
|
248
|
-
invisible. --cinder-text-disabled clears the 3:1 UI floor in both themes (light
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
--cinder-
|
|
253
|
-
|
|
254
|
-
|
|
324
|
+
invisible. --cinder-text-disabled clears the 3:1 UI floor in both themes (light 3.60:1, dark ~4.1:1).
|
|
325
|
+
The light arm moved 0.88 → 0.86 with the widened ramp: at 0.88 it sat ΔL 0.005 from the new
|
|
326
|
+
--cinder-surface-inset (0.885), so a disabled control inside a well vanished entirely. A
|
|
327
|
+
disabled control is exempt from WCAG contrast, but it still has to be VISIBLE as a control. */
|
|
328
|
+
--cinder-fill-disabled: light-dark(oklch(86% 0.006 255), oklch(30% 0.015 245));
|
|
329
|
+
|
|
330
|
+
/* Borders. Anchoring the surfaces at white moves the separation budget from FILL
|
|
331
|
+
to BORDER, so these carry MORE of the work than they used to, not less. Only the
|
|
332
|
+
chroma drops (0.012–0.014 → 0.004–0.006) so a hairline reads as a neutral line
|
|
333
|
+
rather than a faint blue one.
|
|
334
|
+
|
|
335
|
+
`--cinder-border` stays at 0.83 and must not be lightened past ~0.85. It is the
|
|
336
|
+
border of the secondary Button, whose fill is `--cinder-surface-raised` (pure
|
|
337
|
+
white), so it is the ONLY thing making that control read as a control. An
|
|
338
|
+
earlier pass of this retune took it to 0.868 on the reasoning that a white
|
|
339
|
+
canvas needs less border weight; that is true for a DIVIDER and false for a
|
|
340
|
+
control outline, and it put the secondary button back under the ΔL 0.15 floor
|
|
341
|
+
that `theme-parity-light-ladder.playwright.ts` exists to hold (0.868 on a white
|
|
342
|
+
fill is ΔL 0.132 — a barely-there hairline). Dividers that genuinely want less
|
|
343
|
+
weight should use `--cinder-border-muted`.
|
|
344
|
+
|
|
345
|
+
`--cinder-border-strong` deliberately does NOT move. It is the token carrying
|
|
346
|
+
control outlines answerable to WCAG 1.4.11 (3:1 non-text), and at 0.72 against
|
|
347
|
+
white it resolves to roughly 2.5:1 — already short of the floor. That gap
|
|
348
|
+
predates this change and lightening the token would widen it. Fixing it properly
|
|
349
|
+
means taking control outlines to about L 0.68 and re-checking every control that
|
|
350
|
+
pairs a border with a fill, which is its own change with its own visual review,
|
|
351
|
+
not a rider on a surface retune. Left at 0.72, flagged, not quietly made worse. */
|
|
352
|
+
--cinder-border: light-dark(oklch(83% 0.005 255), oklch(40% 0.05 245));
|
|
353
|
+
--cinder-border-muted: light-dark(oklch(90% 0.004 255), oklch(30% 0.04 245));
|
|
354
|
+
--cinder-border-strong: light-dark(oklch(72% 0.006 255), oklch(45% 0.06 245));
|
|
255
355
|
|
|
256
356
|
/* Toggle track off-state defaults — encode dark-arm contrast improvement here
|
|
257
357
|
so toggle.css uses only var() references and stays guard-clean.
|
|
@@ -280,7 +380,7 @@
|
|
|
280
380
|
/* Accent used AS TEXT/ICON on light surfaces. The light-mode fill accent (L=0.50) reads as a
|
|
281
381
|
foreground at ~4.7:1, only just clearing AA, so a slightly darker dedicated foreground token
|
|
282
382
|
stays necessary for comfortable link/icon legibility. This deep indigo (L=0.45) clears 4.5:1
|
|
283
|
-
on every surface (verified: surface 7.
|
|
383
|
+
on every surface of the widened ramp (verified: surface 7.23, bg 6.40, inset 5.72). The dark arm matches the
|
|
284
384
|
dark-mode accent fill. --cinder-accent is a FILL (it carries the white --cinder-accent-contrast
|
|
285
385
|
label in light mode); all foreground/icon usages adopt this token. */
|
|
286
386
|
--cinder-accent-text: light-dark(oklch(45% 0.22 270), oklch(72% 0.14 270));
|
|
@@ -326,22 +426,33 @@
|
|
|
326
426
|
Use these in components like Alert and Toast where you need a soft tinted surface
|
|
327
427
|
with semantically-paired text and border colors. The solid `--cinder-info|success|
|
|
328
428
|
warning|danger` tokens above remain for accent fills (e.g. solid badges). */
|
|
329
|
-
/*
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
429
|
+
/* The LIGHT arm of all four `-bg` values moved from L 0.96 to L 0.945 with the
|
|
430
|
+
widened ramp. At 0.96 they sat ΔL 0.002 from the new `--cinder-surface`, so a
|
|
431
|
+
tinted Alert on a card body was separated by hue alone; 0.945 restores a real
|
|
432
|
+
ΔL 0.017 against `surface`. Their chroma was re-fitted at the same time, which
|
|
433
|
+
fixed a pre-existing gamut bug: `warning-bg` and `danger-bg` were BOTH authored
|
|
434
|
+
out of sRGB at 0.96 c 0.04 and had been silently clamping to a desaturated
|
|
435
|
+
grey — the maximum in-gamut chroma at L 0.96 is 0.0325 for hue 75 and 0.0199
|
|
436
|
+
for hue 25. Dropping to L 0.945 raises the chroma ceiling for every hue (info
|
|
437
|
+
0.024 → 0.033, warning 0.033 → 0.045, danger 0.020 → 0.028), so the soft
|
|
438
|
+
surfaces now carry MORE tint than before while staying inside the gamut with
|
|
439
|
+
margin. Dark arms unchanged. Light fg-on-bg: info 7.74:1, success 7.51:1,
|
|
440
|
+
warning 7.94:1, danger 7.76:1.
|
|
441
|
+
Info soft-surface triple — hue 230 with the info solid; chroma fitted to sRGB
|
|
442
|
+
gamut (fg L=0.40 → c 0.079, bg L=0.945 → c 0.03). */
|
|
443
|
+
--cinder-color-info-bg: light-dark(oklch(94.5% 0.03 230), oklch(28% 0.057 230));
|
|
333
444
|
--cinder-color-info-fg: light-dark(oklch(40% 0.079 230), oklch(88% 0.071 230));
|
|
334
445
|
--cinder-color-info-border: light-dark(oklch(80% 0.05 230), oklch(45% 0.08 230));
|
|
335
446
|
|
|
336
|
-
--cinder-color-success-bg: light-dark(oklch(
|
|
447
|
+
--cinder-color-success-bg: light-dark(oklch(94.5% 0.045 145), oklch(28% 0.07 145));
|
|
337
448
|
--cinder-color-success-fg: light-dark(oklch(40% 0.13 145), oklch(88% 0.11 145));
|
|
338
449
|
--cinder-color-success-border: light-dark(oklch(80% 0.05 145), oklch(45% 0.09 145));
|
|
339
450
|
|
|
340
|
-
--cinder-color-warning-bg: light-dark(oklch(
|
|
451
|
+
--cinder-color-warning-bg: light-dark(oklch(94.5% 0.042 75), oklch(28% 0.08 75));
|
|
341
452
|
--cinder-color-warning-fg: light-dark(oklch(40% 0.13 75), oklch(90% 0.12 75));
|
|
342
453
|
--cinder-color-warning-border: light-dark(oklch(80% 0.06 75), oklch(50% 0.1 75));
|
|
343
454
|
|
|
344
|
-
--cinder-color-danger-bg: light-dark(oklch(
|
|
455
|
+
--cinder-color-danger-bg: light-dark(oklch(94.5% 0.026 25), oklch(28% 0.09 25));
|
|
345
456
|
--cinder-color-danger-fg: light-dark(oklch(42% 0.16 25), oklch(90% 0.12 25));
|
|
346
457
|
--cinder-color-danger-border: light-dark(oklch(80% 0.06 25), oklch(50% 0.11 25));
|
|
347
458
|
|
|
@@ -369,14 +480,41 @@
|
|
|
369
480
|
* one place raw colors are allowed). */
|
|
370
481
|
--cinder-ring-on-accent: light-dark(oklch(20% 0.02 245), oklch(95% 0.01 245));
|
|
371
482
|
|
|
372
|
-
/* Focus ring
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
483
|
+
/* Focus ring.
|
|
484
|
+
*
|
|
485
|
+
* WIDTH + OFFSET. Was 3px wide at a 1px offset; now 2px wide at a 2px offset. The
|
|
486
|
+
* total footprint is unchanged at 4px, so nothing reflows or clips differently,
|
|
487
|
+
* but half of it is now separation rather than stroke: the ring reads as a ring
|
|
488
|
+
* AROUND a control instead of a heavy outline ON it, and where a control also
|
|
489
|
+
* carries a permanent 1px border the two stop merging into one 4px shape. 2px is
|
|
490
|
+
* a floor, not a preference — WCAG 2.4.13 (Focus Appearance) wants an indicator
|
|
491
|
+
* at least as large as a 2px-thick perimeter of the control, so 1px would fail
|
|
492
|
+
* it. Thinning does not affect WCAG 1.4.11 non-text contrast; the ring color
|
|
493
|
+
* below still clears 3:1 against every tier of the widened ramp (light: 3.56:1
|
|
494
|
+
* on the new darkest inset through 5.03:1 on raised).
|
|
495
|
+
*
|
|
496
|
+
* OFFSET COLOR moved from `--cinder-bg` to `--cinder-surface-raised`. The ring is
|
|
497
|
+
* a two-stop box-shadow and box-shadow cannot paint a transparent gap — the
|
|
498
|
+
* offset band is a real painted layer, so it has to be SOME color and can only be
|
|
499
|
+
* correct for one surface. Pinning it to the page background was fine when the
|
|
500
|
+
* light ramp spanned 6 points and the band was 1px: it was invisible everywhere.
|
|
501
|
+
* At a 2px offset on the widened ramp it would paint a dark moat around every
|
|
502
|
+
* focused control on a card (bg 0.921 against a raised surface at 1.000). Pinning
|
|
503
|
+
* it to the TOP of the ramp inverts that into the benign direction: on raised
|
|
504
|
+
* surfaces — where controls overwhelmingly live — the band disappears into the
|
|
505
|
+
* surface and reads as a true gap, and on the recessed tiers it reads as a light
|
|
506
|
+
* halo, which is a deliberate focus treatment rather than a smudge. The chart
|
|
507
|
+
* components already treat this token as a halo stroke (bar-chart.css,
|
|
508
|
+
* area-chart.css, line-chart.css), so the name now matches the behaviour
|
|
509
|
+
* everywhere. A component on a known different tier can still override it. */
|
|
510
|
+
--cinder-ring-width: 2px;
|
|
511
|
+
--cinder-ring-offset: 2px;
|
|
512
|
+
--cinder-ring-offset-color: var(--cinder-surface-raised);
|
|
376
513
|
/* Relative to --cinder-accent so a consumer override re-derives the ring hue.
|
|
377
514
|
The light arm clamps L to 0.55 (indigo has a lower luminance-per-lightness than the
|
|
378
515
|
old cyan, so the prior 0.58 clamp dropped to a marginal 3.0:1 against near-white;
|
|
379
|
-
0.55 gives
|
|
516
|
+
0.55 gives 3.56:1 against the widened ramp's darkest surface, clearing WCAG 1.4.11
|
|
517
|
+
with margin); `h` tracks the accent hue. */
|
|
380
518
|
--cinder-ring-color: light-dark(
|
|
381
519
|
oklch(from var(--cinder-accent) 0.55 0.16 h),
|
|
382
520
|
oklch(from var(--cinder-accent) 0.7 0.14 h)
|
|
@@ -500,17 +638,17 @@
|
|
|
500
638
|
--cinder-surface-inverse: var(--cinder-surface-raised);
|
|
501
639
|
--cinder-text-inverse: var(--cinder-text);
|
|
502
640
|
--cinder-border-inverse: var(--cinder-border-strong);
|
|
503
|
-
--cinder-surface-hover: color-mix(in oklch, var(--cinder-surface), oklch(100% 0 0)
|
|
504
|
-
--cinder-surface-pressed: color-mix(in oklch, var(--cinder-surface), oklch(100% 0 0)
|
|
641
|
+
--cinder-surface-hover: color-mix(in oklch, var(--cinder-surface), oklch(100% 0 0) 2.5%);
|
|
642
|
+
--cinder-surface-pressed: color-mix(in oklch, var(--cinder-surface), oklch(100% 0 0) 6%);
|
|
505
643
|
--cinder-surface-raised-hover: color-mix(
|
|
506
644
|
in oklch,
|
|
507
645
|
var(--cinder-surface-raised),
|
|
508
|
-
oklch(100% 0 0)
|
|
646
|
+
oklch(100% 0 0) 2.5%
|
|
509
647
|
);
|
|
510
648
|
--cinder-surface-raised-pressed: color-mix(
|
|
511
649
|
in oklch,
|
|
512
650
|
var(--cinder-surface-raised),
|
|
513
|
-
oklch(100% 0 0)
|
|
651
|
+
oklch(100% 0 0) 6%
|
|
514
652
|
);
|
|
515
653
|
--cinder-text: oklch(92% 0.02 245);
|
|
516
654
|
--cinder-text-muted: oklch(82% 0.02 245);
|
|
@@ -556,7 +694,7 @@
|
|
|
556
694
|
--cinder-scrollbar-track: oklch(100% 0 0 / 0.04);
|
|
557
695
|
--cinder-scrollbar-thumb: oklch(100% 0 0 / 0.45);
|
|
558
696
|
--cinder-scrollbar-thumb-hover: oklch(100% 0 0 / 0.65);
|
|
559
|
-
--cinder-ring-offset-color: var(--cinder-
|
|
697
|
+
--cinder-ring-offset-color: var(--cinder-surface-raised);
|
|
560
698
|
--cinder-ring-on-accent: oklch(95% 0.01 245);
|
|
561
699
|
--cinder-ring-color: oklch(from var(--cinder-accent) 0.7 0.14 h);
|
|
562
700
|
--cinder-button-bg: var(--cinder-surface-raised);
|
|
@@ -580,34 +718,34 @@
|
|
|
580
718
|
--cinder-shadow-lg: 0 10px 15px -3px oklch(0% 0 0 / 0.14), 0 4px 6px -4px oklch(0% 0 0 / 0.12);
|
|
581
719
|
--cinder-shadow-overlay:
|
|
582
720
|
0 10px 15px -3px oklch(0% 0 0 / 0.14), 0 4px 6px -4px oklch(0% 0 0 / 0.12);
|
|
583
|
-
--cinder-bg: oklch(
|
|
584
|
-
--cinder-surface: oklch(
|
|
585
|
-
--cinder-surface-raised: oklch(100% 0
|
|
586
|
-
--cinder-surface-inset: oklch(
|
|
721
|
+
--cinder-bg: oklch(98.4% 0.003 255);
|
|
722
|
+
--cinder-surface: oklch(99.4% 0.002 255);
|
|
723
|
+
--cinder-surface-raised: oklch(100% 0 255);
|
|
724
|
+
--cinder-surface-inset: oklch(96% 0.005 255);
|
|
587
725
|
--cinder-surface-upcoming-marker: var(--cinder-surface-inset);
|
|
588
726
|
--cinder-surface-inverse: var(--cinder-text);
|
|
589
727
|
--cinder-text-inverse: var(--cinder-surface);
|
|
590
728
|
--cinder-border-inverse: transparent;
|
|
591
|
-
--cinder-surface-hover: color-mix(in oklch, var(--cinder-surface),
|
|
592
|
-
--cinder-surface-pressed: color-mix(in oklch, var(--cinder-surface),
|
|
729
|
+
--cinder-surface-hover: color-mix(in oklch, var(--cinder-surface), var(--cinder-accent) 6%);
|
|
730
|
+
--cinder-surface-pressed: color-mix(in oklch, var(--cinder-surface), var(--cinder-accent) 12%);
|
|
593
731
|
--cinder-surface-raised-hover: color-mix(
|
|
594
732
|
in oklch,
|
|
595
733
|
var(--cinder-surface-raised),
|
|
596
|
-
|
|
734
|
+
var(--cinder-accent) 6%
|
|
597
735
|
);
|
|
598
736
|
--cinder-surface-raised-pressed: color-mix(
|
|
599
737
|
in oklch,
|
|
600
738
|
var(--cinder-surface-raised),
|
|
601
|
-
|
|
739
|
+
var(--cinder-accent) 12%
|
|
602
740
|
);
|
|
603
741
|
--cinder-text: oklch(20% 0.018 245);
|
|
604
742
|
--cinder-text-muted: oklch(32% 0.014 245);
|
|
605
743
|
--cinder-text-subtle: oklch(42% 0.012 245);
|
|
606
744
|
--cinder-text-disabled: oklch(52% 0.01 245);
|
|
607
|
-
--cinder-fill-disabled: oklch(
|
|
608
|
-
--cinder-border: oklch(
|
|
609
|
-
--cinder-border-muted: oklch(
|
|
610
|
-
--cinder-border-strong: oklch(72% 0.
|
|
745
|
+
--cinder-fill-disabled: oklch(86% 0.006 255);
|
|
746
|
+
--cinder-border: oklch(83% 0.005 255);
|
|
747
|
+
--cinder-border-muted: oklch(90% 0.004 255);
|
|
748
|
+
--cinder-border-strong: oklch(72% 0.006 255);
|
|
611
749
|
--cinder-toggle-track-off-resting: var(--cinder-border-muted);
|
|
612
750
|
--cinder-toggle-track-off-hover-resting: var(--cinder-border);
|
|
613
751
|
--cinder-accent: oklch(50% 0.22 270);
|
|
@@ -627,16 +765,16 @@
|
|
|
627
765
|
--cinder-info-contrast: oklch(100% 0 0);
|
|
628
766
|
--cinder-danger-hover: oklch(42% 0.171 25);
|
|
629
767
|
--cinder-danger-active: oklch(35% 0.142 25);
|
|
630
|
-
--cinder-color-info-bg: oklch(
|
|
768
|
+
--cinder-color-info-bg: oklch(94.5% 0.03 230);
|
|
631
769
|
--cinder-color-info-fg: oklch(40% 0.079 230);
|
|
632
770
|
--cinder-color-info-border: oklch(80% 0.05 230);
|
|
633
|
-
--cinder-color-success-bg: oklch(
|
|
771
|
+
--cinder-color-success-bg: oklch(94.5% 0.045 145);
|
|
634
772
|
--cinder-color-success-fg: oklch(40% 0.13 145);
|
|
635
773
|
--cinder-color-success-border: oklch(80% 0.05 145);
|
|
636
|
-
--cinder-color-warning-bg: oklch(
|
|
774
|
+
--cinder-color-warning-bg: oklch(94.5% 0.042 75);
|
|
637
775
|
--cinder-color-warning-fg: oklch(40% 0.13 75);
|
|
638
776
|
--cinder-color-warning-border: oklch(80% 0.06 75);
|
|
639
|
-
--cinder-color-danger-bg: oklch(
|
|
777
|
+
--cinder-color-danger-bg: oklch(94.5% 0.026 25);
|
|
640
778
|
--cinder-color-danger-fg: oklch(42% 0.16 25);
|
|
641
779
|
--cinder-color-danger-border: oklch(80% 0.06 25);
|
|
642
780
|
--cinder-color-checker-base: #fff;
|
|
@@ -644,7 +782,7 @@
|
|
|
644
782
|
--cinder-scrollbar-track: oklch(0% 0 0 / 0.04);
|
|
645
783
|
--cinder-scrollbar-thumb: oklch(0% 0 0 / 0.45);
|
|
646
784
|
--cinder-scrollbar-thumb-hover: oklch(0% 0 0 / 0.65);
|
|
647
|
-
--cinder-ring-offset-color: var(--cinder-
|
|
785
|
+
--cinder-ring-offset-color: var(--cinder-surface-raised);
|
|
648
786
|
--cinder-ring-on-accent: oklch(20% 0.02 245);
|
|
649
787
|
--cinder-ring-color: oklch(from var(--cinder-accent) 0.55 0.16 h);
|
|
650
788
|
--cinder-button-bg: var(--cinder-surface-raised);
|
package/src/styles/utilities.css
CHANGED
|
@@ -38,7 +38,16 @@
|
|
|
38
38
|
background: var(--cinder-surface, #fff);
|
|
39
39
|
color: var(--cinder-text, #000);
|
|
40
40
|
border: 1px solid var(--cinder-border, currentColor);
|
|
41
|
-
|
|
41
|
+
/* Fallback retained deliberately: every custom property in this rule that
|
|
42
|
+
affects the PAINTED BOX carries one (--cinder-space-2, --cinder-space-3,
|
|
43
|
+
--cinder-surface, --cinder-text, --cinder-border), because a skip link has to
|
|
44
|
+
stay usable if the base token sheet has not loaded. Without it the radius
|
|
45
|
+
would compute to 0 in exactly that scenario. Value tracks --cinder-radius-md.
|
|
46
|
+
--cinder-z-focused-affordance is the deliberate exception: an unresolved
|
|
47
|
+
z-index falls back to `auto`, and a position:fixed skip link still paints
|
|
48
|
+
above static page content at `auto`, so the degradation is survivable in a
|
|
49
|
+
way a 0 radius or a transparent background is not. */
|
|
50
|
+
border-radius: var(--cinder-radius-md, 0.375rem);
|
|
42
51
|
z-index: var(--cinder-z-focused-affordance);
|
|
43
52
|
}
|
|
44
53
|
|