@aliens-syndicate/cli 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +219 -2
- package/package.json +31 -4
- package/tools/build.mjs +607 -0
- package/tools/cli.mjs +39 -0
- package/tools/create.mjs +102 -0
- package/tools/project-layout.mjs +41 -0
- package/tools/runtime.mjs +294 -0
- package/tools/starter/app/animations/hero-enter.animation +8 -0
- package/tools/starter/app/apis/hero.api +9 -0
- package/tools/starter/app/directives/hero-highlight.directive +8 -0
- package/tools/starter/app/elements/atoms/kit-nav-link/kit-nav-link.markup +2 -0
- package/tools/starter/app/elements/molecules/hero-card/hero-card.logic +15 -0
- package/tools/starter/app/elements/molecules/hero-card/hero-card.markup +8 -0
- package/tools/starter/app/elements/molecules/hero-card/hero-card.style +12 -0
- package/tools/starter/app/elements/molecules/hero-card/hero-card.test +8 -0
- package/tools/starter/app/elements/molecules/kit-button-demo/kit-button-demo.logic +14 -0
- package/tools/starter/app/elements/molecules/kit-button-demo/kit-button-demo.markup +8 -0
- package/tools/starter/app/elements/molecules/kit-card-link/kit-card-link.markup +6 -0
- package/tools/starter/app/elements/organisms/kit-navigation/kit-navigation.markup +19 -0
- package/tools/starter/app/enums/hero-status.enum +7 -0
- package/tools/starter/app/errors/hero-not-found.error +7 -0
- package/tools/starter/app/guards/hero-editor.guard +8 -0
- package/tools/starter/app/interceptors/hero-request.interceptor +8 -0
- package/tools/starter/app/interfaces/hero.interface +8 -0
- package/tools/starter/app/mocks/hero.mock +8 -0
- package/tools/starter/app/models/hero.model +8 -0
- package/tools/starter/app/pages/kit-border/kit-border.markup +38 -0
- package/tools/starter/app/pages/kit-color/kit-color.markup +58 -0
- package/tools/starter/app/pages/kit-components/kit-components.markup +95 -0
- package/tools/starter/app/pages/kit-overview/kit-overview.markup +25 -0
- package/tools/starter/app/pages/kit-radius/kit-radius.markup +34 -0
- package/tools/starter/app/pages/kit-space/kit-space.markup +61 -0
- package/tools/starter/app/pages/kit-type/kit-type.markup +48 -0
- package/tools/starter/app/pages/style-guide/style-guide.markup +10 -0
- package/tools/starter/app/pages/style-guide/style-guide.style +252 -0
- package/tools/starter/app/pipes/hero-label.pipe +6 -0
- package/tools/starter/app/routes/hero-archive.route +8 -0
- package/tools/starter/app/routes/hero-detail.route +11 -0
- package/tools/starter/app/routes/hero-edit.route +14 -0
- package/tools/starter/app/routes/hero-filter.route +14 -0
- package/tools/starter/app/routes/hero-list.route +9 -0
- package/tools/starter/app/routes/hero-not-found.route +7 -0
- package/tools/starter/app/routes/hero-preview.route +11 -0
- package/tools/starter/app/routes/hero-redirect.route +8 -0
- package/tools/starter/app/routes/hero-search.route +15 -0
- package/tools/starter/app/routes/hero-tabs.route +17 -0
- package/tools/starter/app/routes/hero-team.route +11 -0
- package/tools/starter/app/services/hero-roster.service +8 -0
- package/tools/starter/app/storage/hero-favorite.storage +8 -0
- package/tools/starter/app/validators/hero-energy.validator +8 -0
- package/tools/starter/language/.en-US +73 -0
- package/tools/starter/language/.es-ES +73 -0
- package/tools/starter/language/.pt-BR +73 -0
- package/tools/starter/language/.zh-CN +73 -0
- package/tools/starter/styles/components/alerts.style +16 -0
- package/tools/starter/styles/components/badges.style +18 -0
- package/tools/starter/styles/components/borders.style +11 -0
- package/tools/starter/styles/components/buttons.style +34 -0
- package/tools/starter/styles/components/cards.style +9 -0
- package/tools/starter/styles/components/feedback.style +21 -0
- package/tools/starter/styles/components/forms.style +38 -0
- package/tools/starter/styles/components/spacing.style +13 -0
- package/tools/starter/styles/components/tables.style +17 -0
- package/tools/starter/styles/components/typography.style +51 -0
- package/tools/starter/styles/generic/ui-base.style +12 -0
- package/tools/starter/styles/objects/ui-layout.style +13 -0
- package/tools/starter/styles/settings/border-tokens.style +9 -0
- package/tools/starter/styles/settings/color-tokens.style +40 -0
- package/tools/starter/styles/settings/elevation-tokens.style +8 -0
- package/tools/starter/styles/settings/radius-tokens.style +8 -0
- package/tools/starter/styles/settings/space-tokens.style +11 -0
- package/tools/starter/styles/settings/theme.style +52 -0
- package/tools/starter/styles/settings/type-tokens.style +18 -0
- package/tools/vscode-space/extension.cjs +56 -0
- package/tools/vscode-space/language-configuration.json +9 -0
- package/tools/vscode-space/package.json +129 -0
- package/tools/vscode-space/space.tmLanguage.json +32 -0
- package/tools/vscode-space/style-colors.cjs +69 -0
- package/tools/vscode-space/syntax.cjs +122 -0
- package/tools/vscode-space/vendor/color-name.LICENSE +8 -0
- package/tools/vscode-space/vendor/color-name.cjs +152 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Markup KitBorder
|
|
2
|
+
div variant="space-stack style-guide-view_detail" id="kit-border" data-view hidden tabindex="-1"
|
|
3
|
+
header variant="style-guide-page-heading"
|
|
4
|
+
h1={@kit.borders} variant="space-h2"
|
|
5
|
+
p={@kit.borderDesc} variant="space-body style-guide-lead"
|
|
6
|
+
div variant="space-grid"
|
|
7
|
+
div variant="space-card space-border"
|
|
8
|
+
code={--border-subtle}
|
|
9
|
+
div variant="space-card space-border_strong"
|
|
10
|
+
code={--border-strong}
|
|
11
|
+
div variant="space-card space-border_dashed"
|
|
12
|
+
code={--border-dashed}
|
|
13
|
+
a={@kit.focusSample} variant="space-button" href="#kit-border"
|
|
14
|
+
section variant="space-card space-stack"
|
|
15
|
+
h2={@kit.divider} variant="space-h4"
|
|
16
|
+
hr variant="space-divider"
|
|
17
|
+
code={.space-divider}
|
|
18
|
+
section variant="space-stack"
|
|
19
|
+
h2={@kit.elevation} variant="space-h3"
|
|
20
|
+
div variant="space-grid"
|
|
21
|
+
div id="kit-border-shadow-sm" variant="space-card"
|
|
22
|
+
code={--shadow-sm}
|
|
23
|
+
div id="kit-border-shadow-md" variant="space-card"
|
|
24
|
+
code={--shadow-md}
|
|
25
|
+
div id="kit-border-shadow-lg" variant="space-card"
|
|
26
|
+
code={--shadow-lg}
|
|
27
|
+
details variant="space-disclosure style-guide-source"
|
|
28
|
+
summary={border-tokens.style} variant="space-focus"
|
|
29
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
30
|
+
code data-source="project/styles/settings/border-tokens.style"
|
|
31
|
+
details variant="space-disclosure style-guide-source"
|
|
32
|
+
summary={elevation-tokens.style} variant="space-focus"
|
|
33
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
34
|
+
code data-source="project/styles/settings/elevation-tokens.style"
|
|
35
|
+
details variant="space-disclosure style-guide-source"
|
|
36
|
+
summary={borders.style} variant="space-focus"
|
|
37
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
38
|
+
code data-source="project/styles/components/borders.style"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Markup KitColor
|
|
2
|
+
div variant="space-stack style-guide-view_detail" id="kit-color" data-view hidden tabindex="-1"
|
|
3
|
+
header variant="style-guide-page-heading"
|
|
4
|
+
h1={@kit.color} variant="space-h2"
|
|
5
|
+
p={@kit.colorDesc} variant="space-body style-guide-lead"
|
|
6
|
+
div id="kit-color-swatch-grid" variant="space-grid"
|
|
7
|
+
figure variant="kit-color-swatch space-card"
|
|
8
|
+
div id="kit-color-use-canvas" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
9
|
+
figcaption={Canvas}
|
|
10
|
+
code={--color-canvas} variant="space-caption"
|
|
11
|
+
figure variant="kit-color-swatch space-card"
|
|
12
|
+
div variant="kit-color-swatch-paint style-guide-use-surface" aria-hidden="true"
|
|
13
|
+
figcaption={Surface}
|
|
14
|
+
code={--color-surface} variant="space-caption"
|
|
15
|
+
figure variant="kit-color-swatch space-card"
|
|
16
|
+
div id="kit-color-use-text" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
17
|
+
figcaption={Text}
|
|
18
|
+
code={--color-text} variant="space-caption"
|
|
19
|
+
figure variant="kit-color-swatch space-card"
|
|
20
|
+
div id="kit-color-use-muted" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
21
|
+
figcaption={Muted}
|
|
22
|
+
code={--color-muted} variant="space-caption"
|
|
23
|
+
figure variant="kit-color-swatch space-card"
|
|
24
|
+
div id="kit-color-use-outline" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
25
|
+
figcaption={Outline}
|
|
26
|
+
code={--color-outline} variant="space-caption"
|
|
27
|
+
figure variant="kit-color-swatch space-card"
|
|
28
|
+
div variant="kit-color-swatch-paint style-guide-use-brand" aria-hidden="true"
|
|
29
|
+
figcaption={Brand}
|
|
30
|
+
code={--color-brand} variant="space-caption"
|
|
31
|
+
figure variant="kit-color-swatch space-card"
|
|
32
|
+
div variant="kit-color-swatch-paint style-guide-use-accent" aria-hidden="true"
|
|
33
|
+
figcaption={Accent}
|
|
34
|
+
code={--color-accent} variant="space-caption"
|
|
35
|
+
figure variant="kit-color-swatch space-card"
|
|
36
|
+
div id="kit-color-use-success" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
37
|
+
figcaption={Success}
|
|
38
|
+
code={--color-success} variant="space-caption"
|
|
39
|
+
figure variant="kit-color-swatch space-card"
|
|
40
|
+
div id="kit-color-use-warning" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
41
|
+
figcaption={Warning}
|
|
42
|
+
code={--color-warning} variant="space-caption"
|
|
43
|
+
figure variant="kit-color-swatch space-card"
|
|
44
|
+
div id="kit-color-use-danger" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
45
|
+
figcaption={Danger}
|
|
46
|
+
code={--color-danger} variant="space-caption"
|
|
47
|
+
figure variant="kit-color-swatch space-card"
|
|
48
|
+
div id="kit-color-use-info" variant="kit-color-swatch-paint" aria-hidden="true"
|
|
49
|
+
figcaption={Info}
|
|
50
|
+
code={--color-info} variant="space-caption"
|
|
51
|
+
details variant="space-disclosure style-guide-source"
|
|
52
|
+
summary={color-tokens.style} variant="space-focus"
|
|
53
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
54
|
+
code data-source="project/styles/settings/color-tokens.style"
|
|
55
|
+
details variant="space-disclosure style-guide-source"
|
|
56
|
+
summary={theme.style} variant="space-focus"
|
|
57
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
58
|
+
code data-source="project/styles/settings/theme.style"
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Markup KitComponents
|
|
2
|
+
div variant="space-stack style-guide-view_detail" id="kit-components" data-view hidden tabindex="-1"
|
|
3
|
+
header variant="style-guide-page-heading"
|
|
4
|
+
h1={@kit.components} variant="space-h2"
|
|
5
|
+
p={@kit.componentDesc} variant="space-body style-guide-lead"
|
|
6
|
+
div id="kit-components-component-grid" variant="space-grid"
|
|
7
|
+
kit-button-demo
|
|
8
|
+
section variant="space-card space-stack"
|
|
9
|
+
h2={@kit.forms} variant="space-h4"
|
|
10
|
+
div variant="space-field"
|
|
11
|
+
label={@kit.nameLabel} for="kit-components-sample-name" variant="space-label"
|
|
12
|
+
input type="text" id="kit-components-sample-name" variant="space-input" placeholder={@kit.namePlaceholder}
|
|
13
|
+
div variant="space-field"
|
|
14
|
+
label={@kit.email} for="kit-components-sample-email" variant="space-label"
|
|
15
|
+
input type="email" id="kit-components-sample-email" variant="space-input" value="nova@" aria-invalid="true" aria-describedby="kit-components-sample-email-error"
|
|
16
|
+
p={@kit.emailError} id="kit-components-sample-email-error" variant="space-error"
|
|
17
|
+
div variant="space-field"
|
|
18
|
+
label={@kit.tableStatus} for="kit-components-sample-status" variant="space-label"
|
|
19
|
+
select id="kit-components-sample-status" variant="space-input"
|
|
20
|
+
option={@kit.success} value="ready"
|
|
21
|
+
option={@kit.warning} value="pending"
|
|
22
|
+
div variant="space-field"
|
|
23
|
+
label={@kit.notes} for="kit-components-sample-notes" variant="space-label"
|
|
24
|
+
textarea id="kit-components-sample-notes" variant="space-input" rows="3"
|
|
25
|
+
label variant="space-check"
|
|
26
|
+
input type="checkbox" variant="space-focus"
|
|
27
|
+
span={@kit.remember}
|
|
28
|
+
section variant="space-card_raised space-stack"
|
|
29
|
+
h2={@kit.cards} variant="space-h4"
|
|
30
|
+
p={@kit.cardSample} variant="space-body"
|
|
31
|
+
div variant="space-cluster"
|
|
32
|
+
span={@kit.info} variant="space-badge"
|
|
33
|
+
span={@kit.success} variant="space-badge_success"
|
|
34
|
+
span={@kit.warning} variant="space-badge_warning"
|
|
35
|
+
span={@kit.error} variant="space-badge_danger"
|
|
36
|
+
section variant="space-card space-stack"
|
|
37
|
+
h2={@kit.alerts} variant="space-h4"
|
|
38
|
+
p={@kit.alertInfo} variant="space-alert"
|
|
39
|
+
p={@kit.alertSuccess} variant="space-alert_success"
|
|
40
|
+
p={@kit.alertWarning} variant="space-alert_warning"
|
|
41
|
+
p={@kit.alertError} variant="space-alert_danger"
|
|
42
|
+
section variant="space-card space-stack"
|
|
43
|
+
h2={@kit.data} variant="space-h4"
|
|
44
|
+
div variant="space-table-scroll" tabindex="0"
|
|
45
|
+
table variant="space-table"
|
|
46
|
+
caption={@kit.sampleTable}
|
|
47
|
+
thead
|
|
48
|
+
tr
|
|
49
|
+
th={@kit.tableName} scope="col"
|
|
50
|
+
th={@kit.tableStatus} scope="col"
|
|
51
|
+
tbody
|
|
52
|
+
tr
|
|
53
|
+
td={Nova}
|
|
54
|
+
td={@kit.success}
|
|
55
|
+
tr
|
|
56
|
+
td={Orion}
|
|
57
|
+
td={@kit.warning}
|
|
58
|
+
label={@kit.progress} for="kit-components-progress" variant="space-label"
|
|
59
|
+
progress variant="space-progress" id="kit-components-progress" value="64" max="100"
|
|
60
|
+
section variant="space-card space-stack"
|
|
61
|
+
h2={@kit.feedback} variant="space-h4"
|
|
62
|
+
div variant="space-empty"
|
|
63
|
+
strong={@kit.emptyTitle}
|
|
64
|
+
p={@kit.emptySample} variant="space-caption"
|
|
65
|
+
details variant="space-disclosure"
|
|
66
|
+
summary={@kit.disclosure} variant="space-focus"
|
|
67
|
+
p={@kit.disclosureSample} variant="space-body"
|
|
68
|
+
details variant="space-disclosure style-guide-source"
|
|
69
|
+
summary={buttons.style} variant="space-focus"
|
|
70
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
71
|
+
code data-source="project/styles/components/buttons.style"
|
|
72
|
+
details variant="space-disclosure style-guide-source"
|
|
73
|
+
summary={forms.style} variant="space-focus"
|
|
74
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
75
|
+
code data-source="project/styles/components/forms.style"
|
|
76
|
+
details variant="space-disclosure style-guide-source"
|
|
77
|
+
summary={cards.style} variant="space-focus"
|
|
78
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
79
|
+
code data-source="project/styles/components/cards.style"
|
|
80
|
+
details variant="space-disclosure style-guide-source"
|
|
81
|
+
summary={badges.style} variant="space-focus"
|
|
82
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
83
|
+
code data-source="project/styles/components/badges.style"
|
|
84
|
+
details variant="space-disclosure style-guide-source"
|
|
85
|
+
summary={alerts.style} variant="space-focus"
|
|
86
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
87
|
+
code data-source="project/styles/components/alerts.style"
|
|
88
|
+
details variant="space-disclosure style-guide-source"
|
|
89
|
+
summary={tables.style} variant="space-focus"
|
|
90
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
91
|
+
code data-source="project/styles/components/tables.style"
|
|
92
|
+
details variant="space-disclosure style-guide-source"
|
|
93
|
+
summary={feedback.style} variant="space-focus"
|
|
94
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
95
|
+
code data-source="project/styles/components/feedback.style"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Markup KitOverview
|
|
2
|
+
div variant="style-guide-view" id="kit-overview" data-view hidden tabindex="-1"
|
|
3
|
+
section id="kit-overview-hero"
|
|
4
|
+
div id="kit-overview-hero-copy" variant="space-stack"
|
|
5
|
+
h1={@kit.title} variant="space-h1"
|
|
6
|
+
p={@kit.intro} variant="space-body style-guide-lead"
|
|
7
|
+
div variant="space-cluster"
|
|
8
|
+
a={@kit.components} variant="space-button_primary" href="#kit-components"
|
|
9
|
+
a={@kit.tokens} variant="space-button" href="#kit-color"
|
|
10
|
+
div id="kit-overview-hero-specimen" aria-hidden="true"
|
|
11
|
+
span={Aa} id="kit-overview-hero-type"
|
|
12
|
+
div id="kit-overview-hero-scales"
|
|
13
|
+
span variant="kit-overview-hero-chip style-guide-use-brand"
|
|
14
|
+
span variant="kit-overview-hero-chip style-guide-use-accent"
|
|
15
|
+
span variant="kit-overview-hero-chip style-guide-use-surface"
|
|
16
|
+
span={Space} id="kit-overview-specimen-caption"
|
|
17
|
+
section id="kit-overview-section" variant="space-stack"
|
|
18
|
+
h2={@kit.explore} variant="space-h3"
|
|
19
|
+
div id="kit-overview-entry-grid" variant="space-grid"
|
|
20
|
+
kit-card-link href="#kit-color" label={@kit.color} caption={@kit.colorDesc} preview="●"
|
|
21
|
+
kit-card-link href="#kit-space" label={@kit.spacing} caption={@kit.spacingDesc} preview="⟷"
|
|
22
|
+
kit-card-link href="#kit-radius" label={@kit.radius} caption={@kit.radiusDesc} preview="◜"
|
|
23
|
+
kit-card-link href="#kit-border" label={@kit.borders} caption={@kit.borderDesc} preview="□"
|
|
24
|
+
kit-card-link href="#kit-type" label={@kit.typography} caption={@kit.typeDesc} preview="Aa"
|
|
25
|
+
kit-card-link href="#kit-components" label={@kit.components} caption={@kit.componentDesc} preview="▥"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Markup KitRadius
|
|
2
|
+
div variant="space-stack style-guide-view_detail" id="kit-radius" data-view hidden tabindex="-1"
|
|
3
|
+
header variant="style-guide-page-heading"
|
|
4
|
+
h1={@kit.radius} variant="space-h2"
|
|
5
|
+
p={@kit.radiusDesc} variant="space-body style-guide-lead"
|
|
6
|
+
div variant="space-grid"
|
|
7
|
+
figure variant="kit-radius-shape-card space-card space-stack"
|
|
8
|
+
span id="kit-radius-none" variant="kit-radius-shape" aria-hidden="true"
|
|
9
|
+
figcaption={--radius-none}
|
|
10
|
+
code={0} variant="space-caption"
|
|
11
|
+
figure variant="kit-radius-shape-card space-card space-stack"
|
|
12
|
+
span id="kit-radius-sm" variant="kit-radius-shape" aria-hidden="true"
|
|
13
|
+
figcaption={--radius-sm}
|
|
14
|
+
code={.25rem} variant="space-caption"
|
|
15
|
+
figure variant="kit-radius-shape-card space-card space-stack"
|
|
16
|
+
span id="kit-radius-md" variant="kit-radius-shape" aria-hidden="true"
|
|
17
|
+
figcaption={--radius-md}
|
|
18
|
+
code={.5rem} variant="space-caption"
|
|
19
|
+
figure variant="kit-radius-shape-card space-card space-stack"
|
|
20
|
+
span id="kit-radius-lg" variant="kit-radius-shape" aria-hidden="true"
|
|
21
|
+
figcaption={--radius-lg}
|
|
22
|
+
code={.75rem} variant="space-caption"
|
|
23
|
+
figure variant="kit-radius-shape-card space-card space-stack"
|
|
24
|
+
span id="kit-radius-xl" variant="kit-radius-shape" aria-hidden="true"
|
|
25
|
+
figcaption={--radius-xl}
|
|
26
|
+
code={1rem} variant="space-caption"
|
|
27
|
+
figure variant="kit-radius-shape-card space-card space-stack"
|
|
28
|
+
span id="kit-radius-pill" variant="kit-radius-shape" aria-hidden="true"
|
|
29
|
+
figcaption={--radius-pill}
|
|
30
|
+
code={9999px} variant="space-caption"
|
|
31
|
+
details variant="space-disclosure style-guide-source"
|
|
32
|
+
summary={radius-tokens.style} variant="space-focus"
|
|
33
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
34
|
+
code data-source="project/styles/settings/radius-tokens.style"
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Markup KitSpace
|
|
2
|
+
div variant="space-stack style-guide-view_detail" id="kit-space" data-view hidden tabindex="-1"
|
|
3
|
+
header variant="style-guide-page-heading"
|
|
4
|
+
h1={@kit.spacing} variant="space-h2"
|
|
5
|
+
p={@kit.spacingDesc} variant="space-body style-guide-lead"
|
|
6
|
+
div id="kit-space-scale" variant="space-card"
|
|
7
|
+
div variant="kit-space-scale-row"
|
|
8
|
+
code={--space-0}
|
|
9
|
+
span={0} variant="space-caption"
|
|
10
|
+
span id="kit-space-0" variant="kit-space-bar" aria-hidden="true"
|
|
11
|
+
div variant="kit-space-scale-row"
|
|
12
|
+
code={--space-1}
|
|
13
|
+
span={.25rem} variant="space-caption"
|
|
14
|
+
span id="kit-space-1" variant="kit-space-bar" aria-hidden="true"
|
|
15
|
+
div variant="kit-space-scale-row"
|
|
16
|
+
code={--space-2}
|
|
17
|
+
span={.5rem} variant="space-caption"
|
|
18
|
+
span id="kit-space-2" variant="kit-space-bar" aria-hidden="true"
|
|
19
|
+
div variant="kit-space-scale-row"
|
|
20
|
+
code={--space-3}
|
|
21
|
+
span={.75rem} variant="space-caption"
|
|
22
|
+
span id="kit-space-3" variant="kit-space-bar" aria-hidden="true"
|
|
23
|
+
div variant="kit-space-scale-row"
|
|
24
|
+
code={--space-4}
|
|
25
|
+
span={1rem} variant="space-caption"
|
|
26
|
+
span id="kit-space-4" variant="kit-space-bar" aria-hidden="true"
|
|
27
|
+
div variant="kit-space-scale-row"
|
|
28
|
+
code={--space-5}
|
|
29
|
+
span={1.5rem} variant="space-caption"
|
|
30
|
+
span id="kit-space-5" variant="kit-space-bar" aria-hidden="true"
|
|
31
|
+
div variant="kit-space-scale-row"
|
|
32
|
+
code={--space-6}
|
|
33
|
+
span={2rem} variant="space-caption"
|
|
34
|
+
span id="kit-space-6" variant="kit-space-bar" aria-hidden="true"
|
|
35
|
+
div variant="kit-space-scale-row"
|
|
36
|
+
code={--space-7}
|
|
37
|
+
span={3rem} variant="space-caption"
|
|
38
|
+
span id="kit-space-7" variant="kit-space-bar" aria-hidden="true"
|
|
39
|
+
div variant="kit-space-scale-row"
|
|
40
|
+
code={--space-8}
|
|
41
|
+
span={4rem} variant="space-caption"
|
|
42
|
+
span id="kit-space-8" variant="kit-space-bar" aria-hidden="true"
|
|
43
|
+
div variant="space-grid"
|
|
44
|
+
div variant="space-card space-pad-sm"
|
|
45
|
+
code={.space-pad-sm}
|
|
46
|
+
div variant="space-card space-pad-md"
|
|
47
|
+
code={.space-pad-md}
|
|
48
|
+
div variant="space-card space-pad-lg"
|
|
49
|
+
code={.space-pad-lg}
|
|
50
|
+
details variant="space-disclosure style-guide-source"
|
|
51
|
+
summary={space-tokens.style} variant="space-focus"
|
|
52
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
53
|
+
code data-source="project/styles/settings/space-tokens.style"
|
|
54
|
+
details variant="space-disclosure style-guide-source"
|
|
55
|
+
summary={ui-layout.style} variant="space-focus"
|
|
56
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
57
|
+
code data-source="project/styles/objects/ui-layout.style"
|
|
58
|
+
details variant="space-disclosure style-guide-source"
|
|
59
|
+
summary={spacing.style} variant="space-focus"
|
|
60
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
61
|
+
code data-source="project/styles/components/spacing.style"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Markup KitType
|
|
2
|
+
div variant="space-stack style-guide-view_detail" id="kit-type" data-view hidden tabindex="-1"
|
|
3
|
+
header variant="style-guide-page-heading"
|
|
4
|
+
h1={@kit.typography} variant="space-h2"
|
|
5
|
+
p={@kit.typeDesc} variant="space-body style-guide-lead"
|
|
6
|
+
section id="kit-type-scale" variant="space-card" aria-label={@kit.scale}
|
|
7
|
+
div variant="kit-type-row"
|
|
8
|
+
code={H1} variant="space-caption"
|
|
9
|
+
p={@kit.heading1} variant="space-h1"
|
|
10
|
+
div variant="kit-type-row"
|
|
11
|
+
code={H2} variant="space-caption"
|
|
12
|
+
p={@kit.heading2} variant="space-h2"
|
|
13
|
+
div variant="kit-type-row"
|
|
14
|
+
code={H3} variant="space-caption"
|
|
15
|
+
p={@kit.heading3} variant="space-h3"
|
|
16
|
+
div variant="kit-type-row"
|
|
17
|
+
code={H4} variant="space-caption"
|
|
18
|
+
p={@kit.heading4} variant="space-h4"
|
|
19
|
+
div variant="kit-type-row"
|
|
20
|
+
code={H5} variant="space-caption"
|
|
21
|
+
p={@kit.heading5} variant="space-h5"
|
|
22
|
+
div variant="kit-type-row"
|
|
23
|
+
code={H6} variant="space-caption"
|
|
24
|
+
p={@kit.heading6} variant="space-h6"
|
|
25
|
+
div variant="space-grid"
|
|
26
|
+
section variant="space-card space-stack"
|
|
27
|
+
h2={@kit.bodyType} variant="space-h4"
|
|
28
|
+
p={@kit.bodySample} variant="space-body"
|
|
29
|
+
p={@kit.smallSample} variant="space-small"
|
|
30
|
+
p={@kit.captionSample} variant="space-caption"
|
|
31
|
+
a={@kit.sampleLink} href="#kit-color" variant="space-link"
|
|
32
|
+
section variant="space-card space-stack"
|
|
33
|
+
h2={@kit.editorial} variant="space-h4"
|
|
34
|
+
blockquote={@kit.quote} variant="space-quote"
|
|
35
|
+
ul variant="space-list"
|
|
36
|
+
li={@kit.listOne}
|
|
37
|
+
li={@kit.listTwo}
|
|
38
|
+
div variant="space-cluster"
|
|
39
|
+
code={--text-body} variant="space-code-inline"
|
|
40
|
+
kbd={Tab} variant="space-key"
|
|
41
|
+
details variant="space-disclosure style-guide-source"
|
|
42
|
+
summary={type-tokens.style} variant="space-focus"
|
|
43
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
44
|
+
code data-source="project/styles/settings/type-tokens.style"
|
|
45
|
+
details variant="space-disclosure style-guide-source"
|
|
46
|
+
summary={typography.style} variant="space-focus"
|
|
47
|
+
pre variant="style-guide-source-code" tabindex="0"
|
|
48
|
+
code data-source="project/styles/components/typography.style"
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
Style StyleGuide
|
|
2
|
+
style-guide
|
|
3
|
+
display: none
|
|
4
|
+
max-width: 1200px
|
|
5
|
+
margin: 0 auto
|
|
6
|
+
padding: 0 clamp(var(--space-4), 5vw, var(--space-7)) var(--space-8)
|
|
7
|
+
background: var(--color-canvas)
|
|
8
|
+
style-guide:has([data-view]:not([hidden]))
|
|
9
|
+
display: block
|
|
10
|
+
kit-navigation-top
|
|
11
|
+
display: flex
|
|
12
|
+
align-items: center
|
|
13
|
+
justify-content: space-between
|
|
14
|
+
flex-wrap: wrap
|
|
15
|
+
gap: var(--space-4)
|
|
16
|
+
padding-block: var(--space-5)
|
|
17
|
+
kit-navigation-brand
|
|
18
|
+
display: inline-flex
|
|
19
|
+
align-items: center
|
|
20
|
+
gap: var(--space-3)
|
|
21
|
+
color: var(--color-text)
|
|
22
|
+
font-weight: var(--weight-bold)
|
|
23
|
+
text-decoration: none
|
|
24
|
+
kit-navigation-mark
|
|
25
|
+
width: 14px
|
|
26
|
+
height: 14px
|
|
27
|
+
background: var(--color-brand)
|
|
28
|
+
border-radius: var(--radius-sm)
|
|
29
|
+
transform: rotate(45deg)
|
|
30
|
+
kit-navigation-theme-field
|
|
31
|
+
display: flex
|
|
32
|
+
align-items: center
|
|
33
|
+
gap: var(--space-3)
|
|
34
|
+
font-size: var(--text-small)
|
|
35
|
+
kit-navigation-theme-select
|
|
36
|
+
width: auto
|
|
37
|
+
min-width: 7rem
|
|
38
|
+
kit-navigation-nav
|
|
39
|
+
display: flex
|
|
40
|
+
flex-wrap: wrap
|
|
41
|
+
gap: var(--space-1)
|
|
42
|
+
padding-block: var(--space-3)
|
|
43
|
+
border-block: var(--border-subtle)
|
|
44
|
+
kit-nav-link
|
|
45
|
+
padding: var(--space-2) var(--space-3)
|
|
46
|
+
border-radius: var(--radius-md)
|
|
47
|
+
color: var(--color-muted)
|
|
48
|
+
text-decoration: none
|
|
49
|
+
font-size: var(--text-small)
|
|
50
|
+
kit-nav-link:hover, kit-nav-link[aria-current="page"]
|
|
51
|
+
color: var(--color-on-accent)
|
|
52
|
+
background: var(--color-accent)
|
|
53
|
+
style-guide-view
|
|
54
|
+
scroll-margin-top: var(--space-4)
|
|
55
|
+
min-width: 0
|
|
56
|
+
style-guide-view:focus
|
|
57
|
+
outline: none
|
|
58
|
+
kit-overview-hero
|
|
59
|
+
display: grid
|
|
60
|
+
grid-template-columns: 1.1fr 1fr
|
|
61
|
+
align-items: center
|
|
62
|
+
gap: var(--space-7)
|
|
63
|
+
padding-block: var(--space-8)
|
|
64
|
+
style-guide-lead
|
|
65
|
+
color: var(--color-muted)
|
|
66
|
+
max-width: 52ch
|
|
67
|
+
kit-overview-hero-specimen
|
|
68
|
+
display: grid
|
|
69
|
+
place-items: center
|
|
70
|
+
gap: var(--space-4)
|
|
71
|
+
padding: var(--space-6)
|
|
72
|
+
border-radius: var(--radius-xl)
|
|
73
|
+
background: var(--color-accent)
|
|
74
|
+
color: var(--color-on-accent)
|
|
75
|
+
kit-overview-hero-type
|
|
76
|
+
font-size: clamp(5rem, 12vw, 8rem)
|
|
77
|
+
line-height: 1
|
|
78
|
+
letter-spacing: -.06em
|
|
79
|
+
kit-overview-hero-scales
|
|
80
|
+
display: flex
|
|
81
|
+
gap: var(--space-2)
|
|
82
|
+
kit-overview-hero-chip
|
|
83
|
+
width: 2rem
|
|
84
|
+
height: 2rem
|
|
85
|
+
border-radius: var(--radius-pill)
|
|
86
|
+
border: var(--border-subtle)
|
|
87
|
+
kit-overview-specimen-caption
|
|
88
|
+
font-family: var(--font-mono)
|
|
89
|
+
font-size: var(--text-small)
|
|
90
|
+
kit-overview-section, style-guide-view_detail
|
|
91
|
+
padding-block: var(--space-6)
|
|
92
|
+
kit-overview-entry-grid
|
|
93
|
+
grid-template-columns: repeat(3, minmax(0, 1fr))
|
|
94
|
+
kit-card-link
|
|
95
|
+
display: flex
|
|
96
|
+
flex-direction: column
|
|
97
|
+
gap: var(--space-3)
|
|
98
|
+
color: var(--color-text)
|
|
99
|
+
text-decoration: none
|
|
100
|
+
kit-card-link:hover
|
|
101
|
+
border-color: var(--color-brand)
|
|
102
|
+
kit-card-link-icon
|
|
103
|
+
font-size: 2rem
|
|
104
|
+
color: var(--color-brand)
|
|
105
|
+
style-guide-page-heading
|
|
106
|
+
display: grid
|
|
107
|
+
gap: var(--space-3)
|
|
108
|
+
margin-bottom: var(--space-4)
|
|
109
|
+
kit-color-swatch-grid
|
|
110
|
+
display: grid
|
|
111
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr))
|
|
112
|
+
gap: var(--space-4)
|
|
113
|
+
kit-color-swatch
|
|
114
|
+
overflow: hidden
|
|
115
|
+
border: var(--border-subtle)
|
|
116
|
+
border-radius: var(--radius-lg)
|
|
117
|
+
kit-color-swatch-paint
|
|
118
|
+
height: 5rem
|
|
119
|
+
border-bottom: var(--border-subtle)
|
|
120
|
+
kit-space-scale-row
|
|
121
|
+
display: grid
|
|
122
|
+
grid-template-columns: 7rem 4rem 1fr
|
|
123
|
+
align-items: center
|
|
124
|
+
gap: var(--space-3)
|
|
125
|
+
padding-block: var(--space-3)
|
|
126
|
+
kit-space-bar
|
|
127
|
+
height: 1rem
|
|
128
|
+
background: var(--color-brand)
|
|
129
|
+
border-radius: var(--radius-sm)
|
|
130
|
+
kit-radius-shape
|
|
131
|
+
width: 5rem
|
|
132
|
+
height: 5rem
|
|
133
|
+
background: var(--color-accent)
|
|
134
|
+
border: var(--border-strong)
|
|
135
|
+
margin-bottom: var(--space-4)
|
|
136
|
+
kit-type-row
|
|
137
|
+
display: grid
|
|
138
|
+
grid-template-columns: 2rem minmax(0, 1fr)
|
|
139
|
+
align-items: baseline
|
|
140
|
+
gap: var(--space-3)
|
|
141
|
+
padding-block: var(--space-4)
|
|
142
|
+
border-bottom: var(--border-subtle)
|
|
143
|
+
overflow-wrap: anywhere
|
|
144
|
+
kit-components-component-grid
|
|
145
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr))
|
|
146
|
+
align-items: start
|
|
147
|
+
style-guide-source-code
|
|
148
|
+
margin: var(--space-4) 0 0
|
|
149
|
+
padding: var(--space-4)
|
|
150
|
+
overflow: auto
|
|
151
|
+
max-height: 30rem
|
|
152
|
+
background: var(--color-canvas)
|
|
153
|
+
border: var(--border-subtle)
|
|
154
|
+
border-radius: var(--radius-md)
|
|
155
|
+
font: var(--text-small)/var(--line-body) var(--font-mono)
|
|
156
|
+
tab-size: 3
|
|
157
|
+
style-guide-source-code space-control, style-guide-source-code space-return
|
|
158
|
+
color: var(--color-warning)
|
|
159
|
+
style-guide-source-code space-type
|
|
160
|
+
color: var(--color-brand)
|
|
161
|
+
style-guide-source-code space-action
|
|
162
|
+
color: var(--color-info)
|
|
163
|
+
style-guide-source-code space-reactive
|
|
164
|
+
color: var(--color-danger)
|
|
165
|
+
style-guide-source-code space-value
|
|
166
|
+
color: var(--color-success)
|
|
167
|
+
style-guide-source-code space-comment
|
|
168
|
+
color: var(--color-muted)
|
|
169
|
+
@media (max-width: 700px)
|
|
170
|
+
kit-overview-hero
|
|
171
|
+
grid-template-columns: 1fr
|
|
172
|
+
gap: var(--space-5)
|
|
173
|
+
padding-block: var(--space-6)
|
|
174
|
+
kit-overview-entry-grid
|
|
175
|
+
grid-template-columns: repeat(2, minmax(0, 1fr))
|
|
176
|
+
@media (max-width: 420px)
|
|
177
|
+
kit-overview-entry-grid
|
|
178
|
+
grid-template-columns: 1fr
|
|
179
|
+
kit-space-scale-row
|
|
180
|
+
grid-template-columns: 6rem 3.5rem 1fr
|
|
181
|
+
gap: var(--space-2)
|
|
182
|
+
kit-space-0
|
|
183
|
+
width: var(--space-0)
|
|
184
|
+
kit-space-1
|
|
185
|
+
width: var(--space-1)
|
|
186
|
+
kit-space-2
|
|
187
|
+
width: var(--space-2)
|
|
188
|
+
kit-space-3
|
|
189
|
+
width: var(--space-3)
|
|
190
|
+
kit-space-4
|
|
191
|
+
width: var(--space-4)
|
|
192
|
+
kit-space-5
|
|
193
|
+
width: var(--space-5)
|
|
194
|
+
kit-space-6
|
|
195
|
+
width: var(--space-6)
|
|
196
|
+
kit-space-7
|
|
197
|
+
width: var(--space-7)
|
|
198
|
+
kit-space-8
|
|
199
|
+
width: var(--space-8)
|
|
200
|
+
kit-radius-none
|
|
201
|
+
border-radius: var(--radius-none)
|
|
202
|
+
kit-radius-sm
|
|
203
|
+
border-radius: var(--radius-sm)
|
|
204
|
+
kit-radius-md
|
|
205
|
+
border-radius: var(--radius-md)
|
|
206
|
+
kit-radius-lg
|
|
207
|
+
border-radius: var(--radius-lg)
|
|
208
|
+
kit-radius-xl
|
|
209
|
+
border-radius: var(--radius-xl)
|
|
210
|
+
kit-radius-pill
|
|
211
|
+
border-radius: var(--radius-pill)
|
|
212
|
+
kit-border-shadow-sm
|
|
213
|
+
box-shadow: var(--shadow-sm)
|
|
214
|
+
kit-border-shadow-md
|
|
215
|
+
box-shadow: var(--shadow-md)
|
|
216
|
+
kit-border-shadow-lg
|
|
217
|
+
box-shadow: var(--shadow-lg)
|
|
218
|
+
kit-color-use-canvas
|
|
219
|
+
background: var(--color-canvas)
|
|
220
|
+
style-guide-use-surface
|
|
221
|
+
background: var(--color-surface)
|
|
222
|
+
kit-color-use-text
|
|
223
|
+
background: var(--color-text)
|
|
224
|
+
kit-color-use-muted
|
|
225
|
+
background: var(--color-muted)
|
|
226
|
+
kit-color-use-outline
|
|
227
|
+
background: var(--color-outline)
|
|
228
|
+
style-guide-use-brand
|
|
229
|
+
background: var(--color-brand)
|
|
230
|
+
style-guide-use-accent
|
|
231
|
+
background: var(--color-accent)
|
|
232
|
+
kit-color-use-success
|
|
233
|
+
background: var(--color-success)
|
|
234
|
+
kit-color-use-warning
|
|
235
|
+
background: var(--color-warning)
|
|
236
|
+
kit-color-use-danger
|
|
237
|
+
background: var(--color-danger)
|
|
238
|
+
kit-color-use-info
|
|
239
|
+
background: var(--color-info)
|
|
240
|
+
kit-color-swatch
|
|
241
|
+
margin: 0
|
|
242
|
+
kit-color-swatch-paint
|
|
243
|
+
border-radius: var(--radius-md)
|
|
244
|
+
margin-bottom: var(--space-3)
|
|
245
|
+
kit-card-link-caption
|
|
246
|
+
color: var(--color-muted)
|
|
247
|
+
font-size: var(--text-small)
|
|
248
|
+
kit-card-link-arrow
|
|
249
|
+
margin-top: auto
|
|
250
|
+
color: var(--color-brand)
|
|
251
|
+
kit-radius-shape-card
|
|
252
|
+
margin: 0
|