@repobit/dex-system-design 2.1.0 → 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 +29 -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-bg.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 +7 -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/features.css.js +5 -1
- 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 +24 -34
- 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.css.js +12 -1
- 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 +124 -43
- package/src/tokens/tokens.js +133 -44
|
@@ -21,7 +21,7 @@ export default css`
|
|
|
21
21
|
Two consumers, both footers, against the twelve that justified
|
|
22
22
|
--color-surface-container. See plans/reports/phase-2-vocab-e-has-role-pass.md
|
|
23
23
|
question E2. */
|
|
24
|
-
background-color: var(--color-
|
|
24
|
+
background-color: var(--color-brand-600);
|
|
25
25
|
color: var(--color-text-inverse);
|
|
26
26
|
font-family: var(--typography-fontFamily-sans);
|
|
27
27
|
font-size: var(--typography-body-small-fontSize);
|
|
@@ -377,7 +377,7 @@ padding-bottom: var(--spacing-12);
|
|
|
377
377
|
.footer-countries-container {
|
|
378
378
|
margin-top: var(--spacing-16);
|
|
379
379
|
padding: var(--spacing-24);
|
|
380
|
-
border-radius: var(--radius-lg);
|
|
380
|
+
border-radius: var(--shape-radius-lg);
|
|
381
381
|
transition: all var(--transition-duration-slow) var(--transition-easing-ease);
|
|
382
382
|
width: 90%;
|
|
383
383
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement, html } from 'lit';
|
|
2
2
|
// Installs the design tokens into document scope; see src/tokens/tokens.js
|
|
3
3
|
import "../../tokens/tokens.js";
|
|
4
|
+
import { DEFAULT_THEME } from '../../tokens/themes/index.js';
|
|
4
5
|
/* The md boundary comes from the shared breakpoint source so the CSS and the
|
|
5
6
|
JS cannot drift apart again: bd-footer switched at 767 while bd-footer-lp,
|
|
6
7
|
sharing footer-nav-menu.css.js, switched at 768 — so at exactly 768px the
|
|
@@ -65,6 +66,13 @@ export class BdFooter extends LitElement {
|
|
|
65
66
|
|
|
66
67
|
connectedCallback() {
|
|
67
68
|
super.connectedCallback();
|
|
69
|
+
/* The footer is Bitdefender's on every page, a co-branded one included,
|
|
70
|
+
wherever the page puts a partner's data-brand. Pinning it to the
|
|
71
|
+
default theme reuses that theme's generated block, which restates every
|
|
72
|
+
themable token, so nothing a partner changed reaches in here. The host's
|
|
73
|
+
attributes are normally the page's; this one is the exception, because
|
|
74
|
+
the requirement is absolute, not a default the page may override. */
|
|
75
|
+
this.setAttribute('data-brand', DEFAULT_THEME);
|
|
68
76
|
/* Whether the consuming page asked for a locale, captured before inference
|
|
69
77
|
runs. An attribute in the markup counts, and so does a property assigned
|
|
70
78
|
before the element connects -- both are the page stating its intent. A
|
|
@@ -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
|
}
|
|
@@ -268,21 +268,20 @@ export default css`
|
|
|
268
268
|
and the element finally says what it is. */
|
|
269
269
|
|
|
270
270
|
/* The one thing this rule still has to do, and it is not typography. bd-p's
|
|
271
|
-
inner <p> carries margin
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
inner <p> carries a 16px flow margin, and a bd-p in a flex row is a flex
|
|
272
|
+
item, so it establishes a block formatting context and that margin cannot
|
|
273
|
+
collapse through the host -- it is trapped inside the host's box.
|
|
274
|
+
Measured: the host renders 37px where its text is 21px, which grew this
|
|
275
|
+
zone from 28px to 37px and shifted the struck price 6px against the
|
|
276
|
+
discount badge beside it.
|
|
277
277
|
.
|
|
278
278
|
The pricing cards do not show this because both of their siblings are bd-p
|
|
279
279
|
and the offset cancels; here the badge is a bare span, so it does not.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
margin" would be better and is not this change's to add. */
|
|
280
|
+
This used to cancel the margin with a negative one, because the <p> could
|
|
281
|
+
not be reached from outside; the atom now takes
|
|
282
|
+
--bd-paragraph-margin-bottom, so the margin is simply turned off. */
|
|
284
283
|
.original-price {
|
|
285
|
-
margin-bottom:
|
|
284
|
+
--bd-paragraph-margin-bottom: 0;
|
|
286
285
|
/* text/muted, which is what Header / v2 gives the struck price. bd-p's own
|
|
287
286
|
:host sets text/primary; colour on the host is LIVE (see the note on
|
|
288
287
|
.bd-description), so this reaches it. A former price is the one number
|
|
@@ -369,25 +368,17 @@ export default css`
|
|
|
369
368
|
display: block;
|
|
370
369
|
/* the actions frame's gap, 8 -- down from 16. */
|
|
371
370
|
margin-top: var(--spacing-8);
|
|
372
|
-
/*
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
own margin and leaves the atom's untouched.
|
|
378
|
-
.
|
|
379
|
-
Same cancellation, same reason and the same token as .original-price
|
|
380
|
-
above, which hit this in a flex row where the margin could not collapse
|
|
381
|
-
at all. bd-p exposes padding but no margin, so there is no way to reach
|
|
382
|
-
it from outside; using the same token it is set from keeps the two in
|
|
383
|
-
step if that token moves. An atom-level "no flow margin" would be better
|
|
384
|
-
and is not this change's to add.
|
|
371
|
+
/* The atom's flow margin, off. Setting the host's margin to zero was never
|
|
372
|
+
enough: bd-p's inner <p> carries a 16px margin that collapses straight
|
|
373
|
+
through the host's bottom edge, and the two lines still sat 16px apart.
|
|
374
|
+
This cancelled it with a negative 16 until the atom took
|
|
375
|
+
--bd-paragraph-margin-bottom.
|
|
385
376
|
.
|
|
386
377
|
Zero is right because the design has these as two consecutive lines of
|
|
387
378
|
ONE paragraph -- Header / v2 draws a single 12/1.45 text node of two
|
|
388
379
|
lines -- rather than two blocks with air between them. Measured after:
|
|
389
380
|
8px from the CTA row, 0 between the lines. */
|
|
390
|
-
margin-bottom:
|
|
381
|
+
--bd-paragraph-margin-bottom: 0;
|
|
391
382
|
color: var(--color-text-muted);
|
|
392
383
|
}
|
|
393
384
|
.bd-header-image-wrapper {
|
|
@@ -397,7 +388,7 @@ export default css`
|
|
|
397
388
|
display: flex;
|
|
398
389
|
justify-content: center;
|
|
399
390
|
overflow: hidden;
|
|
400
|
-
border-radius: var(--radius-2xl);
|
|
391
|
+
border-radius: var(--shape-radius-2xl);
|
|
401
392
|
}
|
|
402
393
|
|
|
403
394
|
/* The same correction as ::slotted([slot="header-picture"]) above, on the
|
|
@@ -492,10 +483,10 @@ export default css`
|
|
|
492
483
|
);
|
|
493
484
|
background: linear-gradient(
|
|
494
485
|
to top,
|
|
495
|
-
color-mix(in srgb, var(--color-
|
|
496
|
-
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)
|
|
497
488
|
calc(var(--bd-header-mark-inset) + var(--bd-header-mark-height)),
|
|
498
|
-
color-mix(in srgb, var(--color-
|
|
489
|
+
color-mix(in srgb, var(--color-brand-950) 22%, transparent)
|
|
499
490
|
calc(
|
|
500
491
|
var(--bd-header-mark-inset) + var(--bd-header-mark-height) +
|
|
501
492
|
var(--bd-header-scrim-mid)
|
|
@@ -520,10 +511,9 @@ export default css`
|
|
|
520
511
|
.bd-disclaimer-bottom {
|
|
521
512
|
display: block;
|
|
522
513
|
color: var(--color-text-muted);
|
|
523
|
-
/* the
|
|
524
|
-
the last block in the column, so the atom's trailing flow margin was
|
|
514
|
+
/* the last block in the column, so the atom's trailing flow margin was
|
|
525
515
|
adding 16px inside the content frame's own 24px bottom padding. */
|
|
526
|
-
margin-bottom:
|
|
516
|
+
--bd-paragraph-margin-bottom: 0;
|
|
527
517
|
}
|
|
528
518
|
|
|
529
519
|
/* A "bd-header a" rule stood here and could never match. It is the bare
|
|
@@ -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
|
}
|
|
@@ -17,7 +17,18 @@ export default css`
|
|
|
17
17
|
all: unset;
|
|
18
18
|
display: block;
|
|
19
19
|
font-family: var(--typography-body-regular-fontFamily);
|
|
20
|
-
margin
|
|
20
|
+
/* The flow margin between consecutive paragraphs, and the switch to turn
|
|
21
|
+
it off: --bd-paragraph-margin-bottom: 0 on the host or any ancestor.
|
|
22
|
+
It inherits into this shadow root, which the margin itself never did --
|
|
23
|
+
the <p> is unreachable from outside, so a paragraph that ends a card or
|
|
24
|
+
a column carried 16px nobody could remove, and the header cancelled it
|
|
25
|
+
three times with a negative margin.
|
|
26
|
+
|
|
27
|
+
It was a no-op until 0.26.0: it read --spacing-md, which no longer
|
|
28
|
+
existed, so every page built on 0.25 was laid out with zero here. The
|
|
29
|
+
rename to --spacing-16 made it live, which is how the step cards on
|
|
30
|
+
security-for-creators gained 16px under each description. */
|
|
31
|
+
margin-bottom: var(--bd-paragraph-margin-bottom, var(--spacing-16));
|
|
21
32
|
}
|
|
22
33
|
|
|
23
34
|
/* === Font Size Variants === */
|
|
@@ -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']) {
|