From 24281ebc3df96c842a4dce32a1c9a1fe57c5606e Mon Sep 17 00:00:00 2001 From: sohhamm Date: Wed, 4 Nov 2026 10:55:59 +0530 Subject: [PATCH 1/3] feat(styles)!: take typography from groudon and size components in design pixels - charizard.css bundles @hybr1d-tech/groudon (tokens + zap-* classes) in place of the library's own _typography.css copy. - Component CSS rem values were written for the console's 13px root, so in 16px apps (zenex, ops, vendor portal) drawers, inputs, switches, selects and date pickers rendered ~23% too large. They are now calc(N * var(--zap-px)) in design pixels and render the same in every app; the console is unchanged (within 1px of rounding). - The library renders groudon's Instrument Sans again (--font-sans: var(--zap-font-sans)); Geist moves to the docs site only, so apps stop downloading the Geist font files. - .zap-button-small keeps the !important it had in the old copy (table filter chips). BREAKING CHANGE: --font-mono is no longer defined by the library, and 16px-root apps see charizard components shrink to their designed sizes. Co-Authored-By: Claude Opus 5.5 --- .../date-picker/date-picker.module.css | 22 +-- .../date-picker/date-range-picker.module.css | 28 +-- src/components/drawer/Drawer.tsx | 2 +- src/components/drawer/styles.module.css | 22 +-- src/components/empty-state/styles.module.css | 2 +- src/components/input/styles.module.css | 24 +-- .../layout-tabs/layout-tabs.module.css | 4 +- src/components/popover/styles.module.css | 2 +- src/components/progress/styles.module.css | 2 +- src/components/select/styles.module.css | 8 +- src/components/styles/_typography.css | 179 ------------------ src/components/styles/charizard.css | 5 +- src/components/styles/global.css | 18 +- src/components/switch/styles.module.css | 46 ++--- .../table-pagination.module.css | 2 +- src/components/toasts/styles/toast.css | 2 +- src/components/upload/styles.module.css | 2 +- src/site/main.tsx | 2 + src/site/site.css | 4 + 19 files changed, 106 insertions(+), 270 deletions(-) delete mode 100644 src/components/styles/_typography.css diff --git a/src/components/date-picker/date-picker.module.css b/src/components/date-picker/date-picker.module.css index 4cdf7b09..5cdd252c 100644 --- a/src/components/date-picker/date-picker.module.css +++ b/src/components/date-picker/date-picker.module.css @@ -1,6 +1,6 @@ .datePicker { display: grid; - gap: 0.5rem; + gap: calc(6 * var(--zap-px)); } .formButton { font-weight: 400 !important; @@ -80,13 +80,13 @@ } /* .nav { display: flex; - gap: 1rem; + gap: calc(13 * var(--zap-px)); align-items: center; } */ .navButtonNext, .navButtonPrevious { - height: 1.75rem; - width: 1.75rem; + height: calc(23 * var(--zap-px)); + width: calc(23 * var(--zap-px)); background-color: transparent; padding: 0; opacity: 0.5; @@ -109,10 +109,10 @@ background-color: var(--neutral-arch-20); } */ .navButtonPrevious { - left: 1rem; + left: calc(13 * var(--zap-px)); } .navButtonNext { - right: 1rem; + right: calc(13 * var(--zap-px)); } .table { width: 100%; @@ -123,10 +123,10 @@ display: flex; } .headCell { - font-size: 1rem; + font-size: calc(13 * var(--zap-px)); color: var(--text-hint); border-radius: 8px; - width: 2.25rem; + width: calc(29 * var(--zap-px)); font-weight: 400; width: 36px; display: flex; @@ -136,12 +136,12 @@ .row { display: flex; width: 100%; - margin-top: 0.5rem; + margin-top: calc(6 * var(--zap-px)); border-bottom: none !important; } .cell { text-align: center; - font-size: 0.8rem; + font-size: calc(10 * var(--zap-px)); padding: 0; position: relative; width: 36px; @@ -163,7 +163,7 @@ display: inline-flex; align-items: center; justify-content: center; - border-radius: 0.5rem; + border-radius: calc(6 * var(--zap-px)); border: none; outline: none; background-color: transparent; diff --git a/src/components/date-picker/date-range-picker.module.css b/src/components/date-picker/date-range-picker.module.css index 82c41201..449066b0 100644 --- a/src/components/date-picker/date-range-picker.module.css +++ b/src/components/date-picker/date-range-picker.module.css @@ -1,6 +1,6 @@ .dateRangePicker { display: grid; - gap: 0.5rem; + gap: calc(6 * var(--zap-px)); } .dateIcon > path, .dateIcon > g > path { @@ -39,7 +39,7 @@ } .months { display: flex; - gap: 1rem; + gap: calc(13 * var(--zap-px)); } .month { display: flex; @@ -50,7 +50,7 @@ display: flex; justify-content: center; align-items: center; - padding-top: 1rem; + padding-top: calc(13 * var(--zap-px)); position: relative; } .captionLabel { @@ -64,8 +64,8 @@ } .navButtonPrevious, .navButtonNext { - height: 1.75rem; - width: 1.75rem; + height: calc(23 * var(--zap-px)); + width: calc(23 * var(--zap-px)); background-color: transparent; padding: 0; opacity: 0.5; @@ -86,10 +86,10 @@ } .navButtonPrevious { - left: 1rem; + left: calc(13 * var(--zap-px)); } .navButtonNext { - right: 1rem; + right: calc(13 * var(--zap-px)); } .table { width: 100%; @@ -100,7 +100,7 @@ display: flex; } .headCell { - font-size: 1rem; + font-size: calc(13 * var(--zap-px)); color: var(--text-hint); border-radius: 8px; font-weight: 400; @@ -112,12 +112,12 @@ .row { display: flex; width: 100%; - margin-top: 0.5rem; + margin-top: calc(6 * var(--zap-px)); border-bottom: none !important; } .cell { text-align: center; - font-size: 0.8rem; + font-size: calc(10 * var(--zap-px)); padding: 0; position: relative; width: 36px; @@ -138,7 +138,7 @@ display: inline-flex; align-items: center; justify-content: center; - border-radius: 0.5rem; + border-radius: calc(6 * var(--zap-px)); border: none; outline: none; background-color: transparent; @@ -158,7 +158,7 @@ } .daySelected { background-color: var(--theme-blue-dark); - border-radius: 0.5rem; + border-radius: calc(6 * var(--zap-px)); } .daySelected:not(.dayRangeMiddle) .day { @@ -170,7 +170,7 @@ color: var(--neutral-white); } .dayToday { - border-radius: 0.5rem; + border-radius: calc(6 * var(--zap-px)); background-color: var(--neutral-arch-40); color: var(--text-primary); } @@ -204,7 +204,7 @@ border-bottom-left-radius: 0; } .dayRangeStart.dayRangeEnd { - border-radius: 0.5rem; + border-radius: calc(6 * var(--zap-px)); } .dayRangeMiddle { background-color: var(--neutral-arch-20); diff --git a/src/components/drawer/Drawer.tsx b/src/components/drawer/Drawer.tsx index 12e8ae2a..62c0dd8b 100644 --- a/src/components/drawer/Drawer.tsx +++ b/src/components/drawer/Drawer.tsx @@ -110,7 +110,7 @@ export function Drawer({ const timeout = setTimeout(() => { if (containerRef.current && descriptionRef.current && footerRef.current) { const translateXValue = isOpen ? 'translateX(0)' : `translateX(${translateXOffset})` - const descriptionHeight = `calc(100dvh - (1.75rem * 2) - ${footerRef.current.clientHeight}px)` + const descriptionHeight = `calc(100dvh - 46 * var(--zap-px) - ${footerRef.current.clientHeight}px)` containerRef.current.style.transform = translateXValue descriptionRef.current.style.maxHeight = descriptionHeight diff --git a/src/components/drawer/styles.module.css b/src/components/drawer/styles.module.css index 7a646dc9..8076e24c 100644 --- a/src/components/drawer/styles.module.css +++ b/src/components/drawer/styles.module.css @@ -46,23 +46,23 @@ } .container.sm { - width: 30.8rem; + width: calc(400 * var(--zap-px)); } .container.md { - width: 46.2rem; + width: calc(600 * var(--zap-px)); } .container.lg { - width: 63.08rem; + width: calc(820 * var(--zap-px)); } .container.xlg { - width: 77rem; + width: calc(1000 * var(--zap-px)); } .container.xxlg { - width: 92.3rem; + width: calc(1200 * var(--zap-px)); } .content { @@ -86,8 +86,8 @@ .title { font-style: normal; font-weight: 500; - font-size: 1.54rem; - line-height: 2.15rem; + font-size: calc(20 * var(--zap-px)); + line-height: calc(28 * var(--zap-px)); color: var(--text-primary); } @@ -112,8 +112,8 @@ .descriptionContainer { padding: 20px; - max-height: calc(100dvh - (1.75rem * 2)); - height: calc(100dvh - (1.75rem * 2)); + max-height: calc(100dvh - 46 * var(--zap-px)); + height: calc(100dvh - 46 * var(--zap-px)); overflow: scroll; } .descriptionContainer.fullHeight { @@ -154,8 +154,8 @@ .saveBtn, .cancelBtn { font-weight: 400; - font-size: 1.23rem; - line-height: 1.9rem; + font-size: calc(16 * var(--zap-px)); + line-height: calc(24 * var(--zap-px)); padding: 8px 16px; border-radius: 6px; } diff --git a/src/components/empty-state/styles.module.css b/src/components/empty-state/styles.module.css index 259cdfc8..e4528b13 100644 --- a/src/components/empty-state/styles.module.css +++ b/src/components/empty-state/styles.module.css @@ -10,7 +10,7 @@ .containerRow { flex-direction: row; - gap: 1.62rem; + gap: calc(21 * var(--zap-px)); } .title { diff --git a/src/components/input/styles.module.css b/src/components/input/styles.module.css index a827b780..93beb2a9 100644 --- a/src/components/input/styles.module.css +++ b/src/components/input/styles.module.css @@ -7,11 +7,11 @@ } .inputContainer.sm { - width: 20.8rem; + width: calc(270 * var(--zap-px)); } .inputContainer.md { - width: 27.7rem; + width: calc(360 * var(--zap-px)); } .inputLabelContainer { @@ -58,8 +58,8 @@ .input, .textarea { font-weight: 400; - font-size: 1.23rem; - line-height: 1.85rem; + font-size: calc(16 * var(--zap-px)); + line-height: calc(24 * var(--zap-px)); color: var(--text-primary); width: 100%; @@ -73,7 +73,7 @@ } .input { - height: 2.8rem; + height: calc(36 * var(--zap-px)); } .input::placeholder, @@ -105,8 +105,8 @@ input[type='date']::-webkit-inner-spin-button, .errorMsg { font-weight: 400; - font-size: 1rem; - line-height: 1.54rem; + font-size: calc(13 * var(--zap-px)); + line-height: calc(20 * var(--zap-px)); color: var(--status-danger); margin: 0; text-align: left; @@ -115,8 +115,8 @@ input[type='date']::-webkit-inner-spin-button, .inputElement { position: absolute; top: 0; - width: 2.8rem; - height: 2.8rem; + width: calc(36 * var(--zap-px)); + height: calc(36 * var(--zap-px)); display: flex; align-items: center; justify-content: center; @@ -133,7 +133,7 @@ input[type='date']::-webkit-inner-spin-button, .inputAddon { width: auto; - height: 2.8rem; + height: calc(36 * var(--zap-px)); display: flex; align-items: center; justify-content: center; @@ -169,9 +169,9 @@ input[type='date']::-webkit-inner-spin-button, border-radius: 8px; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15); padding: 0 0 12px 0; - max-height: 15rem; + max-height: calc(195 * var(--zap-px)); overflow-y: auto; - min-width: 15rem; + min-width: calc(195 * var(--zap-px)); z-index: 10; } diff --git a/src/components/layout-tabs/layout-tabs.module.css b/src/components/layout-tabs/layout-tabs.module.css index 3eeccdae..a455f870 100644 --- a/src/components/layout-tabs/layout-tabs.module.css +++ b/src/components/layout-tabs/layout-tabs.module.css @@ -35,8 +35,8 @@ -webkit-appearance: none; font-weight: 400; - font-size: 1.08rem; - line-height: 1.54rem; + font-size: calc(14 * var(--zap-px)); + line-height: calc(20 * var(--zap-px)); color: var(--text-secondary); height: 100%; border-bottom: 2px solid transparent; diff --git a/src/components/popover/styles.module.css b/src/components/popover/styles.module.css index 7dedf544..ea02a92b 100644 --- a/src/components/popover/styles.module.css +++ b/src/components/popover/styles.module.css @@ -22,7 +22,7 @@ position: absolute; top: 0; right: 0; - padding: 0.5rem; + padding: calc(6 * var(--zap-px)); } .arrow { diff --git a/src/components/progress/styles.module.css b/src/components/progress/styles.module.css index 77be9e90..07bd96d3 100644 --- a/src/components/progress/styles.module.css +++ b/src/components/progress/styles.module.css @@ -44,7 +44,7 @@ } .line { - width: 2.8rem; + width: calc(36 * var(--zap-px)); height: 1px; background: var(--neutral-arch-500); } diff --git a/src/components/select/styles.module.css b/src/components/select/styles.module.css index 9365591c..69464087 100644 --- a/src/components/select/styles.module.css +++ b/src/components/select/styles.module.css @@ -5,8 +5,8 @@ .selectContainer .errorMsg { font-weight: 400; - font-size: 1rem; - line-height: 1.54rem; + font-size: calc(13 * var(--zap-px)); + line-height: calc(20 * var(--zap-px)); color: #de350b; margin: 0; text-align: left; @@ -42,8 +42,8 @@ .optionContainer .subLabel { font-weight: 400; - font-size: 0.92rem; - line-height: 1.54rem; + font-size: calc(12 * var(--zap-px)); + line-height: calc(20 * var(--zap-px)); color: var(--text-secondary); } diff --git a/src/components/styles/_typography.css b/src/components/styles/_typography.css deleted file mode 100644 index 842a23f7..00000000 --- a/src/components/styles/_typography.css +++ /dev/null @@ -1,179 +0,0 @@ -:root { - font-feature-settings: - 'clig' off, - 'liga' off; - font-family: var(--font-sans); - --letter-spacing: 0.2px; - - --line-height-142: 20px; - --line-height-145: 16px; - --line-height-150: 18px; - --line-height-166: 20px; - --line-height-171: 24px; - - --link-color: var(--link-l-50, #0f72ee); -} - -/* Hero Styles */ -.zap-hero-medium, -.zap-hero-semibold, -.zap-hero-bold { - font-size: 20px; - font-style: normal; - line-height: 28px; - letter-spacing: var(--letter-spacing); -} -.zap-hero-medium { - font-weight: 500; -} -.zap-hero-semibold { - font-weight: 600; -} -.zap-hero-bold { - font-weight: 700; -} - -/* Lead Styles */ -.zap-lead-medium, -.zap-lead-semibold, -.zap-lead-bold { - font-size: 18px; - font-style: normal; - line-height: 24px; - letter-spacing: var(--letter-spacing); -} -.zap-lead-medium { - font-weight: 500; -} -.zap-lead-semibold { - font-weight: 600; -} -.zap-lead-bold { - font-weight: 700; -} - -/* Heading Styles */ -.zap-heading-medium, -.zap-heading-semibold, -.zap-heading-bold { - font-size: 16px; - font-style: normal; - line-height: 20px; - letter-spacing: var(--letter-spacing); -} -.zap-heading-medium { - font-weight: 500; -} -.zap-heading-semibold { - font-weight: 600; -} -.zap-heading-bold { - font-weight: 700; -} - -/* Content Styles */ -.zap-content-regular, -.zap-content-medium, -.zap-content-semibold { - font-size: 14px; - font-style: normal; - line-height: var(--line-height-142); - letter-spacing: var(--letter-spacing); -} -.zap-content-regular { - font-weight: 400; -} -.zap-content-medium { - font-weight: 500; -} -.zap-content-semibold { - font-weight: 600; -} - -/* Sub Content Styles */ -.zap-subcontent-regular, -.zap-subcontent-medium, -.zap-subcontent-semibold { - font-size: 12px; - font-style: normal; - line-height: var(--line-height-150); - letter-spacing: var(--letter-spacing); -} -.zap-subcontent-regular { - font-weight: 400; -} -.zap-subcontent-medium { - font-weight: 500; -} -.zap-subcontent-semibold { - font-weight: 600; -} - -/* Caption Styles */ -.zap-caption-regular, -.zap-caption-medium, -.zap-caption-semibold { - font-size: 11px; - font-style: normal; - line-height: var(--line-height-145); -} -.zap-caption-regular { - font-weight: 400; -} -.zap-caption-medium { - font-weight: 500; -} -.zap-caption-semibold { - font-weight: 600; -} - -/* Button Styles */ -.zap-button { - font-size: 14px; - font-style: normal; - font-weight: 600; - line-height: var(--line-height-171); - letter-spacing: var(--letter-spacing); -} -.zap-button-small { - font-size: 12px !important; - font-style: normal !important; - font-weight: 600 !important; - line-height: var(--line-height-166) !important; - letter-spacing: var(--letter-spacing) !important; -} - -/* Link Styles */ -.zap-link, -.zap-link-small { - color: var(--link-color); - font-style: normal; - font-weight: 600; - text-decoration-line: underline; - letter-spacing: var(--letter-spacing); -} -.zap-link { - font-size: 14px; - line-height: var(--line-height-142); -} -.zap-link-small { - font-size: 12px; - line-height: var(--line-height-150); -} - -/* Internal Link Styles */ -.zap-internallink, -.zap-internallink-small { - color: var(--link-color); - font-style: normal; - font-weight: 500; - letter-spacing: var(--letter-spacing); -} -.zap-internallink { - font-size: 14px; - line-height: var(--line-height-142); -} -.zap-internallink-small { - font-size: 12px; - line-height: var(--line-height-150); -} diff --git a/src/components/styles/charizard.css b/src/components/styles/charizard.css index f103a3a8..ace2fe90 100644 --- a/src/components/styles/charizard.css +++ b/src/components/styles/charizard.css @@ -1,9 +1,8 @@ /* Global library styles, aggregated so the build injects them as ONE css import on the entry chunk with a deterministic cascade order. (Separate JS imports get injected in unspecified order by libInjectCss.) */ -@import '@fontsource-variable/geist'; -@import '@fontsource-variable/geist-mono'; -@import './_typography.css'; +/* the type scale (tokens + zap-* classes) comes from groudon, the shared typography package */ +@import '@hybr1d-tech/groudon'; @import './_variables.css'; @import './global.css'; @import '../toasts/styles/main.css'; diff --git a/src/components/styles/global.css b/src/components/styles/global.css index ce98e9f9..964ed805 100644 --- a/src/components/styles/global.css +++ b/src/components/styles/global.css @@ -1,6 +1,6 @@ :root { - --font-sans: 'Geist Variable', sans-serif; - --font-mono: 'Geist Mono Variable', monospace; + /* the product font is groudon's; the docs site swaps in Geist in src/site/site.css */ + --font-sans: var(--zap-font-sans); font-family: var(--font-sans); font-synthesis: none; text-rendering: optimizeLegibility; @@ -100,10 +100,20 @@ h6 { appearance: none; } +/* Table filter chips rely on this beating their module styles; it was !important in the + library's old typography copy, which every app loaded, so keep that behaviour here. */ +.zap-button-small { + font-size: var(--zap-text-button-small-size) !important; + font-style: normal !important; + font-weight: var(--zap-weight-semibold) !important; + line-height: var(--zap-text-button-small-line-height) !important; + letter-spacing: var(--zap-letter-spacing) !important; +} + .zap-error-msg { font-weight: 400; - font-size: 1rem; - line-height: 1.54rem; + font-size: calc(13 * var(--zap-px)); + line-height: calc(20 * var(--zap-px)); color: var(--status-danger); margin: 0; text-align: left; diff --git a/src/components/switch/styles.module.css b/src/components/switch/styles.module.css index 44369dcc..ea8a59da 100644 --- a/src/components/switch/styles.module.css +++ b/src/components/switch/styles.module.css @@ -5,15 +5,15 @@ } .switchLabel { - font-size: 1.08rem; - line-height: 1.54rem; + font-size: calc(14 * var(--zap-px)); + line-height: calc(20 * var(--zap-px)); color: var(--text-primary); } .subText { - font-size: 0.923rem; - line-height: 1.385rem; - margin-top: 0.75rem; + font-size: calc(12 * var(--zap-px)); + line-height: calc(18 * var(--zap-px)); + margin-top: calc(10 * var(--zap-px)); color: var(--text-secondary); } @@ -23,37 +23,37 @@ display: inline-block; } .switch.sm { - width: 2rem; - height: 1.231rem; + width: calc(26 * var(--zap-px)); + height: calc(16 * var(--zap-px)); } .switch.sm input:checked + .slider::before { - transform: translateX(0.769rem); + transform: translateX(calc(10 * var(--zap-px))); } .switch.sm .slider::before { - width: 0.923rem; - height: 0.923rem; + width: calc(12 * var(--zap-px)); + height: calc(12 * var(--zap-px)); } .switch.md { - width: 2.615rem; - height: 1.538rem; + width: calc(34 * var(--zap-px)); + height: calc(20 * var(--zap-px)); } .switch.md input:checked + .slider::before { - transform: translateX(1.077rem); + transform: translateX(calc(14 * var(--zap-px))); } .switch.md .slider::before { - height: 1.231rem; - width: 1.231rem; + height: calc(16 * var(--zap-px)); + width: calc(16 * var(--zap-px)); } .switch.lg { - width: 3.846rem; - height: 2.154rem; + width: calc(50 * var(--zap-px)); + height: calc(28 * var(--zap-px)); } .switch.lg input:checked + .slider::before { - transform: translateX(1.692rem); + transform: translateX(calc(22 * var(--zap-px))); } .switch.lg .slider::before { - width: 1.846rem; - height: 1.846rem; + width: calc(24 * var(--zap-px)); + height: calc(24 * var(--zap-px)); } .switch input { opacity: 0; @@ -88,9 +88,9 @@ .switch .slider::before { position: absolute; content: ''; - left: 0.154rem; - bottom: 0.154rem; - top: 0.154rem; + left: calc(2 * var(--zap-px)); + bottom: calc(2 * var(--zap-px)); + top: calc(2 * var(--zap-px)); background-color: white; border-radius: 50%; transition: 0.25s; diff --git a/src/components/table/table-pagination/table-pagination.module.css b/src/components/table/table-pagination/table-pagination.module.css index 29e7a1b3..8d22cf54 100644 --- a/src/components/table/table-pagination/table-pagination.module.css +++ b/src/components/table/table-pagination/table-pagination.module.css @@ -34,7 +34,7 @@ } .meta { - font-size: 0.85rem; + font-size: calc(11 * var(--zap-px)); } } diff --git a/src/components/toasts/styles/toast.css b/src/components/toasts/styles/toast.css index c8dc1164..cf6a73b2 100644 --- a/src/components/toasts/styles/toast.css +++ b/src/components/toasts/styles/toast.css @@ -4,7 +4,7 @@ touch-action: none; /* min-height: var(--toastify-toast-min-height); */ box-sizing: border-box; - margin-bottom: 1rem !important; + margin-bottom: calc(13 * var(--zap-px)) !important; padding: 8px; border-radius: 8px; box-shadow: 0px 4px 16px 0px rgba(18, 18, 18, 0.04), 0px 2px 8px 0px rgba(18, 18, 18, 0.08); diff --git a/src/components/upload/styles.module.css b/src/components/upload/styles.module.css index bf202c4f..56819e9b 100644 --- a/src/components/upload/styles.module.css +++ b/src/components/upload/styles.module.css @@ -4,7 +4,7 @@ border-radius: 4px; border: 1px dashed var(--p-p10); background: var(--fill-highlight, #fbfbfe); - padding: 16px 0.8rem; + padding: 16px calc(10 * var(--zap-px)); color: var(--text-secondary); } .uploadBtn:hover { diff --git a/src/site/main.tsx b/src/site/main.tsx index c1a7b467..50a64736 100644 --- a/src/site/main.tsx +++ b/src/site/main.tsx @@ -1,5 +1,7 @@ // Explicit global-styles import — mirrors the `styles.css` subpath consumers // use; the barrel's side-effect import can be tree-shaken in app builds. +import '@fontsource-variable/geist' +import '@fontsource-variable/geist-mono' import '../components/styles/charizard.css' // Docs-only chrome: surfaces, code viewer and syntax palette. import './site.css' diff --git a/src/site/site.css b/src/site/site.css index 73df6a49..dc0dc306 100644 --- a/src/site/site.css +++ b/src/site/site.css @@ -4,6 +4,10 @@ surfaces, the code viewer and the syntax palette. */ :root { + /* the docs site is set in Geist; the library itself renders groudon's Instrument Sans */ + --font-sans: 'Geist Variable', sans-serif; + --font-mono: 'Geist Mono Variable', monospace; + /* surfaces */ --site-bg: var(--neutral-white); --site-bg-subtle: #f9fafd; From e413e0b0aa45d011c583383b33697c6bb7a1353b Mon Sep 17 00:00:00 2001 From: sohhamm Date: Wed, 4 Nov 2026 13:28:58 +0530 Subject: [PATCH 2/3] build(deps): depend on published @hybr1d-tech/groudon 1.0.0 Replaces the local link: used while groudon 1.0.0 was unreleased. The Geist fontsource packages move to devDependencies: only the docs site loads them, the library ships Instrument Sans via groudon tokens. Co-Authored-By: Claude Opus 5.5 --- package.json | 5 +++-- pnpm-lock.yaml | 21 +++++++++++++++------ pnpm-workspace.yaml | 1 + 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 854012eb..82817297 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,8 @@ "zustand": "^5.0.16" }, "devDependencies": { + "@fontsource-variable/geist": "^5.3.0", + "@fontsource-variable/geist-mono": "^5.3.0", "@microsoft/api-extractor": "^7.59.4", "@types/node": "^26.6.5", "@types/react": "^19.3.0", @@ -95,7 +97,6 @@ }, "packageManager": "pnpm@12.15.0", "dependencies": { - "@fontsource-variable/geist": "^5.3.0", - "@fontsource-variable/geist-mono": "^5.3.0" + "@hybr1d-tech/groudon": "^1.0.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d521801c..e7a17cc9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -192,12 +192,9 @@ importers: '@dnd-kit/react': specifier: ^0.5.1 version: 0.5.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1) - '@fontsource-variable/geist': - specifier: ^5.3.0 - version: 5.3.0 - '@fontsource-variable/geist-mono': - specifier: ^5.3.0 - version: 5.3.0 + '@hybr1d-tech/groudon': + specifier: ^1.0.0 + version: 1.0.0 '@popperjs/core': specifier: ^2.11.8 version: 2.11.8 @@ -289,6 +286,12 @@ importers: specifier: ^5.0.16 version: 5.0.16(@types/react@19.3.0)(react@19.3.1)(use-sync-external-store@1.6.0(react@19.3.1)) devDependencies: + '@fontsource-variable/geist': + specifier: ^5.3.0 + version: 5.3.0 + '@fontsource-variable/geist-mono': + specifier: ^5.3.0 + version: 5.3.0 '@microsoft/api-extractor': specifier: ^7.59.4 version: 7.59.4(@types/node@26.6.5) @@ -702,6 +705,10 @@ packages: '@fontsource-variable/geist@5.3.0': resolution: {integrity: sha512-j0m+vLQuG5XAYoHtGCVu0spvlGreR3EzpECUVzkFmI1mTVnAO38l/NEPDCFgZ177JxzYJCLSmTQibIiYPilGrA==} + '@hybr1d-tech/groudon@1.0.0': + resolution: {integrity: sha512-xPdquf3qfyQaVix9Qan13kTa2CECDGjR2t7UmGTBxWjbYHUd7XpbbM5hBbpod4E3kBNzGAg0bw1C6+I7pOguyw==} + engines: {node: '>=24'} + '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -3006,6 +3013,8 @@ snapshots: '@fontsource-variable/geist@5.3.0': {} + '@hybr1d-tech/groudon@1.0.0': {} + '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.5.5 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index e8505dab..681f3f74 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -39,3 +39,4 @@ minimumReleaseAgeExclude: - '@rushstack/ts-command-line@5.3.13' - '@vitejs/plugin-react@6.1.0' - happy-dom@20.11.6 + - '@hybr1d-tech/groudon@1.0.0' From 1da26d0f8ff8cb83db82ccff421b9f6936dc9de7 Mon Sep 17 00:00:00 2001 From: sohhamm Date: Wed, 4 Nov 2026 14:51:45 +0530 Subject: [PATCH 3/3] fix(styles)!: keep every app rendering exactly as today Narrow this change to moving the type scale onto groudon. Before/after production builds of every consuming app showed the design-pixel rewrite of component sizes shrinking components ~19% in the 16px-root apps (zenex, ops, vendor portal), so it is reverted here and will ship separately with design QA: - component CSS (drawer, input, switch, select, date pickers, progress, upload, empty state, layout tabs, popover, pagination, toast) back to the rem values on main; Drawer.tsx back to its rem calc - Geist stays the library font exactly as on main (--font-sans / --font-mono and the fontsource imports + dependencies); toasts and progress still read it - the docs site no longer needs its own Geist override What remains: charizard.css imports @hybr1d-tech/groudon instead of the library's _typography.css copy, and .zap-button-small keeps its !important. BREAKING CHANGE: the old --letter-spacing, --line-height-142/145/150/166/171 and --link-color custom properties are no longer defined by the library; use groudon's --zap-* tokens (no consumer references the old names). Co-Authored-By: Claude Opus 5.5 --- package.json | 4 +- pnpm-lock.yaml | 12 ++--- .../date-picker/date-picker.module.css | 22 ++++----- .../date-picker/date-range-picker.module.css | 28 +++++------ src/components/drawer/Drawer.tsx | 2 +- src/components/drawer/styles.module.css | 22 ++++----- src/components/empty-state/styles.module.css | 2 +- src/components/input/styles.module.css | 24 +++++----- .../layout-tabs/layout-tabs.module.css | 4 +- src/components/popover/styles.module.css | 2 +- src/components/progress/styles.module.css | 2 +- src/components/select/styles.module.css | 8 ++-- src/components/styles/charizard.css | 2 + src/components/styles/global.css | 8 ++-- src/components/switch/styles.module.css | 46 +++++++++---------- .../table-pagination.module.css | 2 +- src/components/toasts/styles/toast.css | 2 +- src/components/upload/styles.module.css | 2 +- src/site/main.tsx | 2 - src/site/site.css | 4 -- 20 files changed, 98 insertions(+), 102 deletions(-) diff --git a/package.json b/package.json index 82817297..c056b178 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,6 @@ "zustand": "^5.0.16" }, "devDependencies": { - "@fontsource-variable/geist": "^5.3.0", - "@fontsource-variable/geist-mono": "^5.3.0", "@microsoft/api-extractor": "^7.59.4", "@types/node": "^26.6.5", "@types/react": "^19.3.0", @@ -97,6 +95,8 @@ }, "packageManager": "pnpm@12.15.0", "dependencies": { + "@fontsource-variable/geist": "^5.3.0", + "@fontsource-variable/geist-mono": "^5.3.0", "@hybr1d-tech/groudon": "^1.0.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7a17cc9..5a4d0ea3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -192,6 +192,12 @@ importers: '@dnd-kit/react': specifier: ^0.5.1 version: 0.5.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1) + '@fontsource-variable/geist': + specifier: ^5.3.0 + version: 5.3.0 + '@fontsource-variable/geist-mono': + specifier: ^5.3.0 + version: 5.3.0 '@hybr1d-tech/groudon': specifier: ^1.0.0 version: 1.0.0 @@ -286,12 +292,6 @@ importers: specifier: ^5.0.16 version: 5.0.16(@types/react@19.3.0)(react@19.3.1)(use-sync-external-store@1.6.0(react@19.3.1)) devDependencies: - '@fontsource-variable/geist': - specifier: ^5.3.0 - version: 5.3.0 - '@fontsource-variable/geist-mono': - specifier: ^5.3.0 - version: 5.3.0 '@microsoft/api-extractor': specifier: ^7.59.4 version: 7.59.4(@types/node@26.6.5) diff --git a/src/components/date-picker/date-picker.module.css b/src/components/date-picker/date-picker.module.css index 5cdd252c..4cdf7b09 100644 --- a/src/components/date-picker/date-picker.module.css +++ b/src/components/date-picker/date-picker.module.css @@ -1,6 +1,6 @@ .datePicker { display: grid; - gap: calc(6 * var(--zap-px)); + gap: 0.5rem; } .formButton { font-weight: 400 !important; @@ -80,13 +80,13 @@ } /* .nav { display: flex; - gap: calc(13 * var(--zap-px)); + gap: 1rem; align-items: center; } */ .navButtonNext, .navButtonPrevious { - height: calc(23 * var(--zap-px)); - width: calc(23 * var(--zap-px)); + height: 1.75rem; + width: 1.75rem; background-color: transparent; padding: 0; opacity: 0.5; @@ -109,10 +109,10 @@ background-color: var(--neutral-arch-20); } */ .navButtonPrevious { - left: calc(13 * var(--zap-px)); + left: 1rem; } .navButtonNext { - right: calc(13 * var(--zap-px)); + right: 1rem; } .table { width: 100%; @@ -123,10 +123,10 @@ display: flex; } .headCell { - font-size: calc(13 * var(--zap-px)); + font-size: 1rem; color: var(--text-hint); border-radius: 8px; - width: calc(29 * var(--zap-px)); + width: 2.25rem; font-weight: 400; width: 36px; display: flex; @@ -136,12 +136,12 @@ .row { display: flex; width: 100%; - margin-top: calc(6 * var(--zap-px)); + margin-top: 0.5rem; border-bottom: none !important; } .cell { text-align: center; - font-size: calc(10 * var(--zap-px)); + font-size: 0.8rem; padding: 0; position: relative; width: 36px; @@ -163,7 +163,7 @@ display: inline-flex; align-items: center; justify-content: center; - border-radius: calc(6 * var(--zap-px)); + border-radius: 0.5rem; border: none; outline: none; background-color: transparent; diff --git a/src/components/date-picker/date-range-picker.module.css b/src/components/date-picker/date-range-picker.module.css index 449066b0..82c41201 100644 --- a/src/components/date-picker/date-range-picker.module.css +++ b/src/components/date-picker/date-range-picker.module.css @@ -1,6 +1,6 @@ .dateRangePicker { display: grid; - gap: calc(6 * var(--zap-px)); + gap: 0.5rem; } .dateIcon > path, .dateIcon > g > path { @@ -39,7 +39,7 @@ } .months { display: flex; - gap: calc(13 * var(--zap-px)); + gap: 1rem; } .month { display: flex; @@ -50,7 +50,7 @@ display: flex; justify-content: center; align-items: center; - padding-top: calc(13 * var(--zap-px)); + padding-top: 1rem; position: relative; } .captionLabel { @@ -64,8 +64,8 @@ } .navButtonPrevious, .navButtonNext { - height: calc(23 * var(--zap-px)); - width: calc(23 * var(--zap-px)); + height: 1.75rem; + width: 1.75rem; background-color: transparent; padding: 0; opacity: 0.5; @@ -86,10 +86,10 @@ } .navButtonPrevious { - left: calc(13 * var(--zap-px)); + left: 1rem; } .navButtonNext { - right: calc(13 * var(--zap-px)); + right: 1rem; } .table { width: 100%; @@ -100,7 +100,7 @@ display: flex; } .headCell { - font-size: calc(13 * var(--zap-px)); + font-size: 1rem; color: var(--text-hint); border-radius: 8px; font-weight: 400; @@ -112,12 +112,12 @@ .row { display: flex; width: 100%; - margin-top: calc(6 * var(--zap-px)); + margin-top: 0.5rem; border-bottom: none !important; } .cell { text-align: center; - font-size: calc(10 * var(--zap-px)); + font-size: 0.8rem; padding: 0; position: relative; width: 36px; @@ -138,7 +138,7 @@ display: inline-flex; align-items: center; justify-content: center; - border-radius: calc(6 * var(--zap-px)); + border-radius: 0.5rem; border: none; outline: none; background-color: transparent; @@ -158,7 +158,7 @@ } .daySelected { background-color: var(--theme-blue-dark); - border-radius: calc(6 * var(--zap-px)); + border-radius: 0.5rem; } .daySelected:not(.dayRangeMiddle) .day { @@ -170,7 +170,7 @@ color: var(--neutral-white); } .dayToday { - border-radius: calc(6 * var(--zap-px)); + border-radius: 0.5rem; background-color: var(--neutral-arch-40); color: var(--text-primary); } @@ -204,7 +204,7 @@ border-bottom-left-radius: 0; } .dayRangeStart.dayRangeEnd { - border-radius: calc(6 * var(--zap-px)); + border-radius: 0.5rem; } .dayRangeMiddle { background-color: var(--neutral-arch-20); diff --git a/src/components/drawer/Drawer.tsx b/src/components/drawer/Drawer.tsx index 62c0dd8b..12e8ae2a 100644 --- a/src/components/drawer/Drawer.tsx +++ b/src/components/drawer/Drawer.tsx @@ -110,7 +110,7 @@ export function Drawer({ const timeout = setTimeout(() => { if (containerRef.current && descriptionRef.current && footerRef.current) { const translateXValue = isOpen ? 'translateX(0)' : `translateX(${translateXOffset})` - const descriptionHeight = `calc(100dvh - 46 * var(--zap-px) - ${footerRef.current.clientHeight}px)` + const descriptionHeight = `calc(100dvh - (1.75rem * 2) - ${footerRef.current.clientHeight}px)` containerRef.current.style.transform = translateXValue descriptionRef.current.style.maxHeight = descriptionHeight diff --git a/src/components/drawer/styles.module.css b/src/components/drawer/styles.module.css index 8076e24c..7a646dc9 100644 --- a/src/components/drawer/styles.module.css +++ b/src/components/drawer/styles.module.css @@ -46,23 +46,23 @@ } .container.sm { - width: calc(400 * var(--zap-px)); + width: 30.8rem; } .container.md { - width: calc(600 * var(--zap-px)); + width: 46.2rem; } .container.lg { - width: calc(820 * var(--zap-px)); + width: 63.08rem; } .container.xlg { - width: calc(1000 * var(--zap-px)); + width: 77rem; } .container.xxlg { - width: calc(1200 * var(--zap-px)); + width: 92.3rem; } .content { @@ -86,8 +86,8 @@ .title { font-style: normal; font-weight: 500; - font-size: calc(20 * var(--zap-px)); - line-height: calc(28 * var(--zap-px)); + font-size: 1.54rem; + line-height: 2.15rem; color: var(--text-primary); } @@ -112,8 +112,8 @@ .descriptionContainer { padding: 20px; - max-height: calc(100dvh - 46 * var(--zap-px)); - height: calc(100dvh - 46 * var(--zap-px)); + max-height: calc(100dvh - (1.75rem * 2)); + height: calc(100dvh - (1.75rem * 2)); overflow: scroll; } .descriptionContainer.fullHeight { @@ -154,8 +154,8 @@ .saveBtn, .cancelBtn { font-weight: 400; - font-size: calc(16 * var(--zap-px)); - line-height: calc(24 * var(--zap-px)); + font-size: 1.23rem; + line-height: 1.9rem; padding: 8px 16px; border-radius: 6px; } diff --git a/src/components/empty-state/styles.module.css b/src/components/empty-state/styles.module.css index e4528b13..259cdfc8 100644 --- a/src/components/empty-state/styles.module.css +++ b/src/components/empty-state/styles.module.css @@ -10,7 +10,7 @@ .containerRow { flex-direction: row; - gap: calc(21 * var(--zap-px)); + gap: 1.62rem; } .title { diff --git a/src/components/input/styles.module.css b/src/components/input/styles.module.css index 93beb2a9..a827b780 100644 --- a/src/components/input/styles.module.css +++ b/src/components/input/styles.module.css @@ -7,11 +7,11 @@ } .inputContainer.sm { - width: calc(270 * var(--zap-px)); + width: 20.8rem; } .inputContainer.md { - width: calc(360 * var(--zap-px)); + width: 27.7rem; } .inputLabelContainer { @@ -58,8 +58,8 @@ .input, .textarea { font-weight: 400; - font-size: calc(16 * var(--zap-px)); - line-height: calc(24 * var(--zap-px)); + font-size: 1.23rem; + line-height: 1.85rem; color: var(--text-primary); width: 100%; @@ -73,7 +73,7 @@ } .input { - height: calc(36 * var(--zap-px)); + height: 2.8rem; } .input::placeholder, @@ -105,8 +105,8 @@ input[type='date']::-webkit-inner-spin-button, .errorMsg { font-weight: 400; - font-size: calc(13 * var(--zap-px)); - line-height: calc(20 * var(--zap-px)); + font-size: 1rem; + line-height: 1.54rem; color: var(--status-danger); margin: 0; text-align: left; @@ -115,8 +115,8 @@ input[type='date']::-webkit-inner-spin-button, .inputElement { position: absolute; top: 0; - width: calc(36 * var(--zap-px)); - height: calc(36 * var(--zap-px)); + width: 2.8rem; + height: 2.8rem; display: flex; align-items: center; justify-content: center; @@ -133,7 +133,7 @@ input[type='date']::-webkit-inner-spin-button, .inputAddon { width: auto; - height: calc(36 * var(--zap-px)); + height: 2.8rem; display: flex; align-items: center; justify-content: center; @@ -169,9 +169,9 @@ input[type='date']::-webkit-inner-spin-button, border-radius: 8px; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15); padding: 0 0 12px 0; - max-height: calc(195 * var(--zap-px)); + max-height: 15rem; overflow-y: auto; - min-width: calc(195 * var(--zap-px)); + min-width: 15rem; z-index: 10; } diff --git a/src/components/layout-tabs/layout-tabs.module.css b/src/components/layout-tabs/layout-tabs.module.css index a455f870..3eeccdae 100644 --- a/src/components/layout-tabs/layout-tabs.module.css +++ b/src/components/layout-tabs/layout-tabs.module.css @@ -35,8 +35,8 @@ -webkit-appearance: none; font-weight: 400; - font-size: calc(14 * var(--zap-px)); - line-height: calc(20 * var(--zap-px)); + font-size: 1.08rem; + line-height: 1.54rem; color: var(--text-secondary); height: 100%; border-bottom: 2px solid transparent; diff --git a/src/components/popover/styles.module.css b/src/components/popover/styles.module.css index ea02a92b..7dedf544 100644 --- a/src/components/popover/styles.module.css +++ b/src/components/popover/styles.module.css @@ -22,7 +22,7 @@ position: absolute; top: 0; right: 0; - padding: calc(6 * var(--zap-px)); + padding: 0.5rem; } .arrow { diff --git a/src/components/progress/styles.module.css b/src/components/progress/styles.module.css index 07bd96d3..77be9e90 100644 --- a/src/components/progress/styles.module.css +++ b/src/components/progress/styles.module.css @@ -44,7 +44,7 @@ } .line { - width: calc(36 * var(--zap-px)); + width: 2.8rem; height: 1px; background: var(--neutral-arch-500); } diff --git a/src/components/select/styles.module.css b/src/components/select/styles.module.css index 69464087..9365591c 100644 --- a/src/components/select/styles.module.css +++ b/src/components/select/styles.module.css @@ -5,8 +5,8 @@ .selectContainer .errorMsg { font-weight: 400; - font-size: calc(13 * var(--zap-px)); - line-height: calc(20 * var(--zap-px)); + font-size: 1rem; + line-height: 1.54rem; color: #de350b; margin: 0; text-align: left; @@ -42,8 +42,8 @@ .optionContainer .subLabel { font-weight: 400; - font-size: calc(12 * var(--zap-px)); - line-height: calc(20 * var(--zap-px)); + font-size: 0.92rem; + line-height: 1.54rem; color: var(--text-secondary); } diff --git a/src/components/styles/charizard.css b/src/components/styles/charizard.css index ace2fe90..e9402eac 100644 --- a/src/components/styles/charizard.css +++ b/src/components/styles/charizard.css @@ -1,6 +1,8 @@ /* Global library styles, aggregated so the build injects them as ONE css import on the entry chunk with a deterministic cascade order. (Separate JS imports get injected in unspecified order by libInjectCss.) */ +@import '@fontsource-variable/geist'; +@import '@fontsource-variable/geist-mono'; /* the type scale (tokens + zap-* classes) comes from groudon, the shared typography package */ @import '@hybr1d-tech/groudon'; @import './_variables.css'; diff --git a/src/components/styles/global.css b/src/components/styles/global.css index 964ed805..0e1f50d2 100644 --- a/src/components/styles/global.css +++ b/src/components/styles/global.css @@ -1,6 +1,6 @@ :root { - /* the product font is groudon's; the docs site swaps in Geist in src/site/site.css */ - --font-sans: var(--zap-font-sans); + --font-sans: 'Geist Variable', sans-serif; + --font-mono: 'Geist Mono Variable', monospace; font-family: var(--font-sans); font-synthesis: none; text-rendering: optimizeLegibility; @@ -112,8 +112,8 @@ h6 { .zap-error-msg { font-weight: 400; - font-size: calc(13 * var(--zap-px)); - line-height: calc(20 * var(--zap-px)); + font-size: 1rem; + line-height: 1.54rem; color: var(--status-danger); margin: 0; text-align: left; diff --git a/src/components/switch/styles.module.css b/src/components/switch/styles.module.css index ea8a59da..44369dcc 100644 --- a/src/components/switch/styles.module.css +++ b/src/components/switch/styles.module.css @@ -5,15 +5,15 @@ } .switchLabel { - font-size: calc(14 * var(--zap-px)); - line-height: calc(20 * var(--zap-px)); + font-size: 1.08rem; + line-height: 1.54rem; color: var(--text-primary); } .subText { - font-size: calc(12 * var(--zap-px)); - line-height: calc(18 * var(--zap-px)); - margin-top: calc(10 * var(--zap-px)); + font-size: 0.923rem; + line-height: 1.385rem; + margin-top: 0.75rem; color: var(--text-secondary); } @@ -23,37 +23,37 @@ display: inline-block; } .switch.sm { - width: calc(26 * var(--zap-px)); - height: calc(16 * var(--zap-px)); + width: 2rem; + height: 1.231rem; } .switch.sm input:checked + .slider::before { - transform: translateX(calc(10 * var(--zap-px))); + transform: translateX(0.769rem); } .switch.sm .slider::before { - width: calc(12 * var(--zap-px)); - height: calc(12 * var(--zap-px)); + width: 0.923rem; + height: 0.923rem; } .switch.md { - width: calc(34 * var(--zap-px)); - height: calc(20 * var(--zap-px)); + width: 2.615rem; + height: 1.538rem; } .switch.md input:checked + .slider::before { - transform: translateX(calc(14 * var(--zap-px))); + transform: translateX(1.077rem); } .switch.md .slider::before { - height: calc(16 * var(--zap-px)); - width: calc(16 * var(--zap-px)); + height: 1.231rem; + width: 1.231rem; } .switch.lg { - width: calc(50 * var(--zap-px)); - height: calc(28 * var(--zap-px)); + width: 3.846rem; + height: 2.154rem; } .switch.lg input:checked + .slider::before { - transform: translateX(calc(22 * var(--zap-px))); + transform: translateX(1.692rem); } .switch.lg .slider::before { - width: calc(24 * var(--zap-px)); - height: calc(24 * var(--zap-px)); + width: 1.846rem; + height: 1.846rem; } .switch input { opacity: 0; @@ -88,9 +88,9 @@ .switch .slider::before { position: absolute; content: ''; - left: calc(2 * var(--zap-px)); - bottom: calc(2 * var(--zap-px)); - top: calc(2 * var(--zap-px)); + left: 0.154rem; + bottom: 0.154rem; + top: 0.154rem; background-color: white; border-radius: 50%; transition: 0.25s; diff --git a/src/components/table/table-pagination/table-pagination.module.css b/src/components/table/table-pagination/table-pagination.module.css index 8d22cf54..29e7a1b3 100644 --- a/src/components/table/table-pagination/table-pagination.module.css +++ b/src/components/table/table-pagination/table-pagination.module.css @@ -34,7 +34,7 @@ } .meta { - font-size: calc(11 * var(--zap-px)); + font-size: 0.85rem; } } diff --git a/src/components/toasts/styles/toast.css b/src/components/toasts/styles/toast.css index cf6a73b2..c8dc1164 100644 --- a/src/components/toasts/styles/toast.css +++ b/src/components/toasts/styles/toast.css @@ -4,7 +4,7 @@ touch-action: none; /* min-height: var(--toastify-toast-min-height); */ box-sizing: border-box; - margin-bottom: calc(13 * var(--zap-px)) !important; + margin-bottom: 1rem !important; padding: 8px; border-radius: 8px; box-shadow: 0px 4px 16px 0px rgba(18, 18, 18, 0.04), 0px 2px 8px 0px rgba(18, 18, 18, 0.08); diff --git a/src/components/upload/styles.module.css b/src/components/upload/styles.module.css index 56819e9b..bf202c4f 100644 --- a/src/components/upload/styles.module.css +++ b/src/components/upload/styles.module.css @@ -4,7 +4,7 @@ border-radius: 4px; border: 1px dashed var(--p-p10); background: var(--fill-highlight, #fbfbfe); - padding: 16px calc(10 * var(--zap-px)); + padding: 16px 0.8rem; color: var(--text-secondary); } .uploadBtn:hover { diff --git a/src/site/main.tsx b/src/site/main.tsx index 50a64736..c1a7b467 100644 --- a/src/site/main.tsx +++ b/src/site/main.tsx @@ -1,7 +1,5 @@ // Explicit global-styles import — mirrors the `styles.css` subpath consumers // use; the barrel's side-effect import can be tree-shaken in app builds. -import '@fontsource-variable/geist' -import '@fontsource-variable/geist-mono' import '../components/styles/charizard.css' // Docs-only chrome: surfaces, code viewer and syntax palette. import './site.css' diff --git a/src/site/site.css b/src/site/site.css index dc0dc306..73df6a49 100644 --- a/src/site/site.css +++ b/src/site/site.css @@ -4,10 +4,6 @@ surfaces, the code viewer and the syntax palette. */ :root { - /* the docs site is set in Geist; the library itself renders groudon's Instrument Sans */ - --font-sans: 'Geist Variable', sans-serif; - --font-mono: 'Geist Mono Variable', monospace; - /* surfaces */ --site-bg: var(--neutral-white); --site-bg-subtle: #f9fafd;