@repobit/dex-system-design 2.1.1 → 2.2.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/CHANGELOG.md +20 -0
- package/package.json +6 -3
- package/schemas/component-manifest.json +16 -7
- package/src/assets/images/awards/av-comparatives-2025.png +0 -0
- package/src/assets/images/awards/av-test-top-product.png +0 -0
- package/src/assets/images/awards/gartner-peer-insights.png +0 -0
- package/src/assets/images/awards/idc.png +0 -0
- package/src/assets/images/awards/pcmag-best-of-2026.png +0 -0
- package/src/components/accordion/accordion-bg.css.js +1 -1
- package/src/components/accordion/accordion.css.js +2 -2
- package/src/components/alert/alert.css.js +1 -1
- package/src/components/anchor/anchor-nav.css.js +7 -7
- package/src/components/awards/awards-flex.css.js +3 -3
- package/src/components/awards/awards-spotlight.css.js +132 -0
- package/src/components/awards/awards-spotlight.js +130 -0
- package/src/components/awards/awards-spotlight.stories.js +205 -0
- package/src/components/awards/awards.css.js +1 -1
- package/src/components/back/back.css.js +1 -1
- package/src/components/bento-grid/bento-grid.css.js +1 -1
- package/src/components/bento-grid/bento-item.css.js +1 -1
- package/src/components/breadcrumb/breadcrumb.css.js +1 -1
- package/src/components/button/button.css.js +72 -1
- package/src/components/button/button.js +3 -2
- package/src/components/button/button.stories.js +18 -2
- package/src/components/cards/card.css.js +1 -1
- package/src/components/checkbox/checkbox.css.js +5 -3
- package/src/components/code/code.css.js +2 -2
- package/src/components/compare/compare.css.js +2 -2
- package/src/components/compatibility-table/compatibility-table.css.js +3 -3
- package/src/components/cta-banner/cta-banner.css.js +3 -3
- package/src/components/cta-banner/cta-banner.js +1 -1
- package/src/components/display/display.stories.js +1 -1
- package/src/components/divider/divider.stories.js +2 -2
- package/src/components/features-tab/features-tab.css.js +1 -1
- package/src/components/fieldset/fieldset.css.js +1 -1
- package/src/components/footer/footer-lp.css.js +1 -1
- package/src/components/footer/footer-lp.js +8 -0
- package/src/components/footer/footer.css.js +2 -2
- package/src/components/footer/footer.js +8 -0
- package/src/components/header/header-code.css.js +4 -4
- package/src/components/header/header.css.js +6 -6
- package/src/components/heading/heading.stories.js +1 -1
- package/src/components/highlight/highlight.css.js +2 -2
- package/src/components/image/image.css.js +6 -6
- package/src/components/install-options/install-options.css.js +7 -7
- package/src/components/link/link.css.js +23 -0
- package/src/components/link/link.stories.js +16 -1
- package/src/components/modal/modal.css.js +3 -3
- package/src/components/paragraph/paragraph.stories.js +4 -4
- package/src/components/picture/picture.css.js +6 -6
- package/src/components/pricing-cards/new-pricing.css.js +1 -1
- package/src/components/pricing-cards/pricing-card-header.css.js +1 -1
- package/src/components/pricing-cards/pricing-card.css.js +3 -3
- package/src/components/radio/radio.css.js +2 -2
- package/src/components/review/review.css.js +1 -1
- package/src/components/review/review.js +3 -2
- package/src/components/shared/token-scales.js +19 -9
- package/src/components/skeleton/skeleton.css.js +1 -1
- package/src/components/spinner/spinner.css.js +1 -1
- package/src/components/spotlight-section/spotlight-section.css.js +7 -7
- package/src/components/spotlight-section/spotlight-section.js +3 -3
- package/src/components/switch/switch.css.js +3 -0
- package/src/components/tab-list/tab-list.css.js +2 -2
- package/src/components/tabs/tabs.css.js +1 -1
- package/src/components/terminal/terminal-cursor.js +1 -1
- package/src/components/terminal/terminal-message.css.js +4 -4
- package/src/components/tooltip/tooltip.css.js +1 -1
- package/src/components/video/video.css.js +1 -1
- package/src/components/video-player/video-player.css.js +3 -3
- package/src/components/video-player/video-player.js +1 -1
- package/src/tokens/brand-layer.js +185 -0
- package/src/tokens/brands.stories.js +235 -0
- package/src/tokens/dark-derivation.js +10 -1
- package/src/tokens/dark-findings.js +14 -7
- package/src/tokens/shape.stories.js +5 -0
- package/src/tokens/themes/bitdefender.js +30 -0
- package/src/tokens/themes/contract.js +27 -0
- package/src/tokens/themes/index.js +41 -0
- package/src/tokens/tokens.css +121 -39
- package/src/tokens/tokens.js +130 -40
|
@@ -25,8 +25,8 @@ export default css`
|
|
|
25
25
|
transform-origin: 50% 0;
|
|
26
26
|
transform: perspective(620px) rotateX(64deg);
|
|
27
27
|
background:
|
|
28
|
-
linear-gradient(color-mix(in srgb, var(--color-
|
|
29
|
-
linear-gradient(90deg, color-mix(in srgb, var(--color-
|
|
28
|
+
linear-gradient(color-mix(in srgb, var(--color-brand-500) 10%, transparent) 1px, transparent 1px) 0 0 / 100% 44px,
|
|
29
|
+
linear-gradient(90deg, color-mix(in srgb, var(--color-brand-500) 10%, transparent) 1px, transparent 1px) 0 0 / 44px 100%;
|
|
30
30
|
-webkit-mask-image: linear-gradient(transparent 0%, var(--color-neutral-1000) 45%, transparent 100%);
|
|
31
31
|
mask-image: linear-gradient(transparent 0%, var(--color-neutral-1000) 45%, transparent 100%);
|
|
32
32
|
pointer-events: none;
|
|
@@ -264,10 +264,10 @@ export default css`
|
|
|
264
264
|
.bd-headercode-ring {
|
|
265
265
|
position: absolute;
|
|
266
266
|
inset: 0;
|
|
267
|
-
border-radius: var(--radius-3xl);
|
|
267
|
+
border-radius: var(--shape-radius-3xl);
|
|
268
268
|
border: var(--border-width-2) solid color-mix(in srgb, var(--color-border-brand) calc((0.5 - var(--d) * 0.08) * 100%), transparent);
|
|
269
269
|
background: color-mix(in srgb, var(--color-surface-brand) calc((0.05 - var(--d) * 0.008) * 100%), transparent);
|
|
270
|
-
box-shadow: 0 0 26px color-mix(in srgb, var(--color-
|
|
270
|
+
box-shadow: 0 0 26px color-mix(in srgb, var(--color-brand-500) calc((0.16 - var(--d) * 0.025) * 100%), transparent);
|
|
271
271
|
/* no token: an ambient loop, an order of magnitude longer than any
|
|
272
272
|
interaction the duration scale is for. */
|
|
273
273
|
animation: bd-headercode-ring-breathe 6s var(--transition-easing-smooth) calc(var(--d) * -1.2s) infinite;
|
|
@@ -101,7 +101,7 @@ export default css`
|
|
|
101
101
|
display: block;
|
|
102
102
|
z-index: var(--z-base);
|
|
103
103
|
position: relative;
|
|
104
|
-
border-radius: var(--radius-2xl);
|
|
104
|
+
border-radius: var(--shape-radius-2xl);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.bd-container {
|
|
@@ -155,7 +155,7 @@ export default css`
|
|
|
155
155
|
rules for one class disagreeing about the same property is worth fixing at
|
|
156
156
|
the point one of them starts lying. */
|
|
157
157
|
.bd-header-image {
|
|
158
|
-
border-radius: var(--radius-2xl);
|
|
158
|
+
border-radius: var(--shape-radius-2xl);
|
|
159
159
|
position: relative;
|
|
160
160
|
z-index: var(--z-base);
|
|
161
161
|
}
|
|
@@ -388,7 +388,7 @@ export default css`
|
|
|
388
388
|
display: flex;
|
|
389
389
|
justify-content: center;
|
|
390
390
|
overflow: hidden;
|
|
391
|
-
border-radius: var(--radius-2xl);
|
|
391
|
+
border-radius: var(--shape-radius-2xl);
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
/* The same correction as ::slotted([slot="header-picture"]) above, on the
|
|
@@ -483,10 +483,10 @@ export default css`
|
|
|
483
483
|
);
|
|
484
484
|
background: linear-gradient(
|
|
485
485
|
to top,
|
|
486
|
-
color-mix(in srgb, var(--color-
|
|
487
|
-
color-mix(in srgb, var(--color-
|
|
486
|
+
color-mix(in srgb, var(--color-brand-950) 60%, transparent) 0,
|
|
487
|
+
color-mix(in srgb, var(--color-brand-950) 60%, transparent)
|
|
488
488
|
calc(var(--bd-header-mark-inset) + var(--bd-header-mark-height)),
|
|
489
|
-
color-mix(in srgb, var(--color-
|
|
489
|
+
color-mix(in srgb, var(--color-brand-950) 22%, transparent)
|
|
490
490
|
calc(
|
|
491
491
|
var(--bd-header-mark-inset) + var(--bd-header-mark-height) +
|
|
492
492
|
var(--bd-header-scrim-mid)
|
|
@@ -86,7 +86,7 @@ The resolved values are applied as an inline style on the rendered heading.
|
|
|
86
86
|
},
|
|
87
87
|
color: {
|
|
88
88
|
control : { type: 'select' },
|
|
89
|
-
options : ['', ...['primary', 'strong', 'muted', 'subtle', 'inverse', 'success', 'warning', 'error']],
|
|
89
|
+
options : ['', ...['primary', 'strong', 'muted', 'subtle', 'inverse', 'on-brand', 'success', 'warning', 'error']],
|
|
90
90
|
description: 'A semantic colour role, not a CSS colour. Resolves to a palette token; anything else is dropped.',
|
|
91
91
|
table : { type: { summary: 'string' }, defaultValue: { summary: '' }, category: 'Typography' }
|
|
92
92
|
}
|
|
@@ -115,7 +115,7 @@ margin-left: calc(-1 * var(--spacing-4));
|
|
|
115
115
|
/* no role: the deco bar, same decision as the ellipses below -- ornament flanking the
|
|
116
116
|
highlighted text, not a mark, so an ink role is the wrong family. 4.20:1 against
|
|
117
117
|
the blue-50 ground, over the 3:1 non-text bar. */
|
|
118
|
-
fill: var(--color-
|
|
118
|
+
fill: var(--color-brand-500);
|
|
119
119
|
margin: 0;
|
|
120
120
|
display: block;
|
|
121
121
|
}
|
|
@@ -133,7 +133,7 @@ margin-left: calc(-1 * var(--spacing-4));
|
|
|
133
133
|
way calling the terminal's line-kind blues "brand" would have. They pass their bar
|
|
134
134
|
already -- 4.20:1 against the blue-50 ground, where 3:1 is the non-text minimum.
|
|
135
135
|
See plans/reports/phase-2-vocab-b-icon-colour.md. */
|
|
136
|
-
fill: var(--color-
|
|
136
|
+
fill: var(--color-brand-500);
|
|
137
137
|
display: block;
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -35,27 +35,27 @@ export default css`
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.bd-img.radius-sm {
|
|
38
|
-
border-radius: var(--radius-sm);
|
|
38
|
+
border-radius: var(--shape-radius-sm);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.bd-img.radius-md {
|
|
42
|
-
border-radius: var(--radius-md);
|
|
42
|
+
border-radius: var(--shape-radius-md);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.bd-img.radius-lg {
|
|
46
|
-
border-radius: var(--radius-lg);
|
|
46
|
+
border-radius: var(--shape-radius-lg);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.bd-img.radius-xl {
|
|
50
|
-
border-radius: var(--radius-xl);
|
|
50
|
+
border-radius: var(--shape-radius-xl);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.bd-img.radius-2xl {
|
|
54
|
-
border-radius: var(--radius-2xl);
|
|
54
|
+
border-radius: var(--shape-radius-2xl);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.bd-img.radius-3xl {
|
|
58
|
-
border-radius: var(--radius-3xl);
|
|
58
|
+
border-radius: var(--shape-radius-3xl);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.bd-img.radius-full {
|
|
@@ -80,7 +80,7 @@ export default css`
|
|
|
80
80
|
justify-content: center;
|
|
81
81
|
width: var(--dimension-20);
|
|
82
82
|
height: var(--dimension-20);
|
|
83
|
-
border-radius: var(--radius-md);
|
|
83
|
+
border-radius: var(--shape-radius-md);
|
|
84
84
|
color: var(--color-text-inverse);
|
|
85
85
|
/* no role: a glyph, not text -- an initial standing in for a brand mark
|
|
86
86
|
until the real logos exist (see above). */
|
|
@@ -99,7 +99,7 @@ export default css`
|
|
|
99
99
|
.bd-installoptions-card {
|
|
100
100
|
background: var(--color-surface-default);
|
|
101
101
|
border: var(--border-width-1) solid var(--color-border-container);
|
|
102
|
-
border-radius: var(--radius-xl);
|
|
102
|
+
border-radius: var(--shape-radius-xl);
|
|
103
103
|
padding: var(--spacing-24);
|
|
104
104
|
box-sizing: border-box;
|
|
105
105
|
display: flex;
|
|
@@ -124,7 +124,7 @@ export default css`
|
|
|
124
124
|
padding: var(--spacing-4) var(--spacing-8);
|
|
125
125
|
background: var(--status-brand-surface);
|
|
126
126
|
color: var(--status-brand-text);
|
|
127
|
-
border-radius: var(--radius-md);
|
|
127
|
+
border-radius: var(--shape-radius-md);
|
|
128
128
|
font-family: var(--typography-label-extra-small-fontFamily);
|
|
129
129
|
font-size: var(--typography-label-extra-small-fontSize);
|
|
130
130
|
font-weight: var(--typography-label-extra-small-fontWeight);
|
|
@@ -143,7 +143,7 @@ export default css`
|
|
|
143
143
|
.bd-installoptions-code {
|
|
144
144
|
position: relative;
|
|
145
145
|
background: var(--color-surface-inverse);
|
|
146
|
-
border-radius: var(--radius-md);
|
|
146
|
+
border-radius: var(--shape-radius-md);
|
|
147
147
|
padding: var(--spacing-16);
|
|
148
148
|
box-sizing: border-box;
|
|
149
149
|
}
|
|
@@ -172,7 +172,7 @@ export default css`
|
|
|
172
172
|
background: color-mix(in srgb, var(--color-text-inverse) 12%, transparent);
|
|
173
173
|
color: var(--color-text-inverse);
|
|
174
174
|
border: none;
|
|
175
|
-
border-radius: var(--radius-sm);
|
|
175
|
+
border-radius: var(--shape-radius-sm);
|
|
176
176
|
font-family: var(--typography-control-label-small-fontFamily);
|
|
177
177
|
font-size: var(--typography-control-label-small-fontSize);
|
|
178
178
|
font-weight: var(--typography-control-label-small-fontWeight);
|
|
@@ -227,7 +227,7 @@ export default css`
|
|
|
227
227
|
position: relative;
|
|
228
228
|
background: var(--color-surface-inverse);
|
|
229
229
|
border: var(--border-width-2) solid var(--color-border-brand);
|
|
230
|
-
border-radius: var(--radius-md);
|
|
230
|
+
border-radius: var(--shape-radius-md);
|
|
231
231
|
padding: var(--spacing-16);
|
|
232
232
|
padding-right: var(--spacing-64);
|
|
233
233
|
box-sizing: border-box;
|
|
@@ -257,7 +257,7 @@ export default css`
|
|
|
257
257
|
.bd-installoptions-prompt-note {
|
|
258
258
|
background: var(--status-warning-surface);
|
|
259
259
|
border: var(--border-width-1) solid var(--status-warning-border);
|
|
260
|
-
border-radius: var(--radius-md);
|
|
260
|
+
border-radius: var(--shape-radius-md);
|
|
261
261
|
padding: var(--spacing-16) var(--spacing-20);
|
|
262
262
|
color: var(--status-warning-text);
|
|
263
263
|
font-family: var(--typography-body-small-fontFamily);
|
|
@@ -133,6 +133,19 @@ export default css`
|
|
|
133
133
|
color: var(--color-text-inverse);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
/* On a band filled with the brand: the brand's ink, which a theme must
|
|
137
|
+
clear 4.5:1 on that fill. text-inverse is white, and on a light partner
|
|
138
|
+
brand white is the one ink that cannot be read. On Bitdefender the two
|
|
139
|
+
are the same white. */
|
|
140
|
+
:host([surface="brand"]) .bd-link,
|
|
141
|
+
:host([surface="brand"]) .bd-link--primary,
|
|
142
|
+
:host([surface="brand"]) .bd-link--secondary,
|
|
143
|
+
:host([surface="brand"]) .bd-link--subtle,
|
|
144
|
+
:host([surface="brand"]) .bd-link--bold,
|
|
145
|
+
:host([surface="brand"]) .bd-link:hover {
|
|
146
|
+
color: var(--color-brand-on-fill);
|
|
147
|
+
}
|
|
148
|
+
|
|
136
149
|
/* ---- modifiers --------------------------------------------------------
|
|
137
150
|
Ordered after the kinds rather than marked !important. Four declarations
|
|
138
151
|
carried it before, which made the atom unoverridable by a consuming page —
|
|
@@ -230,6 +243,16 @@ export default css`
|
|
|
230
243
|
border-radius: var(--focus-outline-radius);
|
|
231
244
|
}
|
|
232
245
|
|
|
246
|
+
/* The two-colour ring puts a white band against the link, which is what
|
|
247
|
+
carries it on Bitdefender's blue band and what vanishes on a light partner
|
|
248
|
+
band. Under surface="brand" the ring is one band in the brand's ink, held
|
|
249
|
+
off the text so the gap is the band itself -- bd-button's ring, for the
|
|
250
|
+
same reason. */
|
|
251
|
+
:host([surface="brand"]) .bd-link:focus-visible {
|
|
252
|
+
outline: var(--focus-outline-traditional-on-brand);
|
|
253
|
+
box-shadow: none;
|
|
254
|
+
}
|
|
255
|
+
|
|
233
256
|
a.bd-link {
|
|
234
257
|
cursor: pointer;
|
|
235
258
|
}
|
|
@@ -143,7 +143,7 @@ to be announced.
|
|
|
143
143
|
},
|
|
144
144
|
color: {
|
|
145
145
|
control : { type: 'select' },
|
|
146
|
-
options : ['', 'primary', 'strong', 'muted', 'subtle', 'inverse', 'success', 'warning', 'error'],
|
|
146
|
+
options : ['', 'primary', 'strong', 'muted', 'subtle', 'inverse', 'on-brand', 'success', 'warning', 'error'],
|
|
147
147
|
description: 'A semantic colour role, not a CSS colour. Resolves to a palette token; anything else is dropped.',
|
|
148
148
|
table : { type: { summary: 'string' }, defaultValue: { summary: "''" }, category: 'Typography' }
|
|
149
149
|
}
|
|
@@ -322,6 +322,21 @@ export const ArrowOnDark = {
|
|
|
322
322
|
parameters: { docs: { description: { story: 'The same as Link arrow / dark in the Figma file: on a dark surface every variant collapses onto text/inverse, and the arrow goes with it.' } } }
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
+
export const OnBrand = {
|
|
326
|
+
name : 'On a brand band',
|
|
327
|
+
render: () => html`
|
|
328
|
+
<div style="background:var(--color-surface-brand);padding:var(--spacing-24);border-radius:var(--radius-md);display:grid;gap:var(--spacing-12)">
|
|
329
|
+
<div style="${arrowRow}">
|
|
330
|
+
${ARROW_VARIANTS.slice(0, 4).map(v => html`<bd-link href="#" variant="${v}" surface="brand">${v}</bd-link>`)}
|
|
331
|
+
</div>
|
|
332
|
+
<div style="${arrowRow}">
|
|
333
|
+
${ARROW_VARIANTS.slice(0, 4).map(v => html`<bd-link href="#" variant="${v}" surface="brand" arrow>Explore enterprise AI</bd-link>`)}
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
`,
|
|
337
|
+
parameters: { docs: { description: { story: 'For a band filled with the brand, on a co-branded page: every variant takes the brand\'s ink, `--color-brand-on-fill`, which a theme must hold 4.5:1 against its fill. On Bitdefender that is the same white as `surface="dark"`; under a light partner brand it is the partner\'s dark ink. The focus ring is one band in the same ink. Foundations/Brands shows it under a light example theme.' } } }
|
|
338
|
+
};
|
|
339
|
+
|
|
325
340
|
export const ArrowOwnIconAndInline = {
|
|
326
341
|
name : 'Arrow — swapped icon, and inline',
|
|
327
342
|
render: () => html`
|
|
@@ -71,7 +71,7 @@ export default css`
|
|
|
71
71
|
background-color: and this package almost never writes that. */
|
|
72
72
|
background: var(--color-surface-default);
|
|
73
73
|
padding: 2em;
|
|
74
|
-
border-radius: var(--radius-xl);
|
|
74
|
+
border-radius: var(--shape-radius-xl);
|
|
75
75
|
max-width: 500px;
|
|
76
76
|
max-height: calc(100vh - var(--spacing-128));
|
|
77
77
|
overflow-y: auto;
|
|
@@ -121,9 +121,9 @@ export default css`
|
|
|
121
121
|
margin-top: var(--spacing-16);
|
|
122
122
|
padding: var(--spacing-8) var(--spacing-16);
|
|
123
123
|
background: var(--color-surface-brand);
|
|
124
|
-
color: var(--color-
|
|
124
|
+
color: var(--color-brand-on-fill); /* ink on the brand fill beside it */
|
|
125
125
|
border: none;
|
|
126
|
-
border-radius: var(--radius-sm);
|
|
126
|
+
border-radius: var(--shape-radius-sm);
|
|
127
127
|
cursor: pointer;
|
|
128
128
|
font-family: var(--typography-fontFamily-sans);
|
|
129
129
|
}
|
|
@@ -58,8 +58,8 @@ layout around them, not to the paragraph itself.
|
|
|
58
58
|
},
|
|
59
59
|
color: {
|
|
60
60
|
control : { type: 'select' },
|
|
61
|
-
options : ['', 'primary', 'strong', 'muted', 'subtle', 'inverse', 'success', 'warning', 'error'],
|
|
62
|
-
description: 'A semantic colour role, the same set `bd-h` and `bd-display` take. `primary` is brand blue; `inverse` is white on a dark
|
|
61
|
+
options : ['', 'primary', 'strong', 'muted', 'subtle', 'inverse', 'on-brand', 'success', 'warning', 'error'],
|
|
62
|
+
description: 'A semantic colour role, the same set `bd-h` and `bd-display` take. `primary` is brand blue; `inverse` is white on a dark neutral band, and `on-brand` is the ink for a brand band -- white under Bitdefender, dark under a partner whose brand is light.',
|
|
63
63
|
table : { type: { summary: 'string' }, defaultValue: { summary: "''" }, category: 'Appearance' }
|
|
64
64
|
},
|
|
65
65
|
padding: {
|
|
@@ -160,7 +160,7 @@ export const Eyebrow = {
|
|
|
160
160
|
<bd-h as="h2" visual-level="h2">AI Across Bitdefender</bd-h>
|
|
161
161
|
</div>
|
|
162
162
|
<div style="margin-top:var(--spacing-32); background:var(--color-surface-brand); padding:var(--spacing-24); border-radius:var(--radius-md); max-width:588px;">
|
|
163
|
-
<bd-p variant="eyebrow" color="
|
|
163
|
+
<bd-p variant="eyebrow" color="on-brand">On a brand band, color="on-brand"</bd-p>
|
|
164
164
|
</div>
|
|
165
165
|
`,
|
|
166
166
|
parameters: { docs: { description: { story: 'The label above a section title, in text-brand: the label-large role (16px Medium 500 at 1.5) from lg up, and label-default (14px, same weight and leading) below lg, as the homepage draws it on tablet and mobile. It is how all five eyebrows in the package are spelled now (bento grid, header code, trust panel twice, agent endpoints), and what the homepage draws. `color` overrides the ink.' } } }
|
|
@@ -173,7 +173,7 @@ export const Color = {
|
|
|
173
173
|
${['strong', 'primary', 'muted', 'subtle', 'success', 'warning', 'error'].map(c => html`<bd-p color="${c}">color="${c}" — ${sampleText}</bd-p>`)}
|
|
174
174
|
</div>
|
|
175
175
|
<div style="margin-top:var(--spacing-24); background:var(--color-surface-brand); padding:var(--spacing-24); border-radius:var(--radius-md); max-width:588px;">
|
|
176
|
-
<bd-p variant="large" color="
|
|
176
|
+
<bd-p variant="large" color="on-brand">color="on-brand" — Bitdefender protects consumers, small businesses, and enterprises with cybersecurity powered by world-class threat intelligence.</bd-p>
|
|
177
177
|
</div>
|
|
178
178
|
`,
|
|
179
179
|
parameters: { docs: { description: { story: 'A semantic role, resolved to a token. Without it a paragraph\'s ink could only come from the composing component\'s CSS.' } } }
|
|
@@ -41,27 +41,27 @@ export default css`
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.bd-picture.radius-sm img {
|
|
44
|
-
border-radius: var(--radius-sm);
|
|
44
|
+
border-radius: var(--shape-radius-sm);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.bd-picture.radius-md img {
|
|
48
|
-
border-radius: var(--radius-md);
|
|
48
|
+
border-radius: var(--shape-radius-md);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.bd-picture.radius-lg img {
|
|
52
|
-
border-radius: var(--radius-lg);
|
|
52
|
+
border-radius: var(--shape-radius-lg);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.bd-picture.radius-xl img {
|
|
56
|
-
border-radius: var(--radius-xl);
|
|
56
|
+
border-radius: var(--shape-radius-xl);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.bd-picture.radius-2xl img {
|
|
60
|
-
border-radius: var(--radius-2xl);
|
|
60
|
+
border-radius: var(--shape-radius-2xl);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.bd-picture.radius-3xl img {
|
|
64
|
-
border-radius: var(--radius-3xl);
|
|
64
|
+
border-radius: var(--shape-radius-3xl);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.bd-picture.radius-full img {
|
|
@@ -48,7 +48,7 @@ export default css`
|
|
|
48
48
|
font-weight: bold;
|
|
49
49
|
font-size: var(--typography-body-regular-fontSize);
|
|
50
50
|
text-align: center;
|
|
51
|
-
border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
|
|
51
|
+
border-radius: var(--shape-radius-2xl) var(--shape-radius-2xl) 0 0;
|
|
52
52
|
z-index: var(--z-raised);
|
|
53
53
|
height: 48px;
|
|
54
54
|
width: 85%;
|
|
@@ -41,7 +41,7 @@ export default css`
|
|
|
41
41
|
-surface is the light tint. Value-identical at #f0f7ff. */
|
|
42
42
|
background: var(--status-brand-surface);
|
|
43
43
|
padding: 0.25rem 0.5rem;
|
|
44
|
-
border-radius: var(--radius-sm);
|
|
44
|
+
border-radius: var(--shape-radius-sm);
|
|
45
45
|
margin: 0.5rem 0;
|
|
46
46
|
font-size: 0.875rem;
|
|
47
47
|
}
|
|
@@ -380,7 +380,7 @@ export default css`
|
|
|
380
380
|
gap: var(--spacing-24);
|
|
381
381
|
align-items: stretch;
|
|
382
382
|
background: var(--status-brand-surface);
|
|
383
|
-
border-radius: var(--radius-2xl);
|
|
383
|
+
border-radius: var(--shape-radius-2xl);
|
|
384
384
|
padding: var(--spacing-64) var(--spacing-32) var(--spacing-48);
|
|
385
385
|
box-sizing: border-box;
|
|
386
386
|
}
|
|
@@ -446,7 +446,7 @@ export default css`
|
|
|
446
446
|
/* Tooltip copy: supporting, not primary. */
|
|
447
447
|
color: var(--color-text-secondary);
|
|
448
448
|
padding: var(--spacing-8) var(--spacing-12);
|
|
449
|
-
border-radius: var(--radius-sm);
|
|
449
|
+
border-radius: var(--shape-radius-sm);
|
|
450
450
|
font-size: 12px;
|
|
451
451
|
max-width: 250px;
|
|
452
452
|
/* -border-subtle IS neutral-200, and a tooltip's hairline is what that
|
|
@@ -478,7 +478,7 @@ export default css`
|
|
|
478
478
|
.badge-feature {
|
|
479
479
|
background-color: var(--color-surface-brand);
|
|
480
480
|
color: var(--color-text-inverse);
|
|
481
|
-
border-radius: var(--radius-2xl);
|
|
481
|
+
border-radius: var(--shape-radius-2xl);
|
|
482
482
|
width: var(--spacing-36);
|
|
483
483
|
height: var(--spacing-20);
|
|
484
484
|
display: inline-flex;
|
|
@@ -93,8 +93,8 @@ export default css`
|
|
|
93
93
|
width: var(--dimension-12);
|
|
94
94
|
height: var(--dimension-12);
|
|
95
95
|
border-radius: var(--radius-full);
|
|
96
|
-
/* ink on
|
|
97
|
-
background: var(--color-
|
|
96
|
+
/* ink on the brand fill, like the checkbox mark */
|
|
97
|
+
background: var(--color-brand-on-fill);
|
|
98
98
|
transform: scale(0);
|
|
99
99
|
transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);
|
|
100
100
|
}
|
|
@@ -17,8 +17,9 @@ import reviewCSS from "./review.css.js";
|
|
|
17
17
|
*
|
|
18
18
|
* `variant` is the only prop, since it's an appearance switch (background
|
|
19
19
|
* colour), not content:
|
|
20
|
-
* "tint" —
|
|
21
|
-
*
|
|
20
|
+
* "tint" — the brand's lightest wash (--status-brand-surface), so it
|
|
21
|
+
* follows the business line's brand
|
|
22
|
+
* "neutral" — a container ground (--color-surface-container)
|
|
22
23
|
*/
|
|
23
24
|
class BdReview extends LitElement {
|
|
24
25
|
static properties = {
|
|
@@ -74,14 +74,19 @@ export const RADIUS_STEPS = ['none', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', 'full
|
|
|
74
74
|
* which is presumably how the two got crossed.
|
|
75
75
|
*/
|
|
76
76
|
export const COLOR_ROLES = {
|
|
77
|
-
primary: '--color-text-brand',
|
|
78
|
-
strong
|
|
79
|
-
muted
|
|
80
|
-
subtle
|
|
81
|
-
inverse: '--color-text-inverse',
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
primary : '--color-text-brand',
|
|
78
|
+
strong : '--color-text-primary',
|
|
79
|
+
muted : '--color-text-muted',
|
|
80
|
+
subtle : '--color-text-subtle',
|
|
81
|
+
inverse : '--color-text-inverse',
|
|
82
|
+
/* Ink on a brand fill. `inverse` is for a dark neutral band; on a brand band
|
|
83
|
+
the ink is the brand's, because a partner whose brand is light takes dark
|
|
84
|
+
ink there, and white -- inverse -- would not read on it. Same pixel as
|
|
85
|
+
inverse under Bitdefender. */
|
|
86
|
+
'on-brand': '--color-brand-on-fill',
|
|
87
|
+
success : '--color-text-success',
|
|
88
|
+
warning : '--color-text-warning',
|
|
89
|
+
error : '--color-text-error'
|
|
85
90
|
};
|
|
86
91
|
|
|
87
92
|
export const COLOR_ROLE_NAMES = Object.keys(COLOR_ROLES);
|
|
@@ -139,7 +144,12 @@ export const fontSize = onScale(FONT_SIZE_STEPS, '--typography-fontSize-');
|
|
|
139
144
|
export const fontWeight = onScale(FONT_WEIGHT_STEPS, '--typography-fontWeight-');
|
|
140
145
|
export const fontFamily = onScale(FONT_FAMILY_STEPS, '--typography-fontFamily-');
|
|
141
146
|
export const letterSpacing = onScale(LETTER_SPACING_STEPS, '--typography-letterSpacing-');
|
|
142
|
-
|
|
147
|
+
/* none and full are corners a brand must not move -- square on purpose, and a
|
|
148
|
+
circle -- so they stay on the scale; every other step reads the shape ramp a
|
|
149
|
+
theme restates. Nothing calls this today; a caller that does gets partner
|
|
150
|
+
corners for free. */
|
|
151
|
+
const radiusStep = onScale(RADIUS_STEPS, '--radius-');
|
|
152
|
+
export const radius = step => (['none', 'full'].includes(String(step)) ? radiusStep(step) : onScale(RADIUS_STEPS, '--shape-radius-')(step));
|
|
143
153
|
|
|
144
154
|
/* The border-width steps. A px spelling of a step -- "2px" -- is read as the
|
|
145
155
|
step, because that is what callers wrote before there was a scale here. */
|
|
@@ -6,7 +6,7 @@ export const skeletonCSS = css`
|
|
|
6
6
|
|
|
7
7
|
.bone {
|
|
8
8
|
background: var(--color-surface-muted);
|
|
9
|
-
border-radius: var(--radius-sm);
|
|
9
|
+
border-radius: var(--shape-radius-sm);
|
|
10
10
|
height: var(--spacing-16);
|
|
11
11
|
animation: bd-shimmer var(--transition-duration-slower) var(--transition-easing-smooth) infinite alternate;
|
|
12
12
|
}
|
|
@@ -22,7 +22,7 @@ export const spinnerCSS = css`
|
|
|
22
22
|
spinning arc, which is not that job. Note the name says "fill" and .pulse
|
|
23
23
|
reads it as a background, so the gate's kind inference is off by a
|
|
24
24
|
category here; the classification does not depend on it. */
|
|
25
|
-
--bd-spinner-pulse-fill: var(--color-
|
|
25
|
+
--bd-spinner-pulse-fill: var(--color-brand-100);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:host([surface='dark']) {
|
|
@@ -9,8 +9,8 @@ export default css`
|
|
|
9
9
|
|
|
10
10
|
.bd-spotlightsection-container {
|
|
11
11
|
/* no role: blue-950 is the gradient's far stop, as on bd-cta-banner. */
|
|
12
|
-
background: linear-gradient(87.6deg, var(--color-surface-brand) 0%, var(--color-
|
|
13
|
-
border-radius: var(--radius-2xl);
|
|
12
|
+
background: linear-gradient(87.6deg, var(--color-surface-brand) 0%, var(--color-brand-950) 100%);
|
|
13
|
+
border-radius: var(--shape-radius-2xl);
|
|
14
14
|
padding: var(--spacing-48);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
display: flex;
|
|
@@ -33,13 +33,13 @@ export default css`
|
|
|
33
33
|
.bd-spotlightsection-title {
|
|
34
34
|
display: block;
|
|
35
35
|
margin: 0;
|
|
36
|
-
color: var(--color-
|
|
36
|
+
color: var(--color-brand-on-fill);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.bd-spotlightsection-icon {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
|
-
color: var(--color-
|
|
42
|
+
color: var(--color-brand-on-fill);
|
|
43
43
|
margin-bottom: var(--spacing-4);
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -63,8 +63,8 @@ export default css`
|
|
|
63
63
|
.bd-spotlightsection-description {
|
|
64
64
|
margin: 0;
|
|
65
65
|
/* Full inverse ink. White at 65% measured 2.6:1 on the brand end of the
|
|
66
|
-
gradient, and bd-p's color="
|
|
67
|
-
color: var(--color-
|
|
66
|
+
gradient, and bd-p's color="on-brand" already painted over it. */
|
|
67
|
+
color: var(--color-brand-on-fill);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.bd-spotlightsection-buttons {
|
|
@@ -101,6 +101,6 @@ export default css`
|
|
|
101
101
|
.bd-spotlightsection-description--large {
|
|
102
102
|
display: block;
|
|
103
103
|
margin: 0;
|
|
104
|
-
color: var(--color-
|
|
104
|
+
color: var(--color-brand-on-fill);
|
|
105
105
|
}
|
|
106
106
|
`;
|
|
@@ -48,7 +48,7 @@ class BdSpotlightSection extends LitElement {
|
|
|
48
48
|
|
|
49
49
|
${flipped
|
|
50
50
|
? html`
|
|
51
|
-
<bd-p kind="large" color="
|
|
51
|
+
<bd-p kind="large" color="on-brand" class="bd-spotlightsection-title bd-spotlightsection-title--small">
|
|
52
52
|
<slot name="title">${this.title}</slot>
|
|
53
53
|
</bd-p>
|
|
54
54
|
`
|
|
@@ -71,12 +71,12 @@ class BdSpotlightSection extends LitElement {
|
|
|
71
71
|
${this.description
|
|
72
72
|
? flipped
|
|
73
73
|
? html`
|
|
74
|
-
<bd-h as="h2" fontWeight="normal" color="
|
|
74
|
+
<bd-h as="h2" fontWeight="normal" color="on-brand" class="bd-spotlightsection-description bd-spotlightsection-description--large">
|
|
75
75
|
<slot name="description">${this.description}</slot>
|
|
76
76
|
</bd-h>
|
|
77
77
|
`
|
|
78
78
|
: html`
|
|
79
|
-
<bd-p kind="large" color="
|
|
79
|
+
<bd-p kind="large" color="on-brand" class="bd-spotlightsection-description">
|
|
80
80
|
<slot name="description">${this.description}</slot>
|
|
81
81
|
</bd-p>
|
|
82
82
|
`
|
|
@@ -94,6 +94,9 @@ export const switchCSS = css`
|
|
|
94
94
|
label:hover .track { background: var(--color-neutral-500); }
|
|
95
95
|
:host([checked]) label:hover .track { background: var(--color-action-primary-hover); }
|
|
96
96
|
:host([checked]) .thumb { transform: translateX(var(--bd-switch-travel)); }
|
|
97
|
+
/* On the checked track the thumb sits on the brand fill, so it takes the
|
|
98
|
+
brand's ink; on the off track it stays white, the foundation's own pair. */
|
|
99
|
+
:host([checked]) .thumb { background: var(--color-brand-on-fill); }
|
|
97
100
|
|
|
98
101
|
/* the one focus ring — see Foundations/Focus. On the row rather than the
|
|
99
102
|
track, so the target and the indicator are the same shape here as on
|
|
@@ -208,7 +208,7 @@ export const contentSwitcherCSS = css`
|
|
|
208
208
|
/* the action-label step, which is what a button's label carries */
|
|
209
209
|
--bd-tab-font-weight: var(--typography-control-label-large-fontWeight);
|
|
210
210
|
--bd-tab-font-weight-selected: var(--typography-control-label-large-fontWeight);
|
|
211
|
-
--bd-tab-color: var(--color-
|
|
211
|
+
--bd-tab-color: var(--color-brand-on-fill); /* on the brand track */
|
|
212
212
|
--bd-tab-color-selected: var(--color-text-primary);
|
|
213
213
|
--bd-tab-padding: var(--spacing-12) var(--spacing-24);
|
|
214
214
|
/* held at the same padding below sm: the base sheet drops to 8/12 there,
|
|
@@ -241,7 +241,7 @@ export const contentSwitcherCSS = css`
|
|
|
241
241
|
pill appearing under it -- white at 12%, which reads on blue-500 without
|
|
242
242
|
competing with the selected option's solid white. */
|
|
243
243
|
.bd-tabs-container--switcher .bd-tab-button:hover:not(.bd-selected) {
|
|
244
|
-
color: var(--color-
|
|
244
|
+
color: var(--color-brand-on-fill);
|
|
245
245
|
background: var(--color-border-container-inverse);
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -19,7 +19,7 @@ class TerminalCursor extends LitElement {
|
|
|
19
19
|
.bd-terminal-cursor {
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
|
-
background: var(--bd-terminal-cursor-color, var(--color-
|
|
22
|
+
background: var(--bd-terminal-cursor-color, var(--color-brand-400));
|
|
23
23
|
animation: bd-terminal-cursor-blink 1s steps(1) infinite;
|
|
24
24
|
display: block;
|
|
25
25
|
}
|