@teseor/css 1.0.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/README.md +102 -0
- package/dist/compiled.css +4463 -0
- package/dist/index.css +4445 -0
- package/fonts/.gitkeep +9 -0
- package/package.json +38 -0
- package/src/00-config/layers/layers.scss +1 -0
- package/src/00-config/mixins/_border.scss +13 -0
- package/src/00-config/mixins/index.scss +1 -0
- package/src/00-config/tokens/_variables.scss +120 -0
- package/src/00-config/tokens/borders/index.scss +6 -0
- package/src/00-config/tokens/colors/colors.docs.json +168 -0
- package/src/00-config/tokens/colors/index.scss +25 -0
- package/src/00-config/tokens/grid/grid.docs.json +54 -0
- package/src/00-config/tokens/grid/index.scss +11 -0
- package/src/00-config/tokens/index.scss +15 -0
- package/src/00-config/tokens/input.scss +14 -0
- package/src/00-config/tokens/motion/index.scss +25 -0
- package/src/00-config/tokens/radius/index.scss +7 -0
- package/src/00-config/tokens/semantic/colors/index.scss +30 -0
- package/src/00-config/tokens/semantic/spacing/index.scss +10 -0
- package/src/00-config/tokens/shadows/index.scss +5 -0
- package/src/00-config/tokens/spacing/index.scss +15 -0
- package/src/00-config/tokens/spacing/spacing.docs.json +114 -0
- package/src/00-config/tokens/theming.docs.json +77 -0
- package/src/00-config/tokens/typography/index.scss +119 -0
- package/src/00-config/tokens/zindex/index.scss +14 -0
- package/src/01-reset/index.scss +1 -0
- package/src/01-reset/reset.scss +8 -0
- package/src/02-base/index.scss +2 -0
- package/src/02-base/root/root.scss +12 -0
- package/src/02-base/typography/typography.docs.json +94 -0
- package/src/02-base/typography/typography.scss +145 -0
- package/src/03-layout/app-shell/app-shell.api.json +26 -0
- package/src/03-layout/app-shell/app-shell.docs.json +119 -0
- package/src/03-layout/app-shell/index.scss +5 -0
- package/src/03-layout/box/box.api.json +15 -0
- package/src/03-layout/box/box.docs.json +57 -0
- package/src/03-layout/box/index.scss +34 -0
- package/src/03-layout/center/center.api.json +6 -0
- package/src/03-layout/center/center.docs.json +24 -0
- package/src/03-layout/center/index.scss +11 -0
- package/src/03-layout/cluster/cluster.api.json +10 -0
- package/src/03-layout/cluster/cluster.docs.json +129 -0
- package/src/03-layout/cluster/index.scss +18 -0
- package/src/03-layout/container/container.api.json +13 -0
- package/src/03-layout/container/index.scss +17 -0
- package/src/03-layout/flex/flex.api.json +15 -0
- package/src/03-layout/flex/flex.docs.json +56 -0
- package/src/03-layout/flex/index.scss +51 -0
- package/src/03-layout/grid/grid.api.json +10 -0
- package/src/03-layout/grid/grid.docs.json +116 -0
- package/src/03-layout/grid/index.scss +15 -0
- package/src/03-layout/index.scss +11 -0
- package/src/03-layout/main/index.scss +17 -0
- package/src/03-layout/main/main.api.json +13 -0
- package/src/03-layout/sidebar/index.scss +30 -0
- package/src/03-layout/sidebar/sidebar.api.json +13 -0
- package/src/03-layout/sidebar-nav/index.scss +209 -0
- package/src/03-layout/sidebar-nav/sidebar-nav-all.png +0 -0
- package/src/03-layout/sidebar-nav/sidebar-nav.api.json +115 -0
- package/src/03-layout/sidebar-nav/sidebar-nav.docs.json +100 -0
- package/src/03-layout/sidebar-nav/sidebar-nav.visual.spec.ts +14 -0
- package/src/03-layout/stack/index.scss +13 -0
- package/src/03-layout/stack/stack.api.json +10 -0
- package/src/03-layout/stack/stack.docs.json +131 -0
- package/src/04-components/accordion/accordion-visual.png +0 -0
- package/src/04-components/accordion/accordion.api.json +19 -0
- package/src/04-components/accordion/accordion.docs.json +51 -0
- package/src/04-components/accordion/accordion.visual.spec.ts +14 -0
- package/src/04-components/accordion/index.scss +78 -0
- package/src/04-components/alert/alert-visual.png +0 -0
- package/src/04-components/alert/alert.api.json +91 -0
- package/src/04-components/alert/alert.docs.json +79 -0
- package/src/04-components/alert/alert.visual.spec.ts +14 -0
- package/src/04-components/alert/index.scss +108 -0
- package/src/04-components/avatar/avatar-visual.png +0 -0
- package/src/04-components/avatar/avatar.api.json +70 -0
- package/src/04-components/avatar/avatar.docs.json +200 -0
- package/src/04-components/avatar/avatar.visual.spec.ts +14 -0
- package/src/04-components/avatar/index.scss +104 -0
- package/src/04-components/badge/badge-visual.png +0 -0
- package/src/04-components/badge/badge.api.json +86 -0
- package/src/04-components/badge/badge.docs.json +89 -0
- package/src/04-components/badge/badge.visual.spec.ts +14 -0
- package/src/04-components/badge/index.scss +64 -0
- package/src/04-components/breadcrumb/breadcrumb-visual.png +0 -0
- package/src/04-components/breadcrumb/breadcrumb.api.json +31 -0
- package/src/04-components/breadcrumb/breadcrumb.docs.json +59 -0
- package/src/04-components/breadcrumb/breadcrumb.visual.spec.ts +14 -0
- package/src/04-components/breadcrumb/index.scss +77 -0
- package/src/04-components/button/button-visual.png +0 -0
- package/src/04-components/button/button.api.json +138 -0
- package/src/04-components/button/button.docs.json +75 -0
- package/src/04-components/button/button.visual.spec.ts +14 -0
- package/src/04-components/button/index.scss +222 -0
- package/src/04-components/button-group/button-group-visual.png +0 -0
- package/src/04-components/button-group/button-group.api.json +11 -0
- package/src/04-components/button-group/button-group.docs.json +52 -0
- package/src/04-components/button-group/button-group.visual.spec.ts +14 -0
- package/src/04-components/button-group/index.scss +78 -0
- package/src/04-components/card/card-visual.png +0 -0
- package/src/04-components/card/card.api.json +53 -0
- package/src/04-components/card/card.docs.json +103 -0
- package/src/04-components/card/card.visual.spec.ts +14 -0
- package/src/04-components/card/index.scss +41 -0
- package/src/04-components/checkbox/checkbox-visual.png +0 -0
- package/src/04-components/checkbox/checkbox.api.json +50 -0
- package/src/04-components/checkbox/checkbox.docs.json +151 -0
- package/src/04-components/checkbox/checkbox.visual.spec.ts +14 -0
- package/src/04-components/checkbox/index.scss +104 -0
- package/src/04-components/code/code-visual.png +0 -0
- package/src/04-components/code/code.api.json +47 -0
- package/src/04-components/code/code.docs.json +84 -0
- package/src/04-components/code/code.visual.spec.ts +14 -0
- package/src/04-components/code/index.scss +64 -0
- package/src/04-components/data-list/data-list-visual.png +0 -0
- package/src/04-components/data-list/data-list.api.json +23 -0
- package/src/04-components/data-list/data-list.docs.json +79 -0
- package/src/04-components/data-list/data-list.visual.spec.ts +14 -0
- package/src/04-components/data-list/index.scss +98 -0
- package/src/04-components/dialog/dialog-visual.png +0 -0
- package/src/04-components/dialog/dialog.api.json +23 -0
- package/src/04-components/dialog/dialog.docs.json +58 -0
- package/src/04-components/dialog/dialog.visual.spec.ts +14 -0
- package/src/04-components/dialog/index.scss +74 -0
- package/src/04-components/disclosure/disclosure-visual.png +0 -0
- package/src/04-components/disclosure/disclosure.api.json +31 -0
- package/src/04-components/disclosure/disclosure.docs.json +73 -0
- package/src/04-components/disclosure/disclosure.visual.spec.ts +14 -0
- package/src/04-components/disclosure/index.scss +111 -0
- package/src/04-components/divider/divider-visual.png +0 -0
- package/src/04-components/divider/divider.api.json +30 -0
- package/src/04-components/divider/divider.docs.json +68 -0
- package/src/04-components/divider/divider.visual.spec.ts +14 -0
- package/src/04-components/divider/index.scss +115 -0
- package/src/04-components/drawer/drawer-visual.png +0 -0
- package/src/04-components/drawer/drawer.api.json +39 -0
- package/src/04-components/drawer/drawer.docs.json +78 -0
- package/src/04-components/drawer/drawer.visual.spec.ts +14 -0
- package/src/04-components/drawer/index.scss +251 -0
- package/src/04-components/field/field-visual.png +0 -0
- package/src/04-components/field/field.api.json +11 -0
- package/src/04-components/field/field.docs.json +59 -0
- package/src/04-components/field/field.visual.spec.ts +14 -0
- package/src/04-components/field/index.scss +44 -0
- package/src/04-components/form-error/form-error-visual.png +0 -0
- package/src/04-components/form-error/form-error.api.json +19 -0
- package/src/04-components/form-error/form-error.docs.json +40 -0
- package/src/04-components/form-error/form-error.visual.spec.ts +14 -0
- package/src/04-components/form-error/index.scss +31 -0
- package/src/04-components/form-helper/form-helper-visual.png +0 -0
- package/src/04-components/form-helper/form-helper.api.json +19 -0
- package/src/04-components/form-helper/form-helper.docs.json +31 -0
- package/src/04-components/form-helper/form-helper.visual.spec.ts +14 -0
- package/src/04-components/form-helper/index.scss +24 -0
- package/src/04-components/heading/heading-visual.png +0 -0
- package/src/04-components/heading/heading.api.json +83 -0
- package/src/04-components/heading/heading.docs.json +98 -0
- package/src/04-components/heading/heading.visual.spec.ts +14 -0
- package/src/04-components/heading/index.scss +61 -0
- package/src/04-components/icon/icon-visual.png +0 -0
- package/src/04-components/icon/icon.api.json +56 -0
- package/src/04-components/icon/icon.docs.json +155 -0
- package/src/04-components/icon/icon.visual.spec.ts +14 -0
- package/src/04-components/icon/index.scss +79 -0
- package/src/04-components/index.scss +41 -0
- package/src/04-components/input/index.scss +154 -0
- package/src/04-components/input/input-visual.png +0 -0
- package/src/04-components/input/input.api.json +85 -0
- package/src/04-components/input/input.docs.json +189 -0
- package/src/04-components/input/input.visual.spec.ts +14 -0
- package/src/04-components/label/index.scss +46 -0
- package/src/04-components/label/label-visual.png +0 -0
- package/src/04-components/label/label.api.json +27 -0
- package/src/04-components/label/label.docs.json +73 -0
- package/src/04-components/label/label.visual.spec.ts +14 -0
- package/src/04-components/link/index.scss +73 -0
- package/src/04-components/link/link-visual.png +0 -0
- package/src/04-components/link/link.api.json +39 -0
- package/src/04-components/link/link.docs.json +104 -0
- package/src/04-components/link/link.visual.spec.ts +14 -0
- package/src/04-components/menu/index.scss +145 -0
- package/src/04-components/menu/menu-visual.png +0 -0
- package/src/04-components/menu/menu.api.json +47 -0
- package/src/04-components/menu/menu.docs.json +81 -0
- package/src/04-components/menu/menu.visual.spec.ts +14 -0
- package/src/04-components/modal/index.scss +93 -0
- package/src/04-components/modal/modal-visual.png +0 -0
- package/src/04-components/modal/modal.api.json +43 -0
- package/src/04-components/modal/modal.docs.json +86 -0
- package/src/04-components/modal/modal.visual.spec.ts +14 -0
- package/src/04-components/overlay/index.scss +49 -0
- package/src/04-components/overlay/overlay-visual.png +0 -0
- package/src/04-components/overlay/overlay.api.json +23 -0
- package/src/04-components/overlay/overlay.docs.json +63 -0
- package/src/04-components/overlay/overlay.visual.spec.ts +14 -0
- package/src/04-components/pagination/index.scss +114 -0
- package/src/04-components/pagination/pagination-visual.png +0 -0
- package/src/04-components/pagination/pagination.api.json +39 -0
- package/src/04-components/pagination/pagination.docs.json +88 -0
- package/src/04-components/pagination/pagination.visual.spec.ts +14 -0
- package/src/04-components/popover/index.scss +114 -0
- package/src/04-components/popover/popover-visual.png +0 -0
- package/src/04-components/popover/popover.api.json +39 -0
- package/src/04-components/popover/popover.docs.json +70 -0
- package/src/04-components/popover/popover.visual.spec.ts +14 -0
- package/src/04-components/progress/index.scss +102 -0
- package/src/04-components/progress/progress-visual.png +0 -0
- package/src/04-components/progress/progress.api.json +23 -0
- package/src/04-components/progress/progress.docs.json +87 -0
- package/src/04-components/progress/progress.visual.spec.ts +14 -0
- package/src/04-components/radio/index.scss +96 -0
- package/src/04-components/radio/radio-visual.png +0 -0
- package/src/04-components/radio/radio.api.json +46 -0
- package/src/04-components/radio/radio.docs.json +159 -0
- package/src/04-components/radio/radio.visual.spec.ts +14 -0
- package/src/04-components/select/index.scss +113 -0
- package/src/04-components/select/select-visual.png +0 -0
- package/src/04-components/select/select.api.json +85 -0
- package/src/04-components/select/select.docs.json +162 -0
- package/src/04-components/select/select.visual.spec.ts +14 -0
- package/src/04-components/skeleton/index.scss +99 -0
- package/src/04-components/skeleton/skeleton-visual.png +0 -0
- package/src/04-components/skeleton/skeleton.api.json +19 -0
- package/src/04-components/skeleton/skeleton.docs.json +62 -0
- package/src/04-components/skeleton/skeleton.visual.spec.ts +14 -0
- package/src/04-components/spinner/index.scss +60 -0
- package/src/04-components/spinner/spinner-visual.png +0 -0
- package/src/04-components/spinner/spinner.api.json +63 -0
- package/src/04-components/spinner/spinner.docs.json +88 -0
- package/src/04-components/spinner/spinner.visual.spec.ts +15 -0
- package/src/04-components/status/index.scss +85 -0
- package/src/04-components/status/status-visual.png +0 -0
- package/src/04-components/status/status.api.json +19 -0
- package/src/04-components/status/status.docs.json +60 -0
- package/src/04-components/status/status.visual.spec.ts +14 -0
- package/src/04-components/table/index.scss +60 -0
- package/src/04-components/table/table-visual.png +0 -0
- package/src/04-components/table/table.api.json +27 -0
- package/src/04-components/table/table.docs.json +59 -0
- package/src/04-components/table/table.visual.spec.ts +14 -0
- package/src/04-components/tabs/index.scss +77 -0
- package/src/04-components/tabs/tabs-visual.png +0 -0
- package/src/04-components/tabs/tabs.api.json +31 -0
- package/src/04-components/tabs/tabs.docs.json +61 -0
- package/src/04-components/tabs/tabs.visual.spec.ts +14 -0
- package/src/04-components/tag/index.scss +98 -0
- package/src/04-components/tag/tag-visual.png +0 -0
- package/src/04-components/tag/tag.api.json +86 -0
- package/src/04-components/tag/tag.docs.json +108 -0
- package/src/04-components/tag/tag.visual.spec.ts +14 -0
- package/src/04-components/textarea/index.scss +124 -0
- package/src/04-components/textarea/textarea-visual.png +0 -0
- package/src/04-components/textarea/textarea.api.json +93 -0
- package/src/04-components/textarea/textarea.docs.json +191 -0
- package/src/04-components/textarea/textarea.visual.spec.ts +14 -0
- package/src/04-components/toast/index.scss +180 -0
- package/src/04-components/toast/toast-visual.png +0 -0
- package/src/04-components/toast/toast.api.json +43 -0
- package/src/04-components/toast/toast.docs.json +99 -0
- package/src/04-components/toast/toast.visual.spec.ts +14 -0
- package/src/04-components/toggle/index.scss +117 -0
- package/src/04-components/toggle/toggle-visual.png +0 -0
- package/src/04-components/toggle/toggle.api.json +43 -0
- package/src/04-components/toggle/toggle.docs.json +92 -0
- package/src/04-components/toggle/toggle.visual.spec.ts +14 -0
- package/src/04-components/tooltip/index.scss +102 -0
- package/src/04-components/tooltip/tooltip-visual.png +0 -0
- package/src/04-components/tooltip/tooltip.api.json +39 -0
- package/src/04-components/tooltip/tooltip.docs.json +63 -0
- package/src/04-components/tooltip/tooltip.visual.spec.ts +14 -0
- package/src/05-utilities/border/index.scss +21 -0
- package/src/05-utilities/display/display.api.json +6 -0
- package/src/05-utilities/display/display.docs.json +28 -0
- package/src/05-utilities/display/display.scss +195 -0
- package/src/05-utilities/index.scss +6 -0
- package/src/05-utilities/spacing/spacing.api.json +6 -0
- package/src/05-utilities/spacing/spacing.docs.json +43 -0
- package/src/05-utilities/spacing/spacing.scss +399 -0
- package/src/05-utilities/text/text.api.json +38 -0
- package/src/05-utilities/text/text.docs.json +132 -0
- package/src/05-utilities/text/text.scss +246 -0
- package/src/05-utilities/view-transition/index.scss +198 -0
- package/src/05-utilities/view-transition/view-transition.api.json +21 -0
- package/src/05-utilities/view-transition/view-transition.docs.json +63 -0
- package/src/05-utilities/visually-hidden/index.scss +38 -0
- package/src/05-utilities/visually-hidden/visually-hidden.api.json +8 -0
- package/src/05-utilities/visually-hidden/visually-hidden.docs.json +29 -0
- package/src/99-debug/grid-overlay.scss +79 -0
- package/src/99-debug/index.scss +1 -0
- package/src/index.scss +30 -0
- package/src/testing/api-types.ts +20 -0
- package/src/testing/grid-alignment.spec.ts +92 -0
- package/src/testing/html-generator.ts +151 -0
- package/src/testing/index.ts +15 -0
- package/src/testing/page-setup.ts +131 -0
- package/src/testing/rhythm.ts +146 -0
- package/src/testing/scaffold.ts +50 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "spacing",
|
|
3
|
+
"type": "token",
|
|
4
|
+
"title": "Spacing",
|
|
5
|
+
"description": "Spacing tokens based on the 8px unit.",
|
|
6
|
+
"skipValidation": true,
|
|
7
|
+
"sections": [
|
|
8
|
+
{
|
|
9
|
+
"examples": [
|
|
10
|
+
{
|
|
11
|
+
"layout": "cluster",
|
|
12
|
+
"items": [
|
|
13
|
+
{
|
|
14
|
+
"tag": "div",
|
|
15
|
+
"class": "ui-stack ui-stack--xs",
|
|
16
|
+
"style": { "align-items": "center" },
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"tag": "div",
|
|
20
|
+
"style": {
|
|
21
|
+
"width": "var(--ui-space-1)",
|
|
22
|
+
"height": "var(--ui-space-4)",
|
|
23
|
+
"background": "var(--ui-color-primary)"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{ "tag": "small", "text": "space-1" }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"tag": "div",
|
|
31
|
+
"class": "ui-stack ui-stack--xs",
|
|
32
|
+
"style": { "align-items": "center" },
|
|
33
|
+
"children": [
|
|
34
|
+
{
|
|
35
|
+
"tag": "div",
|
|
36
|
+
"style": {
|
|
37
|
+
"width": "var(--ui-space-2)",
|
|
38
|
+
"height": "var(--ui-space-4)",
|
|
39
|
+
"background": "var(--ui-color-primary)"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{ "tag": "small", "text": "space-2" }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"tag": "div",
|
|
47
|
+
"class": "ui-stack ui-stack--xs",
|
|
48
|
+
"style": { "align-items": "center" },
|
|
49
|
+
"children": [
|
|
50
|
+
{
|
|
51
|
+
"tag": "div",
|
|
52
|
+
"style": {
|
|
53
|
+
"width": "var(--ui-space-3)",
|
|
54
|
+
"height": "var(--ui-space-4)",
|
|
55
|
+
"background": "var(--ui-color-primary)"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{ "tag": "small", "text": "space-3" }
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"tag": "div",
|
|
63
|
+
"class": "ui-stack ui-stack--xs",
|
|
64
|
+
"style": { "align-items": "center" },
|
|
65
|
+
"children": [
|
|
66
|
+
{
|
|
67
|
+
"tag": "div",
|
|
68
|
+
"style": {
|
|
69
|
+
"width": "var(--ui-space-4)",
|
|
70
|
+
"height": "var(--ui-space-4)",
|
|
71
|
+
"background": "var(--ui-color-primary)"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{ "tag": "small", "text": "space-4" }
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"tag": "div",
|
|
79
|
+
"class": "ui-stack ui-stack--xs",
|
|
80
|
+
"style": { "align-items": "center" },
|
|
81
|
+
"children": [
|
|
82
|
+
{
|
|
83
|
+
"tag": "div",
|
|
84
|
+
"style": {
|
|
85
|
+
"width": "var(--ui-space-6)",
|
|
86
|
+
"height": "var(--ui-space-4)",
|
|
87
|
+
"background": "var(--ui-color-primary)"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{ "tag": "small", "text": "space-6" }
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"tag": "div",
|
|
95
|
+
"class": "ui-stack ui-stack--xs",
|
|
96
|
+
"style": { "align-items": "center" },
|
|
97
|
+
"children": [
|
|
98
|
+
{
|
|
99
|
+
"tag": "div",
|
|
100
|
+
"style": {
|
|
101
|
+
"width": "var(--ui-space-8)",
|
|
102
|
+
"height": "var(--ui-space-4)",
|
|
103
|
+
"background": "var(--ui-color-primary)"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{ "tag": "small", "text": "space-8" }
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "theming",
|
|
3
|
+
"type": "guide",
|
|
4
|
+
"title": "Theming",
|
|
5
|
+
"description": "Customize the design system with CSS custom properties",
|
|
6
|
+
"skipValidation": true,
|
|
7
|
+
"sections": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Brand Colors",
|
|
10
|
+
"description": "Change the entire color palette by adjusting hue values",
|
|
11
|
+
"examples": [
|
|
12
|
+
{
|
|
13
|
+
"title": "Default (Blue)",
|
|
14
|
+
"html": "<div class=\"theme-demo\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
15
|
+
"code": ":root {\n --ui-hue-primary: 220; /* Blue */\n}"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"title": "Purple Theme",
|
|
19
|
+
"html": "<div class=\"theme-demo theme-purple\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
20
|
+
"code": ".theme-purple {\n --ui-hue-primary: 270; /* Purple */\n}"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"title": "Teal Theme",
|
|
24
|
+
"html": "<div class=\"theme-demo theme-teal\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
25
|
+
"code": ".theme-teal {\n --ui-hue-primary: 180; /* Teal */\n}"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"title": "Orange Theme",
|
|
29
|
+
"html": "<div class=\"theme-demo theme-orange\"><button class=\"ui-button\">Primary</button><button class=\"ui-button ui-button--secondary\">Secondary</button><button class=\"ui-button ui-button--danger\">Danger</button></div>",
|
|
30
|
+
"code": ".theme-orange {\n --ui-hue-primary: 25; /* Orange */\n}"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"title": "Dark Mode",
|
|
36
|
+
"description": "Toggle dark mode with data-theme attribute",
|
|
37
|
+
"examples": [
|
|
38
|
+
{
|
|
39
|
+
"title": "Light Mode",
|
|
40
|
+
"html": "<div class=\"theme-demo\"><div class=\"ui-card\"><p>Light mode card</p></div></div>",
|
|
41
|
+
"code": "<html>\n <!-- Light mode (default) -->\n</html>"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "Dark Mode",
|
|
45
|
+
"html": "<div class=\"theme-demo\" data-theme=\"dark\"><div class=\"ui-card\"><p>Dark mode card</p></div></div>",
|
|
46
|
+
"code": "<html data-theme=\"dark\">\n <!-- Dark mode enabled -->\n</html>"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"title": "Component Overrides",
|
|
52
|
+
"description": "Override specific component tokens",
|
|
53
|
+
"examples": [
|
|
54
|
+
{
|
|
55
|
+
"title": "Custom Button Height",
|
|
56
|
+
"html": "<div class=\"theme-demo custom-buttons\"><button class=\"ui-button ui-button--sm\">Small</button><button class=\"ui-button\">Default</button><button class=\"ui-button ui-button--lg\">Large</button></div>",
|
|
57
|
+
"code": ".custom-buttons {\n --ui-button-height-sm: 24px;\n --ui-button-height: 40px;\n --ui-button-height-lg: 56px;\n}"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"title": "Custom Card Padding",
|
|
61
|
+
"html": "<div class=\"theme-demo custom-cards\"><div class=\"ui-card\"><p>Card with custom padding</p></div></div>",
|
|
62
|
+
"code": ".custom-cards {\n --ui-card-padding: var(--ui-space-4);\n}"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"title": "Full Theme Example",
|
|
68
|
+
"description": "Complete theme customization",
|
|
69
|
+
"examples": [
|
|
70
|
+
{
|
|
71
|
+
"html": "<div class=\"theme-demo theme-corporate\"><button class=\"ui-button\">Action</button><div class=\"ui-card\"><p>Corporate theme with teal accent and sharp corners</p></div></div>",
|
|
72
|
+
"code": ".theme-corporate {\n /* Brand hue */\n --ui-hue-primary: 180;\n\n /* Sharper corners */\n --ui-radius-sm: 2px;\n --ui-radius-md: 4px;\n --ui-radius-lg: 6px;\n\n /* Tighter spacing */\n --ui-space-1: 12px;\n --ui-space-2: 24px;\n}"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
// Font families
|
|
3
|
+
--ui-font-sans: "Noto Sans", system-ui, -apple-system, sans-serif;
|
|
4
|
+
--ui-font-mono: "Noto Sans Mono", ui-monospace, "Cascadia Code", monospace;
|
|
5
|
+
|
|
6
|
+
// ==========================================================================
|
|
7
|
+
// PRIMITIVE TOKENS - Font Size Scale
|
|
8
|
+
// Modular scale: 1.2 ratio (Minor Third), base 16px
|
|
9
|
+
// ==========================================================================
|
|
10
|
+
--ui-font-size-xs: 0.75rem;
|
|
11
|
+
--ui-font-size-sm: 0.875rem;
|
|
12
|
+
--ui-font-size-md: 1rem;
|
|
13
|
+
--ui-font-size-lg: 1.25rem;
|
|
14
|
+
--ui-font-size-xl: 1.5rem;
|
|
15
|
+
--ui-font-size-2xl: 1.75rem;
|
|
16
|
+
--ui-font-size-3xl: 2rem;
|
|
17
|
+
--ui-font-size-4xl: 2.5rem;
|
|
18
|
+
|
|
19
|
+
// ==========================================================================
|
|
20
|
+
// PRIMITIVE TOKENS - Line Heights (8px grid-snap)
|
|
21
|
+
// Two modes: normal (for body text) and tight (for UI/forms)
|
|
22
|
+
// ==========================================================================
|
|
23
|
+
|
|
24
|
+
// Tight line-heights for compact UI elements
|
|
25
|
+
--ui-leading-tight-xs: var(--ui-row-1);
|
|
26
|
+
--ui-leading-tight-sm: var(--ui-row-1);
|
|
27
|
+
--ui-leading-tight-md: calc(var(--unit) * 3);
|
|
28
|
+
--ui-leading-tight-lg: calc(var(--unit) * 3);
|
|
29
|
+
|
|
30
|
+
// Normal line-heights for readable body text
|
|
31
|
+
--ui-leading-xs: var(--ui-row-1);
|
|
32
|
+
--ui-leading-sm: calc(var(--unit) * 3);
|
|
33
|
+
--ui-leading-md: calc(var(--unit) * 3);
|
|
34
|
+
--ui-leading-lg: var(--ui-row-2);
|
|
35
|
+
--ui-leading-xl: var(--ui-row-2);
|
|
36
|
+
--ui-leading-2xl: var(--ui-row-2);
|
|
37
|
+
--ui-leading-3xl: calc(var(--unit) * 5);
|
|
38
|
+
--ui-leading-4xl: calc(var(--unit) * 6);
|
|
39
|
+
|
|
40
|
+
// ==========================================================================
|
|
41
|
+
// PRIMITIVE TOKENS - Font Weights
|
|
42
|
+
// ==========================================================================
|
|
43
|
+
--ui-weight-normal: 400;
|
|
44
|
+
--ui-weight-medium: 500;
|
|
45
|
+
--ui-weight-semibold: 600;
|
|
46
|
+
--ui-weight-bold: 700;
|
|
47
|
+
|
|
48
|
+
// ==========================================================================
|
|
49
|
+
// PRIMITIVE TOKENS - Letter Spacing
|
|
50
|
+
// ==========================================================================
|
|
51
|
+
--ui-tracking-display: -0.02em;
|
|
52
|
+
--ui-tracking-body: 0;
|
|
53
|
+
--ui-tracking-caps: 0.08em;
|
|
54
|
+
|
|
55
|
+
// ==========================================================================
|
|
56
|
+
// SEMANTIC TOKENS - Text Roles
|
|
57
|
+
// ==========================================================================
|
|
58
|
+
|
|
59
|
+
// Heading 1
|
|
60
|
+
--ui-heading-1-size: var(--ui-font-size-4xl);
|
|
61
|
+
--ui-heading-1-line-height: var(--ui-leading-4xl);
|
|
62
|
+
--ui-heading-1-weight: var(--ui-weight-bold);
|
|
63
|
+
--ui-heading-1-tracking: var(--ui-tracking-display);
|
|
64
|
+
|
|
65
|
+
// Heading 2
|
|
66
|
+
--ui-heading-2-size: var(--ui-font-size-3xl);
|
|
67
|
+
--ui-heading-2-line-height: var(--ui-leading-3xl);
|
|
68
|
+
--ui-heading-2-weight: var(--ui-weight-bold);
|
|
69
|
+
--ui-heading-2-tracking: -0.01em;
|
|
70
|
+
|
|
71
|
+
// Heading 3
|
|
72
|
+
--ui-heading-3-size: var(--ui-font-size-2xl);
|
|
73
|
+
--ui-heading-3-line-height: var(--ui-leading-2xl);
|
|
74
|
+
--ui-heading-3-weight: var(--ui-weight-semibold);
|
|
75
|
+
--ui-heading-3-tracking: var(--ui-tracking-body);
|
|
76
|
+
|
|
77
|
+
// Heading 4
|
|
78
|
+
--ui-heading-4-size: var(--ui-font-size-xl);
|
|
79
|
+
--ui-heading-4-line-height: var(--ui-leading-xl);
|
|
80
|
+
--ui-heading-4-weight: var(--ui-weight-semibold);
|
|
81
|
+
--ui-heading-4-tracking: var(--ui-tracking-body);
|
|
82
|
+
|
|
83
|
+
// Heading 5
|
|
84
|
+
--ui-heading-5-size: var(--ui-font-size-lg);
|
|
85
|
+
--ui-heading-5-line-height: var(--ui-leading-sm);
|
|
86
|
+
--ui-heading-5-weight: var(--ui-weight-medium);
|
|
87
|
+
--ui-heading-5-tracking: var(--ui-tracking-body);
|
|
88
|
+
|
|
89
|
+
// Body
|
|
90
|
+
--ui-body-size: var(--ui-font-size-md);
|
|
91
|
+
--ui-body-line-height: var(--ui-leading-md);
|
|
92
|
+
--ui-body-weight: var(--ui-weight-normal);
|
|
93
|
+
--ui-body-tracking: var(--ui-tracking-body);
|
|
94
|
+
|
|
95
|
+
// Body Small
|
|
96
|
+
--ui-body-sm-size: var(--ui-font-size-sm);
|
|
97
|
+
--ui-body-sm-line-height: var(--ui-leading-sm);
|
|
98
|
+
--ui-body-sm-weight: var(--ui-weight-normal);
|
|
99
|
+
--ui-body-sm-tracking: var(--ui-tracking-body);
|
|
100
|
+
|
|
101
|
+
// Caption
|
|
102
|
+
--ui-caption-size: var(--ui-font-size-xs);
|
|
103
|
+
--ui-caption-line-height: var(--ui-leading-xs);
|
|
104
|
+
--ui-caption-weight: var(--ui-weight-normal);
|
|
105
|
+
--ui-caption-tracking: 0.01em;
|
|
106
|
+
|
|
107
|
+
// Lead
|
|
108
|
+
--ui-lead-size: var(--ui-font-size-lg);
|
|
109
|
+
--ui-lead-line-height: var(--ui-leading-lg);
|
|
110
|
+
--ui-lead-weight: var(--ui-weight-normal);
|
|
111
|
+
--ui-lead-tracking: var(--ui-tracking-body);
|
|
112
|
+
|
|
113
|
+
// Eyebrow
|
|
114
|
+
--ui-eyebrow-size: var(--ui-font-size-xs);
|
|
115
|
+
--ui-eyebrow-line-height: var(--ui-leading-xs);
|
|
116
|
+
--ui-eyebrow-weight: var(--ui-weight-semibold);
|
|
117
|
+
--ui-eyebrow-tracking: var(--ui-tracking-caps);
|
|
118
|
+
|
|
119
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer tokens {
|
|
2
|
+
:root {
|
|
3
|
+
// Z-index scale (gaps allow insertion)
|
|
4
|
+
--ui-z-base: 0;
|
|
5
|
+
--ui-z-sticky: 100;
|
|
6
|
+
--ui-z-dropdown: 200;
|
|
7
|
+
--ui-z-overlay: 300;
|
|
8
|
+
--ui-z-modal: 400;
|
|
9
|
+
--ui-z-popover: 500;
|
|
10
|
+
--ui-z-tooltip: 600;
|
|
11
|
+
--ui-z-toast: 700;
|
|
12
|
+
--ui-z-debug: 9999;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward './reset';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use '../../00-config/tokens/variables' as t;
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
.root {
|
|
5
|
+
font-family: var(--ui-font-sans, #{t.$font-sans});
|
|
6
|
+
font-size: var(--ui-font-size-md, #{t.$font-size-md});
|
|
7
|
+
line-height: var(--ui-leading-md, calc(#{t.$unit} * 3));
|
|
8
|
+
color: var(--ui-color-text, #{t.$color-text});
|
|
9
|
+
|
|
10
|
+
background: var(--ui-color-bg, #{t.$color-bg});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "typography",
|
|
3
|
+
"type": "token",
|
|
4
|
+
"title": "Typography",
|
|
5
|
+
"description": "Modular scale (1.2 ratio) with 8px grid-snapped line-heights. Responsive breakpoints at 730px and 1080px adjust heading sizes.",
|
|
6
|
+
"skipValidation": true,
|
|
7
|
+
"sections": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Type Scale",
|
|
10
|
+
"description": "Font sizes follow a 1.2 (Minor Third) modular scale from 12px to 40px. All line-heights snap to 8px multiples.",
|
|
11
|
+
"examples": [
|
|
12
|
+
{
|
|
13
|
+
"html": "<table class=\"ui-table\"><thead><tr><th>Token</th><th>Size</th><th>Line-height</th></tr></thead><tbody><tr><td><code>--ui-font-size-xs</code></td><td>12px</td><td>16px</td></tr><tr><td><code>--ui-font-size-sm</code></td><td>14px</td><td>24px</td></tr><tr><td><code>--ui-font-size-md</code></td><td>16px</td><td>24px</td></tr><tr><td><code>--ui-font-size-lg</code></td><td>20px</td><td>32px</td></tr><tr><td><code>--ui-font-size-xl</code></td><td>24px</td><td>32px</td></tr><tr><td><code>--ui-font-size-2xl</code></td><td>28px</td><td>32px</td></tr><tr><td><code>--ui-font-size-3xl</code></td><td>32px</td><td>40px</td></tr><tr><td><code>--ui-font-size-4xl</code></td><td>40px</td><td>48px</td></tr></tbody></table>"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"title": "Headings",
|
|
19
|
+
"description": "Headings use semantic tokens and adjust size at breakpoints.",
|
|
20
|
+
"examples": [
|
|
21
|
+
{
|
|
22
|
+
"items": [
|
|
23
|
+
{ "tag": "h1", "text": "Heading 1 - 40px / 48px" },
|
|
24
|
+
{ "tag": "h2", "text": "Heading 2 - 32px / 40px" },
|
|
25
|
+
{ "tag": "h3", "text": "Heading 3 - 28px / 32px" },
|
|
26
|
+
{ "tag": "h4", "text": "Heading 4 - 24px / 32px" },
|
|
27
|
+
{ "tag": "h5", "text": "Heading 5 - 20px / 24px" }
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"title": "Body Text",
|
|
34
|
+
"description": "Default body text at 16px with 24px line-height (1.5x ratio).",
|
|
35
|
+
"examples": [
|
|
36
|
+
{
|
|
37
|
+
"html": "<p>Body text at 16px with 24px line-height. The <strong>bold text</strong> and <code>inline code</code> maintain the same rhythm.</p>\n<p class=\"ui-text-body-sm\">Body small at 14px with 24px line-height for secondary text.</p>"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "Text Roles",
|
|
43
|
+
"description": "Semantic text styles for specific use cases.",
|
|
44
|
+
"examples": [
|
|
45
|
+
{
|
|
46
|
+
"html": "<p class=\"ui-text-lead\">Lead paragraph - 20px / 32px. Use for opening paragraphs or article intros.</p>"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"html": "<p class=\"ui-text-eyebrow\">Eyebrow text</p>\n<h2>Related Heading</h2>",
|
|
50
|
+
"description": "Eyebrow - 12px uppercase with wide tracking. Use above headings for categorization."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"html": "<p class=\"ui-text-caption\">Caption text - 12px / 16px. Use for labels, hints, and metadata.</p>"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"title": "Font Weights",
|
|
59
|
+
"description": "Four weight levels for hierarchy.",
|
|
60
|
+
"examples": [
|
|
61
|
+
{
|
|
62
|
+
"html": "<p class=\"ui-font-normal\">Normal (400) - Body text</p>\n<p class=\"ui-font-medium\">Medium (500) - Labels, small headings</p>\n<p class=\"ui-font-semibold\">Semibold (600) - Subheadings</p>\n<p class=\"ui-font-bold\">Bold (700) - Headlines, emphasis</p>"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"title": "Letter Spacing",
|
|
68
|
+
"description": "Three tracking options based on use case.",
|
|
69
|
+
"examples": [
|
|
70
|
+
{
|
|
71
|
+
"html": "<p class=\"ui-text-3xl ui-tracking-display\">Display tracking (-0.02em)</p>\n<p>Body tracking (0) - default</p>\n<p class=\"ui-text-eyebrow\">Caps tracking (+0.08em)</p>"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"title": "Line Length",
|
|
77
|
+
"description": "Constrain text width for optimal readability (45-75 characters).",
|
|
78
|
+
"examples": [
|
|
79
|
+
{
|
|
80
|
+
"html": "<div class=\"ui-prose\"><p>This paragraph is constrained to 65ch max-width for optimal reading comfort. Long lines of text are harder to read because the eye has difficulty tracking back to the start of the next line.</p></div>"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"title": "Responsive Behavior",
|
|
86
|
+
"description": "Headings scale down on mobile (<730px) and up on desktop (>1080px).",
|
|
87
|
+
"examples": [
|
|
88
|
+
{
|
|
89
|
+
"html": "<table class=\"ui-table\"><thead><tr><th>Heading</th><th>Mobile</th><th>Default</th><th>Desktop</th></tr></thead><tbody><tr><td>h1</td><td>28px</td><td>40px</td><td>48px</td></tr><tr><td>h2</td><td>24px</td><td>32px</td><td>40px</td></tr><tr><td>h3</td><td>20px</td><td>28px</td><td>28px</td></tr><tr><td>h4</td><td>18px</td><td>24px</td><td>24px</td></tr></tbody></table>"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
// Headings use semantic tokens
|
|
3
|
+
h1 {
|
|
4
|
+
margin-block-end: var(--ui-space-4);
|
|
5
|
+
|
|
6
|
+
font-size: var(--ui-heading-1-size);
|
|
7
|
+
font-weight: var(--ui-heading-1-weight);
|
|
8
|
+
line-height: var(--ui-heading-1-line-height);
|
|
9
|
+
letter-spacing: var(--ui-heading-1-tracking);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
h2 {
|
|
13
|
+
margin-block-end: var(--ui-space-3);
|
|
14
|
+
|
|
15
|
+
font-size: var(--ui-heading-2-size);
|
|
16
|
+
font-weight: var(--ui-heading-2-weight);
|
|
17
|
+
line-height: var(--ui-heading-2-line-height);
|
|
18
|
+
letter-spacing: var(--ui-heading-2-tracking);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
h3 {
|
|
22
|
+
margin-block-end: var(--ui-space-2);
|
|
23
|
+
|
|
24
|
+
font-size: var(--ui-heading-3-size);
|
|
25
|
+
font-weight: var(--ui-heading-3-weight);
|
|
26
|
+
line-height: var(--ui-heading-3-line-height);
|
|
27
|
+
letter-spacing: var(--ui-heading-3-tracking);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h4 {
|
|
31
|
+
margin-block-end: var(--ui-space-2);
|
|
32
|
+
|
|
33
|
+
font-size: var(--ui-heading-4-size);
|
|
34
|
+
font-weight: var(--ui-heading-4-weight);
|
|
35
|
+
line-height: var(--ui-heading-4-line-height);
|
|
36
|
+
letter-spacing: var(--ui-heading-4-tracking);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
h5,
|
|
40
|
+
h6 {
|
|
41
|
+
margin-block-end: var(--ui-space-1);
|
|
42
|
+
|
|
43
|
+
font-size: var(--ui-heading-5-size);
|
|
44
|
+
font-weight: var(--ui-heading-5-weight);
|
|
45
|
+
line-height: var(--ui-heading-5-line-height);
|
|
46
|
+
letter-spacing: var(--ui-heading-5-tracking);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Body text
|
|
50
|
+
p {
|
|
51
|
+
margin-block-end: var(--ui-space-2);
|
|
52
|
+
|
|
53
|
+
font-size: var(--ui-body-size);
|
|
54
|
+
line-height: var(--ui-body-line-height);
|
|
55
|
+
letter-spacing: var(--ui-body-tracking);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
p:last-child {
|
|
59
|
+
margin-block-end: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Inline elements - line-height: 0 prevents affecting parent rhythm
|
|
63
|
+
strong,
|
|
64
|
+
b {
|
|
65
|
+
font-weight: var(--ui-weight-bold);
|
|
66
|
+
line-height: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
small {
|
|
70
|
+
font-size: var(--ui-caption-size);
|
|
71
|
+
line-height: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Code
|
|
75
|
+
code {
|
|
76
|
+
padding: 0 var(--ui-space-1);
|
|
77
|
+
|
|
78
|
+
font-family: var(--ui-font-mono);
|
|
79
|
+
font-size: var(--ui-body-sm-size);
|
|
80
|
+
line-height: 0;
|
|
81
|
+
vertical-align: baseline;
|
|
82
|
+
|
|
83
|
+
background: var(--ui-color-bg-muted);
|
|
84
|
+
border-radius: var(--ui-radius-sm);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
pre {
|
|
88
|
+
padding: var(--ui-space-2);
|
|
89
|
+
margin-block-end: var(--ui-space-2);
|
|
90
|
+
overflow-x: auto;
|
|
91
|
+
|
|
92
|
+
font-family: var(--ui-font-mono);
|
|
93
|
+
font-size: var(--ui-body-sm-size);
|
|
94
|
+
line-height: var(--ui-body-sm-line-height);
|
|
95
|
+
|
|
96
|
+
background: var(--ui-color-bg-muted);
|
|
97
|
+
border-radius: var(--ui-radius-md);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
pre code {
|
|
101
|
+
padding: 0;
|
|
102
|
+
|
|
103
|
+
background: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// ==========================================================================
|
|
107
|
+
// RESPONSIVE BREAKPOINTS
|
|
108
|
+
// ==========================================================================
|
|
109
|
+
|
|
110
|
+
// Mobile (<730px) - smaller headings
|
|
111
|
+
@media (width < 45.625rem) {
|
|
112
|
+
h1 {
|
|
113
|
+
font-size: var(--ui-font-size-2xl); // 28px
|
|
114
|
+
line-height: var(--ui-leading-2xl); // 32px
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
h2 {
|
|
118
|
+
font-size: var(--ui-font-size-xl); // 24px
|
|
119
|
+
line-height: var(--ui-leading-xl); // 32px
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
h3 {
|
|
123
|
+
font-size: var(--ui-font-size-lg); // 20px
|
|
124
|
+
line-height: var(--ui-leading-sm); // 24px
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
h4 {
|
|
128
|
+
font-size: 1.125rem; // 18px
|
|
129
|
+
line-height: var(--ui-leading-sm); // 24px
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Desktop (>1080px) - larger headings
|
|
134
|
+
@media (width > 67.5rem) {
|
|
135
|
+
h1 {
|
|
136
|
+
font-size: calc(var(--unit) * 6); // 48px
|
|
137
|
+
line-height: calc(var(--unit) * 7); // 56px
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
h2 {
|
|
141
|
+
font-size: var(--ui-font-size-4xl); // 40px
|
|
142
|
+
line-height: var(--ui-leading-4xl); // 48px
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "app-shell",
|
|
3
|
+
"element": "body",
|
|
4
|
+
"modifiers": {},
|
|
5
|
+
"relatedComponents": [
|
|
6
|
+
{
|
|
7
|
+
"name": "sidebar",
|
|
8
|
+
"modifiers": {
|
|
9
|
+
"end": { "type": "boolean" }
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "main",
|
|
14
|
+
"modifiers": {
|
|
15
|
+
"sidebar-end": { "type": "boolean" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "container",
|
|
20
|
+
"modifiers": {
|
|
21
|
+
"center": { "type": "boolean" }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"cssVars": []
|
|
26
|
+
}
|