@teseor/css 1.6.0 → 1.8.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/dist/compiled.css +1 -1
- package/dist/index.css +72 -65
- package/package.json +2 -2
- package/src/{02-base → base}/root/root.scss +1 -1
- package/src/base/typography/typography.docs.json +328 -0
- package/src/{02-base → base}/typography/typography.scss +2 -2
- package/src/components/actions/button/button-visual.png +0 -0
- package/src/{04-components → components}/actions/button/button.api.json +4 -4
- package/src/{04-components → components}/actions/button/button.docs.json +63 -11
- package/src/{04-components → components}/actions/button/index.scss +20 -14
- package/src/components/actions/button-group/button-group.docs.json +151 -0
- package/src/{04-components → components}/actions/button-group/index.scss +1 -1
- package/src/{04-components → components}/actions/close-button/close-button.docs.json +4 -3
- package/src/{04-components → components}/actions/close-button/index.scss +2 -2
- package/src/{04-components/layout → components/content}/divider/divider.api.json +2 -2
- package/src/components/content/divider/divider.docs.json +113 -0
- package/src/{04-components/layout → components/content}/divider/index.scss +1 -1
- package/src/components/content/scroll-area/index.scss +92 -0
- package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
- package/src/components/content/scroll-area/scroll-area.api.json +63 -0
- package/src/components/content/scroll-area/scroll-area.docs.json +204 -0
- package/src/components/content/scroll-area/scroll-area.visual.spec.ts +14 -0
- package/src/{04-components/layout → components/content}/spacer/spacer.docs.json +2 -2
- package/src/{04-components → components}/data-display/avatar/avatar.api.json +5 -5
- package/src/{04-components → components}/data-display/avatar/avatar.docs.json +55 -10
- package/src/{04-components → components}/data-display/avatar/index.scss +1 -1
- package/src/components/data-display/badge/badge-visual.png +0 -0
- package/src/{04-components → components}/data-display/badge/badge.api.json +14 -2
- package/src/{04-components → components}/data-display/badge/badge.docs.json +32 -7
- package/src/{04-components → components}/data-display/badge/index.scss +13 -7
- package/src/components/data-display/card/card-visual.png +0 -0
- package/src/{04-components → components}/data-display/card/card.api.json +15 -0
- package/src/{04-components → components}/data-display/card/card.docs.json +26 -2
- package/src/{04-components → components}/data-display/card/index.scss +26 -6
- package/src/{04-components → components}/data-display/data-list/data-list.api.json +2 -2
- package/src/components/data-display/data-list/data-list.docs.json +259 -0
- package/src/{04-components → components}/data-display/data-list/index.scss +1 -1
- package/src/components/data-display/icon/icon-visual.png +0 -0
- package/src/{04-components → components}/data-display/icon/icon.docs.json +105 -17
- package/src/{04-components → components}/data-display/icon/index.scss +7 -1
- package/src/{04-components → components}/data-display/image/image.api.json +4 -4
- package/src/{04-components → components}/data-display/image/image.docs.json +8 -8
- package/src/{04-components → components}/data-display/image/index.scss +1 -1
- package/src/{04-components → components}/data-display/stat/index.scss +1 -1
- package/src/{04-components → components}/data-display/stat/stat.docs.json +1 -1
- package/src/{04-components → components}/data-display/status/index.scss +7 -1
- package/src/{04-components → components}/data-display/status/status.api.json +2 -2
- package/src/components/data-display/status/status.docs.json +147 -0
- package/src/{04-components → components}/data-display/table/index.scss +2 -2
- package/src/components/data-display/table/table.docs.json +184 -0
- package/src/{04-components → components}/data-display/tag/index.scss +9 -3
- package/src/components/data-display/tag/tag-visual.png +0 -0
- package/src/{04-components → components}/data-display/tag/tag.api.json +17 -5
- package/src/{04-components → components}/data-display/tag/tag.docs.json +48 -10
- package/src/components/disclosure/accordion/accordion.docs.json +206 -0
- package/src/{04-components → components}/disclosure/accordion/index.scss +1 -1
- package/src/components/disclosure/disclosure/disclosure-visual.png +0 -0
- package/src/{04-components → components}/disclosure/disclosure/disclosure.api.json +2 -2
- package/src/components/disclosure/disclosure/disclosure.docs.json +154 -0
- package/src/{04-components → components}/disclosure/disclosure/index.scss +11 -1
- package/src/{04-components → components}/feedback/alert/alert-visual.png +0 -0
- package/src/{04-components → components}/feedback/alert/alert.api.json +24 -1
- package/src/components/feedback/alert/alert.docs.json +325 -0
- package/src/{04-components → components}/feedback/alert/index.scss +23 -1
- package/src/{04-components → components}/feedback/progress/index.scss +11 -1
- package/src/components/feedback/progress/progress-visual.png +0 -0
- package/src/{04-components → components}/feedback/progress/progress.api.json +1 -1
- package/src/components/feedback/progress/progress.docs.json +257 -0
- package/src/{04-components → components}/feedback/progress-circle/index.scss +11 -5
- package/src/{04-components → components}/feedback/progress-circle/progress-circle.api.json +4 -4
- package/src/{04-components → components}/feedback/progress-circle/progress-circle.docs.json +5 -4
- package/src/{04-components → components}/feedback/skeleton/index.scss +11 -1
- package/src/components/feedback/skeleton/skeleton.docs.json +126 -0
- package/src/{04-components → components}/feedback/spinner/index.scss +12 -6
- package/src/{04-components → components}/feedback/spinner/spinner.api.json +5 -5
- package/src/{04-components → components}/feedback/spinner/spinner.docs.json +42 -9
- package/src/{04-components → components}/feedback/toast/index.scss +8 -2
- package/src/{04-components → components}/feedback/toast/toast.api.json +4 -4
- package/src/components/feedback/toast/toast.docs.json +281 -0
- package/src/{04-components → components}/forms/checkbox/checkbox.api.json +8 -4
- package/src/{04-components → components}/forms/checkbox/checkbox.docs.json +30 -10
- package/src/{04-components → components}/forms/checkbox/index.scss +11 -4
- package/src/{04-components → components}/forms/checkbox-group/checkbox-group.docs.json +1 -0
- package/src/{04-components → components}/forms/checkbox-group/index.scss +3 -3
- package/src/components/forms/field/field.docs.json +190 -0
- package/src/{04-components → components}/forms/field/index.scss +1 -1
- package/src/{04-components → components}/forms/fieldset/index.scss +2 -2
- package/src/{04-components → components}/forms/form/index.scss +1 -1
- package/src/{04-components → components}/forms/form-error/form-error.docs.json +23 -2
- package/src/{04-components → components}/forms/form-error/index.scss +1 -1
- package/src/{04-components → components}/forms/form-helper/form-helper.docs.json +3 -1
- package/src/{04-components → components}/forms/form-helper/index.scss +1 -1
- package/src/{04-components → components}/forms/input/index.scss +9 -7
- package/src/{04-components → components}/forms/input/input-visual.png +0 -0
- package/src/{04-components → components}/forms/input/input.api.json +3 -3
- package/src/{04-components → components}/forms/input/input.docs.json +128 -11
- package/src/{04-components → components}/forms/label/index.scss +2 -2
- package/src/components/forms/label/label-visual.png +0 -0
- package/src/{04-components → components}/forms/label/label.docs.json +43 -6
- package/src/components/forms/number-input/index.scss +153 -0
- package/src/components/forms/number-input/number-input-visual.png +0 -0
- package/src/components/forms/number-input/number-input.api.json +74 -0
- package/src/components/forms/number-input/number-input.docs.json +262 -0
- package/src/components/forms/number-input/number-input.visual.spec.ts +14 -0
- package/src/components/forms/password-input/index.scss +138 -0
- package/src/components/forms/password-input/password-input-visual.png +0 -0
- package/src/components/forms/password-input/password-input.api.json +84 -0
- package/src/components/forms/password-input/password-input.docs.json +276 -0
- package/src/components/forms/password-input/password-input.visual.spec.ts +14 -0
- package/src/{04-components → components}/forms/radio/index.scss +11 -4
- package/src/{04-components → components}/forms/radio/radio.api.json +8 -4
- package/src/{04-components → components}/forms/radio/radio.docs.json +94 -12
- package/src/{04-components → components}/forms/radio-group/index.scss +3 -3
- package/src/{04-components → components}/forms/radio-group/radio-group.docs.json +1 -0
- package/src/{04-components → components}/forms/search-input/index.scss +2 -2
- package/src/components/forms/search-input/search-input-visual.png +0 -0
- package/src/{04-components → components}/forms/search-input/search-input.docs.json +1 -1
- package/src/{04-components → components}/forms/select/index.scss +9 -7
- package/src/components/forms/select/select-visual.png +0 -0
- package/src/{04-components → components}/forms/select/select.api.json +3 -3
- package/src/{04-components → components}/forms/select/select.docs.json +87 -18
- package/src/{04-components → components}/forms/slider/index.scss +3 -3
- package/src/{04-components → components}/forms/slider/slider.docs.json +3 -3
- package/src/{04-components → components}/forms/textarea/index.scss +6 -6
- package/src/{04-components → components}/forms/textarea/textarea.api.json +4 -4
- package/src/{04-components → components}/forms/textarea/textarea.docs.json +15 -9
- package/src/{04-components → components}/forms/toggle/index.scss +3 -3
- package/src/components/forms/toggle/toggle-visual.png +0 -0
- package/src/{04-components → components}/forms/toggle/toggle.api.json +5 -5
- package/src/components/forms/toggle/toggle.docs.json +229 -0
- package/src/{04-components → components}/index.scss +6 -2
- package/src/{04-components → components}/navigation/breadcrumb/breadcrumb.api.json +1 -1
- package/src/components/navigation/breadcrumb/breadcrumb.docs.json +170 -0
- package/src/{04-components → components}/navigation/breadcrumb/index.scss +1 -1
- package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.api.json +37 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +272 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +14 -0
- package/src/components/navigation/dropdown-menu/index.scss +84 -0
- package/src/{04-components → components}/navigation/menu/index.scss +3 -3
- package/src/{04-components → components}/navigation/menu/menu.api.json +4 -4
- package/src/components/navigation/menu/menu.docs.json +326 -0
- package/src/{04-components → components}/navigation/nav/index.scss +2 -2
- package/src/{04-components → components}/navigation/pagination/index.scss +2 -2
- package/src/{04-components → components}/navigation/pagination/pagination.api.json +2 -2
- package/src/components/navigation/pagination/pagination.docs.json +483 -0
- package/src/{04-components → components}/navigation/tabs/index.scss +48 -4
- package/src/components/navigation/tabs/tabs-visual.png +0 -0
- package/src/{04-components → components}/navigation/tabs/tabs.api.json +16 -1
- package/src/components/navigation/tabs/tabs.docs.json +243 -0
- package/src/{04-components → components}/overlays/dialog/dialog.api.json +3 -3
- package/src/components/overlays/dialog/dialog.docs.json +200 -0
- package/src/{04-components → components}/overlays/dialog/index.scss +1 -1
- package/src/{04-components → components}/overlays/drawer/drawer.api.json +4 -4
- package/src/components/overlays/drawer/drawer.docs.json +282 -0
- package/src/{04-components → components}/overlays/drawer/index.scss +9 -2
- package/src/{04-components → components}/overlays/modal/index.scss +2 -2
- package/src/{04-components → components}/overlays/modal/modal.api.json +6 -6
- package/src/components/overlays/modal/modal.docs.json +163 -0
- package/src/{04-components → components}/overlays/overlay/index.scss +1 -1
- package/src/components/overlays/overlay/overlay.docs.json +138 -0
- package/src/{04-components → components}/overlays/popover/index.scss +1 -1
- package/src/{04-components → components}/overlays/popover/popover.api.json +4 -4
- package/src/{04-components → components}/overlays/popover/popover.docs.json +47 -6
- package/src/{04-components → components}/overlays/tooltip/index.scss +5 -5
- package/src/{04-components → components}/overlays/tooltip/tooltip.api.json +4 -4
- package/src/{04-components → components}/overlays/tooltip/tooltip.docs.json +46 -6
- package/src/{04-components → components}/typography/blockquote/index.scss +1 -1
- package/src/components/typography/code/code-visual.png +0 -0
- package/src/{04-components → components}/typography/code/code.docs.json +23 -3
- package/src/{04-components → components}/typography/code/index.scss +1 -1
- package/src/{04-components → components}/typography/code-block/code-block.docs.json +1 -0
- package/src/{04-components → components}/typography/code-block/index.scss +1 -1
- package/src/{04-components → components}/typography/heading/heading.docs.json +28 -6
- package/src/{04-components → components}/typography/heading/index.scss +1 -1
- package/src/{04-components → components}/typography/kbd/index.scss +1 -1
- package/src/{04-components → components}/typography/kbd/kbd.docs.json +1 -1
- package/src/{04-components → components}/typography/link/index.scss +1 -1
- package/src/{04-components → components}/typography/link/link.docs.json +51 -6
- package/src/{04-components → components}/typography/list/index.scss +1 -1
- package/src/{04-components → components}/typography/list/list.api.json +1 -1
- package/src/{04-components → components}/typography/list/list.docs.json +2 -2
- package/src/{04-components → components}/typography/mark/index.scss +1 -1
- package/src/{00-config → config}/tokens/_variables.scss +4 -0
- package/src/config/tokens/accessibility.docs.json +104 -0
- package/src/config/tokens/borders/index.scss +8 -0
- package/src/config/tokens/colors/colors.docs.json +316 -0
- package/src/config/tokens/colors/index.scss +28 -0
- package/src/{00-config → config}/tokens/grid/grid.docs.json +1 -1
- package/src/config/tokens/grid/index.scss +13 -0
- package/src/config/tokens/radius/index.scss +9 -0
- package/src/config/tokens/semantic/colors/index.scss +67 -0
- package/src/config/tokens/semantic/spacing/index.scss +12 -0
- package/src/config/tokens/shadows/index.scss +7 -0
- package/src/config/tokens/spacing/index.scss +17 -0
- package/src/{00-config → config}/tokens/spacing/spacing.docs.json +7 -7
- package/src/config/tokens/theming.docs.json +179 -0
- package/src/config/tokens/typography/index.scss +120 -0
- package/src/{99-debug → debug}/grid-overlay.scss +3 -3
- package/src/index.scss +17 -20
- package/src/layout/app-shell/app-shell-visual.png +0 -0
- package/src/{03-layout → layout}/app-shell/app-shell.docs.json +10 -10
- package/src/layout/app-shell/app-shell.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.docs.json +2 -2
- package/src/layout/box/box-visual.png +0 -0
- package/src/layout/box/box.docs.json +93 -0
- package/src/layout/box/box.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/box/index.scss +1 -1
- package/src/layout/center/center-visual.png +0 -0
- package/src/layout/center/center.visual.spec.ts +13 -0
- package/src/layout/column/column-visual.png +0 -0
- package/src/{03-layout/stack/stack.api.json → layout/column/column.api.json} +1 -1
- package/src/{03-layout/stack/stack.docs.json → layout/column/column.docs.json} +7 -7
- package/src/layout/column/column.visual.spec.ts +13 -0
- package/src/layout/column/index.scss +13 -0
- package/src/layout/container/index.scss +17 -0
- package/src/{03-layout → layout}/content/index.scss +1 -1
- package/src/layout/grid/grid-visual.png +0 -0
- package/src/layout/grid/grid.visual.spec.ts +13 -0
- package/src/{03-layout → layout}/index.scss +2 -3
- package/src/{03-layout → layout}/main/index.scss +4 -4
- package/src/layout/row/index.scss +18 -0
- package/src/{03-layout/cluster/cluster.api.json → layout/row/row.api.json} +1 -1
- package/src/{03-layout/cluster/cluster.docs.json → layout/row/row.docs.json} +6 -6
- package/src/{03-layout/cluster/cluster.visual.spec.ts → layout/row/row.visual.spec.ts} +5 -5
- package/src/{03-layout → layout}/sidebar/index.scss +6 -6
- package/src/{03-layout → layout}/sidebar/sidebar.docs.json +4 -4
- package/src/{03-layout → layout}/sidebar-nav/index.scss +15 -2
- package/src/layout/sidebar-nav/sidebar-nav-all.png +0 -0
- package/src/layout/sidebar-nav/sidebar-nav.docs.json +827 -0
- package/src/{03-layout → layout}/topbar/index.scss +1 -1
- package/src/testing/api-types.ts +1 -1
- package/src/testing/grid-alignment.spec.ts +34 -88
- package/src/testing/html-generator.ts +1 -1
- package/src/testing/page-setup.ts +4 -2
- package/src/utilities/border/index.scss +18 -0
- package/src/{05-utilities → utilities}/display/display.scss +11 -11
- package/src/{05-utilities → utilities}/spacing/spacing.docs.json +1 -1
- package/src/{05-utilities → utilities}/spacing/spacing.scss +5 -5
- package/src/{05-utilities → utilities}/text/text.docs.json +7 -7
- package/src/{05-utilities → utilities}/visually-hidden/index.scss +2 -2
- package/src/{05-utilities → utilities}/visually-hidden/visually-hidden.docs.json +17 -2
- package/src/00-config/mixins/_border.scss +0 -13
- package/src/00-config/mixins/index.scss +0 -1
- package/src/00-config/tokens/borders/index.scss +0 -6
- package/src/00-config/tokens/colors/colors.docs.json +0 -168
- package/src/00-config/tokens/colors/index.scss +0 -26
- package/src/00-config/tokens/grid/index.scss +0 -11
- package/src/00-config/tokens/radius/index.scss +0 -7
- package/src/00-config/tokens/semantic/colors/index.scss +0 -30
- package/src/00-config/tokens/semantic/spacing/index.scss +0 -10
- package/src/00-config/tokens/shadows/index.scss +0 -5
- package/src/00-config/tokens/spacing/index.scss +0 -15
- package/src/00-config/tokens/theming.docs.json +0 -77
- package/src/00-config/tokens/typography/index.scss +0 -119
- package/src/02-base/typography/typography.docs.json +0 -94
- package/src/03-layout/box/box.docs.json +0 -57
- package/src/03-layout/cluster/index.scss +0 -18
- package/src/03-layout/container/index.scss +0 -17
- package/src/03-layout/flex/flex.api.json +0 -15
- package/src/03-layout/flex/flex.docs.json +0 -56
- package/src/03-layout/flex/index.scss +0 -51
- package/src/03-layout/sidebar-nav/sidebar-nav-all.png +0 -0
- package/src/03-layout/sidebar-nav/sidebar-nav.docs.json +0 -100
- package/src/03-layout/stack/index.scss +0 -13
- package/src/04-components/actions/button/button-visual.png +0 -0
- package/src/04-components/actions/button-group/button-group.docs.json +0 -52
- package/src/04-components/data-display/badge/badge-visual.png +0 -0
- package/src/04-components/data-display/card/card-visual.png +0 -0
- package/src/04-components/data-display/data-list/data-list.docs.json +0 -79
- package/src/04-components/data-display/icon/icon-visual.png +0 -0
- package/src/04-components/data-display/status/status.docs.json +0 -60
- package/src/04-components/data-display/table/table.docs.json +0 -59
- package/src/04-components/data-display/tag/tag-visual.png +0 -0
- package/src/04-components/disclosure/accordion/accordion.docs.json +0 -51
- package/src/04-components/disclosure/disclosure/disclosure-visual.png +0 -0
- package/src/04-components/disclosure/disclosure/disclosure.docs.json +0 -73
- package/src/04-components/feedback/alert/alert.docs.json +0 -79
- package/src/04-components/feedback/progress/progress-visual.png +0 -0
- package/src/04-components/feedback/progress/progress.docs.json +0 -87
- package/src/04-components/feedback/skeleton/skeleton.docs.json +0 -62
- package/src/04-components/feedback/toast/toast.docs.json +0 -99
- package/src/04-components/forms/field/field.docs.json +0 -59
- package/src/04-components/forms/label/label-visual.png +0 -0
- package/src/04-components/forms/search-input/search-input-visual.png +0 -0
- package/src/04-components/forms/select/select-visual.png +0 -0
- package/src/04-components/forms/toggle/toggle-visual.png +0 -0
- package/src/04-components/forms/toggle/toggle.docs.json +0 -92
- package/src/04-components/layout/divider/divider.docs.json +0 -68
- package/src/04-components/navigation/breadcrumb/breadcrumb.docs.json +0 -59
- package/src/04-components/navigation/menu/menu.docs.json +0 -81
- package/src/04-components/navigation/pagination/pagination.docs.json +0 -88
- package/src/04-components/navigation/tabs/tabs-visual.png +0 -0
- package/src/04-components/navigation/tabs/tabs.docs.json +0 -61
- package/src/04-components/overlays/dialog/dialog.docs.json +0 -58
- package/src/04-components/overlays/drawer/drawer.docs.json +0 -78
- package/src/04-components/overlays/modal/modal.docs.json +0 -86
- package/src/04-components/overlays/overlay/overlay.docs.json +0 -63
- package/src/04-components/typography/code/code-visual.png +0 -0
- package/src/05-utilities/border/index.scss +0 -21
- package/src/testing/sidebar-toggles.spec.ts +0 -103
- /package/src/{02-base → base}/index.scss +0 -0
- /package/src/{04-components → components}/actions/button/button.visual.spec.ts +0 -0
- /package/src/{04-components → components}/actions/button-group/button-group-visual.png +0 -0
- /package/src/{04-components → components}/actions/button-group/button-group.api.json +0 -0
- /package/src/{04-components → components}/actions/button-group/button-group.visual.spec.ts +0 -0
- /package/src/{04-components → components}/actions/close-button/close-button-visual.png +0 -0
- /package/src/{04-components → components}/actions/close-button/close-button.api.json +0 -0
- /package/src/{04-components → components}/actions/close-button/close-button.visual.spec.ts +0 -0
- /package/src/{04-components/layout → components/content}/divider/divider-visual.png +0 -0
- /package/src/{04-components/layout → components/content}/divider/divider.visual.spec.ts +0 -0
- /package/src/{04-components/layout → components/content}/spacer/index.scss +0 -0
- /package/src/{04-components/layout → components/content}/spacer/spacer-visual.png +0 -0
- /package/src/{04-components/layout → components/content}/spacer/spacer.api.json +0 -0
- /package/src/{04-components/layout → components/content}/spacer/spacer.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/avatar/avatar-visual.png +0 -0
- /package/src/{04-components → components}/data-display/avatar/avatar.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/badge/badge.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/card/card.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/data-list/data-list-visual.png +0 -0
- /package/src/{04-components → components}/data-display/data-list/data-list.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/icon/icon.api.json +0 -0
- /package/src/{04-components → components}/data-display/icon/icon.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/image/image-visual.png +0 -0
- /package/src/{04-components → components}/data-display/image/image.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/stat/stat-visual.png +0 -0
- /package/src/{04-components → components}/data-display/stat/stat.api.json +0 -0
- /package/src/{04-components → components}/data-display/stat/stat.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/status/status-visual.png +0 -0
- /package/src/{04-components → components}/data-display/status/status.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/table/table-visual.png +0 -0
- /package/src/{04-components → components}/data-display/table/table.api.json +0 -0
- /package/src/{04-components → components}/data-display/table/table.visual.spec.ts +0 -0
- /package/src/{04-components → components}/data-display/tag/tag.visual.spec.ts +0 -0
- /package/src/{04-components → components}/disclosure/accordion/accordion-visual.png +0 -0
- /package/src/{04-components → components}/disclosure/accordion/accordion.api.json +0 -0
- /package/src/{04-components → components}/disclosure/accordion/accordion.visual.spec.ts +0 -0
- /package/src/{04-components → components}/disclosure/disclosure/disclosure.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/alert/alert.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/progress/progress.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/progress-circle/progress-circle-visual.png +0 -0
- /package/src/{04-components → components}/feedback/progress-circle/progress-circle.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/skeleton/skeleton-visual.png +0 -0
- /package/src/{04-components → components}/feedback/skeleton/skeleton.api.json +0 -0
- /package/src/{04-components → components}/feedback/skeleton/skeleton.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/spinner/spinner-visual.png +0 -0
- /package/src/{04-components → components}/feedback/spinner/spinner.visual.spec.ts +0 -0
- /package/src/{04-components → components}/feedback/toast/toast-visual.png +0 -0
- /package/src/{04-components → components}/feedback/toast/toast.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/checkbox/checkbox-visual.png +0 -0
- /package/src/{04-components → components}/forms/checkbox/checkbox.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/checkbox-group/checkbox-group-visual.png +0 -0
- /package/src/{04-components → components}/forms/checkbox-group/checkbox-group.api.json +0 -0
- /package/src/{04-components → components}/forms/checkbox-group/checkbox-group.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/field/field-visual.png +0 -0
- /package/src/{04-components → components}/forms/field/field.api.json +0 -0
- /package/src/{04-components → components}/forms/field/field.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/fieldset/fieldset-visual.png +0 -0
- /package/src/{04-components → components}/forms/fieldset/fieldset.api.json +0 -0
- /package/src/{04-components → components}/forms/fieldset/fieldset.docs.json +0 -0
- /package/src/{04-components → components}/forms/fieldset/fieldset.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/form/form-visual.png +0 -0
- /package/src/{04-components → components}/forms/form/form.api.json +0 -0
- /package/src/{04-components → components}/forms/form/form.docs.json +0 -0
- /package/src/{04-components → components}/forms/form/form.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/form-error/form-error-visual.png +0 -0
- /package/src/{04-components → components}/forms/form-error/form-error.api.json +0 -0
- /package/src/{04-components → components}/forms/form-error/form-error.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/form-helper/form-helper-visual.png +0 -0
- /package/src/{04-components → components}/forms/form-helper/form-helper.api.json +0 -0
- /package/src/{04-components → components}/forms/form-helper/form-helper.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/input/input.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/label/label.api.json +0 -0
- /package/src/{04-components → components}/forms/label/label.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/radio/radio-visual.png +0 -0
- /package/src/{04-components → components}/forms/radio/radio.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/radio-group/radio-group-visual.png +0 -0
- /package/src/{04-components → components}/forms/radio-group/radio-group.api.json +0 -0
- /package/src/{04-components → components}/forms/radio-group/radio-group.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/search-input/search-input.api.json +0 -0
- /package/src/{04-components → components}/forms/search-input/search-input.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/select/select.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/slider/slider-visual.png +0 -0
- /package/src/{04-components → components}/forms/slider/slider.api.json +0 -0
- /package/src/{04-components → components}/forms/slider/slider.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/textarea/textarea-visual.png +0 -0
- /package/src/{04-components → components}/forms/textarea/textarea.visual.spec.ts +0 -0
- /package/src/{04-components → components}/forms/toggle/toggle.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/breadcrumb/breadcrumb-visual.png +0 -0
- /package/src/{04-components → components}/navigation/breadcrumb/breadcrumb.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/menu/menu-visual.png +0 -0
- /package/src/{04-components → components}/navigation/menu/menu.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/nav/nav-visual.png +0 -0
- /package/src/{04-components → components}/navigation/nav/nav.api.json +0 -0
- /package/src/{04-components → components}/navigation/nav/nav.docs.json +0 -0
- /package/src/{04-components → components}/navigation/nav/nav.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/pagination/pagination-visual.png +0 -0
- /package/src/{04-components → components}/navigation/pagination/pagination.visual.spec.ts +0 -0
- /package/src/{04-components → components}/navigation/tabs/tabs.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/dialog/dialog-visual.png +0 -0
- /package/src/{04-components → components}/overlays/dialog/dialog.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/drawer/drawer-visual.png +0 -0
- /package/src/{04-components → components}/overlays/drawer/drawer.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/modal/modal-visual.png +0 -0
- /package/src/{04-components → components}/overlays/modal/modal.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/overlay/overlay-visual.png +0 -0
- /package/src/{04-components → components}/overlays/overlay/overlay.api.json +0 -0
- /package/src/{04-components → components}/overlays/overlay/overlay.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/popover/popover-visual.png +0 -0
- /package/src/{04-components → components}/overlays/popover/popover.visual.spec.ts +0 -0
- /package/src/{04-components → components}/overlays/tooltip/tooltip-visual.png +0 -0
- /package/src/{04-components → components}/overlays/tooltip/tooltip.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/blockquote/blockquote-visual.png +0 -0
- /package/src/{04-components → components}/typography/blockquote/blockquote.api.json +0 -0
- /package/src/{04-components → components}/typography/blockquote/blockquote.docs.json +0 -0
- /package/src/{04-components → components}/typography/blockquote/blockquote.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/code/code.api.json +0 -0
- /package/src/{04-components → components}/typography/code/code.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/code-block/code-block-visual.png +0 -0
- /package/src/{04-components → components}/typography/code-block/code-block.api.json +0 -0
- /package/src/{04-components → components}/typography/code-block/code-block.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/heading/heading-visual.png +0 -0
- /package/src/{04-components → components}/typography/heading/heading.api.json +0 -0
- /package/src/{04-components → components}/typography/heading/heading.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/kbd/kbd-visual.png +0 -0
- /package/src/{04-components → components}/typography/kbd/kbd.api.json +0 -0
- /package/src/{04-components → components}/typography/kbd/kbd.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/link/link-visual.png +0 -0
- /package/src/{04-components → components}/typography/link/link.api.json +0 -0
- /package/src/{04-components → components}/typography/link/link.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/list/list-visual.png +0 -0
- /package/src/{04-components → components}/typography/list/list.visual.spec.ts +0 -0
- /package/src/{04-components → components}/typography/mark/mark-visual.png +0 -0
- /package/src/{04-components → components}/typography/mark/mark.api.json +0 -0
- /package/src/{04-components → components}/typography/mark/mark.docs.json +0 -0
- /package/src/{04-components → components}/typography/mark/mark.visual.spec.ts +0 -0
- /package/src/{00-config → config}/layers/layers.scss +0 -0
- /package/src/{00-config → config}/tokens/index.scss +0 -0
- /package/src/{00-config → config}/tokens/input.scss +0 -0
- /package/src/{00-config → config}/tokens/motion/index.scss +0 -0
- /package/src/{00-config → config}/tokens/zindex/index.scss +0 -0
- /package/src/{99-debug → debug}/index.scss +0 -0
- /package/src/{03-layout → layout}/app-shell/app-shell.api.json +0 -0
- /package/src/{03-layout → layout}/app-shell/index.scss +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/aspect-ratio-visual.png +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.api.json +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/aspect-ratio.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/aspect-ratio/index.scss +0 -0
- /package/src/{03-layout → layout}/box/box.api.json +0 -0
- /package/src/{03-layout → layout}/center/center.api.json +0 -0
- /package/src/{03-layout → layout}/center/center.docs.json +0 -0
- /package/src/{03-layout → layout}/center/index.scss +0 -0
- /package/src/{03-layout → layout}/container/container.api.json +0 -0
- /package/src/{03-layout → layout}/content/content-visual.png +0 -0
- /package/src/{03-layout → layout}/content/content.api.json +0 -0
- /package/src/{03-layout → layout}/content/content.docs.json +0 -0
- /package/src/{03-layout → layout}/content/content.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/footer/footer-visual.png +0 -0
- /package/src/{03-layout → layout}/footer/footer.api.json +0 -0
- /package/src/{03-layout → layout}/footer/footer.docs.json +0 -0
- /package/src/{03-layout → layout}/footer/footer.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/footer/index.scss +0 -0
- /package/src/{03-layout → layout}/grid/grid.api.json +0 -0
- /package/src/{03-layout → layout}/grid/grid.docs.json +0 -0
- /package/src/{03-layout → layout}/grid/index.scss +0 -0
- /package/src/{03-layout → layout}/main/main.api.json +0 -0
- /package/src/{03-layout → layout}/nav-rail/index.scss +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail-visual.png +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail.api.json +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail.docs.json +0 -0
- /package/src/{03-layout → layout}/nav-rail/nav-rail.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/page-header/index.scss +0 -0
- /package/src/{03-layout → layout}/page-header/page-header-visual.png +0 -0
- /package/src/{03-layout → layout}/page-header/page-header.api.json +0 -0
- /package/src/{03-layout → layout}/page-header/page-header.docs.json +0 -0
- /package/src/{03-layout → layout}/page-header/page-header.visual.spec.ts +0 -0
- /package/src/{03-layout/cluster/cluster-visual.png → layout/row/row-visual.png} +0 -0
- /package/src/{03-layout → layout}/sidebar/sidebar-visual.png +0 -0
- /package/src/{03-layout → layout}/sidebar/sidebar.api.json +0 -0
- /package/src/{03-layout → layout}/sidebar/sidebar.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/sidebar-nav/sidebar-nav.api.json +0 -0
- /package/src/{03-layout → layout}/sidebar-nav/sidebar-nav.visual.spec.ts +0 -0
- /package/src/{03-layout → layout}/topbar/topbar-visual.png +0 -0
- /package/src/{03-layout → layout}/topbar/topbar.api.json +0 -0
- /package/src/{03-layout → layout}/topbar/topbar.docs.json +0 -0
- /package/src/{03-layout → layout}/topbar/topbar.visual.spec.ts +0 -0
- /package/src/{01-reset → reset}/index.scss +0 -0
- /package/src/{01-reset → reset}/reset.scss +0 -0
- /package/src/{05-utilities → utilities}/display/display.api.json +0 -0
- /package/src/{05-utilities → utilities}/display/display.docs.json +0 -0
- /package/src/{05-utilities → utilities}/index.scss +0 -0
- /package/src/{05-utilities → utilities}/spacing/spacing.api.json +0 -0
- /package/src/{05-utilities → utilities}/text/text.api.json +0 -0
- /package/src/{05-utilities → utilities}/text/text.scss +0 -0
- /package/src/{05-utilities → utilities}/view-transition/index.scss +0 -0
- /package/src/{05-utilities → utilities}/view-transition/view-transition.api.json +0 -0
- /package/src/{05-utilities → utilities}/view-transition/view-transition.docs.json +0 -0
- /package/src/{05-utilities → utilities}/visually-hidden/visually-hidden.api.json +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--unit: 8px; /* 8px */
|
|
3
|
-
--ui-row: calc(var(--unit) * 2);
|
|
4
|
-
|
|
5
|
-
--ui-row-1: var(--ui-row);
|
|
6
|
-
--ui-row-2: calc(var(--ui-row) * 2);
|
|
7
|
-
--ui-row-3: calc(var(--ui-row) * 3);
|
|
8
|
-
--ui-row-4: calc(var(--ui-row) * 4);
|
|
9
|
-
--ui-row-5: calc(var(--ui-row) * 5);
|
|
10
|
-
--ui-row-6: calc(var(--ui-row) * 6);
|
|
11
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--ui-color-text: var(--ui-color-neutral-900);
|
|
3
|
-
--ui-color-text-muted: var(--ui-color-neutral-500);
|
|
4
|
-
--ui-color-text-inverse: var(--ui-color-neutral-50);
|
|
5
|
-
|
|
6
|
-
--ui-color-bg: var(--ui-color-neutral-50);
|
|
7
|
-
--ui-color-bg-subtle: var(--ui-color-neutral-100);
|
|
8
|
-
--ui-color-bg-muted: var(--ui-color-neutral-200);
|
|
9
|
-
|
|
10
|
-
--ui-color-border: var(--ui-color-neutral-200);
|
|
11
|
-
--ui-color-border-strong: var(--ui-color-neutral-300);
|
|
12
|
-
|
|
13
|
-
--ui-color-interactive: var(--ui-color-primary);
|
|
14
|
-
--ui-color-interactive-hover: var(--ui-color-primary-dark);
|
|
15
|
-
|
|
16
|
-
--ui-color-focus: var(--ui-color-primary-light);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-theme="dark"] {
|
|
20
|
-
--ui-color-text: var(--ui-color-neutral-100);
|
|
21
|
-
--ui-color-text-muted: var(--ui-color-neutral-400);
|
|
22
|
-
--ui-color-text-inverse: var(--ui-color-neutral-900);
|
|
23
|
-
|
|
24
|
-
--ui-color-bg: var(--ui-color-neutral-900);
|
|
25
|
-
--ui-color-bg-subtle: var(--ui-color-neutral-800);
|
|
26
|
-
--ui-color-bg-muted: var(--ui-color-neutral-700);
|
|
27
|
-
|
|
28
|
-
--ui-color-border: var(--ui-color-neutral-700);
|
|
29
|
-
--ui-color-border-strong: var(--ui-color-neutral-600);
|
|
30
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--spacing-xs: var(--ui-space-1);
|
|
3
|
-
--spacing-sm: var(--ui-space-2);
|
|
4
|
-
--spacing-md: var(--ui-space-4);
|
|
5
|
-
--spacing-lg: var(--ui-space-6);
|
|
6
|
-
--spacing-xl: var(--ui-space-8);
|
|
7
|
-
|
|
8
|
-
--spacing-gutter: var(--ui-space-4);
|
|
9
|
-
--spacing-section: var(--ui-space-8);
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
// Micro spacing
|
|
3
|
-
--ui-space-px: calc(var(--unit) * 0.125); // 1px
|
|
4
|
-
--ui-space-quarter: calc(var(--unit) * 0.25); // 2px
|
|
5
|
-
--ui-space-half: calc(var(--unit) * 0.5); // 4px
|
|
6
|
-
--ui-space-0: calc(var(--unit) * 0.5); // 4px (alias)
|
|
7
|
-
|
|
8
|
-
// Standard spacing
|
|
9
|
-
--ui-space-1: var(--unit); // 8px
|
|
10
|
-
--ui-space-2: calc(var(--unit) * 2); // 16px
|
|
11
|
-
--ui-space-3: calc(var(--unit) * 3); // 24px
|
|
12
|
-
--ui-space-4: calc(var(--unit) * 4); // 32px
|
|
13
|
-
--ui-space-6: calc(var(--unit) * 6); // 48px
|
|
14
|
-
--ui-space-8: calc(var(--unit) * 8); // 64px
|
|
15
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "theming",
|
|
3
|
-
"type": "guide",
|
|
4
|
-
"title": "Theming",
|
|
5
|
-
"description": "Customize the design system with CSS custom properties",
|
|
6
|
-
"skipValidation": true,
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Brand Colors",
|
|
10
|
-
"description": "Change the entire color palette by adjusting hue values",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"title": "Default (Blue)",
|
|
14
|
-
"html": "<div class=\"theme-demo\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
15
|
-
"code": ":root {\n --ui-hue-primary: 220; /* Blue */\n}"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"title": "Purple Theme",
|
|
19
|
-
"html": "<div class=\"theme-demo theme-purple\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
20
|
-
"code": ".theme-purple {\n --ui-hue-primary: 270; /* Purple */\n}"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"title": "Teal Theme",
|
|
24
|
-
"html": "<div class=\"theme-demo theme-teal\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
25
|
-
"code": ".theme-teal {\n --ui-hue-primary: 180; /* Teal */\n}"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"title": "Orange Theme",
|
|
29
|
-
"html": "<div class=\"theme-demo theme-orange\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
30
|
-
"code": ".theme-orange {\n --ui-hue-primary: 25; /* Orange */\n}"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"title": "Dark Mode",
|
|
36
|
-
"description": "Toggle dark mode with data-theme attribute",
|
|
37
|
-
"examples": [
|
|
38
|
-
{
|
|
39
|
-
"title": "Light Mode",
|
|
40
|
-
"html": "<div class=\"theme-demo\"><div class=\"ui-card\"><p>Light mode card</p></div></div>",
|
|
41
|
-
"code": "<html>\n <!-- Light mode (default) -->\n</html>"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"title": "Dark Mode",
|
|
45
|
-
"html": "<div class=\"theme-demo\" data-theme=\"dark\"><div class=\"ui-card\"><p>Dark mode card</p></div></div>",
|
|
46
|
-
"code": "<html data-theme=\"dark\">\n <!-- Dark mode enabled -->\n</html>"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"title": "Component Overrides",
|
|
52
|
-
"description": "Override specific component tokens",
|
|
53
|
-
"examples": [
|
|
54
|
-
{
|
|
55
|
-
"title": "Custom Button Height",
|
|
56
|
-
"html": "<div class=\"theme-demo custom-buttons\"><button class=\"ui-button ui-button--sm\">Small</button><button class=\"ui-button\">Default</button><button class=\"ui-button ui-button--lg\">Large</button></div>",
|
|
57
|
-
"code": ".custom-buttons {\n --ui-button-height-sm: 24px;\n --ui-button-height: 40px;\n --ui-button-height-lg: 56px;\n}"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"title": "Custom Card Padding",
|
|
61
|
-
"html": "<div class=\"theme-demo custom-cards\"><div class=\"ui-card\"><p>Card with custom padding</p></div></div>",
|
|
62
|
-
"code": ".custom-cards {\n --ui-card-padding: var(--ui-space-4);\n}"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"title": "Full Theme Example",
|
|
68
|
-
"description": "Complete theme customization",
|
|
69
|
-
"examples": [
|
|
70
|
-
{
|
|
71
|
-
"html": "<div class=\"theme-demo theme-corporate\"><button class=\"ui-button\">Action</button><div class=\"ui-card\"><p>Corporate theme with teal accent and sharp corners</p></div></div>",
|
|
72
|
-
"code": ".theme-corporate {\n /* Brand hue */\n --ui-hue-primary: 180;\n\n /* Sharper corners */\n --ui-radius-sm: 2px;\n --ui-radius-md: 4px;\n --ui-radius-lg: 6px;\n\n /* Tighter spacing */\n --ui-space-1: 12px;\n --ui-space-2: 24px;\n}"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
// Font families — system font stack, override with custom fonts via these tokens
|
|
3
|
-
--ui-font-sans: system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
|
|
4
|
-
--ui-font-mono: ui-monospace, sfmono-regular, "SF Mono", menlo, consolas, "Liberation Mono", monospace;
|
|
5
|
-
|
|
6
|
-
// ==========================================================================
|
|
7
|
-
// PRIMITIVE TOKENS - Font Size Scale
|
|
8
|
-
// Modular scale: 1.2 ratio (Minor Third), base 16px
|
|
9
|
-
// ==========================================================================
|
|
10
|
-
--ui-font-size-xs: 0.75rem;
|
|
11
|
-
--ui-font-size-sm: 0.875rem;
|
|
12
|
-
--ui-font-size-md: 1rem;
|
|
13
|
-
--ui-font-size-lg: 1.25rem;
|
|
14
|
-
--ui-font-size-xl: 1.5rem;
|
|
15
|
-
--ui-font-size-2xl: 1.75rem;
|
|
16
|
-
--ui-font-size-3xl: 2rem;
|
|
17
|
-
--ui-font-size-4xl: 2.5rem;
|
|
18
|
-
|
|
19
|
-
// ==========================================================================
|
|
20
|
-
// PRIMITIVE TOKENS - Line Heights (8px grid-snap)
|
|
21
|
-
// Two modes: normal (for body text) and tight (for UI/forms)
|
|
22
|
-
// ==========================================================================
|
|
23
|
-
|
|
24
|
-
// Tight line-heights for compact UI elements
|
|
25
|
-
--ui-leading-tight-xs: var(--ui-row-1);
|
|
26
|
-
--ui-leading-tight-sm: var(--ui-row-1);
|
|
27
|
-
--ui-leading-tight-md: calc(var(--unit) * 3);
|
|
28
|
-
--ui-leading-tight-lg: calc(var(--unit) * 3);
|
|
29
|
-
|
|
30
|
-
// Normal line-heights for readable body text
|
|
31
|
-
--ui-leading-xs: var(--ui-row-1);
|
|
32
|
-
--ui-leading-sm: calc(var(--unit) * 3);
|
|
33
|
-
--ui-leading-md: calc(var(--unit) * 3);
|
|
34
|
-
--ui-leading-lg: var(--ui-row-2);
|
|
35
|
-
--ui-leading-xl: var(--ui-row-2);
|
|
36
|
-
--ui-leading-2xl: var(--ui-row-2);
|
|
37
|
-
--ui-leading-3xl: calc(var(--unit) * 5);
|
|
38
|
-
--ui-leading-4xl: calc(var(--unit) * 6);
|
|
39
|
-
|
|
40
|
-
// ==========================================================================
|
|
41
|
-
// PRIMITIVE TOKENS - Font Weights
|
|
42
|
-
// ==========================================================================
|
|
43
|
-
--ui-weight-normal: 400;
|
|
44
|
-
--ui-weight-medium: 500;
|
|
45
|
-
--ui-weight-semibold: 600;
|
|
46
|
-
--ui-weight-bold: 700;
|
|
47
|
-
|
|
48
|
-
// ==========================================================================
|
|
49
|
-
// PRIMITIVE TOKENS - Letter Spacing
|
|
50
|
-
// ==========================================================================
|
|
51
|
-
--ui-tracking-display: -0.02em;
|
|
52
|
-
--ui-tracking-body: 0;
|
|
53
|
-
--ui-tracking-caps: 0.08em;
|
|
54
|
-
|
|
55
|
-
// ==========================================================================
|
|
56
|
-
// SEMANTIC TOKENS - Text Roles
|
|
57
|
-
// ==========================================================================
|
|
58
|
-
|
|
59
|
-
// Heading 1
|
|
60
|
-
--ui-heading-1-size: var(--ui-font-size-4xl);
|
|
61
|
-
--ui-heading-1-line-height: var(--ui-leading-4xl);
|
|
62
|
-
--ui-heading-1-weight: var(--ui-weight-bold);
|
|
63
|
-
--ui-heading-1-tracking: var(--ui-tracking-display);
|
|
64
|
-
|
|
65
|
-
// Heading 2
|
|
66
|
-
--ui-heading-2-size: var(--ui-font-size-3xl);
|
|
67
|
-
--ui-heading-2-line-height: var(--ui-leading-3xl);
|
|
68
|
-
--ui-heading-2-weight: var(--ui-weight-bold);
|
|
69
|
-
--ui-heading-2-tracking: -0.01em;
|
|
70
|
-
|
|
71
|
-
// Heading 3
|
|
72
|
-
--ui-heading-3-size: var(--ui-font-size-2xl);
|
|
73
|
-
--ui-heading-3-line-height: var(--ui-leading-2xl);
|
|
74
|
-
--ui-heading-3-weight: var(--ui-weight-semibold);
|
|
75
|
-
--ui-heading-3-tracking: var(--ui-tracking-body);
|
|
76
|
-
|
|
77
|
-
// Heading 4
|
|
78
|
-
--ui-heading-4-size: var(--ui-font-size-xl);
|
|
79
|
-
--ui-heading-4-line-height: var(--ui-leading-xl);
|
|
80
|
-
--ui-heading-4-weight: var(--ui-weight-semibold);
|
|
81
|
-
--ui-heading-4-tracking: var(--ui-tracking-body);
|
|
82
|
-
|
|
83
|
-
// Heading 5
|
|
84
|
-
--ui-heading-5-size: var(--ui-font-size-lg);
|
|
85
|
-
--ui-heading-5-line-height: var(--ui-leading-sm);
|
|
86
|
-
--ui-heading-5-weight: var(--ui-weight-medium);
|
|
87
|
-
--ui-heading-5-tracking: var(--ui-tracking-body);
|
|
88
|
-
|
|
89
|
-
// Body
|
|
90
|
-
--ui-body-size: var(--ui-font-size-md);
|
|
91
|
-
--ui-body-line-height: var(--ui-leading-md);
|
|
92
|
-
--ui-body-weight: var(--ui-weight-normal);
|
|
93
|
-
--ui-body-tracking: var(--ui-tracking-body);
|
|
94
|
-
|
|
95
|
-
// Body Small
|
|
96
|
-
--ui-body-sm-size: var(--ui-font-size-sm);
|
|
97
|
-
--ui-body-sm-line-height: var(--ui-leading-sm);
|
|
98
|
-
--ui-body-sm-weight: var(--ui-weight-normal);
|
|
99
|
-
--ui-body-sm-tracking: var(--ui-tracking-body);
|
|
100
|
-
|
|
101
|
-
// Caption
|
|
102
|
-
--ui-caption-size: var(--ui-font-size-xs);
|
|
103
|
-
--ui-caption-line-height: var(--ui-leading-xs);
|
|
104
|
-
--ui-caption-weight: var(--ui-weight-normal);
|
|
105
|
-
--ui-caption-tracking: 0.01em;
|
|
106
|
-
|
|
107
|
-
// Lead
|
|
108
|
-
--ui-lead-size: var(--ui-font-size-lg);
|
|
109
|
-
--ui-lead-line-height: var(--ui-leading-lg);
|
|
110
|
-
--ui-lead-weight: var(--ui-weight-normal);
|
|
111
|
-
--ui-lead-tracking: var(--ui-tracking-body);
|
|
112
|
-
|
|
113
|
-
// Eyebrow
|
|
114
|
-
--ui-eyebrow-size: var(--ui-font-size-xs);
|
|
115
|
-
--ui-eyebrow-line-height: var(--ui-leading-xs);
|
|
116
|
-
--ui-eyebrow-weight: var(--ui-weight-semibold);
|
|
117
|
-
--ui-eyebrow-tracking: var(--ui-tracking-caps);
|
|
118
|
-
|
|
119
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "typography",
|
|
3
|
-
"type": "token",
|
|
4
|
-
"title": "Typography",
|
|
5
|
-
"description": "Modular scale (1.2 ratio) with 8px grid-snapped line-heights. Responsive breakpoints at 730px and 1080px adjust heading sizes.",
|
|
6
|
-
"skipValidation": true,
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Type Scale",
|
|
10
|
-
"description": "Font sizes follow a 1.2 (Minor Third) modular scale from 12px to 40px. All line-heights snap to 8px multiples.",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"html": "<table class=\"ui-table\"><thead><tr><th>Token</th><th>Size</th><th>Line-height</th></tr></thead><tbody><tr><td><code>--ui-font-size-xs</code></td><td>12px</td><td>16px</td></tr><tr><td><code>--ui-font-size-sm</code></td><td>14px</td><td>24px</td></tr><tr><td><code>--ui-font-size-md</code></td><td>16px</td><td>24px</td></tr><tr><td><code>--ui-font-size-lg</code></td><td>20px</td><td>32px</td></tr><tr><td><code>--ui-font-size-xl</code></td><td>24px</td><td>32px</td></tr><tr><td><code>--ui-font-size-2xl</code></td><td>28px</td><td>32px</td></tr><tr><td><code>--ui-font-size-3xl</code></td><td>32px</td><td>40px</td></tr><tr><td><code>--ui-font-size-4xl</code></td><td>40px</td><td>48px</td></tr></tbody></table>"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"title": "Headings",
|
|
19
|
-
"description": "Headings use semantic tokens and adjust size at breakpoints.",
|
|
20
|
-
"examples": [
|
|
21
|
-
{
|
|
22
|
-
"items": [
|
|
23
|
-
{ "tag": "h1", "text": "Heading 1 - 40px / 48px" },
|
|
24
|
-
{ "tag": "h2", "text": "Heading 2 - 32px / 40px" },
|
|
25
|
-
{ "tag": "h3", "text": "Heading 3 - 28px / 32px" },
|
|
26
|
-
{ "tag": "h4", "text": "Heading 4 - 24px / 32px" },
|
|
27
|
-
{ "tag": "h5", "text": "Heading 5 - 20px / 24px" }
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"title": "Body Text",
|
|
34
|
-
"description": "Default body text at 16px with 24px line-height (1.5x ratio).",
|
|
35
|
-
"examples": [
|
|
36
|
-
{
|
|
37
|
-
"html": "<p>Body text at 16px with 24px line-height. The <strong>bold text</strong> and <code>inline code</code> maintain the same rhythm.</p>\n<p class=\"ui-text-body-sm\">Body small at 14px with 24px line-height for secondary text.</p>"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"title": "Text Roles",
|
|
43
|
-
"description": "Semantic text styles for specific use cases.",
|
|
44
|
-
"examples": [
|
|
45
|
-
{
|
|
46
|
-
"html": "<p class=\"ui-text-lead\">Lead paragraph - 20px / 32px. Use for opening paragraphs or article intros.</p>"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"html": "<p class=\"ui-text-eyebrow\">Eyebrow text</p>\n<h2>Related Heading</h2>",
|
|
50
|
-
"description": "Eyebrow - 12px uppercase with wide tracking. Use above headings for categorization."
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"html": "<p class=\"ui-text-caption\">Caption text - 12px / 16px. Use for labels, hints, and metadata.</p>"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"title": "Font Weights",
|
|
59
|
-
"description": "Four weight levels for hierarchy.",
|
|
60
|
-
"examples": [
|
|
61
|
-
{
|
|
62
|
-
"html": "<p class=\"ui-font-normal\">Normal (400) - Body text</p>\n<p class=\"ui-font-medium\">Medium (500) - Labels, small headings</p>\n<p class=\"ui-font-semibold\">Semibold (600) - Subheadings</p>\n<p class=\"ui-font-bold\">Bold (700) - Headlines, emphasis</p>"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"title": "Letter Spacing",
|
|
68
|
-
"description": "Three tracking options based on use case.",
|
|
69
|
-
"examples": [
|
|
70
|
-
{
|
|
71
|
-
"html": "<p class=\"ui-text-3xl ui-tracking-display\">Display tracking (-0.02em)</p>\n<p>Body tracking (0) - default</p>\n<p class=\"ui-text-eyebrow\">Caps tracking (+0.08em)</p>"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"title": "Line Length",
|
|
77
|
-
"description": "Constrain text width for optimal readability (45-75 characters).",
|
|
78
|
-
"examples": [
|
|
79
|
-
{
|
|
80
|
-
"html": "<div class=\"ui-prose\"><p>This paragraph is constrained to 65ch max-width for optimal reading comfort. Long lines of text are harder to read because the eye has difficulty tracking back to the start of the next line.</p></div>"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"title": "Responsive Behavior",
|
|
86
|
-
"description": "Headings scale down on mobile (<730px) and up on desktop (>1080px).",
|
|
87
|
-
"examples": [
|
|
88
|
-
{
|
|
89
|
-
"html": "<table class=\"ui-table\"><thead><tr><th>Heading</th><th>Mobile</th><th>Default</th><th>Desktop</th></tr></thead><tbody><tr><td>h1</td><td>28px</td><td>40px</td><td>48px</td></tr><tr><td>h2</td><td>24px</td><td>32px</td><td>40px</td></tr><tr><td>h3</td><td>20px</td><td>28px</td><td>28px</td></tr><tr><td>h4</td><td>18px</td><td>24px</td><td>24px</td></tr></tbody></table>"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "box",
|
|
3
|
-
"type": "primitive",
|
|
4
|
-
"title": "Box",
|
|
5
|
-
"description": "Base container with style props. Foundation for layout primitives.",
|
|
6
|
-
"api": "box.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"html": "<div class=\"ui-box\">Content</div>",
|
|
13
|
-
"code": "<div class=\"ui-box\">Content</div>"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"title": "Padding",
|
|
19
|
-
"examples": [
|
|
20
|
-
{
|
|
21
|
-
"layout": "stack",
|
|
22
|
-
"html": "<div class=\"ui-box ui-box--p-1 ui-box--bg-subtle\">Padding 1</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Padding 2</div><div class=\"ui-box ui-box--p-3 ui-box--bg-subtle\">Padding 3</div><div class=\"ui-box ui-box--p-4 ui-box--bg-subtle\">Padding 4</div>",
|
|
23
|
-
"code": "<div class=\"ui-box ui-box--p-1\">...</div>\n<div class=\"ui-box ui-box--p-2\">...</div>\n<div class=\"ui-box ui-box--p-3\">...</div>\n<div class=\"ui-box ui-box--p-4\">...</div>"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"title": "Background",
|
|
29
|
-
"examples": [
|
|
30
|
-
{
|
|
31
|
-
"layout": "stack",
|
|
32
|
-
"html": "<div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Subtle background</div><div class=\"ui-box ui-box--p-2 ui-box--bg-muted\">Muted background</div>",
|
|
33
|
-
"code": "<div class=\"ui-box ui-box--bg-subtle\">...</div>\n<div class=\"ui-box ui-box--bg-muted\">...</div>"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"title": "Rounded",
|
|
39
|
-
"examples": [
|
|
40
|
-
{
|
|
41
|
-
"layout": "cluster",
|
|
42
|
-
"html": "<div class=\"ui-box ui-box--p-3 ui-box--bg-subtle ui-box--rounded\">Rounded</div><div class=\"ui-box ui-box--p-3 ui-box--bg-subtle ui-box--rounded-lg\">Rounded lg</div>",
|
|
43
|
-
"code": "<div class=\"ui-box ui-box--rounded\">...</div>\n<div class=\"ui-box ui-box--rounded-lg\">...</div>"
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"title": "Custom via CSS Variables",
|
|
49
|
-
"examples": [
|
|
50
|
-
{
|
|
51
|
-
"html": "<div class=\"ui-box\" style=\"--box-padding: var(--ui-space-3); --box-bg: var(--ui-color-primary); --box-color: white; --box-radius: var(--ui-radius-lg);\">Custom box</div>",
|
|
52
|
-
"code": "<div class=\"ui-box\" style=\"--box-padding: ...; --box-bg: ...;\">...</div>"
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@layer primitives {
|
|
2
|
-
.cluster {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
align-items: center;
|
|
6
|
-
gap: var(--cluster-gap, var(--ui-space-2));
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cluster--xs { --cluster-gap: var(--ui-space-1); }
|
|
10
|
-
.cluster--sm { --cluster-gap: var(--ui-space-2); }
|
|
11
|
-
.cluster--md { --cluster-gap: var(--ui-space-4); }
|
|
12
|
-
.cluster--lg { --cluster-gap: var(--ui-space-6); }
|
|
13
|
-
|
|
14
|
-
.cluster--start { justify-content: flex-start; }
|
|
15
|
-
.cluster--center { justify-content: center; }
|
|
16
|
-
.cluster--end { justify-content: flex-end; }
|
|
17
|
-
.cluster--between { justify-content: space-between; }
|
|
18
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@layer primitives {
|
|
2
|
-
.container {
|
|
3
|
-
max-inline-size: var(--container-width, calc(var(--unit) * 120));
|
|
4
|
-
padding-inline: var(--ui-space-4);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.container--center {
|
|
8
|
-
margin-inline: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* Size modifiers */
|
|
12
|
-
.container--sm { --container-width: calc(var(--unit) * 80); }
|
|
13
|
-
.container--md { --container-width: calc(var(--unit) * 100); }
|
|
14
|
-
.container--lg { --container-width: calc(var(--unit) * 120); }
|
|
15
|
-
.container--xl { --container-width: calc(var(--unit) * 160); }
|
|
16
|
-
.container--full { max-inline-size: none; }
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "flex",
|
|
3
|
-
"element": "div",
|
|
4
|
-
"modifiers": {
|
|
5
|
-
"row": { "type": "boolean" },
|
|
6
|
-
"col": { "type": "boolean" },
|
|
7
|
-
"wrap": { "type": "boolean" },
|
|
8
|
-
"items-center": { "type": "boolean" },
|
|
9
|
-
"justify-between": { "type": "boolean" },
|
|
10
|
-
"gap-1": { "type": "boolean" },
|
|
11
|
-
"gap-2": { "type": "boolean" },
|
|
12
|
-
"gap-4": { "type": "boolean" }
|
|
13
|
-
},
|
|
14
|
-
"cssVars": []
|
|
15
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "flex",
|
|
3
|
-
"type": "primitive",
|
|
4
|
-
"title": "Flex",
|
|
5
|
-
"description": "Flexbox layout container with direction, wrap, gap, and alignment controls.",
|
|
6
|
-
"api": "flex.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"html": "<div class=\"ui-flex\"><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">A</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">B</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">C</div></div>",
|
|
13
|
-
"code": "<div class=\"ui-flex\">\n <div>A</div>\n <div>B</div>\n <div>C</div>\n</div>"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"title": "Direction",
|
|
19
|
-
"examples": [
|
|
20
|
-
{
|
|
21
|
-
"layout": "stack",
|
|
22
|
-
"html": "<div class=\"ui-flex ui-flex--row\"><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Row</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Row</div></div><div class=\"ui-flex ui-flex--col\"><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Column</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Column</div></div>",
|
|
23
|
-
"code": "<div class=\"ui-flex ui-flex--row\">...</div>\n<div class=\"ui-flex ui-flex--col\">...</div>"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"title": "Alignment",
|
|
29
|
-
"examples": [
|
|
30
|
-
{
|
|
31
|
-
"html": "<div class=\"ui-flex ui-flex--items-center ui-flex--justify-between\" style=\"min-height: 80px; background: var(--ui-color-bg-subtle);\"><div class=\"ui-box ui-box--p-2 ui-box--bg-muted\">Start</div><div class=\"ui-box ui-box--p-2 ui-box--bg-muted\">Center</div><div class=\"ui-box ui-box--p-2 ui-box--bg-muted\">End</div></div>",
|
|
32
|
-
"code": "<div class=\"ui-flex ui-flex--items-center ui-flex--justify-between\">\n ...\n</div>"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"title": "Gap",
|
|
38
|
-
"examples": [
|
|
39
|
-
{
|
|
40
|
-
"layout": "stack",
|
|
41
|
-
"html": "<div class=\"ui-flex ui-flex--gap-1\"><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Gap 1</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Gap 1</div></div><div class=\"ui-flex ui-flex--gap-4\"><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Gap 4</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Gap 4</div></div>",
|
|
42
|
-
"code": "<div class=\"ui-flex ui-flex--gap-1\">...</div>\n<div class=\"ui-flex ui-flex--gap-4\">...</div>"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"title": "Wrap",
|
|
48
|
-
"examples": [
|
|
49
|
-
{
|
|
50
|
-
"html": "<div class=\"ui-flex ui-flex--wrap ui-flex--gap-2\" style=\"max-width: 200px;\"><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Wrap</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Wrap</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Wrap</div><div class=\"ui-box ui-box--p-2 ui-box--bg-subtle\">Wrap</div></div>",
|
|
51
|
-
"code": "<div class=\"ui-flex ui-flex--wrap\">...</div>"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
@use '../../00-config/tokens/variables' as t;
|
|
2
|
-
|
|
3
|
-
// Flex - flexbox layout container
|
|
4
|
-
// Generic flexbox with direction, wrap, gap, alignment
|
|
5
|
-
|
|
6
|
-
@layer primitives {
|
|
7
|
-
.flex {
|
|
8
|
-
--_gap: var(--flex-gap, var(--ui-space-2, #{t.$space-2}));
|
|
9
|
-
--_direction: var(--flex-direction, row);
|
|
10
|
-
--_wrap: var(--flex-wrap, nowrap);
|
|
11
|
-
--_align: var(--flex-align, stretch);
|
|
12
|
-
--_justify: var(--flex-justify, flex-start);
|
|
13
|
-
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: var(--_direction);
|
|
16
|
-
flex-wrap: var(--_wrap);
|
|
17
|
-
align-items: var(--_align);
|
|
18
|
-
justify-content: var(--_justify);
|
|
19
|
-
gap: var(--_gap);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Direction modifiers
|
|
23
|
-
.flex--row { --_direction: row; }
|
|
24
|
-
.flex--col { --_direction: column; }
|
|
25
|
-
.flex--row-reverse { --_direction: row-reverse; }
|
|
26
|
-
.flex--col-reverse { --_direction: column-reverse; }
|
|
27
|
-
|
|
28
|
-
// Wrap modifiers
|
|
29
|
-
.flex--wrap { --_wrap: wrap; }
|
|
30
|
-
.flex--nowrap { --_wrap: nowrap; }
|
|
31
|
-
|
|
32
|
-
// Alignment modifiers
|
|
33
|
-
.flex--items-start { --_align: flex-start; }
|
|
34
|
-
.flex--items-center { --_align: center; }
|
|
35
|
-
.flex--items-end { --_align: flex-end; }
|
|
36
|
-
.flex--items-baseline { --_align: baseline; }
|
|
37
|
-
|
|
38
|
-
// Justify modifiers
|
|
39
|
-
.flex--justify-start { --_justify: flex-start; }
|
|
40
|
-
.flex--justify-center { --_justify: center; }
|
|
41
|
-
.flex--justify-end { --_justify: flex-end; }
|
|
42
|
-
.flex--justify-between { --_justify: space-between; }
|
|
43
|
-
.flex--justify-around { --_justify: space-around; }
|
|
44
|
-
|
|
45
|
-
// Gap modifiers
|
|
46
|
-
.flex--gap-0 { --_gap: 0; }
|
|
47
|
-
.flex--gap-1 { --_gap: var(--ui-space-1, #{t.$space-1}); }
|
|
48
|
-
.flex--gap-2 { --_gap: var(--ui-space-2, #{t.$space-2}); }
|
|
49
|
-
.flex--gap-3 { --_gap: var(--ui-space-3, #{t.$space-3}); }
|
|
50
|
-
.flex--gap-4 { --_gap: var(--ui-space-4, #{t.$space-4}); }
|
|
51
|
-
}
|
|
Binary file
|