@netlify/spark-ui 1.19.0 → 1.20.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 +66 -0
- package/package.json +3 -2
- package/packages/components/ActionArrow.astro +1 -1
- package/packages/components/ActionLink.astro +5 -5
- package/packages/components/Blockquote.astro +22 -22
- package/packages/components/Card.astro +18 -18
- package/packages/components/Eyebrow.astro +4 -4
- package/packages/components/HeadingBlock.astro +12 -12
- package/packages/components/PageHero.astro +4 -4
- package/packages/components/PageHeroGraphic.astro +9 -9
- package/packages/components/PageSection.astro +9 -9
- package/packages/components/Switchback.astro +14 -14
- package/packages/components/SwitchbackGroup.astro +1 -1
- package/packages/components/TabPanelGroup.astro +4 -4
- package/packages/components/TabbedContent.astro +13 -13
- package/packages/components/TabbedContentPanel.astro +14 -14
- package/packages/components/TestimonialSlider.astro +8 -8
- package/packages/components/Ticker.astro +1 -1
- package/packages/components/TrustBarTicker.astro +1 -1
- package/packages/components/TrustBarTickerItem.astro +5 -5
- package/packages/components/preact/AskNetlify/components/ActionBar.tsx +1 -1
- package/packages/styles/base.css +1 -0
- package/packages/styles/layout.compat.css +114 -0
- package/packages/styles/layout.css +35 -35
- package/packages/styles/tokens.compat.css +548 -0
- package/packages/styles/tokens.css +524 -440
- package/packages/styles/tokens.overrides.css +6 -0
- package/skills/landing-page.md +189 -0
package/README.md
CHANGED
|
@@ -65,6 +65,34 @@ The tokens file can also be rebuilt manually with the following command:
|
|
|
65
65
|
npm run build:tokens
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
### Token Prefix and Backwards Compatibility
|
|
69
|
+
|
|
70
|
+
All design tokens are generated with a `--ntl-` prefix (e.g., `--ntl-color-bg`, `--ntl-font-size-display-lg`). If your project still references the older unprefixed token names (e.g., `--color-bg`), you can import the compatibility file to alias them:
|
|
71
|
+
|
|
72
|
+
```css
|
|
73
|
+
@import '@netlify/spark-ui/styles/tokens.css';
|
|
74
|
+
@import '@netlify/spark-ui/styles/tokens.compat.css';
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
`tokens.compat.css` maps every unprefixed variable name to its `--ntl-` prefixed equivalent across all theme selectors (`:root`, `prefers-color-scheme`, `[data-theme]`). This lets you incrementally migrate pages to the new prefixed tokens without breaking existing styles.
|
|
78
|
+
|
|
79
|
+
Once a page or project has been fully updated to use `--ntl-` prefixed tokens, remove the `tokens.compat.css` import.
|
|
80
|
+
|
|
81
|
+
### Layout Utility Prefix and Backwards Compatibility
|
|
82
|
+
|
|
83
|
+
Layout utility classes have been renamed from `.n-` to `.ntl-` (e.g., `.n-grid` → `.ntl-grid`, `.n-flow` → `.ntl-flow`). The associated CSS custom properties have also been renamed (e.g., `--n-grid-column-min-size` → `--ntl-grid-column-min-size`).
|
|
84
|
+
|
|
85
|
+
If your project still uses the old `.n-` class names or `--n-` layout variables, import the compatibility file:
|
|
86
|
+
|
|
87
|
+
```css
|
|
88
|
+
@import '@netlify/spark-ui/styles/layout.css';
|
|
89
|
+
@import '@netlify/spark-ui/styles/layout.compat.css';
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
`layout.compat.css` re-declares each old `.n-` class with the same styles, accepting both old `--n-` and new `--ntl-` CSS variables. This lets you incrementally migrate to the new prefixed names without breaking existing layouts.
|
|
93
|
+
|
|
94
|
+
Once all references have been updated to use `ntl-` prefixed classes and variables, remove the `layout.compat.css` import.
|
|
95
|
+
|
|
68
96
|
## Local Testing
|
|
69
97
|
|
|
70
98
|
During development, you should create a documentation page for your component inside the `/docs` directory. This allows you to test and showcase all its configurations and variations in isolation. Once you’re ready to test the component inside your frontend application, you can link your local `netlify-spark-ui` package using `npm link`.
|
|
@@ -109,6 +137,44 @@ npm run dev
|
|
|
109
137
|
|
|
110
138
|
---
|
|
111
139
|
|
|
140
|
+
## AI-Assisted Page Building with Claude Code
|
|
141
|
+
|
|
142
|
+
This repo includes a [Claude Code](https://claude.ai/code) skill for generating landing pages using Spark UI components. The skill provides guidelines for correct component usage, layout utilities, and design tokens based on the Templates documentation.
|
|
143
|
+
|
|
144
|
+
### For contributors (working in this repo)
|
|
145
|
+
|
|
146
|
+
The skill is available automatically. Run:
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
/project:landing-page <describe the page you want>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
For example:
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
/project:landing-page A landing page for a new enterprise hosting product with a hero, feature cards, and a pricing comparison
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### For consumers (using spark-ui as a dependency)
|
|
159
|
+
|
|
160
|
+
If you're using `@netlify/spark-ui` in your own project, the skill guidelines are shipped with the package. Create a thin wrapper at `.claude/commands/landing-page.md` in your workspace root:
|
|
161
|
+
|
|
162
|
+
```markdown
|
|
163
|
+
# Create a Landing Page with Spark UI
|
|
164
|
+
|
|
165
|
+
$FILE node_modules/@netlify/spark-ui/skills/landing-page.md
|
|
166
|
+
|
|
167
|
+
## User Request
|
|
168
|
+
|
|
169
|
+
$ARGUMENTS
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Then run `/project:landing-page` in Claude Code. The `$FILE` directive loads guidelines from your installed package — when you update `@netlify/spark-ui`, the prompt updates automatically.
|
|
173
|
+
|
|
174
|
+
> **Monorepo note:** Place `.claude/commands/` at the monorepo root, not inside a subdirectory like `apps/frontend/`.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
112
178
|
## Remote Testing
|
|
113
179
|
|
|
114
180
|
When you’re ready to validate your component changes in a deploy preview, you can publish an **alpha release** and install it in your frontend project.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/spark-ui",
|
|
3
3
|
"description": "Assets, design tokens, components, and utilities",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.20.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/components/preact/index.js",
|
|
7
7
|
"types": "dist/components/preact/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"**/*.css"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build:tokens": "npx tz build",
|
|
12
|
+
"build:tokens": "npx tz build && node scripts/generate-compat-tokens.mjs",
|
|
13
13
|
"build:vite": "vite build",
|
|
14
14
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.astro",
|
|
15
15
|
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx,.astro --fix",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"packages/",
|
|
22
22
|
"dist",
|
|
23
|
+
"skills/",
|
|
23
24
|
"README.md"
|
|
24
25
|
],
|
|
25
26
|
"exports": {
|
|
@@ -18,17 +18,17 @@ const { id, href, text, class: className, ...rest } = Astro.props;
|
|
|
18
18
|
<style>
|
|
19
19
|
.n-action-link {
|
|
20
20
|
display: inline-block;
|
|
21
|
-
gap: var(--space-3xs);
|
|
21
|
+
gap: var(--ntl-space-3xs);
|
|
22
22
|
align-items: center;
|
|
23
|
-
font-weight: var(--font-weight-medium);
|
|
24
|
-
font-size: var(--font-size-text-md);
|
|
23
|
+
font-weight: var(--ntl-font-weight-medium);
|
|
24
|
+
font-size: var(--ntl-font-size-text-md);
|
|
25
25
|
text-wrap: pretty; /** Prevents orphan icon */
|
|
26
26
|
text-decoration: none;
|
|
27
|
-
color: var(--color-text);
|
|
27
|
+
color: var(--ntl-color-text);
|
|
28
28
|
|
|
29
29
|
span {
|
|
30
30
|
text-decoration: underline;
|
|
31
|
-
text-decoration-color: var(--color-link);
|
|
31
|
+
text-decoration-color: var(--ntl-color-link);
|
|
32
32
|
text-underline-offset: 0.1em;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -47,15 +47,15 @@ if (Astro.slots.has('default')) {
|
|
|
47
47
|
|
|
48
48
|
<style>
|
|
49
49
|
figure {
|
|
50
|
-
--_gap: var(--space-s);
|
|
50
|
+
--_gap: var(--ntl-space-s);
|
|
51
51
|
display: grid;
|
|
52
52
|
gap: var(--_gap);
|
|
53
53
|
padding-inline-start: var(--_gap);
|
|
54
|
-
border-inline-start: 3px solid var(--color-icon);
|
|
55
|
-
font-size: var(--font-size-display-2xs);
|
|
56
|
-
font-family: var(--font-family-display);
|
|
57
|
-
font-weight: var(--font-weight-bold);
|
|
58
|
-
line-height: var(--line-height-heading);
|
|
54
|
+
border-inline-start: 3px solid var(--ntl-color-icon);
|
|
55
|
+
font-size: var(--ntl-font-size-display-2xs);
|
|
56
|
+
font-family: var(--ntl-font-family-display);
|
|
57
|
+
font-weight: var(--ntl-font-weight-bold);
|
|
58
|
+
line-height: var(--ntl-line-height-heading);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
blockquote {
|
|
@@ -73,42 +73,42 @@ if (Astro.slots.has('default')) {
|
|
|
73
73
|
|
|
74
74
|
blockquote::before {
|
|
75
75
|
content: open-quote;
|
|
76
|
-
color: var(--blockquote-accent-color);
|
|
76
|
+
color: var(--ntl-blockquote-accent-color);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
blockquote::after {
|
|
80
80
|
content: close-quote;
|
|
81
|
-
color: var(--blockquote-accent-color);
|
|
81
|
+
color: var(--ntl-blockquote-accent-color);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.n-blockquote-author-info {
|
|
85
85
|
display: flex;
|
|
86
86
|
gap: 0.2em;
|
|
87
|
-
font-size: var(--font-size-text-xs);
|
|
88
|
-
line-height: var(--line-height-heading);
|
|
87
|
+
font-size: var(--ntl-font-size-text-xs);
|
|
88
|
+
line-height: var(--ntl-line-height-heading);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/* Variants */
|
|
92
92
|
[data-blockquote-variant='default'] {
|
|
93
93
|
.n-blockquote-author-info {
|
|
94
94
|
flex-direction: column;
|
|
95
|
-
font-weight: var(--font-weight-regular);
|
|
95
|
+
font-weight: var(--ntl-font-weight-regular);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.n-blockquote-author-info > * {
|
|
99
99
|
display: block;
|
|
100
|
-
font-family: var(--font-family-mono);
|
|
100
|
+
font-family: var(--ntl-font-family-mono);
|
|
101
101
|
text-transform: uppercase;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.n-blockquote-author-info > *:last-child:not(:only-child) {
|
|
105
|
-
color: var(--color-text-weak);
|
|
105
|
+
color: var(--ntl-color-text-weak);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
[data-blockquote-variant='simple'] {
|
|
110
110
|
.n-blockquote-author-info > * {
|
|
111
|
-
font-size: var(--font-size-text-sm);
|
|
111
|
+
font-size: var(--ntl-font-size-text-sm);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.n-blockquote-author-info > *:not(:last-child)::after {
|
|
@@ -119,14 +119,14 @@ if (Astro.slots.has('default')) {
|
|
|
119
119
|
[data-blockquote-variant='testimonial'] {
|
|
120
120
|
border-inline-start: none;
|
|
121
121
|
|
|
122
|
-
font-size: var(--font-size-display-lg);
|
|
123
|
-
font-weight: var(--font-weight-bold);
|
|
124
|
-
line-height: var(--line-height-heading);
|
|
122
|
+
font-size: var(--ntl-font-size-display-lg);
|
|
123
|
+
font-weight: var(--ntl-font-weight-bold);
|
|
124
|
+
line-height: var(--ntl-line-height-heading);
|
|
125
125
|
|
|
126
126
|
.n-blockquote-author-info {
|
|
127
127
|
flex-direction: column;
|
|
128
|
-
font-weight: var(--font-weight-regular);
|
|
129
|
-
font-family: var(--font-family-mono);
|
|
128
|
+
font-weight: var(--ntl-font-weight-regular);
|
|
129
|
+
font-family: var(--ntl-font-family-mono);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
figcaption {
|
|
@@ -144,13 +144,13 @@ if (Astro.slots.has('default')) {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.n-blockquote-author-info {
|
|
147
|
-
font-size: var(--font-size-text-sm);
|
|
148
|
-
font-weight: var(--font-weight-regular);
|
|
147
|
+
font-size: var(--ntl-font-size-text-sm);
|
|
148
|
+
font-weight: var(--ntl-font-weight-regular);
|
|
149
149
|
text-transform: uppercase;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.n-blockquote-title {
|
|
153
|
-
color: var(--color-text-weak);
|
|
153
|
+
color: var(--ntl-color-text-weak);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
</style>
|
|
@@ -33,7 +33,7 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
33
33
|
|
|
34
34
|
<Element
|
|
35
35
|
class:list={[
|
|
36
|
-
'n-card
|
|
36
|
+
'n-card ntl-flow',
|
|
37
37
|
isCardClickable && 'n-card-clickable',
|
|
38
38
|
isAnchorHeadline && 'n-card-anchor-heaadline',
|
|
39
39
|
className,
|
|
@@ -79,18 +79,18 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
79
79
|
<style>
|
|
80
80
|
.n-card {
|
|
81
81
|
position: relative;
|
|
82
|
-
padding: var(--space-m);
|
|
83
|
-
background-color: var(--card-bg-color);
|
|
84
|
-
border: 1px solid var(--card-border-color);
|
|
85
|
-
border-radius: var(--radius-m);
|
|
82
|
+
padding: var(--ntl-space-m);
|
|
83
|
+
background-color: var(--ntl-card-bg-color);
|
|
84
|
+
border: 1px solid var(--ntl-card-border-color);
|
|
85
|
+
border-radius: var(--ntl-radius-m);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.n-card-eyebrow {
|
|
89
|
-
--
|
|
89
|
+
--ntl-flow-space: var(--ntl-space-l);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.n-card-eyebrow + .n-card-headline {
|
|
93
|
-
--
|
|
93
|
+
--ntl-flow-space: var(--ntl-space-s);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.n-card-link:has(> .n-card-headline) {
|
|
@@ -98,11 +98,11 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.n-card-headline {
|
|
101
|
-
font-size: var(--font-size-display-sm);
|
|
102
|
-
font-family: var(--font-family-display);
|
|
103
|
-
font-weight: var(--font-weight-bold);
|
|
104
|
-
line-height: var(--line-height-heading);
|
|
105
|
-
color: var(--heading-text-color);
|
|
101
|
+
font-size: var(--ntl-font-size-display-sm);
|
|
102
|
+
font-family: var(--ntl-font-family-display);
|
|
103
|
+
font-weight: var(--ntl-font-weight-bold);
|
|
104
|
+
line-height: var(--ntl-line-height-heading);
|
|
105
|
+
color: var(--ntl-heading-text-color);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.n-card-headline:has(+ .n-action-link) {
|
|
@@ -113,7 +113,7 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
113
113
|
display: flex;
|
|
114
114
|
align-items: center;
|
|
115
115
|
justify-content: space-between;
|
|
116
|
-
gap: var(--space-s);
|
|
116
|
+
gap: var(--ntl-space-s);
|
|
117
117
|
width: 100%;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -123,7 +123,7 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.n-card-paragraph {
|
|
126
|
-
line-height: var(--line-height-text);
|
|
126
|
+
line-height: var(--ntl-line-height-text);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.n-card-paragraph:nth-last-child(2) {
|
|
@@ -131,14 +131,14 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.n-card-link {
|
|
134
|
-
--
|
|
134
|
+
--ntl-flow-space: var(--ntl-space-l);
|
|
135
135
|
align-self: flex-start;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.n-card-image :global(img, picture) {
|
|
139
139
|
width: 100%;
|
|
140
140
|
height: auto;
|
|
141
|
-
border-radius: var(--radius-s);
|
|
141
|
+
border-radius: var(--ntl-radius-s);
|
|
142
142
|
object-fit: cover;
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -147,7 +147,7 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
147
147
|
transition: border-color 100ms cubic-bezier(0.25, 1, 0.5, 1);
|
|
148
148
|
|
|
149
149
|
&:hover {
|
|
150
|
-
border-color: var(--card-border-color-hover);
|
|
150
|
+
border-color: var(--ntl-card-border-color-hover);
|
|
151
151
|
transition-duration: 200ms;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -169,7 +169,7 @@ const isExternal = link?.href && !new URL(link.href, 'https://www.netlify.com').
|
|
|
169
169
|
/* Focus for Anchor Headline */
|
|
170
170
|
.n-card-anchor-heaadline:focus-within {
|
|
171
171
|
box-shadow: 0 0 0 3px var(--color-focus-ring, Highlight);
|
|
172
|
-
border-radius: var(--radius-s, 0.25rem);
|
|
172
|
+
border-radius: var(--ntl-radius-s, 0.25rem);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.n-card-anchor-heaadline a:focus {
|
|
@@ -8,10 +8,10 @@ const { as: Element = 'div', class: className, ...rest } = Astro.props;
|
|
|
8
8
|
|
|
9
9
|
<style>
|
|
10
10
|
.eyebrow {
|
|
11
|
-
font-size: var(--font-size-text-sm);
|
|
12
|
-
font-family: var(--font-family-mono);
|
|
13
|
-
line-height: var(--line-height-heading);
|
|
14
|
-
color: var(--eyebrow-text-color);
|
|
11
|
+
font-size: var(--ntl-font-size-text-sm);
|
|
12
|
+
font-family: var(--ntl-font-family-mono);
|
|
13
|
+
line-height: var(--ntl-line-height-heading);
|
|
14
|
+
color: var(--ntl-eyebrow-text-color);
|
|
15
15
|
text-transform: uppercase;
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
@@ -36,8 +36,8 @@ const Heading = `h${headingLevel}` as any;
|
|
|
36
36
|
const customStyles =
|
|
37
37
|
headingMaxWidth || textMaxWidth
|
|
38
38
|
? {
|
|
39
|
-
...(headingMaxWidth && { '--
|
|
40
|
-
...(textMaxWidth && { '--
|
|
39
|
+
...(headingMaxWidth && { '--ntl-heading-block-heading-max-width': headingMaxWidth }),
|
|
40
|
+
...(textMaxWidth && { '--ntl-heading-block-text-max-width': textMaxWidth }),
|
|
41
41
|
}
|
|
42
42
|
: null;
|
|
43
43
|
---
|
|
@@ -45,7 +45,7 @@ const customStyles =
|
|
|
45
45
|
<div
|
|
46
46
|
{id}
|
|
47
47
|
class:list={[
|
|
48
|
-
'n-heading-block
|
|
48
|
+
'n-heading-block ntl-flow',
|
|
49
49
|
alignment === 'center' && 'n-heading-block-center',
|
|
50
50
|
className,
|
|
51
51
|
]}
|
|
@@ -57,7 +57,7 @@ const customStyles =
|
|
|
57
57
|
{text && <p class="n-heading-block-text" set:html={text} />}
|
|
58
58
|
{
|
|
59
59
|
ctas && ctas.length > 0 && (
|
|
60
|
-
<div class="n-heading-block-ctas
|
|
60
|
+
<div class="n-heading-block-ctas ntl-cluster">
|
|
61
61
|
{ctas?.map((cta: CallToActionProps) => (
|
|
62
62
|
<Button id={cta.id} href={cta.href} variant={cta.variant} target={cta.target}>
|
|
63
63
|
{cta.text}
|
|
@@ -70,7 +70,7 @@ const customStyles =
|
|
|
70
70
|
|
|
71
71
|
<style>
|
|
72
72
|
.n-heading-block-center {
|
|
73
|
-
--
|
|
73
|
+
--ntl-cluster-justify: center;
|
|
74
74
|
text-align: center;
|
|
75
75
|
margin-inline: auto;
|
|
76
76
|
|
|
@@ -80,21 +80,21 @@ const customStyles =
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.n-heading-block-heading {
|
|
83
|
-
font-size: var(--
|
|
84
|
-
inline-size: min(100%, var(--
|
|
83
|
+
font-size: var(--ntl-heading-block-heading-font-size, var(--ntl-font-size-display-2xl));
|
|
84
|
+
inline-size: min(100%, var(--ntl-heading-block-heading-max-width, 50rem));
|
|
85
85
|
text-wrap: balance;
|
|
86
|
-
color: var(--heading-text-color);
|
|
86
|
+
color: var(--ntl-heading-text-color);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.n-heading-block-text {
|
|
90
|
-
font-size: var(--
|
|
91
|
-
inline-size: min(100%, var(--
|
|
90
|
+
font-size: var(--ntl-heading-block-text-font-size, var(--ntl-font-size-text-lg));
|
|
91
|
+
inline-size: min(100%, var(--ntl-heading-block-text-max-width, 35rem));
|
|
92
92
|
text-wrap: pretty;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.n-heading-block-ctas {
|
|
96
|
-
--
|
|
97
|
-
--
|
|
96
|
+
--ntl-flow-space: var(--ntl-space-l);
|
|
97
|
+
--ntl-cluster-gap: var(--ntl-space-xs);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
@media (max-width: 30rem) {
|
|
@@ -12,9 +12,9 @@ const { class: className, heading, text, ctas, ...rest } = Astro.props;
|
|
|
12
12
|
|
|
13
13
|
<style>
|
|
14
14
|
.n-page-hero {
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
15
|
+
--ntl-page-section-space: var(--ntl-space-4xl);
|
|
16
|
+
--ntl-page-section-bg-color: linear-gradient(to bottom, var(--ntl-color-bg) 50%, var(--ntl-teal-800));
|
|
17
|
+
--ntl-heading-block-heading-font-size: var(--ntl-font-size-display-3xl);
|
|
18
|
+
--ntl-heading-block-text-font-size: var(--ntl-font-size-text-xl);
|
|
19
19
|
}
|
|
20
20
|
</style>
|
|
@@ -6,7 +6,7 @@ const { class: className, heading, text, ctas, ...rest } = Astro.props;
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<PageSection class:list={['n-page-hero-graphic', className]} {...rest}>
|
|
9
|
-
<div class="n-page-hero-graphic-container
|
|
9
|
+
<div class="n-page-hero-graphic-container ntl-flex-grid">
|
|
10
10
|
<HeadingBlock heading={heading} headingLevel="1" text={text} alignment="start" ctas={ctas} />
|
|
11
11
|
<slot name="graphic" />
|
|
12
12
|
</div>
|
|
@@ -15,18 +15,18 @@ const { class: className, heading, text, ctas, ...rest } = Astro.props;
|
|
|
15
15
|
|
|
16
16
|
<style>
|
|
17
17
|
.n-page-hero {
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
linear-gradient(to bottom, var(--color-bg) 50%, var(--teal-800))
|
|
18
|
+
--ntl-page-section-space: var(--ntl-space-4xl);
|
|
19
|
+
--ntl-page-section-bg-color: var(
|
|
20
|
+
--ntl-page-section-bg,
|
|
21
|
+
linear-gradient(to bottom, var(--ntl-color-bg) 50%, var(--ntl-teal-800))
|
|
22
22
|
);
|
|
23
|
-
--
|
|
24
|
-
--
|
|
23
|
+
--ntl-heading-block-heading-font-size: var(--ntl-font-size-display-3xl);
|
|
24
|
+
--ntl-heading-block-text-font-size: var(--ntl-font-size-text-xl);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.n-page-hero-graphic-container {
|
|
28
|
-
--
|
|
28
|
+
--ntl-grid-column-min-size: var(--n--column-min-size, min(400px, 100%));
|
|
29
29
|
align-items: var(--n-hero-align, center);
|
|
30
|
-
grid-column-gap: var(--n-hero-column-gap, var(--space-l));
|
|
30
|
+
grid-column-gap: var(--n-hero-column-gap, var(--ntl-space-l));
|
|
31
31
|
}
|
|
32
32
|
</style>
|
|
@@ -14,8 +14,8 @@ const { id, class: className, spaceTop, spaceBottom, theme, ...rest } = Astro.pr
|
|
|
14
14
|
const customStyles =
|
|
15
15
|
spaceTop || spaceBottom
|
|
16
16
|
? {
|
|
17
|
-
...(spaceTop && { '--
|
|
18
|
-
...(spaceBottom && { '--
|
|
17
|
+
...(spaceTop && { '--ntl-page-section-space-top': spaceTop }),
|
|
18
|
+
...(spaceBottom && { '--ntl-page-section-space-bottom': spaceBottom }),
|
|
19
19
|
}
|
|
20
20
|
: null;
|
|
21
21
|
---
|
|
@@ -23,7 +23,7 @@ const customStyles =
|
|
|
23
23
|
<section
|
|
24
24
|
id={id}
|
|
25
25
|
data-theme={theme}
|
|
26
|
-
class:list={['n-page-section
|
|
26
|
+
class:list={['n-page-section ntl-breakout', className]}
|
|
27
27
|
style={customStyles}
|
|
28
28
|
{...rest}
|
|
29
29
|
>
|
|
@@ -32,14 +32,14 @@ const customStyles =
|
|
|
32
32
|
|
|
33
33
|
<style>
|
|
34
34
|
.n-page-section {
|
|
35
|
-
--_space: var(--space-3xl);
|
|
36
|
-
color: var(--
|
|
37
|
-
background: var(--
|
|
38
|
-
padding-block-start: var(--
|
|
39
|
-
padding-block-end: var(--
|
|
35
|
+
--_space: var(--ntl-space-3xl);
|
|
36
|
+
color: var(--ntl-page-section-text-color, var(--ntl-color-text));
|
|
37
|
+
background: var(--ntl-page-section-bg-color, var(--ntl-color-bg));
|
|
38
|
+
padding-block-start: var(--ntl-page-section-space-top, var(--_space));
|
|
39
|
+
padding-block-end: var(--ntl-page-section-space-bottom, var(--_space));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.n-page-section :global(> * + *) {
|
|
43
|
-
margin-block-start: var(--
|
|
43
|
+
margin-block-start: var(--ntl-page-section-item-space, var(--ntl-space-2xl));
|
|
44
44
|
}
|
|
45
45
|
</style>
|
|
@@ -31,11 +31,11 @@ const {
|
|
|
31
31
|
|
|
32
32
|
<div
|
|
33
33
|
id={id}
|
|
34
|
-
class:list={['n-switchback
|
|
34
|
+
class:list={['n-switchback ntl-sidebar-left', isReversed && 'n-switchback-reversed', className]}
|
|
35
35
|
data-theme="dark"
|
|
36
36
|
{...rest}
|
|
37
37
|
>
|
|
38
|
-
<div class="n-switchback-content
|
|
38
|
+
<div class="n-switchback-content ntl-flow">
|
|
39
39
|
{eyebrow && <Eyebrow>{eyebrow}</Eyebrow>}
|
|
40
40
|
{heading && <h3 class="n-switchback-heading h5">{heading}</h3>}
|
|
41
41
|
{text && <p class="text" set:html={text} />}
|
|
@@ -69,27 +69,27 @@ const {
|
|
|
69
69
|
|
|
70
70
|
<style>
|
|
71
71
|
.n-switchback {
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
72
|
+
--ntl-sidebar-size: 28.75rem;
|
|
73
|
+
--ntl-sidebar-min: 50%;
|
|
74
|
+
--ntl-sidebar-gap: 0;
|
|
75
75
|
overflow: hidden;
|
|
76
76
|
color: color(srgb 1 1 1);
|
|
77
77
|
background: linear-gradient(
|
|
78
|
-
var(--
|
|
78
|
+
var(--ntl-switchback-gradient-angle, 101deg),
|
|
79
79
|
#0d1818 8.17%,
|
|
80
80
|
#0c2a2a 56.72%
|
|
81
81
|
);
|
|
82
82
|
border: 1px solid rgba(208, 255, 254, 0.2);
|
|
83
|
-
border-radius: var(--radius-m);
|
|
83
|
+
border-radius: var(--ntl-radius-m);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.n-switchback-reversed {
|
|
87
|
-
--
|
|
87
|
+
--ntl-switchback-gradient-angle: 248deg;
|
|
88
88
|
flex-direction: row-reverse;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.n-switchback-content {
|
|
92
|
-
padding: var(--space-l);
|
|
92
|
+
padding: var(--ntl-space-l);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.n-switchback-heading {
|
|
@@ -99,8 +99,8 @@ const {
|
|
|
99
99
|
.n-switchback-media {
|
|
100
100
|
display: grid;
|
|
101
101
|
place-items: center;
|
|
102
|
-
padding: var(--space-xl);
|
|
103
|
-
background: var(--red-400);
|
|
102
|
+
padding: var(--ntl-space-xl);
|
|
103
|
+
background: var(--ntl-red-400);
|
|
104
104
|
min-height: 10rem;
|
|
105
105
|
|
|
106
106
|
:is(img, picture) {
|
|
@@ -114,15 +114,15 @@ const {
|
|
|
114
114
|
[data-switchback-media-pattern='1'] {
|
|
115
115
|
background:
|
|
116
116
|
url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzY5IiBoZWlnaHQ9IjQ5MCIgdmlld0JveD0iMCAwIDc2OSA0OTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjM4NC4zMjQiIHk9IjEwLjc1NDciIHdpZHRoPSIzMzEuMTY0IiBoZWlnaHQ9IjMzMS4xNjQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDM4NC4zMjQgMTAuNzU0NykiIHN0cm9rZT0id2hpdGUiLz4KPHJlY3QgeD0iNjIxLjMyNCIgeT0iNy45MjI4NSIgd2lkdGg9IjQ3NCIgaGVpZ2h0PSI0NzQiIHRyYW5zZm9ybT0icm90YXRlKDkwIDYyMS4zMjQgNy45MjI4NSkiIHN0cm9rZT0id2hpdGUiLz4KPHJlY3QgeD0iODU5LjEwMSIgeT0iMjQ0LjkyMyIgd2lkdGg9IjY3MS40MzYiIGhlaWdodD0iNjcxLjQzNiIgdHJhbnNmb3JtPSJyb3RhdGUoMTM1IDg1OS4xMDEgMjQ0LjkyMykiIHN0cm9rZT0id2hpdGUiLz4KPHJlY3QgeD0iNTAxLjUwNCIgeT0iMTI3Ljc0MyIgd2lkdGg9IjIzNC4zNTkiIGhlaWdodD0iMjM0LjM1OSIgdHJhbnNmb3JtPSJyb3RhdGUoOTAgNTAxLjUwNCAxMjcuNzQzKSIgc3Ryb2tlPSJ3aGl0ZSIvPgo8cmVjdCB4PSI1MDEuMjk3IiB5PSIyNDQuOTIzIiB3aWR0aD0iMTY1LjQyMyIgaGVpZ2h0PSIxNjUuNDIzIiB0cmFuc2Zvcm09InJvdGF0ZSgxMzUgNTAxLjI5NyAyNDQuOTIzKSIgc3Ryb2tlPSJ3aGl0ZSIvPgo8cmVjdCB4PSI0NDMuNTA0IiB5PSIzMDQuMTAzIiB3aWR0aD0iMTE4LjM2MSIgaGVpZ2h0PSIxMTguMzYxIiB0cmFuc2Zvcm09InJvdGF0ZSgtMTgwIDQ0My41MDQgMzA0LjEwMykiIHN0cm9rZT0id2hpdGUiLz4KPC9zdmc+Cg=='),
|
|
117
|
-
radial-gradient(circle at 50% 70%, var(--red-500) 0%, var(--purple-300) 100%);
|
|
117
|
+
radial-gradient(circle at 50% 70%, var(--ntl-red-500) 0%, var(--ntl-purple-300) 100%);
|
|
118
118
|
background-size: cover;
|
|
119
119
|
background-position: center;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
[data-switchback-media-pattern='2'] {
|
|
123
123
|
background:
|
|
124
|
-
repeating-linear-gradient(-30deg, var(--red-000) 0 1px, transparent 1px 150px),
|
|
125
|
-
radial-gradient(circle at 10% 70%, var(--blue-500) 0%, var(--teal-200) 100%);
|
|
124
|
+
repeating-linear-gradient(-30deg, var(--ntl-red-000) 0 1px, transparent 1px 150px),
|
|
125
|
+
radial-gradient(circle at 10% 70%, var(--ntl-blue-500) 0%, var(--ntl-teal-200) 100%);
|
|
126
126
|
background-size: cover;
|
|
127
127
|
background-position: center;
|
|
128
128
|
}
|
|
@@ -8,6 +8,6 @@ const { class: className, ...rest } = Astro.props;
|
|
|
8
8
|
|
|
9
9
|
<style>
|
|
10
10
|
.n-switchback-group :global(> * + *) {
|
|
11
|
-
margin-block-start: var(--n-switchback-group-space, var(--space-xl));
|
|
11
|
+
margin-block-start: var(--n-switchback-group-space, var(--ntl-space-xl));
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
@@ -11,7 +11,7 @@ const { class: className, isUniformHeight, noPadding, ...rest } = Astro.props;
|
|
|
11
11
|
<div
|
|
12
12
|
class:list={[
|
|
13
13
|
'n-tabpanel-group',
|
|
14
|
-
isUniformHeight && 'n-tabpanel-group-uniform-height
|
|
14
|
+
isUniformHeight && 'n-tabpanel-group-uniform-height ntl-stack',
|
|
15
15
|
noPadding && 'n-tabpanel-group-no-padding',
|
|
16
16
|
className,
|
|
17
17
|
]}
|
|
@@ -22,8 +22,8 @@ const { class: className, isUniformHeight, noPadding, ...rest } = Astro.props;
|
|
|
22
22
|
|
|
23
23
|
<style>
|
|
24
24
|
.n-tabpanel-group {
|
|
25
|
-
--_radius: var(--radius-m);
|
|
26
|
-
background-color: var(--tabbed-content-bg-color-active);
|
|
25
|
+
--_radius: var(--ntl-radius-m);
|
|
26
|
+
background-color: var(--ntl-tabbed-content-bg-color-active);
|
|
27
27
|
border: var(--_border-size) var(--_border-style) var(--_border-color-active);
|
|
28
28
|
border-bottom-left-radius: var(--_radius);
|
|
29
29
|
border-bottom-right-radius: var(--_radius);
|
|
@@ -31,7 +31,7 @@ const { class: className, isUniformHeight, noPadding, ...rest } = Astro.props;
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.n-tabpanel-group :global([role='tabpanel']) {
|
|
34
|
-
padding: var(--space-xl);
|
|
34
|
+
padding: var(--ntl-space-xl);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.n-tabpanel-group-uniform-height :global([role='tabpanel'][hidden]) {
|