@teseor/css 1.14.2 → 1.15.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/package.json +1 -1
- package/src/base/root.docs.html +20 -0
- package/src/base/typography/typography.docs.html +161 -0
- package/src/components/actions/button/button.docs.html +76 -0
- package/src/components/actions/button/button.visual.spec.ts +7 -3
- package/src/components/actions/button-group/button-group.docs.html +47 -0
- package/src/components/actions/button-group/button-group.visual.spec.ts +7 -3
- package/src/components/actions/close-button/close-button.docs.html +77 -0
- package/src/components/actions/close-button/close-button.visual.spec.ts +7 -3
- package/src/components/content/divider/divider.docs.html +27 -0
- package/src/components/content/divider/divider.visual.spec.ts +7 -3
- package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
- package/src/components/content/scroll-area/scroll-area.docs.html +130 -0
- package/src/components/content/scroll-area/scroll-area.visual.spec.ts +7 -3
- package/src/components/content/spacer/spacer.docs.html +23 -0
- package/src/components/content/spacer/spacer.visual.spec.ts +3 -3
- package/src/components/data-display/avatar/avatar.docs.html +67 -0
- package/src/components/data-display/avatar/avatar.visual.spec.ts +7 -3
- package/src/components/data-display/badge/badge.docs.html +39 -0
- package/src/components/data-display/badge/badge.visual.spec.ts +7 -3
- package/src/components/data-display/card/card-visual.png +0 -0
- package/src/components/data-display/card/card.docs.html +36 -0
- package/src/components/data-display/card/card.visual.spec.ts +7 -3
- package/src/components/data-display/data-list/data-list-visual.png +0 -0
- package/src/components/data-display/data-list/data-list.docs.html +97 -0
- package/src/components/data-display/data-list/data-list.visual.spec.ts +7 -3
- package/src/components/data-display/icon/icon.docs.html +72 -0
- package/src/components/data-display/icon/icon.visual.spec.ts +7 -3
- package/src/components/data-display/image/image-visual.png +0 -0
- package/src/components/data-display/image/image.docs.html +67 -0
- package/src/components/data-display/image/image.visual.spec.ts +7 -3
- package/src/components/data-display/stat/stat.docs.html +35 -0
- package/src/components/data-display/stat/stat.visual.spec.ts +7 -3
- package/src/components/data-display/status/status.docs.html +67 -0
- package/src/components/data-display/status/status.visual.spec.ts +7 -3
- package/src/components/data-display/table/table.docs.html +73 -0
- package/src/components/data-display/table/table.visual.spec.ts +7 -3
- package/src/components/data-display/tag/tag.docs.html +42 -0
- package/src/components/data-display/tag/tag.visual.spec.ts +7 -3
- package/src/components/disclosure/accordion/accordion.docs.html +83 -0
- package/src/components/disclosure/accordion/accordion.visual.spec.ts +7 -3
- package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
- package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +7 -3
- package/src/components/feedback/alert/alert.docs.html +90 -0
- package/src/components/feedback/alert/alert.visual.spec.ts +7 -3
- package/src/components/feedback/progress/progress.docs.html +65 -0
- package/src/components/feedback/progress/progress.visual.spec.ts +7 -3
- package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
- package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +7 -3
- package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
- package/src/components/feedback/skeleton/skeleton.visual.spec.ts +7 -3
- package/src/components/feedback/spinner/spinner.docs.html +28 -0
- package/src/components/feedback/spinner/spinner.visual.spec.ts +7 -3
- package/src/components/feedback/toast/toast-visual.png +0 -0
- package/src/components/feedback/toast/toast.docs.html +109 -0
- package/src/components/feedback/toast/toast.visual.spec.ts +7 -3
- package/src/components/forms/checkbox/checkbox.docs.html +33 -0
- package/src/components/forms/checkbox/checkbox.visual.spec.ts +7 -3
- package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
- package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +7 -3
- package/src/components/forms/field/field.docs.html +63 -0
- package/src/components/forms/field/field.visual.spec.ts +7 -3
- package/src/components/forms/fieldset/fieldset.docs.html +122 -0
- package/src/components/forms/fieldset/fieldset.visual.spec.ts +7 -3
- package/src/components/forms/form/form.docs.html +132 -0
- package/src/components/forms/form/form.visual.spec.ts +7 -3
- package/src/components/forms/form-error/form-error.docs.html +18 -0
- package/src/components/forms/form-error/form-error.visual.spec.ts +7 -3
- package/src/components/forms/form-helper/form-helper.docs.html +42 -0
- package/src/components/forms/form-helper/form-helper.visual.spec.ts +7 -3
- package/src/components/forms/input/input-visual.png +0 -0
- package/src/components/forms/input/input.docs.html +69 -0
- package/src/components/forms/input/input.visual.spec.ts +7 -3
- package/src/components/forms/label/label-visual.png +0 -0
- package/src/components/forms/label/label.docs.html +29 -0
- package/src/components/forms/label/label.visual.spec.ts +7 -3
- package/src/components/forms/number-input/number-input-visual.png +0 -0
- package/src/components/forms/number-input/number-input.docs.html +100 -0
- package/src/components/forms/number-input/number-input.visual.spec.ts +7 -3
- package/src/components/forms/password-input/password-input-visual.png +0 -0
- package/src/components/forms/password-input/password-input.docs.html +88 -0
- package/src/components/forms/password-input/password-input.visual.spec.ts +7 -3
- package/src/components/forms/radio/radio.docs.html +52 -0
- package/src/components/forms/radio/radio.visual.spec.ts +7 -3
- package/src/components/forms/radio-group/radio-group.docs.html +100 -0
- package/src/components/forms/radio-group/radio-group.visual.spec.ts +7 -3
- package/src/components/forms/search-input/search-input-visual.png +0 -0
- package/src/components/forms/search-input/search-input.docs.html +87 -0
- package/src/components/forms/search-input/search-input.visual.spec.ts +7 -3
- package/src/components/forms/select/select-visual.png +0 -0
- package/src/components/forms/select/select.docs.html +70 -0
- package/src/components/forms/select/select.visual.spec.ts +7 -3
- package/src/components/forms/slider/slider-visual.png +0 -0
- package/src/components/forms/slider/slider.docs.html +25 -0
- package/src/components/forms/slider/slider.visual.spec.ts +7 -3
- package/src/components/forms/textarea/textarea-visual.png +0 -0
- package/src/components/forms/textarea/textarea.docs.html +39 -0
- package/src/components/forms/textarea/textarea.visual.spec.ts +7 -3
- package/src/components/forms/toggle/toggle.docs.html +64 -0
- package/src/components/forms/toggle/toggle.visual.spec.ts +7 -3
- package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
- package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +7 -3
- package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.html +106 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +7 -3
- package/src/components/navigation/menu/menu.docs.html +122 -0
- package/src/components/navigation/menu/menu.visual.spec.ts +7 -3
- package/src/components/navigation/nav/nav.docs.html +74 -0
- package/src/components/navigation/nav/nav.visual.spec.ts +7 -3
- package/src/components/navigation/pagination/pagination-visual.png +0 -0
- package/src/components/navigation/pagination/pagination.docs.html +116 -0
- package/src/components/navigation/pagination/pagination.visual.spec.ts +7 -3
- package/src/components/navigation/tabs/tabs.docs.html +66 -0
- package/src/components/navigation/tabs/tabs.visual.spec.ts +7 -3
- package/src/components/overlays/dialog/dialog.docs.html +61 -0
- package/src/components/overlays/dialog/dialog.visual.spec.ts +7 -3
- package/src/components/overlays/drawer/drawer-visual.png +0 -0
- package/src/components/overlays/drawer/drawer.docs.html +90 -0
- package/src/components/overlays/drawer/drawer.visual.spec.ts +7 -3
- package/src/components/overlays/modal/modal.docs.html +69 -0
- package/src/components/overlays/modal/modal.visual.spec.ts +7 -3
- package/src/components/overlays/overlay/overlay.docs.html +30 -0
- package/src/components/overlays/overlay/overlay.visual.spec.ts +7 -3
- package/src/components/overlays/popover/popover.docs.html +41 -0
- package/src/components/overlays/popover/popover.visual.spec.ts +7 -3
- package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
- package/src/components/overlays/tooltip/tooltip.visual.spec.ts +7 -3
- package/src/components/typography/blockquote/blockquote.docs.html +24 -0
- package/src/components/typography/blockquote/blockquote.visual.spec.ts +7 -3
- package/src/components/typography/code/code-visual.png +0 -0
- package/src/components/typography/code/code.docs.html +23 -0
- package/src/components/typography/code/code.visual.spec.ts +7 -3
- package/src/components/typography/code-block/code-block-visual.png +0 -0
- package/src/components/typography/code-block/code-block.docs.html +87 -0
- package/src/components/typography/code-block/code-block.visual.spec.ts +7 -3
- package/src/components/typography/heading/heading-visual.png +0 -0
- package/src/components/typography/heading/heading.docs.html +26 -0
- package/src/components/typography/heading/heading.visual.spec.ts +7 -3
- package/src/components/typography/kbd/kbd.docs.html +16 -0
- package/src/components/typography/kbd/kbd.visual.spec.ts +7 -3
- package/src/components/typography/link/link.docs.html +33 -0
- package/src/components/typography/link/link.visual.spec.ts +7 -3
- package/src/components/typography/list/list.docs.html +79 -0
- package/src/components/typography/list/list.visual.spec.ts +7 -3
- package/src/components/typography/mark/mark.docs.html +12 -0
- package/src/components/typography/mark/mark.visual.spec.ts +7 -3
- package/src/config/guides/accessibility.docs.html +108 -0
- package/src/config/guides/getting-started.docs.html +47 -0
- package/src/config/guides/theming.docs.html +71 -0
- package/src/config/tokens/colors/colors.docs.html +75 -0
- package/src/config/tokens/design-tokens.docs.html +116 -0
- package/src/config/tokens/grid/grid.docs.html +12 -0
- package/src/config/tokens/spacing/spacing.docs.html +33 -0
- package/src/debug/debug.docs.html +29 -0
- package/src/debug/index.scss +81 -1
- package/src/layout/app-shell/app-shell-visual.png +0 -0
- package/src/layout/app-shell/app-shell.docs.html +102 -0
- package/src/layout/app-shell/app-shell.visual.spec.ts +3 -3
- package/src/layout/aspect-ratio/aspect-ratio.docs.html +41 -0
- package/src/layout/aspect-ratio/aspect-ratio.visual.spec.ts +3 -3
- package/src/layout/box/box-visual.png +0 -0
- package/src/layout/box/box.docs.html +27 -0
- package/src/layout/box/box.visual.spec.ts +3 -3
- package/src/layout/center/center.docs.html +26 -0
- package/src/layout/center/center.visual.spec.ts +3 -3
- package/src/layout/column/column.docs.html +32 -0
- package/src/layout/column/column.visual.spec.ts +3 -3
- package/src/layout/container/container.docs.html +37 -0
- package/src/layout/content/content-visual.png +0 -0
- package/src/layout/content/content.docs.html +38 -0
- package/src/layout/content/content.visual.spec.ts +7 -3
- package/src/layout/footer/footer-visual.png +0 -0
- package/src/layout/footer/footer.docs.html +73 -0
- package/src/layout/footer/footer.visual.spec.ts +7 -3
- package/src/layout/grid/grid.docs.html +87 -0
- package/src/layout/grid/grid.visual.spec.ts +3 -3
- package/src/layout/main/main.docs.html +31 -0
- package/src/layout/nav-rail/nav-rail-visual.png +0 -0
- package/src/layout/nav-rail/nav-rail.docs.html +42 -0
- package/src/layout/nav-rail/nav-rail.visual.spec.ts +7 -3
- package/src/layout/page-header/page-header.docs.html +52 -0
- package/src/layout/page-header/page-header.visual.spec.ts +7 -3
- package/src/layout/row/row.docs.html +47 -0
- package/src/layout/row/row.visual.spec.ts +3 -3
- package/src/layout/sidebar/sidebar-visual.png +0 -0
- package/src/layout/sidebar/sidebar.docs.html +30 -0
- package/src/layout/sidebar/sidebar.visual.spec.ts +7 -3
- package/src/layout/sidebar-nav/sidebar-nav.docs.html +235 -0
- package/src/layout/sidebar-nav/sidebar-nav.visual.spec.ts +7 -3
- package/src/layout/topbar/topbar-visual.png +0 -0
- package/src/layout/topbar/topbar.docs.html +64 -0
- package/src/layout/topbar/topbar.visual.spec.ts +7 -3
- package/src/utilities/container/container.docs.html +34 -0
- package/src/utilities/display/display.docs.html +30 -0
- package/src/utilities/scroll-animation/scroll-animation.docs.html +32 -0
- package/src/utilities/scroll-snap/scroll-snap.docs.html +80 -0
- package/src/utilities/spacing/spacing.docs.html +29 -0
- package/src/utilities/text/text.docs.html +66 -0
- package/src/utilities/view-transition/view-transition.docs.html +52 -0
- package/src/utilities/visually-hidden/visually-hidden.docs.html +18 -0
- package/src/base/typography/typography.docs.json +0 -328
- package/src/components/actions/button/button.docs.json +0 -264
- package/src/components/actions/button-group/button-group.docs.json +0 -151
- package/src/components/actions/close-button/close-button.docs.json +0 -265
- package/src/components/content/divider/divider.docs.json +0 -113
- package/src/components/content/scroll-area/scroll-area.docs.json +0 -273
- package/src/components/content/spacer/spacer.docs.json +0 -102
- package/src/components/data-display/avatar/avatar.docs.json +0 -245
- package/src/components/data-display/badge/badge.docs.json +0 -114
- package/src/components/data-display/card/card.docs.json +0 -229
- package/src/components/data-display/data-list/data-list.docs.json +0 -259
- package/src/components/data-display/icon/icon.docs.json +0 -307
- package/src/components/data-display/image/image.docs.json +0 -337
- package/src/components/data-display/stat/stat.docs.json +0 -114
- package/src/components/data-display/status/status.docs.json +0 -147
- package/src/components/data-display/table/table.docs.json +0 -184
- package/src/components/data-display/tag/tag.docs.json +0 -146
- package/src/components/disclosure/accordion/accordion.docs.json +0 -206
- package/src/components/disclosure/disclosure/disclosure.docs.json +0 -154
- package/src/components/feedback/alert/alert.docs.json +0 -325
- package/src/components/feedback/progress/progress.docs.json +0 -315
- package/src/components/feedback/progress-circle/progress-circle.docs.json +0 -378
- package/src/components/feedback/skeleton/skeleton.docs.json +0 -142
- package/src/components/feedback/spinner/spinner.docs.json +0 -121
- package/src/components/feedback/toast/toast.docs.json +0 -418
- package/src/components/forms/checkbox/checkbox.docs.json +0 -166
- package/src/components/forms/checkbox-group/checkbox-group.docs.json +0 -339
- package/src/components/forms/field/field.docs.json +0 -276
- package/src/components/forms/fieldset/fieldset.docs.json +0 -520
- package/src/components/forms/form/form.docs.json +0 -482
- package/src/components/forms/form-error/form-error.docs.json +0 -61
- package/src/components/forms/form-helper/form-helper.docs.json +0 -151
- package/src/components/forms/input/input.docs.json +0 -306
- package/src/components/forms/label/label.docs.json +0 -110
- package/src/components/forms/number-input/number-input.docs.json +0 -311
- package/src/components/forms/password-input/password-input.docs.json +0 -316
- package/src/components/forms/radio/radio.docs.json +0 -236
- package/src/components/forms/radio-group/radio-group.docs.json +0 -351
- package/src/components/forms/search-input/search-input.docs.json +0 -293
- package/src/components/forms/select/select.docs.json +0 -231
- package/src/components/forms/slider/slider.docs.json +0 -144
- package/src/components/forms/textarea/textarea.docs.json +0 -229
- package/src/components/forms/toggle/toggle.docs.json +0 -229
- package/src/components/navigation/breadcrumb/breadcrumb.docs.json +0 -240
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +0 -290
- package/src/components/navigation/menu/menu.docs.json +0 -326
- package/src/components/navigation/nav/nav.docs.json +0 -304
- package/src/components/navigation/pagination/pagination.docs.json +0 -483
- package/src/components/navigation/tabs/tabs.docs.json +0 -243
- package/src/components/overlays/dialog/dialog.docs.json +0 -200
- package/src/components/overlays/drawer/drawer.docs.json +0 -307
- package/src/components/overlays/modal/modal.docs.json +0 -252
- package/src/components/overlays/overlay/overlay.docs.json +0 -138
- package/src/components/overlays/popover/popover.docs.json +0 -154
- package/src/components/overlays/tooltip/tooltip.docs.json +0 -133
- package/src/components/typography/blockquote/blockquote.docs.json +0 -89
- package/src/components/typography/code/code.docs.json +0 -104
- package/src/components/typography/code-block/code-block.docs.json +0 -308
- package/src/components/typography/heading/heading.docs.json +0 -120
- package/src/components/typography/kbd/kbd.docs.json +0 -61
- package/src/components/typography/link/link.docs.json +0 -149
- package/src/components/typography/list/list.docs.json +0 -296
- package/src/components/typography/mark/mark.docs.json +0 -60
- package/src/config/tokens/accessibility.docs.json +0 -125
- package/src/config/tokens/colors/colors.docs.json +0 -316
- package/src/config/tokens/grid/grid.docs.json +0 -54
- package/src/config/tokens/spacing/spacing.docs.json +0 -114
- package/src/config/tokens/theming.docs.json +0 -288
- package/src/debug/grid-overlay.scss +0 -81
- package/src/layout/app-shell/app-shell.docs.json +0 -155
- package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
- package/src/layout/box/box.docs.json +0 -93
- package/src/layout/center/center.docs.json +0 -63
- package/src/layout/column/column.docs.json +0 -157
- package/src/layout/container/container.docs.json +0 -85
- package/src/layout/content/content.docs.json +0 -82
- package/src/layout/footer/footer.docs.json +0 -119
- package/src/layout/grid/grid.docs.json +0 -493
- package/src/layout/main/main.docs.json +0 -87
- package/src/layout/nav-rail/nav-rail.docs.json +0 -76
- package/src/layout/page-header/page-header.docs.json +0 -124
- package/src/layout/row/row.docs.json +0 -237
- package/src/layout/sidebar/sidebar.docs.json +0 -63
- package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
- package/src/layout/topbar/topbar.docs.json +0 -110
- package/src/testing/api-types.ts +0 -20
- package/src/testing/grid-alignment.spec.ts +0 -38
- package/src/testing/html-generator.ts +0 -151
- package/src/testing/index.ts +0 -15
- package/src/testing/page-setup.ts +0 -149
- package/src/testing/rhythm.ts +0 -146
- package/src/testing/scaffold.ts +0 -50
- package/src/utilities/container/container.docs.json +0 -121
- package/src/utilities/display/display.docs.json +0 -83
- package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
- package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
- package/src/utilities/spacing/spacing.docs.json +0 -133
- package/src/utilities/text/text.docs.json +0 -191
- package/src/utilities/view-transition/view-transition.docs.json +0 -63
- package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "spacing-utils",
|
|
3
|
-
"type": "utility",
|
|
4
|
-
"title": "Spacing",
|
|
5
|
-
"description": "Margin and padding utilities aligned to 8px grid.",
|
|
6
|
-
"api": "spacing.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Padding",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"layout": "column",
|
|
13
|
-
"items": [
|
|
14
|
-
{
|
|
15
|
-
"tag": "div",
|
|
16
|
-
"class": "ui-p-1",
|
|
17
|
-
"text": "p-1 (8px padding)",
|
|
18
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"tag": "div",
|
|
22
|
-
"class": "ui-p-2",
|
|
23
|
-
"text": "p-2 (16px padding)",
|
|
24
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"tag": "div",
|
|
28
|
-
"class": "ui-p-4",
|
|
29
|
-
"text": "p-4 (32px padding)",
|
|
30
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"code": "<div class=\"ui-p-1\">...</div>\n<div class=\"ui-p-2\">...</div>\n<div class=\"ui-p-4\">...</div>"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"title": "Directional Padding",
|
|
39
|
-
"examples": [
|
|
40
|
-
{
|
|
41
|
-
"layout": "column",
|
|
42
|
-
"items": [
|
|
43
|
-
{
|
|
44
|
-
"tag": "div",
|
|
45
|
-
"class": "ui-px-4 ui-py-2",
|
|
46
|
-
"text": "px-4 py-2 (horizontal 32px, vertical 16px)",
|
|
47
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"tag": "div",
|
|
51
|
-
"class": "ui-pt-4 ui-pb-1",
|
|
52
|
-
"text": "pt-4 pb-1 (top 32px, bottom 8px)",
|
|
53
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"tag": "div",
|
|
57
|
-
"class": "ui-ps-4 ui-pe-1",
|
|
58
|
-
"text": "ps-4 pe-1 (start 32px, end 8px)",
|
|
59
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"code": "<div class=\"ui-px-4 ui-py-2\">...</div>\n<div class=\"ui-pt-4 ui-pb-1\">...</div>\n<div class=\"ui-ps-4 ui-pe-1\">...</div>"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"title": "Margin",
|
|
68
|
-
"examples": [
|
|
69
|
-
{
|
|
70
|
-
"layout": "column",
|
|
71
|
-
"items": [
|
|
72
|
-
{
|
|
73
|
-
"tag": "div",
|
|
74
|
-
"class": "ui-mb-2",
|
|
75
|
-
"text": "mb-2 (16px bottom margin)",
|
|
76
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"tag": "div",
|
|
80
|
-
"class": "ui-mt-4 ui-mb-2",
|
|
81
|
-
"text": "mt-4 mb-2 (top 32px, bottom 16px)",
|
|
82
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"tag": "div",
|
|
86
|
-
"class": "ui-mx-auto",
|
|
87
|
-
"text": "mx-auto (centered with auto margins)",
|
|
88
|
-
"style": {
|
|
89
|
-
"background": "var(--ui-color-bg-muted)",
|
|
90
|
-
"max-inline-size": "var(--ui-row-8)"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"code": "<div class=\"ui-mb-2\">...</div>\n<div class=\"ui-mt-4 ui-mb-2\">...</div>\n<div class=\"ui-mx-auto\">...</div>"
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"title": "Gap",
|
|
100
|
-
"examples": [
|
|
101
|
-
{
|
|
102
|
-
"items": [
|
|
103
|
-
{
|
|
104
|
-
"tag": "div",
|
|
105
|
-
"class": "ui-flex ui-gap-2",
|
|
106
|
-
"children": [
|
|
107
|
-
{
|
|
108
|
-
"tag": "div",
|
|
109
|
-
"class": "ui-p-2",
|
|
110
|
-
"text": "Item",
|
|
111
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"tag": "div",
|
|
115
|
-
"class": "ui-p-2",
|
|
116
|
-
"text": "Item",
|
|
117
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"tag": "div",
|
|
121
|
-
"class": "ui-p-2",
|
|
122
|
-
"text": "Item",
|
|
123
|
-
"style": { "background": "var(--ui-color-bg-muted)" }
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"code": "<div class=\"ui-flex ui-gap-2\">\n <div>Item</div>\n <div>Item</div>\n <div>Item</div>\n</div>"
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "text-utils",
|
|
3
|
-
"type": "utility",
|
|
4
|
-
"title": "Text",
|
|
5
|
-
"description": "Typography and text utilities. Font sizes follow a 1.2 modular scale.",
|
|
6
|
-
"api": "text.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Sizes",
|
|
10
|
-
"description": "Font size utilities with 8px grid-snapped line-heights.",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"layout": "column",
|
|
14
|
-
"items": [
|
|
15
|
-
{ "tag": "p", "class": "ui-text-xs", "text": "text-xs: 12px / 16px line-height" },
|
|
16
|
-
{ "tag": "p", "class": "ui-text-sm", "text": "text-sm: 14px / 24px line-height" },
|
|
17
|
-
{ "tag": "p", "class": "ui-text-md", "text": "text-md: 16px / 24px line-height" },
|
|
18
|
-
{ "tag": "p", "class": "ui-text-lg", "text": "text-lg: 20px / 32px line-height" },
|
|
19
|
-
{ "tag": "p", "class": "ui-text-xl", "text": "text-xl: 24px / 32px line-height" },
|
|
20
|
-
{ "tag": "p", "class": "ui-text-2xl", "text": "text-2xl: 28px / 32px line-height" },
|
|
21
|
-
{ "tag": "p", "class": "ui-text-3xl", "text": "text-3xl: 32px / 40px line-height" },
|
|
22
|
-
{ "tag": "p", "class": "ui-text-4xl", "text": "text-4xl: 40px / 48px line-height" }
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"title": "Text Roles",
|
|
29
|
-
"description": "Semantic text styles for specific use cases.",
|
|
30
|
-
"examples": [
|
|
31
|
-
{
|
|
32
|
-
"layout": "column",
|
|
33
|
-
"items": [
|
|
34
|
-
{
|
|
35
|
-
"tag": "p",
|
|
36
|
-
"class": "ui-text-lead",
|
|
37
|
-
"text": "Lead: Opening paragraph style (20px / 32px)"
|
|
38
|
-
},
|
|
39
|
-
{ "tag": "p", "class": "ui-text-eyebrow", "text": "Eyebrow: Small caps label" },
|
|
40
|
-
{
|
|
41
|
-
"tag": "p",
|
|
42
|
-
"class": "ui-text-caption",
|
|
43
|
-
"text": "Caption: Labels and hints (12px / 16px)"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"tag": "p",
|
|
47
|
-
"class": "ui-text-body-sm",
|
|
48
|
-
"text": "Body small: Secondary text (14px / 24px)"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"title": "Weights",
|
|
56
|
-
"examples": [
|
|
57
|
-
{
|
|
58
|
-
"layout": "column",
|
|
59
|
-
"items": [
|
|
60
|
-
{ "tag": "p", "class": "ui-font-normal", "text": "font-normal (400)" },
|
|
61
|
-
{ "tag": "p", "class": "ui-font-medium", "text": "font-medium (500)" },
|
|
62
|
-
{ "tag": "p", "class": "ui-font-semibold", "text": "font-semibold (600)" },
|
|
63
|
-
{ "tag": "p", "class": "ui-font-bold", "text": "font-bold (700)" }
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"title": "Letter Spacing",
|
|
70
|
-
"examples": [
|
|
71
|
-
{
|
|
72
|
-
"layout": "column",
|
|
73
|
-
"items": [
|
|
74
|
-
{
|
|
75
|
-
"tag": "p",
|
|
76
|
-
"class": "ui-text-2xl ui-tracking-display",
|
|
77
|
-
"text": "tracking-display: Tight (-0.02em)"
|
|
78
|
-
},
|
|
79
|
-
{ "tag": "p", "class": "ui-tracking-body", "text": "tracking-body: Default (0)" },
|
|
80
|
-
{
|
|
81
|
-
"tag": "p",
|
|
82
|
-
"class": "ui-tracking-caps ui-uppercase",
|
|
83
|
-
"text": "tracking-caps: Wide (+0.08em)"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"title": "Line Length",
|
|
91
|
-
"description": "Constrain text width for optimal readability.",
|
|
92
|
-
"examples": [
|
|
93
|
-
{
|
|
94
|
-
"layout": "column",
|
|
95
|
-
"items": [
|
|
96
|
-
{ "tag": "p", "class": "ui-prose-sm", "text": "prose-sm: 45ch max-width" },
|
|
97
|
-
{ "tag": "p", "class": "ui-prose", "text": "prose: 65ch max-width (recommended)" },
|
|
98
|
-
{ "tag": "p", "class": "ui-prose-lg", "text": "prose-lg: 75ch max-width" }
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"title": "Colors",
|
|
105
|
-
"examples": [
|
|
106
|
-
{
|
|
107
|
-
"layout": "column",
|
|
108
|
-
"items": [
|
|
109
|
-
{ "tag": "p", "class": "ui-text-primary", "text": "text-primary" },
|
|
110
|
-
{ "tag": "p", "class": "ui-text-muted", "text": "text-muted" },
|
|
111
|
-
{ "tag": "p", "class": "ui-text-success", "text": "text-success" },
|
|
112
|
-
{ "tag": "p", "class": "ui-text-warning", "text": "text-warning" },
|
|
113
|
-
{ "tag": "p", "class": "ui-text-danger", "text": "text-danger" }
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"title": "Alignment",
|
|
120
|
-
"examples": [
|
|
121
|
-
{
|
|
122
|
-
"layout": "column",
|
|
123
|
-
"items": [
|
|
124
|
-
{ "tag": "p", "class": "ui-text-start", "text": "text-start (default)" },
|
|
125
|
-
{ "tag": "p", "class": "ui-text-center", "text": "text-center" },
|
|
126
|
-
{ "tag": "p", "class": "ui-text-end", "text": "text-end" }
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"title": "Text Wrap",
|
|
133
|
-
"description": "Control how text wraps across lines.",
|
|
134
|
-
"examples": [
|
|
135
|
-
{
|
|
136
|
-
"layout": "column",
|
|
137
|
-
"items": [
|
|
138
|
-
{
|
|
139
|
-
"tag": "p",
|
|
140
|
-
"class": "ui-text-balance ui-text-2xl ui-font-bold",
|
|
141
|
-
"style": { "max-inline-size": "20rem" },
|
|
142
|
-
"text": "Balanced: distributes text evenly across lines"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"tag": "p",
|
|
146
|
-
"class": "ui-text-pretty",
|
|
147
|
-
"style": { "max-inline-size": "20rem" },
|
|
148
|
-
"text": "Pretty: avoids orphans and widows for cleaner body text paragraphs that wrap naturally"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"tag": "p",
|
|
152
|
-
"class": "ui-text-nowrap",
|
|
153
|
-
"text": "Nowrap: prevents text from wrapping to the next line"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"code": "<p class=\"ui-text-balance\">Balanced heading text</p>\n<p class=\"ui-text-pretty\">Pretty body text</p>\n<p class=\"ui-text-nowrap\">No wrap text</p>"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"title": "Multi-line Truncation",
|
|
162
|
-
"description": "Clamp text to a specific number of lines with ellipsis.",
|
|
163
|
-
"examples": [
|
|
164
|
-
{
|
|
165
|
-
"layout": "column",
|
|
166
|
-
"items": [
|
|
167
|
-
{
|
|
168
|
-
"tag": "p",
|
|
169
|
-
"class": "ui-truncate-2",
|
|
170
|
-
"style": { "max-inline-size": "20rem" },
|
|
171
|
-
"text": "Truncate to 2 lines: This is a long paragraph that will be clamped after two lines of text. Any overflow content will be hidden and replaced with an ellipsis character."
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"tag": "p",
|
|
175
|
-
"class": "ui-truncate-3",
|
|
176
|
-
"style": { "max-inline-size": "20rem" },
|
|
177
|
-
"text": "Truncate to 3 lines: This is a long paragraph that will be clamped after three lines of text. Any overflow content beyond the third line will be hidden and replaced with an ellipsis character at the end."
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"tag": "p",
|
|
181
|
-
"class": "ui-truncate-4",
|
|
182
|
-
"style": { "max-inline-size": "20rem" },
|
|
183
|
-
"text": "Truncate to 4 lines: This is a long paragraph that will be clamped after four lines. It gives more room for content previews while still maintaining a consistent height. Overflow beyond line four is hidden with ellipsis."
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"code": "<p class=\"ui-truncate-2\">Long text clamped to 2 lines...</p>\n<p class=\"ui-truncate-3\">Long text clamped to 3 lines...</p>\n<p class=\"ui-truncate-4\">Long text clamped to 4 lines...</p>"
|
|
187
|
-
}
|
|
188
|
-
]
|
|
189
|
-
}
|
|
190
|
-
]
|
|
191
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "view-transition-utils",
|
|
3
|
-
"type": "utility",
|
|
4
|
-
"title": "View Transition",
|
|
5
|
-
"description": "CSS View Transitions API utilities for smooth page navigation. Enabled by default; unsupported browsers work normally.",
|
|
6
|
-
"api": "view-transition.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Static elements",
|
|
10
|
-
"description": "Elements that persist without animation. Sidebar and header stay fixed during page transitions.",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"code": "<header class=\"ui-transition-name-header\">...</header>\n<nav class=\"ui-transition-name-sidebar\">...</nav>"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"title": "Slide animations",
|
|
19
|
-
"description": "Content slides in/out in different directions.",
|
|
20
|
-
"examples": [
|
|
21
|
-
{
|
|
22
|
-
"code": "<main class=\"ui-transition-name-main\">Slides up</main>\n<main class=\"ui-transition-name-slide-up\">Slides up</main>\n<main class=\"ui-transition-name-slide-down\">Slides down</main>\n<main class=\"ui-transition-name-slide-start\">Slides from left</main>\n<main class=\"ui-transition-name-slide-end\">Slides from right</main>"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"title": "Scale and fade",
|
|
28
|
-
"description": "Scale effect for modals/cards, fade for subtle transitions.",
|
|
29
|
-
"examples": [
|
|
30
|
-
{
|
|
31
|
-
"code": "<div class=\"ui-transition-name-scale\">Scales in/out</div>\n<div class=\"ui-transition-name-card\">Card scales</div>\n<div class=\"ui-transition-name-modal\">Modal scales</div>\n<div class=\"ui-transition-name-fade\">Fades in/out</div>"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"title": "Hero morph",
|
|
37
|
-
"description": "Same element on both pages morphs (position/size interpolates). Use same class on source and target.",
|
|
38
|
-
"examples": [
|
|
39
|
-
{
|
|
40
|
-
"code": "<!-- Page 1: thumbnail -->\n<img class=\"ui-transition-name-hero\" src=\"product.jpg\">\n\n<!-- Page 2: full image -->\n<img class=\"ui-transition-name-hero\" src=\"product.jpg\">"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"title": "Disable",
|
|
46
|
-
"description": "Exclude an element from view transitions.",
|
|
47
|
-
"examples": [
|
|
48
|
-
{
|
|
49
|
-
"code": "<div class=\"ui-transition-name-none\">No transition</div>"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "Preserving scroll position",
|
|
55
|
-
"description": "View transitions snapshot elements, resetting scroll. Use `pagereveal` event to restore scroll before paint.",
|
|
56
|
-
"examples": [
|
|
57
|
-
{
|
|
58
|
-
"code": "// Save scroll on navigation\nlink.addEventListener('click', () => {\n sessionStorage.setItem('scroll', sidebar.scrollTop);\n});\n\n// Restore before page reveals\nwindow.addEventListener('pagereveal', () => {\n const saved = sessionStorage.getItem('scroll');\n if (saved) sidebar.scrollTop = parseInt(saved, 10);\n});"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "visually-hidden",
|
|
3
|
-
"type": "utility",
|
|
4
|
-
"title": "Visually Hidden",
|
|
5
|
-
"description": "Hides content visually while keeping it accessible to screen readers. Use for skip links and accessible labels.",
|
|
6
|
-
"api": "visually-hidden.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"description": "Content is hidden visually but announced by screen readers",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"items": [
|
|
14
|
-
{
|
|
15
|
-
"tag": "button",
|
|
16
|
-
"children": [
|
|
17
|
-
{ "text": "Submit" },
|
|
18
|
-
{ "tag": "span", "class": "ui-visually-hidden", "text": " form to contact support" }
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"code": "<button>\n Submit\n <span class=\"ui-visually-hidden\"> form to contact support</span>\n</button>"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"title": "Focusable (Skip Link)",
|
|
28
|
-
"description": "Becomes visible when focused - useful for skip links",
|
|
29
|
-
"examples": [
|
|
30
|
-
{
|
|
31
|
-
"items": [
|
|
32
|
-
{
|
|
33
|
-
"tag": "a",
|
|
34
|
-
"class": "ui-visually-hidden ui-visually-hidden--focusable",
|
|
35
|
-
"attrs": { "href": "#main", "style": "position: relative;" },
|
|
36
|
-
"text": "Skip to main content"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"code": "<a href=\"#main\" class=\"ui-visually-hidden ui-visually-hidden--focusable\">\n Skip to main content\n</a>"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|