@teseor/css 1.14.3 → 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 +3 -3
- package/src/components/actions/button-group/button-group.docs.html +47 -0
- package/src/components/actions/button-group/button-group.visual.spec.ts +3 -3
- package/src/components/actions/close-button/close-button.docs.html +77 -0
- package/src/components/actions/close-button/close-button.visual.spec.ts +3 -3
- package/src/components/content/divider/divider.docs.html +27 -0
- package/src/components/content/divider/divider.visual.spec.ts +3 -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 +3 -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 +3 -3
- package/src/components/data-display/badge/badge.docs.html +39 -0
- package/src/components/data-display/badge/badge.visual.spec.ts +3 -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 +3 -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 +3 -3
- package/src/components/data-display/icon/icon.docs.html +72 -0
- package/src/components/data-display/icon/icon.visual.spec.ts +3 -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 +3 -3
- package/src/components/data-display/stat/stat.docs.html +35 -0
- package/src/components/data-display/stat/stat.visual.spec.ts +3 -3
- package/src/components/data-display/status/status.docs.html +67 -0
- package/src/components/data-display/status/status.visual.spec.ts +3 -3
- package/src/components/data-display/table/table.docs.html +73 -0
- package/src/components/data-display/table/table.visual.spec.ts +3 -3
- package/src/components/data-display/tag/tag.docs.html +42 -0
- package/src/components/data-display/tag/tag.visual.spec.ts +3 -3
- package/src/components/disclosure/accordion/accordion.docs.html +83 -0
- package/src/components/disclosure/accordion/accordion.visual.spec.ts +3 -3
- package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
- package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +3 -3
- package/src/components/feedback/alert/alert.docs.html +90 -0
- package/src/components/feedback/alert/alert.visual.spec.ts +3 -3
- package/src/components/feedback/progress/progress.docs.html +65 -0
- package/src/components/feedback/progress/progress.visual.spec.ts +3 -3
- package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
- package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +3 -3
- package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
- package/src/components/feedback/skeleton/skeleton.visual.spec.ts +3 -3
- package/src/components/feedback/spinner/spinner.docs.html +28 -0
- package/src/components/feedback/spinner/spinner.visual.spec.ts +3 -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 +3 -3
- package/src/components/forms/checkbox/checkbox.docs.html +33 -0
- package/src/components/forms/checkbox/checkbox.visual.spec.ts +3 -3
- package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
- package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +3 -3
- package/src/components/forms/field/field.docs.html +63 -0
- package/src/components/forms/field/field.visual.spec.ts +3 -3
- package/src/components/forms/fieldset/fieldset.docs.html +122 -0
- package/src/components/forms/fieldset/fieldset.visual.spec.ts +3 -3
- package/src/components/forms/form/form.docs.html +132 -0
- package/src/components/forms/form/form.visual.spec.ts +3 -3
- package/src/components/forms/form-error/form-error.docs.html +18 -0
- package/src/components/forms/form-error/form-error.visual.spec.ts +3 -3
- package/src/components/forms/form-helper/form-helper.docs.html +42 -0
- package/src/components/forms/form-helper/form-helper.visual.spec.ts +3 -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 +3 -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 +3 -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 +3 -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 +3 -3
- package/src/components/forms/radio/radio.docs.html +52 -0
- package/src/components/forms/radio/radio.visual.spec.ts +3 -3
- package/src/components/forms/radio-group/radio-group.docs.html +100 -0
- package/src/components/forms/radio-group/radio-group.visual.spec.ts +3 -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 +3 -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 +3 -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 +3 -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 +3 -3
- package/src/components/forms/toggle/toggle.docs.html +64 -0
- package/src/components/forms/toggle/toggle.visual.spec.ts +3 -3
- package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
- package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +3 -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 +3 -3
- package/src/components/navigation/menu/menu.docs.html +122 -0
- package/src/components/navigation/menu/menu.visual.spec.ts +3 -3
- package/src/components/navigation/nav/nav.docs.html +74 -0
- package/src/components/navigation/nav/nav.visual.spec.ts +3 -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 +3 -3
- package/src/components/navigation/tabs/tabs.docs.html +66 -0
- package/src/components/navigation/tabs/tabs.visual.spec.ts +3 -3
- package/src/components/overlays/dialog/dialog.docs.html +61 -0
- package/src/components/overlays/dialog/dialog.visual.spec.ts +3 -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 +3 -3
- package/src/components/overlays/modal/modal.docs.html +69 -0
- package/src/components/overlays/modal/modal.visual.spec.ts +3 -3
- package/src/components/overlays/overlay/overlay.docs.html +30 -0
- package/src/components/overlays/overlay/overlay.visual.spec.ts +3 -3
- package/src/components/overlays/popover/popover.docs.html +41 -0
- package/src/components/overlays/popover/popover.visual.spec.ts +3 -3
- package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
- package/src/components/overlays/tooltip/tooltip.visual.spec.ts +3 -3
- package/src/components/typography/blockquote/blockquote.docs.html +24 -0
- package/src/components/typography/blockquote/blockquote.visual.spec.ts +3 -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 +3 -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 +3 -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 +3 -3
- package/src/components/typography/kbd/kbd.docs.html +16 -0
- package/src/components/typography/kbd/kbd.visual.spec.ts +3 -3
- package/src/components/typography/link/link.docs.html +33 -0
- package/src/components/typography/link/link.visual.spec.ts +3 -3
- package/src/components/typography/list/list.docs.html +79 -0
- package/src/components/typography/list/list.visual.spec.ts +3 -3
- package/src/components/typography/mark/mark.docs.html +12 -0
- package/src/components/typography/mark/mark.visual.spec.ts +3 -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/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/root.docs.json +0 -35
- 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/guides/accessibility.docs.json +0 -126
- package/src/config/guides/getting-started.docs.json +0 -106
- package/src/config/guides/theming.docs.json +0 -289
- package/src/config/tokens/colors/colors.docs.json +0 -316
- package/src/config/tokens/design-tokens.docs.json +0 -239
- package/src/config/tokens/grid/grid.docs.json +0 -54
- package/src/config/tokens/spacing/spacing.docs.json +0 -114
- package/src/debug/debug.docs.json +0 -96
- 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/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>
|
package/src/base/root.docs.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "root",
|
|
3
|
-
"type": "token",
|
|
4
|
-
"title": "Root",
|
|
5
|
-
"description": "Base styles applied to the .root class: font family, size, line-height, color, and background",
|
|
6
|
-
"skipValidation": true,
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Usage",
|
|
10
|
-
"description": "Add the .ui-root class to the html or body element to establish baseline typography and color.",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"title": "Basic setup",
|
|
14
|
-
"items": [
|
|
15
|
-
{
|
|
16
|
-
"tag": "div",
|
|
17
|
-
"class": "ui-root",
|
|
18
|
-
"children": [
|
|
19
|
-
{
|
|
20
|
-
"tag": "p",
|
|
21
|
-
"text": "Text inherits font-family, size, line-height, and color from .ui-root"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"code": "<html class=\"ui-root\">\n <body>\n <!-- All children inherit base styles -->\n </body>\n</html>"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"title": "Tokens applied",
|
|
30
|
-
"code": ".ui-root {\n font-family: var(--ui-font-sans);\n font-size: var(--ui-font-size-md);\n line-height: var(--ui-leading-md);\n color: var(--ui-color-text);\n background: var(--ui-color-bg);\n}"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
@@ -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
|
-
}
|