@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
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "theming",
|
|
3
|
-
"type": "guide",
|
|
4
|
-
"title": "Theming",
|
|
5
|
-
"description": "Customize the design system with CSS custom properties",
|
|
6
|
-
"weight": 2,
|
|
7
|
-
"skipValidation": true,
|
|
8
|
-
"sections": [
|
|
9
|
-
{
|
|
10
|
-
"title": "Brand Colors",
|
|
11
|
-
"description": "Change the entire color palette by adjusting hue values",
|
|
12
|
-
"examples": [
|
|
13
|
-
{
|
|
14
|
-
"title": "Default (Blue)",
|
|
15
|
-
"items": [
|
|
16
|
-
{
|
|
17
|
-
"tag": "div",
|
|
18
|
-
"class": "theme-demo",
|
|
19
|
-
"children": [
|
|
20
|
-
{
|
|
21
|
-
"tag": "button",
|
|
22
|
-
"class": "ui-button",
|
|
23
|
-
"text": "Primary"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"tag": "button",
|
|
27
|
-
"class": "ui-button ui-button--secondary",
|
|
28
|
-
"text": "Secondary"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"tag": "button",
|
|
32
|
-
"class": "ui-button ui-button--danger",
|
|
33
|
-
"text": "Danger"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"code": ":root {\n --ui-hue-primary: 220; /* Blue */\n}"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"title": "Purple Theme",
|
|
42
|
-
"items": [
|
|
43
|
-
{
|
|
44
|
-
"tag": "div",
|
|
45
|
-
"class": "theme-demo theme-purple",
|
|
46
|
-
"children": [
|
|
47
|
-
{
|
|
48
|
-
"tag": "button",
|
|
49
|
-
"class": "ui-button",
|
|
50
|
-
"text": "Primary"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"tag": "button",
|
|
54
|
-
"class": "ui-button ui-button--secondary",
|
|
55
|
-
"text": "Secondary"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"tag": "button",
|
|
59
|
-
"class": "ui-button ui-button--danger",
|
|
60
|
-
"text": "Danger"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"code": ".theme-purple {\n --ui-hue-primary: 270; /* Purple */\n}"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "Teal Theme",
|
|
69
|
-
"items": [
|
|
70
|
-
{
|
|
71
|
-
"tag": "div",
|
|
72
|
-
"class": "theme-demo theme-teal",
|
|
73
|
-
"children": [
|
|
74
|
-
{
|
|
75
|
-
"tag": "button",
|
|
76
|
-
"class": "ui-button",
|
|
77
|
-
"text": "Primary"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"tag": "button",
|
|
81
|
-
"class": "ui-button ui-button--secondary",
|
|
82
|
-
"text": "Secondary"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"tag": "button",
|
|
86
|
-
"class": "ui-button ui-button--danger",
|
|
87
|
-
"text": "Danger"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"code": ".theme-teal {\n --ui-hue-primary: 180; /* Teal */\n}"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"title": "Orange Theme",
|
|
96
|
-
"items": [
|
|
97
|
-
{
|
|
98
|
-
"tag": "div",
|
|
99
|
-
"class": "theme-demo theme-orange",
|
|
100
|
-
"children": [
|
|
101
|
-
{
|
|
102
|
-
"tag": "button",
|
|
103
|
-
"class": "ui-button",
|
|
104
|
-
"text": "Primary"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"tag": "button",
|
|
108
|
-
"class": "ui-button ui-button--secondary",
|
|
109
|
-
"text": "Secondary"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"tag": "button",
|
|
113
|
-
"class": "ui-button ui-button--danger",
|
|
114
|
-
"text": "Danger"
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
"code": ".theme-orange {\n --ui-hue-primary: 25; /* Orange */\n}"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"title": "Dark Mode",
|
|
125
|
-
"description": "Dark mode uses the CSS light-dark() function. Tokens resolve automatically based on color-scheme. Override with data-theme attribute.",
|
|
126
|
-
"examples": [
|
|
127
|
-
{
|
|
128
|
-
"title": "Automatic (system preference)",
|
|
129
|
-
"items": [
|
|
130
|
-
{
|
|
131
|
-
"tag": "div",
|
|
132
|
-
"class": "theme-demo",
|
|
133
|
-
"children": [
|
|
134
|
-
{
|
|
135
|
-
"tag": "div",
|
|
136
|
-
"class": "ui-card",
|
|
137
|
-
"children": [
|
|
138
|
-
{
|
|
139
|
-
"tag": "p",
|
|
140
|
-
"text": "Follows OS color scheme"
|
|
141
|
-
}
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"code": ":root {\n color-scheme: light dark;\n --ui-color-bg: light-dark(\n var(--ui-color-neutral-50),\n var(--ui-color-neutral-900)\n );\n}"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"title": "Force Light Mode",
|
|
151
|
-
"items": [
|
|
152
|
-
{
|
|
153
|
-
"tag": "div",
|
|
154
|
-
"class": "theme-demo",
|
|
155
|
-
"attrs": {
|
|
156
|
-
"data-theme": "light"
|
|
157
|
-
},
|
|
158
|
-
"children": [
|
|
159
|
-
{
|
|
160
|
-
"tag": "div",
|
|
161
|
-
"class": "ui-card",
|
|
162
|
-
"children": [
|
|
163
|
-
{
|
|
164
|
-
"tag": "p",
|
|
165
|
-
"text": "Always light"
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"code": "<html data-theme=\"light\">\n <!-- Forces light mode regardless of OS setting -->\n</html>"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"title": "Force Dark Mode",
|
|
176
|
-
"items": [
|
|
177
|
-
{
|
|
178
|
-
"tag": "div",
|
|
179
|
-
"class": "theme-demo",
|
|
180
|
-
"attrs": {
|
|
181
|
-
"data-theme": "dark"
|
|
182
|
-
},
|
|
183
|
-
"children": [
|
|
184
|
-
{
|
|
185
|
-
"tag": "div",
|
|
186
|
-
"class": "ui-card",
|
|
187
|
-
"children": [
|
|
188
|
-
{
|
|
189
|
-
"tag": "p",
|
|
190
|
-
"text": "Always dark"
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"code": "<html data-theme=\"dark\">\n <!-- Forces dark mode regardless of OS setting -->\n</html>"
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"title": "Component Overrides",
|
|
203
|
-
"description": "Override specific component tokens",
|
|
204
|
-
"examples": [
|
|
205
|
-
{
|
|
206
|
-
"title": "Custom Button Height",
|
|
207
|
-
"items": [
|
|
208
|
-
{
|
|
209
|
-
"tag": "div",
|
|
210
|
-
"class": "theme-demo custom-buttons",
|
|
211
|
-
"children": [
|
|
212
|
-
{
|
|
213
|
-
"tag": "button",
|
|
214
|
-
"class": "ui-button ui-button--sm",
|
|
215
|
-
"text": "Small"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"tag": "button",
|
|
219
|
-
"class": "ui-button",
|
|
220
|
-
"text": "Default"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"tag": "button",
|
|
224
|
-
"class": "ui-button ui-button--lg",
|
|
225
|
-
"text": "Large"
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
}
|
|
229
|
-
],
|
|
230
|
-
"code": ".custom-buttons {\n --ui-button-height-sm: 24px;\n --ui-button-height: 40px;\n --ui-button-height-lg: 56px;\n}"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"title": "Custom Card Padding",
|
|
234
|
-
"items": [
|
|
235
|
-
{
|
|
236
|
-
"tag": "div",
|
|
237
|
-
"class": "theme-demo custom-cards",
|
|
238
|
-
"children": [
|
|
239
|
-
{
|
|
240
|
-
"tag": "div",
|
|
241
|
-
"class": "ui-card",
|
|
242
|
-
"children": [
|
|
243
|
-
{
|
|
244
|
-
"tag": "p",
|
|
245
|
-
"text": "Card with custom padding"
|
|
246
|
-
}
|
|
247
|
-
]
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
"code": ".custom-cards {\n --ui-card-padding: var(--ui-space-4);\n}"
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"title": "Full Theme Example",
|
|
258
|
-
"description": "Complete theme customization",
|
|
259
|
-
"examples": [
|
|
260
|
-
{
|
|
261
|
-
"items": [
|
|
262
|
-
{
|
|
263
|
-
"tag": "div",
|
|
264
|
-
"class": "theme-demo theme-corporate",
|
|
265
|
-
"children": [
|
|
266
|
-
{
|
|
267
|
-
"tag": "button",
|
|
268
|
-
"class": "ui-button",
|
|
269
|
-
"text": "Action"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"tag": "div",
|
|
273
|
-
"class": "ui-card",
|
|
274
|
-
"children": [
|
|
275
|
-
{
|
|
276
|
-
"tag": "p",
|
|
277
|
-
"text": "Corporate theme with teal accent and sharp corners"
|
|
278
|
-
}
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
|
-
]
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
"code": ".theme-corporate {\n /* Brand hue */\n --ui-hue-primary: 180;\n\n /* Sharper corners */\n --ui-radius-sm: 2px;\n --ui-radius-md: 4px;\n --ui-radius-lg: 6px;\n\n /* Tighter spacing */\n --ui-space-1: 12px;\n --ui-space-2: 24px;\n}"
|
|
285
|
-
}
|
|
286
|
-
]
|
|
287
|
-
}
|
|
288
|
-
]
|
|
289
|
-
}
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "colors",
|
|
3
|
-
"type": "token",
|
|
4
|
-
"title": "Colors",
|
|
5
|
-
"description": "HSL-based color system with primitive and semantic tokens. Semantic tokens adapt to light/dark themes.",
|
|
6
|
-
"skipValidation": true,
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Text Colors",
|
|
10
|
-
"description": "Use for typography and icons.",
|
|
11
|
-
"examples": [
|
|
12
|
-
{
|
|
13
|
-
"layout": "column",
|
|
14
|
-
"items": [
|
|
15
|
-
{
|
|
16
|
-
"tag": "p",
|
|
17
|
-
"style": { "color": "var(--ui-color-text)" },
|
|
18
|
-
"text": "--ui-color-text: Default text"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"tag": "p",
|
|
22
|
-
"style": { "color": "var(--ui-color-text-muted)" },
|
|
23
|
-
"text": "--ui-color-text-muted: Secondary text, captions"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"tag": "p",
|
|
27
|
-
"class": "ui-p-1",
|
|
28
|
-
"style": {
|
|
29
|
-
"color": "var(--ui-color-text-inverse)",
|
|
30
|
-
"background": "var(--ui-color-neutral-900)",
|
|
31
|
-
"border-radius": "var(--ui-radius-sm)"
|
|
32
|
-
},
|
|
33
|
-
"text": "--ui-color-text-inverse: Text on dark backgrounds"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"title": "Background Colors",
|
|
41
|
-
"description": "Use for surfaces, cards, and containers.",
|
|
42
|
-
"examples": [
|
|
43
|
-
{
|
|
44
|
-
"layout": "column",
|
|
45
|
-
"items": [
|
|
46
|
-
{
|
|
47
|
-
"tag": "div",
|
|
48
|
-
"class": "ui-p-2",
|
|
49
|
-
"style": {
|
|
50
|
-
"background": "var(--ui-color-bg)",
|
|
51
|
-
"border": "1px solid var(--ui-color-border)",
|
|
52
|
-
"border-radius": "var(--ui-radius-md)"
|
|
53
|
-
},
|
|
54
|
-
"text": "--ui-color-bg: Base background"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"tag": "div",
|
|
58
|
-
"class": "ui-p-2",
|
|
59
|
-
"style": {
|
|
60
|
-
"background": "var(--ui-color-bg-subtle)",
|
|
61
|
-
"border-radius": "var(--ui-radius-md)"
|
|
62
|
-
},
|
|
63
|
-
"text": "--ui-color-bg-subtle: Subtle emphasis"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"tag": "div",
|
|
67
|
-
"class": "ui-p-2",
|
|
68
|
-
"style": {
|
|
69
|
-
"background": "var(--ui-color-bg-muted)",
|
|
70
|
-
"border-radius": "var(--ui-radius-md)"
|
|
71
|
-
},
|
|
72
|
-
"text": "--ui-color-bg-muted: Stronger emphasis, code blocks"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"title": "Border Colors",
|
|
80
|
-
"description": "Use for dividers, inputs, and card borders.",
|
|
81
|
-
"examples": [
|
|
82
|
-
{
|
|
83
|
-
"layout": "column",
|
|
84
|
-
"items": [
|
|
85
|
-
{
|
|
86
|
-
"tag": "div",
|
|
87
|
-
"class": "ui-p-2",
|
|
88
|
-
"style": {
|
|
89
|
-
"border": "2px solid var(--ui-color-border)",
|
|
90
|
-
"border-radius": "var(--ui-radius-md)"
|
|
91
|
-
},
|
|
92
|
-
"text": "--ui-color-border: Default borders"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"tag": "div",
|
|
96
|
-
"class": "ui-p-2",
|
|
97
|
-
"style": {
|
|
98
|
-
"border": "2px solid var(--ui-color-border-strong)",
|
|
99
|
-
"border-radius": "var(--ui-radius-md)"
|
|
100
|
-
},
|
|
101
|
-
"text": "--ui-color-border-strong: Emphasized borders"
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"title": "Interactive Colors",
|
|
109
|
-
"description": "Use for links, buttons, and interactive elements.",
|
|
110
|
-
"examples": [
|
|
111
|
-
{
|
|
112
|
-
"layout": "column",
|
|
113
|
-
"items": [
|
|
114
|
-
{
|
|
115
|
-
"tag": "p",
|
|
116
|
-
"style": { "color": "var(--ui-color-interactive)" },
|
|
117
|
-
"text": "--ui-color-interactive: Links, primary actions"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"tag": "p",
|
|
121
|
-
"style": { "color": "var(--ui-color-interactive-hover)" },
|
|
122
|
-
"text": "--ui-color-interactive-hover: Hover state"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"tag": "div",
|
|
126
|
-
"class": "ui-p-1",
|
|
127
|
-
"style": {
|
|
128
|
-
"display": "inline-block",
|
|
129
|
-
"outline": "3px solid var(--ui-color-focus)",
|
|
130
|
-
"outline-offset": "2px",
|
|
131
|
-
"border-radius": "var(--ui-radius-sm)"
|
|
132
|
-
},
|
|
133
|
-
"text": "--ui-color-focus: Focus rings"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"title": "Status Colors",
|
|
141
|
-
"description": "Use for feedback, alerts, and validation.",
|
|
142
|
-
"examples": [
|
|
143
|
-
{
|
|
144
|
-
"items": [
|
|
145
|
-
{
|
|
146
|
-
"tag": "div",
|
|
147
|
-
"class": "ui-row ui-row--sm",
|
|
148
|
-
"children": [
|
|
149
|
-
{
|
|
150
|
-
"tag": "div",
|
|
151
|
-
"attrs": {
|
|
152
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-success); border-radius: var(--ui-radius-sm)"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
{ "tag": "span", "text": "--ui-color-success" }
|
|
156
|
-
]
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"tag": "div",
|
|
160
|
-
"class": "ui-row ui-row--sm",
|
|
161
|
-
"children": [
|
|
162
|
-
{
|
|
163
|
-
"tag": "div",
|
|
164
|
-
"attrs": {
|
|
165
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-warning); border-radius: var(--ui-radius-sm)"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
{ "tag": "span", "text": "--ui-color-warning" }
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"tag": "div",
|
|
173
|
-
"class": "ui-row ui-row--sm",
|
|
174
|
-
"children": [
|
|
175
|
-
{
|
|
176
|
-
"tag": "div",
|
|
177
|
-
"attrs": {
|
|
178
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-danger); border-radius: var(--ui-radius-sm)"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
{ "tag": "span", "text": "--ui-color-danger" }
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"title": "Primary Scale",
|
|
190
|
-
"description": "Brand color with light and dark variants.",
|
|
191
|
-
"examples": [
|
|
192
|
-
{
|
|
193
|
-
"items": [
|
|
194
|
-
{
|
|
195
|
-
"tag": "div",
|
|
196
|
-
"class": "ui-row ui-row--sm",
|
|
197
|
-
"children": [
|
|
198
|
-
{
|
|
199
|
-
"tag": "div",
|
|
200
|
-
"attrs": {
|
|
201
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-primary-light); border-radius: var(--ui-radius-sm)"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{ "tag": "span", "text": "--ui-color-primary-light" }
|
|
205
|
-
]
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"tag": "div",
|
|
209
|
-
"class": "ui-row ui-row--sm",
|
|
210
|
-
"children": [
|
|
211
|
-
{
|
|
212
|
-
"tag": "div",
|
|
213
|
-
"attrs": {
|
|
214
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-primary); border-radius: var(--ui-radius-sm)"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
{ "tag": "span", "text": "--ui-color-primary" }
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"tag": "div",
|
|
222
|
-
"class": "ui-row ui-row--sm",
|
|
223
|
-
"children": [
|
|
224
|
-
{
|
|
225
|
-
"tag": "div",
|
|
226
|
-
"attrs": {
|
|
227
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-primary-dark); border-radius: var(--ui-radius-sm)"
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
{ "tag": "span", "text": "--ui-color-primary-dark" }
|
|
231
|
-
]
|
|
232
|
-
}
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"title": "Neutral Scale",
|
|
239
|
-
"description": "Gray scale for text, backgrounds, and borders. Derived from primary hue for subtle warmth.",
|
|
240
|
-
"examples": [
|
|
241
|
-
{
|
|
242
|
-
"items": [
|
|
243
|
-
{
|
|
244
|
-
"tag": "div",
|
|
245
|
-
"class": "ui-row ui-row--sm",
|
|
246
|
-
"attrs": { "style": "flex-wrap: wrap" },
|
|
247
|
-
"children": [
|
|
248
|
-
{
|
|
249
|
-
"tag": "div",
|
|
250
|
-
"attrs": {
|
|
251
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-50); border: 1px solid var(--ui-color-border); border-radius: var(--ui-radius-sm)"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"tag": "div",
|
|
256
|
-
"attrs": {
|
|
257
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-100); border-radius: var(--ui-radius-sm)"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"tag": "div",
|
|
262
|
-
"attrs": {
|
|
263
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-200); border-radius: var(--ui-radius-sm)"
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"tag": "div",
|
|
268
|
-
"attrs": {
|
|
269
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-300); border-radius: var(--ui-radius-sm)"
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"tag": "div",
|
|
274
|
-
"attrs": {
|
|
275
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-400); border-radius: var(--ui-radius-sm)"
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"tag": "div",
|
|
280
|
-
"attrs": {
|
|
281
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-500); border-radius: var(--ui-radius-sm)"
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"tag": "div",
|
|
286
|
-
"attrs": {
|
|
287
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-600); border-radius: var(--ui-radius-sm)"
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"tag": "div",
|
|
292
|
-
"attrs": {
|
|
293
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-700); border-radius: var(--ui-radius-sm)"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"tag": "div",
|
|
298
|
-
"attrs": {
|
|
299
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-800); border-radius: var(--ui-radius-sm)"
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"tag": "div",
|
|
304
|
-
"attrs": {
|
|
305
|
-
"style": "width: var(--ui-space-4); height: var(--ui-row-2); background: var(--ui-color-neutral-900); border-radius: var(--ui-radius-sm)"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
]
|
|
309
|
-
}
|
|
310
|
-
],
|
|
311
|
-
"code": "50 → 100 → 200 → 300 → 400 → 500 → 600 → 700 → 800 → 900"
|
|
312
|
-
}
|
|
313
|
-
]
|
|
314
|
-
}
|
|
315
|
-
]
|
|
316
|
-
}
|