@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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: View Transition
|
|
3
|
+
type: utility
|
|
4
|
+
id: view-transition-utils
|
|
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
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- @static_elements -->
|
|
10
|
+
<!-- Elements that persist without animation. Sidebar and header stay fixed during page transitions. -->
|
|
11
|
+
<header class="ui-transition-name-header">...</header>
|
|
12
|
+
<nav class="ui-transition-name-sidebar">...</nav>
|
|
13
|
+
|
|
14
|
+
<!-- @slide_animations -->
|
|
15
|
+
<!-- Content slides in/out in different directions. -->
|
|
16
|
+
<main class="ui-transition-name-main">Slides up</main>
|
|
17
|
+
<main class="ui-transition-name-slide-up">Slides up</main>
|
|
18
|
+
<main class="ui-transition-name-slide-down">Slides down</main>
|
|
19
|
+
<main class="ui-transition-name-slide-start">Slides from left</main>
|
|
20
|
+
<main class="ui-transition-name-slide-end">Slides from right</main>
|
|
21
|
+
|
|
22
|
+
<!-- @scale_and_fade -->
|
|
23
|
+
<!-- Scale effect for modals/cards, fade for subtle transitions. -->
|
|
24
|
+
<div class="ui-transition-name-scale">Scales in/out</div>
|
|
25
|
+
<div class="ui-transition-name-card">Card scales</div>
|
|
26
|
+
<div class="ui-transition-name-modal">Modal scales</div>
|
|
27
|
+
<div class="ui-transition-name-fade">Fades in/out</div>
|
|
28
|
+
|
|
29
|
+
<!-- @hero_morph -->
|
|
30
|
+
<!-- Same element on both pages morphs (position/size interpolates). Use same class on source and target. -->
|
|
31
|
+
<!-- Page 1: thumbnail -->
|
|
32
|
+
<img class="ui-transition-name-hero" src="product.jpg">
|
|
33
|
+
|
|
34
|
+
<!-- Page 2: full image -->
|
|
35
|
+
<img class="ui-transition-name-hero" src="product.jpg">
|
|
36
|
+
|
|
37
|
+
<!-- @disable -->
|
|
38
|
+
<!-- Exclude an element from view transitions. -->
|
|
39
|
+
<div class="ui-transition-name-none">No transition</div>
|
|
40
|
+
|
|
41
|
+
<!-- @preserving_scroll_position -->
|
|
42
|
+
<!-- View transitions snapshot elements, resetting scroll. Use `pagereveal` event to restore scroll before paint. -->
|
|
43
|
+
// Save scroll on navigation
|
|
44
|
+
link.addEventListener('click', () => {
|
|
45
|
+
sessionStorage.setItem('scroll', sidebar.scrollTop);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// Restore before page reveals
|
|
49
|
+
window.addEventListener('pagereveal', () => {
|
|
50
|
+
const saved = sessionStorage.getItem('scroll');
|
|
51
|
+
if (saved) sidebar.scrollTop = parseInt(saved, 10);
|
|
52
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Visually Hidden
|
|
3
|
+
type: utility
|
|
4
|
+
id: 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
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- @default -->
|
|
10
|
+
<!-- Content is hidden visually but announced by screen readers -->
|
|
11
|
+
<button>
|
|
12
|
+
Submit
|
|
13
|
+
<span class="ui-visually-hidden"> form to contact support</span>
|
|
14
|
+
</button>
|
|
15
|
+
|
|
16
|
+
<!-- @focusable_skip_link -->
|
|
17
|
+
<!-- Becomes visible when focused - useful for skip links -->
|
|
18
|
+
<a class="ui-visually-hidden ui-visually-hidden--focusable" href="#main" style="position: relative;">Skip to main content</a>
|
|
@@ -1,328 +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
|
-
"items": [
|
|
14
|
-
{
|
|
15
|
-
"tag": "table",
|
|
16
|
-
"class": "ui-table",
|
|
17
|
-
"children": [
|
|
18
|
-
{
|
|
19
|
-
"tag": "thead",
|
|
20
|
-
"children": [
|
|
21
|
-
{
|
|
22
|
-
"tag": "tr",
|
|
23
|
-
"children": [
|
|
24
|
-
{ "tag": "th", "text": "Token" },
|
|
25
|
-
{ "tag": "th", "text": "Size" },
|
|
26
|
-
{ "tag": "th", "text": "Line-height" }
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"tag": "tbody",
|
|
33
|
-
"children": [
|
|
34
|
-
{
|
|
35
|
-
"tag": "tr",
|
|
36
|
-
"children": [
|
|
37
|
-
{
|
|
38
|
-
"tag": "td",
|
|
39
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-xs" }]
|
|
40
|
-
},
|
|
41
|
-
{ "tag": "td", "text": "12px" },
|
|
42
|
-
{ "tag": "td", "text": "16px" }
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"tag": "tr",
|
|
47
|
-
"children": [
|
|
48
|
-
{
|
|
49
|
-
"tag": "td",
|
|
50
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-sm" }]
|
|
51
|
-
},
|
|
52
|
-
{ "tag": "td", "text": "14px" },
|
|
53
|
-
{ "tag": "td", "text": "24px" }
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"tag": "tr",
|
|
58
|
-
"children": [
|
|
59
|
-
{
|
|
60
|
-
"tag": "td",
|
|
61
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-md" }]
|
|
62
|
-
},
|
|
63
|
-
{ "tag": "td", "text": "16px" },
|
|
64
|
-
{ "tag": "td", "text": "24px" }
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"tag": "tr",
|
|
69
|
-
"children": [
|
|
70
|
-
{
|
|
71
|
-
"tag": "td",
|
|
72
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-lg" }]
|
|
73
|
-
},
|
|
74
|
-
{ "tag": "td", "text": "20px" },
|
|
75
|
-
{ "tag": "td", "text": "32px" }
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"tag": "tr",
|
|
80
|
-
"children": [
|
|
81
|
-
{
|
|
82
|
-
"tag": "td",
|
|
83
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-xl" }]
|
|
84
|
-
},
|
|
85
|
-
{ "tag": "td", "text": "24px" },
|
|
86
|
-
{ "tag": "td", "text": "32px" }
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"tag": "tr",
|
|
91
|
-
"children": [
|
|
92
|
-
{
|
|
93
|
-
"tag": "td",
|
|
94
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-2xl" }]
|
|
95
|
-
},
|
|
96
|
-
{ "tag": "td", "text": "28px" },
|
|
97
|
-
{ "tag": "td", "text": "32px" }
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"tag": "tr",
|
|
102
|
-
"children": [
|
|
103
|
-
{
|
|
104
|
-
"tag": "td",
|
|
105
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-3xl" }]
|
|
106
|
-
},
|
|
107
|
-
{ "tag": "td", "text": "32px" },
|
|
108
|
-
{ "tag": "td", "text": "40px" }
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"tag": "tr",
|
|
113
|
-
"children": [
|
|
114
|
-
{
|
|
115
|
-
"tag": "td",
|
|
116
|
-
"children": [{ "tag": "code", "text": "--ui-font-size-4xl" }]
|
|
117
|
-
},
|
|
118
|
-
{ "tag": "td", "text": "40px" },
|
|
119
|
-
{ "tag": "td", "text": "48px" }
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
]
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"title": "Headings",
|
|
132
|
-
"description": "Headings use semantic tokens and adjust size at breakpoints.",
|
|
133
|
-
"examples": [
|
|
134
|
-
{
|
|
135
|
-
"items": [
|
|
136
|
-
{ "tag": "h1", "text": "Heading 1 - 40px / 48px" },
|
|
137
|
-
{ "tag": "h2", "text": "Heading 2 - 32px / 40px" },
|
|
138
|
-
{ "tag": "h3", "text": "Heading 3 - 28px / 32px" },
|
|
139
|
-
{ "tag": "h4", "text": "Heading 4 - 24px / 32px" },
|
|
140
|
-
{ "tag": "h5", "text": "Heading 5 - 20px / 24px" }
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"title": "Body Text",
|
|
147
|
-
"description": "Default body text at 16px with 24px line-height (1.5x ratio).",
|
|
148
|
-
"examples": [
|
|
149
|
-
{
|
|
150
|
-
"items": [
|
|
151
|
-
{
|
|
152
|
-
"tag": "p",
|
|
153
|
-
"children": [
|
|
154
|
-
{ "text": "Body text at 16px with 24px line-height. The " },
|
|
155
|
-
{ "tag": "strong", "text": "bold text" },
|
|
156
|
-
{ "text": " and " },
|
|
157
|
-
{ "tag": "code", "text": "inline code" },
|
|
158
|
-
{ "text": " maintain the same rhythm." }
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"tag": "p",
|
|
163
|
-
"class": "ui-text-body-sm",
|
|
164
|
-
"text": "Body small at 14px with 24px line-height for secondary text."
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"title": "Text Roles",
|
|
172
|
-
"description": "Semantic text styles for specific use cases.",
|
|
173
|
-
"examples": [
|
|
174
|
-
{
|
|
175
|
-
"items": [
|
|
176
|
-
{
|
|
177
|
-
"tag": "p",
|
|
178
|
-
"class": "ui-text-lead",
|
|
179
|
-
"text": "Lead paragraph - 20px / 32px. Use for opening paragraphs or article intros."
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"items": [
|
|
185
|
-
{ "tag": "p", "class": "ui-text-eyebrow", "text": "Eyebrow text" },
|
|
186
|
-
{ "tag": "h2", "text": "Related Heading" }
|
|
187
|
-
],
|
|
188
|
-
"description": "Eyebrow - 12px uppercase with wide tracking. Use above headings for categorization."
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"items": [
|
|
192
|
-
{
|
|
193
|
-
"tag": "p",
|
|
194
|
-
"class": "ui-text-caption",
|
|
195
|
-
"text": "Caption text - 12px / 16px. Use for labels, hints, and metadata."
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"title": "Font Weights",
|
|
203
|
-
"description": "Four weight levels for hierarchy.",
|
|
204
|
-
"examples": [
|
|
205
|
-
{
|
|
206
|
-
"items": [
|
|
207
|
-
{ "tag": "p", "class": "ui-font-normal", "text": "Normal (400) - Body text" },
|
|
208
|
-
{
|
|
209
|
-
"tag": "p",
|
|
210
|
-
"class": "ui-font-medium",
|
|
211
|
-
"text": "Medium (500) - Labels, small headings"
|
|
212
|
-
},
|
|
213
|
-
{ "tag": "p", "class": "ui-font-semibold", "text": "Semibold (600) - Subheadings" },
|
|
214
|
-
{ "tag": "p", "class": "ui-font-bold", "text": "Bold (700) - Headlines, emphasis" }
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"title": "Letter Spacing",
|
|
221
|
-
"description": "Three tracking options based on use case.",
|
|
222
|
-
"examples": [
|
|
223
|
-
{
|
|
224
|
-
"items": [
|
|
225
|
-
{
|
|
226
|
-
"tag": "p",
|
|
227
|
-
"class": "ui-text-3xl ui-tracking-display",
|
|
228
|
-
"text": "Display tracking (-0.02em)"
|
|
229
|
-
},
|
|
230
|
-
{ "tag": "p", "text": "Body tracking (0) - default" },
|
|
231
|
-
{ "tag": "p", "class": "ui-text-eyebrow", "text": "Caps tracking (+0.08em)" }
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
]
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"title": "Line Length",
|
|
238
|
-
"description": "Constrain text width for optimal readability (45-75 characters).",
|
|
239
|
-
"examples": [
|
|
240
|
-
{
|
|
241
|
-
"items": [
|
|
242
|
-
{
|
|
243
|
-
"tag": "div",
|
|
244
|
-
"class": "ui-prose",
|
|
245
|
-
"children": [
|
|
246
|
-
{
|
|
247
|
-
"tag": "p",
|
|
248
|
-
"text": "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."
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
}
|
|
252
|
-
]
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"title": "Responsive Behavior",
|
|
258
|
-
"description": "Headings scale down on mobile (<730px) and up on desktop (>1080px).",
|
|
259
|
-
"examples": [
|
|
260
|
-
{
|
|
261
|
-
"items": [
|
|
262
|
-
{
|
|
263
|
-
"tag": "table",
|
|
264
|
-
"class": "ui-table",
|
|
265
|
-
"children": [
|
|
266
|
-
{
|
|
267
|
-
"tag": "thead",
|
|
268
|
-
"children": [
|
|
269
|
-
{
|
|
270
|
-
"tag": "tr",
|
|
271
|
-
"children": [
|
|
272
|
-
{ "tag": "th", "text": "Heading" },
|
|
273
|
-
{ "tag": "th", "text": "Mobile" },
|
|
274
|
-
{ "tag": "th", "text": "Default" },
|
|
275
|
-
{ "tag": "th", "text": "Desktop" }
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"tag": "tbody",
|
|
282
|
-
"children": [
|
|
283
|
-
{
|
|
284
|
-
"tag": "tr",
|
|
285
|
-
"children": [
|
|
286
|
-
{ "tag": "td", "text": "h1" },
|
|
287
|
-
{ "tag": "td", "text": "28px" },
|
|
288
|
-
{ "tag": "td", "text": "40px" },
|
|
289
|
-
{ "tag": "td", "text": "48px" }
|
|
290
|
-
]
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"tag": "tr",
|
|
294
|
-
"children": [
|
|
295
|
-
{ "tag": "td", "text": "h2" },
|
|
296
|
-
{ "tag": "td", "text": "24px" },
|
|
297
|
-
{ "tag": "td", "text": "32px" },
|
|
298
|
-
{ "tag": "td", "text": "40px" }
|
|
299
|
-
]
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"tag": "tr",
|
|
303
|
-
"children": [
|
|
304
|
-
{ "tag": "td", "text": "h3" },
|
|
305
|
-
{ "tag": "td", "text": "20px" },
|
|
306
|
-
{ "tag": "td", "text": "28px" },
|
|
307
|
-
{ "tag": "td", "text": "28px" }
|
|
308
|
-
]
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"tag": "tr",
|
|
312
|
-
"children": [
|
|
313
|
-
{ "tag": "td", "text": "h4" },
|
|
314
|
-
{ "tag": "td", "text": "18px" },
|
|
315
|
-
{ "tag": "td", "text": "24px" },
|
|
316
|
-
{ "tag": "td", "text": "24px" }
|
|
317
|
-
]
|
|
318
|
-
}
|
|
319
|
-
]
|
|
320
|
-
}
|
|
321
|
-
]
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
}
|
|
325
|
-
]
|
|
326
|
-
}
|
|
327
|
-
]
|
|
328
|
-
}
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "button",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Button",
|
|
5
|
-
"api": "./button.api.json",
|
|
6
|
-
"description": "Buttons trigger actions. Use primary for main CTA, secondary for less important actions.",
|
|
7
|
-
"modifiers": {
|
|
8
|
-
"size": {
|
|
9
|
-
"usage": "Default is 32px (2 rows). Use small for dense UIs, large for prominent CTAs."
|
|
10
|
-
},
|
|
11
|
-
"variant": {
|
|
12
|
-
"usage": "Primary for main actions. Secondary for less important. Outline for subtle. Ghost for toolbar. Danger for destructive. Link for inline."
|
|
13
|
-
},
|
|
14
|
-
"icon": {
|
|
15
|
-
"usage": "Square icon-only buttons. Always add aria-label for accessibility."
|
|
16
|
-
},
|
|
17
|
-
"radius": {
|
|
18
|
-
"usage": "Override border radius. Use radius-full for pill-shaped buttons."
|
|
19
|
-
},
|
|
20
|
-
"block": {
|
|
21
|
-
"usage": "Full width button. Use for mobile or form submit."
|
|
22
|
-
},
|
|
23
|
-
"loading": {
|
|
24
|
-
"usage": "Shows spinner animation. Button becomes non-interactive."
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"sections": [
|
|
28
|
-
{
|
|
29
|
-
"title": "Variants",
|
|
30
|
-
"description": "Button styles for different purposes and emphasis levels.",
|
|
31
|
-
"examples": [
|
|
32
|
-
{
|
|
33
|
-
"layout": "row",
|
|
34
|
-
"items": [
|
|
35
|
-
{ "tag": "button", "class": "ui-button", "text": "Primary" },
|
|
36
|
-
{ "tag": "button", "class": "ui-button ui-button--secondary", "text": "Secondary" },
|
|
37
|
-
{ "tag": "button", "class": "ui-button ui-button--outline", "text": "Outline" },
|
|
38
|
-
{ "tag": "button", "class": "ui-button ui-button--ghost", "text": "Ghost" },
|
|
39
|
-
{ "tag": "button", "class": "ui-button ui-button--danger", "text": "Danger" },
|
|
40
|
-
{ "tag": "button", "class": "ui-button ui-button--link", "text": "Link" }
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"title": "Sizes",
|
|
47
|
-
"description": "Small for dense UIs, default for most cases, large for prominent CTAs.",
|
|
48
|
-
"examples": [
|
|
49
|
-
{
|
|
50
|
-
"layout": "row",
|
|
51
|
-
"items": [
|
|
52
|
-
{ "tag": "button", "class": "ui-button ui-button--sm", "text": "Small" },
|
|
53
|
-
{ "tag": "button", "class": "ui-button ui-button--md", "text": "Medium" },
|
|
54
|
-
{ "tag": "button", "class": "ui-button ui-button--lg", "text": "Large" }
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"title": "Radius",
|
|
61
|
-
"description": "Override border radius. Use radius-full for pill-shaped buttons.",
|
|
62
|
-
"examples": [
|
|
63
|
-
{
|
|
64
|
-
"layout": "row",
|
|
65
|
-
"items": [
|
|
66
|
-
{ "tag": "button", "class": "ui-button ui-button--radius-none", "text": "None" },
|
|
67
|
-
{ "tag": "button", "class": "ui-button ui-button--radius-sm", "text": "Small" },
|
|
68
|
-
{ "tag": "button", "class": "ui-button", "text": "Default" },
|
|
69
|
-
{ "tag": "button", "class": "ui-button ui-button--radius-lg", "text": "Large" },
|
|
70
|
-
{ "tag": "button", "class": "ui-button ui-button--radius-full", "text": "Full" }
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"title": "Block",
|
|
77
|
-
"description": "Full width button for mobile or form submit.",
|
|
78
|
-
"examples": [
|
|
79
|
-
{
|
|
80
|
-
"items": [
|
|
81
|
-
{ "tag": "button", "class": "ui-button ui-button--block", "text": "Block Button" }
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"title": "Loading",
|
|
88
|
-
"description": "Shows spinner animation. Button becomes non-interactive.",
|
|
89
|
-
"examples": [
|
|
90
|
-
{
|
|
91
|
-
"layout": "row",
|
|
92
|
-
"items": [
|
|
93
|
-
{ "tag": "button", "class": "ui-button ui-button--loading", "text": "Loading" },
|
|
94
|
-
{
|
|
95
|
-
"tag": "button",
|
|
96
|
-
"class": "ui-button ui-button--secondary ui-button--loading",
|
|
97
|
-
"text": "Loading"
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"title": "Icon Button",
|
|
105
|
-
"description": "Square icon-only buttons. Use with SVG icons from Lucide or similar sets.",
|
|
106
|
-
"examples": [
|
|
107
|
-
{
|
|
108
|
-
"layout": "row",
|
|
109
|
-
"items": [
|
|
110
|
-
{
|
|
111
|
-
"tag": "button",
|
|
112
|
-
"class": "ui-button ui-button--icon ui-button--sm",
|
|
113
|
-
"children": [
|
|
114
|
-
{
|
|
115
|
-
"tag": "svg",
|
|
116
|
-
"class": "ui-icon",
|
|
117
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
118
|
-
"children": [
|
|
119
|
-
{ "tag": "path", "attrs": { "d": "M18 6 6 18" } },
|
|
120
|
-
{ "tag": "path", "attrs": { "d": "m6 6 12 12" } }
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"tag": "button",
|
|
127
|
-
"class": "ui-button ui-button--icon",
|
|
128
|
-
"children": [
|
|
129
|
-
{
|
|
130
|
-
"tag": "svg",
|
|
131
|
-
"class": "ui-icon",
|
|
132
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
133
|
-
"children": [
|
|
134
|
-
{ "tag": "path", "attrs": { "d": "M5 12h14" } },
|
|
135
|
-
{ "tag": "path", "attrs": { "d": "M12 5v14" } }
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"tag": "button",
|
|
142
|
-
"class": "ui-button ui-button--icon ui-button--lg",
|
|
143
|
-
"children": [
|
|
144
|
-
{
|
|
145
|
-
"tag": "svg",
|
|
146
|
-
"class": "ui-icon",
|
|
147
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
148
|
-
"children": [
|
|
149
|
-
{ "tag": "circle", "attrs": { "cx": "11", "cy": "11", "r": "8" } },
|
|
150
|
-
{ "tag": "path", "attrs": { "d": "m21 21-4.3-4.3" } }
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"code": "<button class=\"ui-button ui-button--icon ui-button--sm\">\n <svg class=\"ui-icon\"><!-- x icon --></svg>\n</button>\n<button class=\"ui-button ui-button--icon\">\n <svg class=\"ui-icon\"><!-- plus icon --></svg>\n</button>\n<button class=\"ui-button ui-button--icon ui-button--lg\">\n <svg class=\"ui-icon\"><!-- search icon --></svg>\n</button>"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"title": "With Icon",
|
|
162
|
-
"description": "Buttons with icon and text. Use ui-button__icon element with --start or --end modifier.",
|
|
163
|
-
"examples": [
|
|
164
|
-
{
|
|
165
|
-
"layout": "row",
|
|
166
|
-
"items": [
|
|
167
|
-
{
|
|
168
|
-
"tag": "button",
|
|
169
|
-
"class": "ui-button",
|
|
170
|
-
"children": [
|
|
171
|
-
{
|
|
172
|
-
"tag": "svg",
|
|
173
|
-
"class": "ui-icon ui-button__icon ui-button__icon--start",
|
|
174
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
175
|
-
"children": [
|
|
176
|
-
{ "tag": "path", "attrs": { "d": "M5 12h14" } },
|
|
177
|
-
{ "tag": "path", "attrs": { "d": "M12 5v14" } }
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
{ "text": "Add Item" }
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"tag": "button",
|
|
185
|
-
"class": "ui-button ui-button--secondary",
|
|
186
|
-
"children": [
|
|
187
|
-
{ "text": "Next" },
|
|
188
|
-
{
|
|
189
|
-
"tag": "svg",
|
|
190
|
-
"class": "ui-icon ui-button__icon ui-button__icon--end",
|
|
191
|
-
"attrs": { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 24 24" },
|
|
192
|
-
"children": [{ "tag": "path", "attrs": { "d": "m9 18 6-6-6-6" } }]
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"code": "<button class=\"ui-button\">\n <svg class=\"ui-icon ui-button__icon ui-button__icon--start\"><!-- plus --></svg>\n Add Item\n</button>\n<button class=\"ui-button ui-button--secondary\">\n Next\n <svg class=\"ui-icon ui-button__icon ui-button__icon--end\"><!-- chevron-right --></svg>\n</button>"
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"customization": [
|
|
203
|
-
{
|
|
204
|
-
"token": "--ui-button-accent",
|
|
205
|
-
"default": "var(--ui-color-primary)",
|
|
206
|
-
"description": "Primary accent color. All shades auto-generated via color-mix."
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"token": "--ui-button-height",
|
|
210
|
-
"default": "var(--ui-row-2)",
|
|
211
|
-
"description": "Overall height"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"token": "--ui-button-padding-x",
|
|
215
|
-
"default": "var(--ui-space-2)",
|
|
216
|
-
"description": "Horizontal padding"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"token": "--ui-button-font-size",
|
|
220
|
-
"default": "var(--ui-font-size-sm)",
|
|
221
|
-
"description": "Font size"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"token": "--ui-button-font-weight",
|
|
225
|
-
"default": "var(--ui-weight-medium)",
|
|
226
|
-
"description": "Font weight"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"token": "--ui-button-radius",
|
|
230
|
-
"default": "var(--ui-radius-md)",
|
|
231
|
-
"description": "Corner radius"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"token": "--ui-button-color",
|
|
235
|
-
"default": "var(--ui-color-text-inverse)",
|
|
236
|
-
"description": "Text color"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"token": "--ui-button-height-sm",
|
|
240
|
-
"default": "calc(var(--ui-row) * 1.5)",
|
|
241
|
-
"description": "Overall height at small size"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"token": "--ui-button-font-size-sm",
|
|
245
|
-
"default": "var(--ui-font-size-xs)",
|
|
246
|
-
"description": "Font size at small size"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"token": "--ui-button-height-lg",
|
|
250
|
-
"default": "calc(var(--ui-row) * 2.5)",
|
|
251
|
-
"description": "Overall height at large size"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"token": "--ui-button-padding-x-lg",
|
|
255
|
-
"default": "var(--ui-space-3)",
|
|
256
|
-
"description": "Horizontal padding at large size"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"token": "--ui-button-font-size-lg",
|
|
260
|
-
"default": "var(--ui-font-size-md)",
|
|
261
|
-
"description": "Font size at large size"
|
|
262
|
-
}
|
|
263
|
-
]
|
|
264
|
-
}
|