@databricks/design-system 2.0.5 → 2.0.6
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 +19 -0
- package/design-guidance/docs/README.md +40 -0
- package/design-guidance/docs/review-contract.md +22 -0
- package/design-guidance/docs/tokens.md +35 -0
- package/design-guidance/docs/voice.md +40 -0
- package/design-guidance/skills/dbui-build-screen.md +24 -0
- package/design-guidance/skills/dbui-check-ecosystem.md +21 -0
- package/design-guidance/skills/dbui-check-guidelines.md +29 -0
- package/design-guidance/skills/dbui-check-principles.md +26 -0
- package/design-guidance/skills/dbui-check-voice.md +17 -0
- package/design-guidance/skills/dbui-pick-component.md +23 -0
- package/design-guidance/skills/dbui-pick-icon.md +23 -0
- package/design-guidance/skills/dbui-review.md +30 -0
- package/design-guidance/skills/dbui-validate.md +23 -0
- package/dist/{RHFControlledTypeaheadComboboxV2-DsH-nIEk.js → RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js} +5 -5
- package/dist/{RHFControlledTypeaheadComboboxV2-DsH-nIEk.js.map → RHFControlledTypeaheadComboboxV2-Ct9x3rC1.js.map} +1 -1
- package/dist/{WizardStepContentWrapper-Bq1wm0V7.js → WizardStepContentWrapper-6YTjeEaA.js} +477 -450
- package/dist/WizardStepContentWrapper-6YTjeEaA.js.map +1 -0
- package/dist/icon-metadata.json +2064 -0
- package/dist/{index-BRAVZg-S.js → index-DiRpSwH2.js} +239 -38
- package/dist/index-DiRpSwH2.js.map +1 -0
- package/dist/index-dark.css +458 -190
- package/dist/index-dark.mitigated.css +460 -192
- package/dist/index.css +1415 -1082
- package/dist/index.js +4 -4
- package/dist/index.mitigated.css +1417 -1084
- package/dist/patterns.js +3 -3
- package/dist-types/design-system/Drawer/Drawer.d.ts +3 -1
- package/dist-types/design-system/Icon/AntdIcon.d.ts +3 -0
- package/dist-types/design-system/Icon/Icon.d.ts +20 -6
- package/dist-types/design-system/Icon/NativeIcon.d.ts +3 -0
- package/dist-types/design-system/Icon/__generated/icons/LakewatchIcon.d.ts +4 -0
- package/dist-types/design-system/Icon/__generated/icons/index.d.ts +1 -0
- package/dist-types/design-system/Icon/index.d.ts +1 -0
- package/dist-types/design-system/Icon/utils.d.ts +1 -0
- package/dist-types/design-system/_shared_/Tabs/styles.d.ts +2 -3
- package/dist-types/~patterns/Wizard/WizardModal.d.ts +1 -1
- package/package.json +4 -2
- package/dist/WizardStepContentWrapper-Bq1wm0V7.js.map +0 -1
- package/dist/index-BRAVZg-S.js.map +0 -1
package/dist/index-dark.css
CHANGED
|
@@ -16300,7 +16300,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16300
16300
|
|
|
16301
16301
|
--db-surface-selected: var(--db-color-table-background-selected-hover);
|
|
16302
16302
|
--db-surface-selected-hover: initial; /* TODO */;
|
|
16303
|
-
--db-surface-selected-active:
|
|
16303
|
+
--db-surface-selected-active: var(--db-color-table-background-selected-hover); /* no distinct active value */
|
|
16304
16304
|
|
|
16305
16305
|
/* Surface alpha-blending modifiers */
|
|
16306
16306
|
--db-surface-backdrop: initial; /* TODO */;
|
|
@@ -16326,7 +16326,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16326
16326
|
--db-accent-surface-strong: var(--db-color-action-primary-background-hover);
|
|
16327
16327
|
|
|
16328
16328
|
--db-accent-surface-hover: var(--db-color-action-primary-background-hover);
|
|
16329
|
-
--db-accent-surface-active:
|
|
16329
|
+
--db-accent-surface-active: var(--db-color-action-primary-background-press); /* no distinct active value */
|
|
16330
16330
|
--db-accent-surface-selected: var(--db-color-action-primary-background-press);
|
|
16331
16331
|
|
|
16332
16332
|
/* In the current design, the text color for an accent surface does not change with hover, active, etc. */
|
|
@@ -16343,7 +16343,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16343
16343
|
--db-negative-surface-strong: var(--db-color-action-danger-primary-background-hover);
|
|
16344
16344
|
|
|
16345
16345
|
--db-negative-surface-hover: var(--db-color-action-danger-primary-background-hover);
|
|
16346
|
-
--db-negative-surface-active:
|
|
16346
|
+
--db-negative-surface-active: var(--db-color-action-danger-primary-background-press); /* no distinct active value */
|
|
16347
16347
|
--db-negative-surface-selected: var(--db-color-action-danger-primary-background-press);
|
|
16348
16348
|
|
|
16349
16349
|
--db-negative-text: var(--db-color-text-validation-danger);
|
|
@@ -16384,6 +16384,11 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16384
16384
|
--db-positive-border: initial; /* TODO */
|
|
16385
16385
|
--db-positive-border-hover: initial; /* TODO */
|
|
16386
16386
|
--db-positive-border-active: initial; /* TODO */
|
|
16387
|
+
|
|
16388
|
+
/* Branded (theme-invariant — same values as light) */
|
|
16389
|
+
--db-ai-gradient-start: #4299e0;
|
|
16390
|
+
--db-ai-gradient-mid: #ca42e0;
|
|
16391
|
+
--db-ai-gradient-end: #ff5f46;
|
|
16387
16392
|
}
|
|
16388
16393
|
|
|
16389
16394
|
:where(.du-bois-dark) {
|
|
@@ -16462,6 +16467,47 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16462
16467
|
--db-shape-pill: 999px;
|
|
16463
16468
|
}
|
|
16464
16469
|
|
|
16470
|
+
:where(.du-bois-dark) {
|
|
16471
|
+
/* Shape */
|
|
16472
|
+
/* Mirrors the ShapeTokens host-override var used by list items; falls back to the theme radius. */
|
|
16473
|
+
--db-list-item-border-radius: var(--list-item-border-radius, 4px);
|
|
16474
|
+
|
|
16475
|
+
/* Color */
|
|
16476
|
+
--db-list-surface: var(--db-surface-base);
|
|
16477
|
+
--db-list-text: var(--db-text-base);
|
|
16478
|
+
--db-list-header-text: var(--db-text-subtle);
|
|
16479
|
+
--db-list-separator: var(--db-border-subtle);
|
|
16480
|
+
|
|
16481
|
+
--db-list-item-surface-hover: var(--db-surface-hover);
|
|
16482
|
+
--db-list-item-surface-active: var(--db-surface-active);
|
|
16483
|
+
--db-list-item-surface-selected: var(--db-accent-surface-subtle);
|
|
16484
|
+
--db-list-item-surface-disabled: var(--db-surface-disabled);
|
|
16485
|
+
|
|
16486
|
+
--db-list-item-text-selected: var(--db-accent-text);
|
|
16487
|
+
--db-list-item-text-disabled: var(--db-text-disabled);
|
|
16488
|
+
|
|
16489
|
+
--db-list-item-danger-text: var(--db-negative-text);
|
|
16490
|
+
--db-list-item-danger-surface-hover: var(--db-negative-surface-subtle);
|
|
16491
|
+
|
|
16492
|
+
/* Density */
|
|
16493
|
+
--db-list-item-padding: var(--db-space-2);
|
|
16494
|
+
--db-list-item-height: var(--db-size-8);
|
|
16495
|
+
}
|
|
16496
|
+
|
|
16497
|
+
:where(.du-bois-dark) {
|
|
16498
|
+
/* Shape */
|
|
16499
|
+
/* Mirrors the ShapeTokens host-override var; falls back to the v1 value (borderRadiusSm). */
|
|
16500
|
+
--db-popup-border-radius: var(--popup-border-radius, 4px);
|
|
16501
|
+
|
|
16502
|
+
/* Color */
|
|
16503
|
+
--db-popup-surface: var(--db-surface-base);
|
|
16504
|
+
--db-popup-text: var(--db-text-base);
|
|
16505
|
+
--db-popup-border: var(--db-border-base);
|
|
16506
|
+
|
|
16507
|
+
/* Elevation */
|
|
16508
|
+
--db-popup-elevation: var(--db-elevation-med);
|
|
16509
|
+
}
|
|
16510
|
+
|
|
16465
16511
|
:where(.du-bois-dark) {
|
|
16466
16512
|
/* Shape */
|
|
16467
16513
|
--db-selection-toggle-border-radius: 4px;
|
|
@@ -16473,15 +16519,15 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16473
16519
|
--db-selection-toggle-border: var(--db-border-strong);
|
|
16474
16520
|
|
|
16475
16521
|
--db-selection-toggle-surface-hover: var(--db-surface-hover);
|
|
16476
|
-
--db-selection-toggle-surface-
|
|
16522
|
+
--db-selection-toggle-surface-active: var(--db-surface-selected-active);
|
|
16477
16523
|
--db-selection-toggle-surface-checked: var(--db-accent-surface);
|
|
16478
16524
|
--db-selection-toggle-surface-checked-hover: var(--db-accent-surface-hover);
|
|
16479
|
-
--db-selection-toggle-surface-checked-
|
|
16525
|
+
--db-selection-toggle-surface-checked-active: var(--db-accent-surface-active);
|
|
16480
16526
|
--db-selection-toggle-surface-disabled: var(--db-surface-disabled);
|
|
16481
16527
|
--db-selection-toggle-surface-checked-disabled: var(--db-surface-disabled);
|
|
16482
16528
|
|
|
16483
16529
|
--db-selection-toggle-border-hover: var(--db-accent-surface-hover);
|
|
16484
|
-
--db-selection-toggle-border-
|
|
16530
|
+
--db-selection-toggle-border-active: var(--db-accent-surface-active);
|
|
16485
16531
|
--db-selection-toggle-border-disabled: var(--db-border-base);
|
|
16486
16532
|
|
|
16487
16533
|
--db-selection-toggle-mark-disabled: var(--db-text-disabled);
|
|
@@ -16497,6 +16543,120 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16497
16543
|
--db-selection-toggle-transition-duration: 120ms;
|
|
16498
16544
|
}
|
|
16499
16545
|
|
|
16546
|
+
|
|
16547
|
+
|
|
16548
|
+
/* Component-tier tokens for the native <Button>, grouped by area (density, shape, typography, color).
|
|
16549
|
+
* Colors alias the action-* system tokens; sizes alias the system density scale.
|
|
16550
|
+
*
|
|
16551
|
+
* Follows the mortar/action.css pattern: one semantic set (surface / border / text, each with
|
|
16552
|
+
* -hover / -active / -disabled) whose defaults are the secondary variant. The variant classes that
|
|
16553
|
+
* re-set these tokens per variant live in NativeButton.css; this file declares only tokens. */
|
|
16554
|
+
|
|
16555
|
+
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
16556
|
+
* `.du-bois-dark` subtree (or a portal that re-applies the theme class) instead of freezing at the root values. */
|
|
16557
|
+
:where(.du-bois-dark) {
|
|
16558
|
+
/* ── Density ──────────────────────────────────────────────────────────── */
|
|
16559
|
+
--db-btn-height: var(--db-size-8);
|
|
16560
|
+
--db-btn-height-small: var(--db-size-6);
|
|
16561
|
+
--db-btn-icon-size: var(--db-size-4);
|
|
16562
|
+
--db-btn-border-width: 1px;
|
|
16563
|
+
--db-btn-padding-vertical: var(--db-space-1);
|
|
16564
|
+
--db-btn-padding-horizontal: var(--db-space-3);
|
|
16565
|
+
--db-btn-padding-horizontal-small: var(--db-space-2);
|
|
16566
|
+
/* Icon/force-icon horizontal padding: half the standard horizontal padding. */
|
|
16567
|
+
--db-btn-padding-horizontal-icon: calc(var(--db-space-3) / 2); /* 6px */
|
|
16568
|
+
--db-btn-gap: var(--db-space-1);
|
|
16569
|
+
--db-btn-end-icon-gap: var(--db-space-2);
|
|
16570
|
+
--db-btn-end-icon-gap-small: var(--db-space-1);
|
|
16571
|
+
/* Width of a content-less button while loading, so the standalone spinner has room. */
|
|
16572
|
+
--db-btn-loading-empty-width: var(--db-size-10);
|
|
16573
|
+
|
|
16574
|
+
/* ── Shape ────────────────────────────────────────────────────────────── */
|
|
16575
|
+
--db-btn-border-radius: var(--db-shape-control);
|
|
16576
|
+
|
|
16577
|
+
/* ── Typography ───────────────────────────────────────────────────────── */
|
|
16578
|
+
--db-btn-font-size: var(--db-font-size-base);
|
|
16579
|
+
--db-btn-icon-only-font-size: var(--db-font-size-lg); /* 15px */
|
|
16580
|
+
--db-btn-font-weight: var(--db-font-weight-normal);
|
|
16581
|
+
/* Line heights are hard-coded until the typography scale ships computed per-level line-height tokens. */
|
|
16582
|
+
--db-btn-line-height: 1.25rem; /* 20px */
|
|
16583
|
+
--db-btn-line-height-small: 1rem; /* 16px */
|
|
16584
|
+
|
|
16585
|
+
/* ── Color: semantic set (defaults = secondary variant) ───────────────── */
|
|
16586
|
+
--db-btn-surface: var(--db-color-action-default-background-default);
|
|
16587
|
+
--db-btn-surface-hover: var(--db-color-action-default-background-hover);
|
|
16588
|
+
--db-btn-surface-active: var(--db-color-action-default-background-press);
|
|
16589
|
+
--db-btn-surface-disabled: transparent;
|
|
16590
|
+
--db-btn-border: var(--db-color-action-default-border-default);
|
|
16591
|
+
--db-btn-border-hover: var(--db-color-action-default-border-hover);
|
|
16592
|
+
--db-btn-border-active: var(--db-color-action-default-border-press);
|
|
16593
|
+
--db-btn-border-disabled: var(--db-color-action-disabled-border);
|
|
16594
|
+
--db-btn-text: var(--db-color-action-default-text-default);
|
|
16595
|
+
--db-btn-text-hover: var(--db-color-action-default-text-hover);
|
|
16596
|
+
--db-btn-text-active: var(--db-color-action-default-text-press);
|
|
16597
|
+
--db-btn-text-disabled: var(--db-color-action-disabled-text);
|
|
16598
|
+
|
|
16599
|
+
/* ── Focus & icon ─────────────────────────────────────────────────────── */
|
|
16600
|
+
--db-btn-focus-ring: var(--db-color-action-default-border-focus);
|
|
16601
|
+
--db-btn-danger-focus-ring: var(--db-color-action-danger-primary-background-default);
|
|
16602
|
+
--db-btn-icon-glyph: var(--db-color-text-secondary);
|
|
16603
|
+
}
|
|
16604
|
+
|
|
16605
|
+
/* Native <Button> visual styles. Consumes the component-tier `--db-btn-*` tokens (see tokens.css);
|
|
16606
|
+
* the variant classes below re-set those tokens per variant and the rules that follow paint them.
|
|
16607
|
+
* Shipped via mortar.css. */
|
|
16608
|
+
|
|
16609
|
+
/* ── 0. Variant token re-sets ──────────────────────────────────────────────
|
|
16610
|
+
* Each variant class re-sets the semantic tokens declared in tokens.css; combined classes win by
|
|
16611
|
+
* specificity, which beats the `:where(:root)` (specificity 0) defaults regardless of file order. */
|
|
16612
|
+
/* Link is borderless and text-only, so its hover/press surface stays transparent. */
|
|
16613
|
+
/* Every danger button (icon included) disables to the filled treatment. */
|
|
16614
|
+
/* Danger, filled (primary): re-set only the surface; text/transparent border come from primary. */
|
|
16615
|
+
/* Danger, secondary/outlined. */
|
|
16616
|
+
/* Danger, tertiary/link: danger text everywhere, danger surface on hover/press; resting/disabled
|
|
16617
|
+
* surface stay the tertiary ghost (override the filled danger-disabled set above). */
|
|
16618
|
+
/* Icon-only renders as the ghost (tertiary) treatment regardless of variant; re-set the semantic set
|
|
16619
|
+
* so the icon-only rules paint from these component tokens. */
|
|
16620
|
+
/* Danger icon-only keeps the ghost resting surface (inherited above) but uses danger text and a
|
|
16621
|
+
* danger hover/press surface. */
|
|
16622
|
+
|
|
16623
|
+
/* ── 1. Base — paints the default (secondary) variant ────────────────────── */
|
|
16624
|
+
|
|
16625
|
+
/* ── 2. Padding ──────────────────────────────────────────────────────────── */
|
|
16626
|
+
|
|
16627
|
+
/* ── 3. Interactive states ───────────────────────────────────────────────── */
|
|
16628
|
+
|
|
16629
|
+
/* ── 4. Focus ────────────────────────────────────────────────────────────── */
|
|
16630
|
+
|
|
16631
|
+
/* ── 5. Small / block (full-width) / empty ────────────────────────────────── */
|
|
16632
|
+
|
|
16633
|
+
/* ── 6. Tertiary & link ──────────────────────────────────────────────────── */
|
|
16634
|
+
/* Re-declare the text color for a non-icon-only tertiary/link at two-class weight so a plain
|
|
16635
|
+
* call-site `color` override loses; an icon-only glyph stays at base weight so its override wins. */
|
|
16636
|
+
/* Keep the resting border at two-class weight (parity with the shielded border-color). */
|
|
16637
|
+
|
|
16638
|
+
/* ── 7. Danger ───────────────────────────────────────────────────────────── */
|
|
16639
|
+
|
|
16640
|
+
/* ── 8. Icon-only ────────────────────────────────────────────────────────── */
|
|
16641
|
+
/* `:where()` keeps this at (0,1,0) so a call-site `css` width override wins, as it does for `height`. */
|
|
16642
|
+
/* `:where()` on the exclusion holds this at (0,2,0): enough to tint an un-overridden icon-only link
|
|
16643
|
+
* over the base color, while still letting a consumer's own icon-color override win on source order. */
|
|
16644
|
+
|
|
16645
|
+
/* ── 9. Disabled — base rules paint the per-variant `*-disabled` tokens (see tokens.css) ──────── */
|
|
16646
|
+
/* Empty disabled buttons keep a transparent border (set elsewhere), so exclude them.
|
|
16647
|
+
* `:where()` on the exclusion holds this at (0,2,0): enough to beat the base border, while still
|
|
16648
|
+
* letting a consumer's own `[disabled]` border override win on source order. */
|
|
16649
|
+
|
|
16650
|
+
/* ── 10. Icon & content layout ───────────────────────────────────────────── */
|
|
16651
|
+
/* The leading icon renders unwrapped as the button's direct `.anticon` child (see NativeButton.tsx),
|
|
16652
|
+
* so `> .anticon` targets only a real icon glyph — a non-glyph `icon` (e.g. a Spinner) keeps its own
|
|
16653
|
+
* sizing — and out-specifies AntD's runtime-injected global `.anticon` rule. */
|
|
16654
|
+
|
|
16655
|
+
/* ── 11. Loading ─────────────────────────────────────────────────────────── */
|
|
16656
|
+
|
|
16657
|
+
/* ── 12. dangerouslySetForceIconStyles ───────────────────────────────────── */
|
|
16658
|
+
|
|
16659
|
+
|
|
16500
16660
|
:where(.du-bois-dark) {
|
|
16501
16661
|
/* Shape */
|
|
16502
16662
|
--db-checkbox-border-radius: var(--db-selection-toggle-border-radius);
|
|
@@ -16505,15 +16665,15 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16505
16665
|
/* Color */
|
|
16506
16666
|
--db-checkbox-surface: var(--db-selection-toggle-surface);
|
|
16507
16667
|
--db-checkbox-surface-hover: var(--db-color-action-default-background-hover);
|
|
16508
|
-
--db-checkbox-surface-
|
|
16668
|
+
--db-checkbox-surface-active: var(--db-color-action-default-background-press);
|
|
16509
16669
|
--db-checkbox-surface-checked: var(--db-selection-toggle-surface-checked);
|
|
16510
16670
|
--db-checkbox-surface-checked-hover: var(--db-selection-toggle-surface-checked-hover);
|
|
16511
|
-
--db-checkbox-surface-checked-
|
|
16671
|
+
--db-checkbox-surface-checked-active: var(--db-selection-toggle-surface-checked-active);
|
|
16512
16672
|
--db-checkbox-surface-disabled: var(--db-selection-toggle-surface-disabled);
|
|
16513
16673
|
|
|
16514
16674
|
--db-checkbox-border: var(--db-color-action-default-border-default);
|
|
16515
16675
|
--db-checkbox-border-hover: var(--db-selection-toggle-border-hover);
|
|
16516
|
-
--db-checkbox-border-
|
|
16676
|
+
--db-checkbox-border-active: var(--db-selection-toggle-border-active);
|
|
16517
16677
|
--db-checkbox-focus-ring: var(--db-focus-ring-color);
|
|
16518
16678
|
--db-checkbox-border-disabled: var(--db-color-action-disabled-border);
|
|
16519
16679
|
|
|
@@ -16610,7 +16770,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16610
16770
|
* vertical margin Hint/FormMessage carry. */
|
|
16611
16771
|
|
|
16612
16772
|
/* Group spacing against sibling form text — 8px gap above the group when it
|
|
16613
|
-
* follows a Hint, 8px gap above a FormMessage when it follows the group.
|
|
16773
|
+
* follows a Label or Hint, 8px gap above a FormMessage when it follows the group.
|
|
16614
16774
|
* Doubled class on the group side beats FormMessage's `&&` for the same reason. */
|
|
16615
16775
|
|
|
16616
16776
|
/* CheckboxGroup layout. Vertical delegates to the `.db-stack` primitive; the
|
|
@@ -16624,6 +16784,162 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16624
16784
|
|
|
16625
16785
|
/* Vertical: .db-stack supplies flex-direction + gap; we only retarget the knob. */
|
|
16626
16786
|
|
|
16787
|
+
|
|
16788
|
+
|
|
16789
|
+
:where(.du-bois-dark) {
|
|
16790
|
+
/* Density */
|
|
16791
|
+
--db-drawer-padding-horizontal: var(--db-space-6);
|
|
16792
|
+
--db-drawer-padding-horizontal-small: var(--db-space-4);
|
|
16793
|
+
--db-drawer-content-padding-top: var(--db-space-4);
|
|
16794
|
+
--db-drawer-content-padding-top-small: var(--db-space-2);
|
|
16795
|
+
--db-drawer-footer-padding-top: var(--db-space-4);
|
|
16796
|
+
--db-drawer-footer-padding-bottom: var(--db-space-6);
|
|
16797
|
+
--db-drawer-footer-padding-bottom-small: var(--db-space-4);
|
|
16798
|
+
--db-drawer-title-margin-bottom: var(--db-space-2);
|
|
16799
|
+
--db-drawer-close-button-margin: var(--db-space-1);
|
|
16800
|
+
|
|
16801
|
+
/* Color */
|
|
16802
|
+
--db-drawer-surface: var(--db-surface-base);
|
|
16803
|
+
--db-drawer-text: var(--db-text-base);
|
|
16804
|
+
--db-drawer-border: var(--db-border-base);
|
|
16805
|
+
/* No v2 token holds the drawer scrim yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16806
|
+
--db-drawer-overlay: var(--db-color-overlay-overlay);
|
|
16807
|
+
}
|
|
16808
|
+
|
|
16809
|
+
:where(.du-bois-dark) {
|
|
16810
|
+
/* Elevation */
|
|
16811
|
+
/* No v2 token holds the dark drawer elevation yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16812
|
+
--db-drawer-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.87);
|
|
16813
|
+
}
|
|
16814
|
+
|
|
16815
|
+
|
|
16816
|
+
|
|
16817
|
+
|
|
16818
|
+
|
|
16819
|
+
|
|
16820
|
+
|
|
16821
|
+
|
|
16822
|
+
|
|
16823
|
+
|
|
16824
|
+
/* Component tokens for the native Icon. */
|
|
16825
|
+
:where(.du-bois-dark) {
|
|
16826
|
+
--db-icon-size: var(--db-font-size-xl);
|
|
16827
|
+
--db-icon-color-danger: var(--db-color-text-validation-danger);
|
|
16828
|
+
--db-icon-color-warning: var(--db-color-text-validation-warning);
|
|
16829
|
+
--db-icon-color-success: var(--db-color-text-validation-success);
|
|
16830
|
+
--db-icon-ai-gradient-start: var(--db-ai-gradient-start);
|
|
16831
|
+
--db-icon-ai-gradient-mid: var(--db-ai-gradient-mid);
|
|
16832
|
+
--db-icon-ai-gradient-end: var(--db-ai-gradient-end);
|
|
16833
|
+
}
|
|
16834
|
+
|
|
16835
|
+
/* Native Icon styles. Ships through mortar.css and reads only component-tier --db-icon-* tokens.
|
|
16836
|
+
* Icon size is driven solely by the `--db-icon-size` design token: to resize an icon, set that
|
|
16837
|
+
* token in scope (default 16px in tokens.css) rather than overriding `font-size`. */
|
|
16838
|
+
|
|
16839
|
+
/* TODO: remove once clickable-icon callsites are gone. Kept for backwards compatibility with the
|
|
16840
|
+
* AntD icon, which made icons clickable via onClick; some callsites still rely on it. Actual icons
|
|
16841
|
+
* should never carry a tabindex — a clickable icon belongs inside a button. */
|
|
16842
|
+
|
|
16843
|
+
/* Semantic colors set `color` only; the SVG glyph paints its `fill`/`stroke` from `currentColor`,
|
|
16844
|
+
* so setting the text color recolors the icon. */
|
|
16845
|
+
|
|
16846
|
+
@keyframes db-icon-loading-circle {
|
|
16847
|
+
100% {
|
|
16848
|
+
transform: rotate(360deg);
|
|
16849
|
+
}
|
|
16850
|
+
}
|
|
16851
|
+
|
|
16852
|
+
|
|
16853
|
+
|
|
16854
|
+
|
|
16855
|
+
:where(.du-bois-dark) {
|
|
16856
|
+
/* Shape */
|
|
16857
|
+
/* Must not scale with density; no non-scaling system token holds it. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16858
|
+
--db-navigation-menu-indicator-thickness: 4px;
|
|
16859
|
+
/* No system token holds this control-specific inset. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16860
|
+
--db-navigation-menu-focus-ring-offset: -1px;
|
|
16861
|
+
|
|
16862
|
+
/* Color */
|
|
16863
|
+
--db-navigation-menu-indicator: var(--db-accent-surface);
|
|
16864
|
+
--db-navigation-menu-focus-ring: var(--db-focus-ring-color);
|
|
16865
|
+
--db-navigation-menu-text: var(--db-text-subtle);
|
|
16866
|
+
--db-navigation-menu-text-selected: var(--db-text-base);
|
|
16867
|
+
/* No v2 semantic for default-action link text yet; bridges on the v1 --db-color-* token. */
|
|
16868
|
+
--db-navigation-menu-text-hover: var(--db-color-action-default-text-hover);
|
|
16869
|
+
--db-navigation-menu-text-active: var(--db-color-action-default-text-press);
|
|
16870
|
+
|
|
16871
|
+
/* Density */
|
|
16872
|
+
--db-navigation-menu-item-height: var(--db-size-8);
|
|
16873
|
+
--db-navigation-menu-item-min-width: var(--db-size-6);
|
|
16874
|
+
--db-navigation-menu-link-padding-top: var(--db-space-1);
|
|
16875
|
+
--db-navigation-menu-link-padding-bottom: var(--db-space-2);
|
|
16876
|
+
--db-navigation-menu-focus-ring-width: var(--db-focus-ring-width);
|
|
16877
|
+
}
|
|
16878
|
+
|
|
16879
|
+
|
|
16880
|
+
:where(.du-bois-dark) {
|
|
16881
|
+
/* Color */
|
|
16882
|
+
/* No v2 token holds tertiary action-text states yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16883
|
+
--db-overflow-trigger-text: var(--db-color-action-tertiary-text-default);
|
|
16884
|
+
--db-overflow-trigger-text-hover: var(--db-color-action-tertiary-text-hover);
|
|
16885
|
+
--db-overflow-trigger-text-press: var(--db-color-action-tertiary-text-press);
|
|
16886
|
+
|
|
16887
|
+
/* Density */
|
|
16888
|
+
--db-overflow-spacing: var(--db-space-2);
|
|
16889
|
+
--db-overflow-menu-spacing: var(--db-space-1);
|
|
16890
|
+
}
|
|
16891
|
+
|
|
16892
|
+
|
|
16893
|
+
|
|
16894
|
+
/* Popover is a neutral-card member of the popup family: surface, text, border, and radius come
|
|
16895
|
+
* from --db-popup-*. Link, focus, and spacing are popover-specific and reference system tokens
|
|
16896
|
+
* directly. The popup elevation scale is light-only, so the dark shadow is re-declared below. */
|
|
16897
|
+
|
|
16898
|
+
:where(.du-bois-dark) {
|
|
16899
|
+
/* Shape */
|
|
16900
|
+
--db-popover-border-radius: var(--db-popup-border-radius);
|
|
16901
|
+
|
|
16902
|
+
/* Color */
|
|
16903
|
+
--db-popover-surface: var(--db-popup-surface);
|
|
16904
|
+
--db-popover-text: var(--db-popup-text);
|
|
16905
|
+
--db-popover-border: var(--db-popup-border);
|
|
16906
|
+
/* No v2 token holds the tertiary link text yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16907
|
+
--db-popover-link-text: var(--db-color-action-tertiary-text-default);
|
|
16908
|
+
--db-popover-link-text-hover: var(--db-color-action-tertiary-text-hover);
|
|
16909
|
+
--db-popover-focus-ring: var(--db-focus-ring-color);
|
|
16910
|
+
|
|
16911
|
+
/* Density */
|
|
16912
|
+
--db-popover-spacing: var(--db-space-2);
|
|
16913
|
+
--db-popover-focus-ring-width: var(--db-focus-ring-width);
|
|
16914
|
+
|
|
16915
|
+
/* Elevation */
|
|
16916
|
+
--db-popover-shadow: var(--db-popup-elevation);
|
|
16917
|
+
}
|
|
16918
|
+
|
|
16919
|
+
:where(.du-bois-dark) {
|
|
16920
|
+
/* No v2 token holds the dark-scope popover elevation shadow yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
16921
|
+
--db-popover-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
16922
|
+
}
|
|
16923
|
+
|
|
16924
|
+
|
|
16925
|
+
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
16926
|
+
* `.du-bois-dark` subtree instead of freezing at the light values. */
|
|
16927
|
+
:where(.du-bois-dark) {
|
|
16928
|
+
/* Shape */
|
|
16929
|
+
--db-progress-border-radius: var(--db-shape-pill);
|
|
16930
|
+
|
|
16931
|
+
/* Color */
|
|
16932
|
+
--db-progress-track: var(--db-color-progress-track);
|
|
16933
|
+
--db-progress-fill: var(--db-color-progress-fill);
|
|
16934
|
+
|
|
16935
|
+
/* Density */
|
|
16936
|
+
--db-progress-size: var(--db-size-2);
|
|
16937
|
+
|
|
16938
|
+
/* Motion */
|
|
16939
|
+
/* No v2 motion token holds this duration. TODO(FEINF-6505): adopt a v2 motion token when one is added. */
|
|
16940
|
+
--db-progress-transition-duration: 300ms;
|
|
16941
|
+
}
|
|
16942
|
+
|
|
16627
16943
|
:where(.du-bois-dark) {
|
|
16628
16944
|
/* Shape */
|
|
16629
16945
|
--db-radio-border-radius: var(--db-radius-full);
|
|
@@ -16632,19 +16948,19 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16632
16948
|
/* Color */
|
|
16633
16949
|
--db-radio-surface: var(--db-selection-toggle-surface);
|
|
16634
16950
|
--db-radio-surface-hover: var(--db-color-action-default-background-hover);
|
|
16635
|
-
--db-radio-surface-
|
|
16951
|
+
--db-radio-surface-active: var(--db-color-action-default-background-press);
|
|
16636
16952
|
--db-radio-surface-checked: var(--db-selection-toggle-surface-checked);
|
|
16637
16953
|
--db-radio-surface-checked-hover: var(--db-selection-toggle-surface-checked-hover);
|
|
16638
|
-
--db-radio-surface-checked-
|
|
16954
|
+
--db-radio-surface-checked-active: var(--db-color-action-default-background-press);
|
|
16639
16955
|
--db-radio-surface-disabled: var(--db-selection-toggle-surface-disabled);
|
|
16640
16956
|
|
|
16641
16957
|
--db-radio-border: var(--db-color-action-default-border-default);
|
|
16642
16958
|
--db-radio-border-hover: var(--db-selection-toggle-border-hover);
|
|
16643
|
-
--db-radio-border-
|
|
16959
|
+
--db-radio-border-active: var(--db-selection-toggle-border-active);
|
|
16644
16960
|
--db-radio-border-focus: var(--db-focus-ring-color);
|
|
16645
16961
|
--db-radio-border-disabled: var(--db-color-action-disabled-border);
|
|
16646
|
-
--db-radio-border-checked-hover: var(--db-selection-toggle-border-
|
|
16647
|
-
--db-radio-border-checked-
|
|
16962
|
+
--db-radio-border-checked-hover: var(--db-selection-toggle-border-active);
|
|
16963
|
+
--db-radio-border-checked-active: var(--db-color-action-default-border-press);
|
|
16648
16964
|
--db-radio-border-unchecked-focus: var(--db-color-action-primary-background-default);
|
|
16649
16965
|
--db-radio-outline-checked-focus: var(--db-color-action-primary-background-default);
|
|
16650
16966
|
|
|
@@ -16792,6 +17108,76 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16792
17108
|
/* AntD `&& + form-message { marginTop: sm }` (horizontal): a form-message following
|
|
16793
17109
|
* the whole group is separated by sm. */
|
|
16794
17110
|
|
|
17111
|
+
|
|
17112
|
+
|
|
17113
|
+
|
|
17114
|
+
|
|
17115
|
+
:where(.du-bois-dark) {
|
|
17116
|
+
/* Shape */
|
|
17117
|
+
--db-slider-border-radius: var(--db-shape-pill);
|
|
17118
|
+
|
|
17119
|
+
/* Color */
|
|
17120
|
+
/* No v2 token holds the track + disabled-range surface yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17121
|
+
--db-slider-track-surface: #e8ecf0;
|
|
17122
|
+
--db-slider-range-surface-disabled: #e8ecf0;
|
|
17123
|
+
/* No v2 token holds the range fill yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17124
|
+
--db-slider-range-surface: #2272b4;
|
|
17125
|
+
|
|
17126
|
+
--db-slider-thumb-surface: var(--db-accent-surface);
|
|
17127
|
+
--db-slider-thumb-surface-hover: var(--db-accent-surface-hover);
|
|
17128
|
+
--db-slider-thumb-surface-press: var(--db-accent-surface-active);
|
|
17129
|
+
/* No v2 token holds the disabled thumb yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17130
|
+
--db-slider-thumb-surface-disabled: #d1d9e1;
|
|
17131
|
+
|
|
17132
|
+
/* Density */
|
|
17133
|
+
--db-slider-size: var(--db-size-5); /* 20px */
|
|
17134
|
+
--db-slider-thumb-size: var(--db-size-5); /* 20px */
|
|
17135
|
+
--db-slider-track-thickness: calc(var(--db-size-1) * 0.75); /* 3px */
|
|
17136
|
+
}
|
|
17137
|
+
|
|
17138
|
+
:where(.du-bois-dark) {
|
|
17139
|
+
/* Shape */
|
|
17140
|
+
/* TODO(FEINF-6505): adopt --db-shape-container-* once a 4px container radius exists; kept on --db-radius-sm to preserve 4px. */
|
|
17141
|
+
--db-snackbar-border-radius: var(--db-radius-sm);
|
|
17142
|
+
|
|
17143
|
+
/* Density */
|
|
17144
|
+
--db-snackbar-spacing-vertical: var(--db-space-3);
|
|
17145
|
+
--db-snackbar-spacing-horizontal: var(--db-space-4);
|
|
17146
|
+
--db-snackbar-close-button-spacing: var(--db-space-2);
|
|
17147
|
+
|
|
17148
|
+
/* Color */
|
|
17149
|
+
/* No v1/v2 system token holds this theme-invariant white. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
17150
|
+
--db-snackbar-text: #ffffff;
|
|
17151
|
+
/* No v1/v2 system token holds these theme-invariant close-icon colors. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
17152
|
+
--db-snackbar-close-icon: #e8ecf0;
|
|
17153
|
+
--db-snackbar-close-icon-hover: #8acaff;
|
|
17154
|
+
--db-snackbar-close-icon-active: #bae1fc;
|
|
17155
|
+
}
|
|
17156
|
+
|
|
17157
|
+
:where(.du-bois-dark) {
|
|
17158
|
+
/* Color */
|
|
17159
|
+
/* No v1/v2 system token holds this light/dark surface pair. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
17160
|
+
--db-snackbar-surface: #445461;
|
|
17161
|
+
|
|
17162
|
+
/* Elevation */
|
|
17163
|
+
/* No v1/v2 system token holds this dark shadow; --db-elevation-med is theme-invariant (light). TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
17164
|
+
--db-snackbar-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
17165
|
+
}
|
|
17166
|
+
|
|
17167
|
+
/* Spacer's height is a spacing step. The size prop (xs/sm/mid/md/lg) selects one component token,
|
|
17168
|
+
* each aliasing the system space scale — theme-invariant, so a single block (no light/dark split). */
|
|
17169
|
+
|
|
17170
|
+
:where(.du-bois-dark) {
|
|
17171
|
+
/* Density */
|
|
17172
|
+
--db-spacer-size-xs: var(--db-space-1); /* 4px */
|
|
17173
|
+
--db-spacer-size-sm: var(--db-space-2); /* 8px */
|
|
17174
|
+
--db-spacer-size-mid: var(--db-space-3); /* 12px */
|
|
17175
|
+
--db-spacer-size-md: var(--db-space-4); /* 16px */
|
|
17176
|
+
--db-spacer-size-lg: var(--db-space-6); /* 24px */
|
|
17177
|
+
}
|
|
17178
|
+
|
|
17179
|
+
|
|
17180
|
+
|
|
16795
17181
|
:where(.du-bois-dark) {
|
|
16796
17182
|
/* Shape */
|
|
16797
17183
|
--db-switch-border-radius: var(--db-radius-full);
|
|
@@ -16800,20 +17186,20 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16800
17186
|
/* Color */
|
|
16801
17187
|
--db-switch-surface: var(--db-selection-toggle-surface);
|
|
16802
17188
|
--db-switch-surface-hover: var(--db-color-action-default-background-hover);
|
|
16803
|
-
--db-switch-surface-
|
|
17189
|
+
--db-switch-surface-active: var(--db-color-action-default-background-press);
|
|
16804
17190
|
--db-switch-surface-checked: var(--db-selection-toggle-surface-checked);
|
|
16805
17191
|
--db-switch-surface-checked-hover: var(--db-selection-toggle-surface-checked-hover);
|
|
16806
|
-
--db-switch-surface-checked-
|
|
17192
|
+
--db-switch-surface-checked-active: var(--db-selection-toggle-surface-checked-active);
|
|
16807
17193
|
--db-switch-surface-disabled: var(--db-selection-toggle-surface-disabled);
|
|
16808
17194
|
--db-switch-surface-checked-disabled: var(--db-color-action-disabled-text);
|
|
16809
17195
|
|
|
16810
17196
|
--db-switch-border: var(--db-color-action-default-border-default);
|
|
16811
17197
|
--db-switch-border-hover: var(--db-selection-toggle-border-hover);
|
|
16812
|
-
--db-switch-border-
|
|
17198
|
+
--db-switch-border-active: var(--db-selection-toggle-border-active);
|
|
16813
17199
|
--db-switch-border-disabled: var(--db-color-action-disabled-border);
|
|
16814
17200
|
--db-switch-border-checked: var(--db-selection-toggle-surface-checked);
|
|
16815
17201
|
--db-switch-border-checked-hover: var(--db-selection-toggle-surface-checked-hover);
|
|
16816
|
-
--db-switch-border-checked-
|
|
17202
|
+
--db-switch-border-checked-active: var(--db-selection-toggle-surface-checked-active);
|
|
16817
17203
|
--db-switch-border-focus: var(--db-selection-toggle-surface-checked);
|
|
16818
17204
|
|
|
16819
17205
|
--db-switch-thumb: var(--db-selection-toggle-surface);
|
|
@@ -16854,168 +17240,79 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
16854
17240
|
* so Chromium can hash-reject it instead of attempting the match against every element on every
|
|
16855
17241
|
* recalc (the leading/middle :is() groups aren't the key selector, so they're left as-is). */
|
|
16856
17242
|
|
|
16857
|
-
/* Component
|
|
16858
|
-
*
|
|
16859
|
-
*
|
|
16860
|
-
* Follows the mortar/action.css pattern: one semantic set (surface / border / text, each with
|
|
16861
|
-
* -hover / -press / -disabled) whose defaults are the secondary variant. The variant classes that
|
|
16862
|
-
* re-set these tokens per variant live in NativeButton.css; this file declares only tokens. */
|
|
16863
|
-
|
|
16864
|
-
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
16865
|
-
* `.du-bois-dark` subtree (or a portal that re-applies the theme class) instead of freezing at the root values. */
|
|
17243
|
+
/* Component tokens for Tabs (no family). Re-declared under the theme classes, not only :root, so the
|
|
17244
|
+
* var() chain re-resolves inside a .du-bois-dark subtree instead of freezing at the light value. */
|
|
16866
17245
|
:where(.du-bois-dark) {
|
|
16867
17246
|
/* ── Density ──────────────────────────────────────────────────────────── */
|
|
16868
|
-
--db-
|
|
16869
|
-
--db-
|
|
16870
|
-
--db-
|
|
16871
|
-
--db-
|
|
16872
|
-
--db-
|
|
16873
|
-
--db-
|
|
16874
|
-
--db-
|
|
16875
|
-
|
|
16876
|
-
--db-
|
|
16877
|
-
|
|
16878
|
-
--db-
|
|
16879
|
-
--db-btn-end-icon-gap-small: var(--db-space-1);
|
|
16880
|
-
/* Width of a content-less button while loading, so the standalone spinner has room. */
|
|
16881
|
-
--db-btn-loading-empty-width: var(--db-size-10);
|
|
17247
|
+
--db-tabs-height: var(--db-size-8);
|
|
17248
|
+
--db-tabs-trigger-min-width: var(--db-size-6);
|
|
17249
|
+
--db-tabs-trigger-min-width-closable: var(--db-size-10);
|
|
17250
|
+
--db-tabs-list-margin-bottom: var(--db-space-4);
|
|
17251
|
+
--db-tabs-trigger-gap: var(--db-space-4);
|
|
17252
|
+
--db-tabs-trigger-padding-top: var(--db-space-1);
|
|
17253
|
+
--db-tabs-trigger-padding-bottom: var(--db-space-2);
|
|
17254
|
+
--db-tabs-close-icon-gap: var(--db-space-1);
|
|
17255
|
+
--db-tabs-add-button-margin-top: var(--db-space-0-5);
|
|
17256
|
+
/* No 1.5-unit space step exists; synthesize 6px from the nearest. TODO: use a direct step if one lands. */
|
|
17257
|
+
--db-tabs-add-button-margin-bottom: calc(var(--db-space-1) * 1.5);
|
|
16882
17258
|
|
|
16883
17259
|
/* ── Shape ────────────────────────────────────────────────────────────── */
|
|
16884
|
-
--db-
|
|
17260
|
+
--db-tabs-scrollbar-radius: var(--db-shape-control);
|
|
17261
|
+
--db-tabs-focus-ring-width: var(--db-focus-ring-width);
|
|
16885
17262
|
|
|
16886
17263
|
/* ── Typography ───────────────────────────────────────────────────────── */
|
|
16887
|
-
--db-
|
|
16888
|
-
--db-
|
|
16889
|
-
|
|
16890
|
-
|
|
16891
|
-
--db-btn-line-height: 1.25rem; /* 20px */
|
|
16892
|
-
--db-btn-line-height-small: 1rem; /* 16px */
|
|
17264
|
+
--db-tabs-font-size: var(--db-font-size-base);
|
|
17265
|
+
--db-tabs-font-weight: var(--db-font-weight-semibold);
|
|
17266
|
+
/* No v2 token holds the tab line-height yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17267
|
+
--db-tabs-line-height: 1.25rem;
|
|
16893
17268
|
|
|
16894
|
-
/* ── Color
|
|
16895
|
-
|
|
16896
|
-
--db-
|
|
16897
|
-
--db-
|
|
16898
|
-
--db-
|
|
16899
|
-
--db-
|
|
16900
|
-
--db-
|
|
16901
|
-
|
|
16902
|
-
--db-
|
|
16903
|
-
|
|
16904
|
-
--db-
|
|
16905
|
-
|
|
16906
|
-
--db-
|
|
16907
|
-
|
|
16908
|
-
|
|
16909
|
-
--db-btn-focus-ring: var(--db-color-action-default-border-focus);
|
|
16910
|
-
--db-btn-danger-focus-ring: var(--db-color-action-danger-primary-background-default);
|
|
16911
|
-
--db-btn-icon-glyph: var(--db-color-text-secondary);
|
|
17269
|
+
/* ── Color ────────────────────────────────────────────────────────────── */
|
|
17270
|
+
/* No v2 token holds the tab text / hover / press / active / disabled colors yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17271
|
+
--db-tabs-text: var(--db-color-text-secondary);
|
|
17272
|
+
--db-tabs-text-hover: var(--db-color-action-default-text-hover);
|
|
17273
|
+
--db-tabs-text-press: var(--db-color-action-default-text-press);
|
|
17274
|
+
--db-tabs-text-active: var(--db-color-text-primary);
|
|
17275
|
+
--db-tabs-text-disabled: var(--db-color-action-disabled-text);
|
|
17276
|
+
/* No v2 token holds the tab panel content text color yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17277
|
+
--db-tabs-content-text: var(--db-color-text-primary);
|
|
17278
|
+
/* No v2 token holds the active-tab underline yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17279
|
+
--db-tabs-indicator: var(--db-color-action-primary-background-default);
|
|
17280
|
+
/* No v2 token holds the list divider yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17281
|
+
--db-tabs-border: var(--db-color-action-default-border-default);
|
|
17282
|
+
/* No v2 token holds the focus ring color yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17283
|
+
--db-tabs-focus-ring: var(--db-color-action-default-border-focus);
|
|
16912
17284
|
}
|
|
16913
17285
|
|
|
16914
|
-
/*
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
* Each variant class re-sets the semantic tokens declared in tokens.css; combined classes win by
|
|
16920
|
-
* specificity, which beats the `:where(:root)` (specificity 0) defaults regardless of file order. */
|
|
16921
|
-
/* Link is borderless and text-only, so its hover/press surface stays transparent. */
|
|
16922
|
-
/* Every danger button (icon included) disables to the filled treatment. */
|
|
16923
|
-
/* Danger, filled (primary): re-set only the surface; text/transparent border come from primary. */
|
|
16924
|
-
/* Danger, secondary/outlined. */
|
|
16925
|
-
/* Danger, tertiary/link: danger text everywhere, danger surface on hover/press; resting/disabled
|
|
16926
|
-
* surface stay the tertiary ghost (override the filled danger-disabled set above). */
|
|
16927
|
-
/* Icon-only renders as the ghost (tertiary) treatment regardless of variant; re-set the semantic set
|
|
16928
|
-
* so the icon-only rules paint from these component tokens. */
|
|
16929
|
-
/* Danger icon-only keeps the ghost resting surface (inherited above) but uses danger text and a
|
|
16930
|
-
* danger hover/press surface. */
|
|
16931
|
-
|
|
16932
|
-
/* ── 1. Base — paints the default (secondary) variant ────────────────────── */
|
|
16933
|
-
|
|
16934
|
-
/* ── 2. Padding ──────────────────────────────────────────────────────────── */
|
|
16935
|
-
|
|
16936
|
-
/* ── 3. Interactive states ───────────────────────────────────────────────── */
|
|
16937
|
-
|
|
16938
|
-
/* ── 4. Focus ────────────────────────────────────────────────────────────── */
|
|
16939
|
-
|
|
16940
|
-
/* ── 5. Small / full-width / empty ────────────────────────────────────────── */
|
|
16941
|
-
|
|
16942
|
-
/* ── 6. Tertiary & link ──────────────────────────────────────────────────── */
|
|
16943
|
-
/* Re-declare the text color for a non-icon-only tertiary/link at two-class weight so a plain
|
|
16944
|
-
* call-site `color` override loses; an icon-only glyph stays at base weight so its override wins. */
|
|
16945
|
-
/* Keep the resting border at two-class weight (parity with the shielded border-color). */
|
|
16946
|
-
|
|
16947
|
-
/* ── 7. Danger ───────────────────────────────────────────────────────────── */
|
|
16948
|
-
|
|
16949
|
-
/* ── 8. Icon-only ────────────────────────────────────────────────────────── */
|
|
16950
|
-
/* `:where()` keeps this at (0,1,0) so a call-site `css` width override wins, as it does for `height`. */
|
|
16951
|
-
/* `:where()` on the exclusion holds this at (0,2,0): enough to tint an un-overridden icon-only link
|
|
16952
|
-
* over the base color, while still letting a consumer's own icon-color override win on source order. */
|
|
16953
|
-
|
|
16954
|
-
/* ── 9. Disabled — base rules paint the per-variant `*-disabled` tokens (see tokens.css) ──────── */
|
|
16955
|
-
/* Empty and loading disabled buttons keep a transparent border (set elsewhere), so exclude them.
|
|
16956
|
-
* `:where()` on the exclusion holds this at (0,2,0): enough to beat the base border, while still
|
|
16957
|
-
* letting a consumer's own `[disabled]` border override win on source order. */
|
|
16958
|
-
|
|
16959
|
-
/* ── 10. Icon & content layout ───────────────────────────────────────────── */
|
|
16960
|
-
/* The leading icon renders unwrapped as the button's direct `.anticon` child (see NativeButton.tsx),
|
|
16961
|
-
* so `> .anticon` targets only a real icon glyph — a non-glyph `icon` (e.g. a Spinner) keeps its own
|
|
16962
|
-
* sizing — and out-specifies AntD's runtime-injected global `.anticon` rule. */
|
|
17286
|
+
/* No v2 token holds the scrollbar thumb yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17287
|
+
:where(.du-bois-dark) {
|
|
17288
|
+
--db-tabs-scrollbar-thumb: rgba(255, 255, 255, 0.2);
|
|
17289
|
+
--db-tabs-scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
|
|
17290
|
+
}
|
|
16963
17291
|
|
|
16964
|
-
/* ── 11. Loading ─────────────────────────────────────────────────────────── */
|
|
16965
17292
|
|
|
16966
|
-
/* ── 12. dangerouslySetForceIconStyles ───────────────────────────────────── */
|
|
16967
17293
|
|
|
16968
17294
|
:where(.du-bois-dark) {
|
|
16969
17295
|
/* Shape */
|
|
16970
|
-
|
|
16971
|
-
--db-navigation-menu-indicator-thickness: 4px;
|
|
16972
|
-
/* No system token holds this control-specific inset. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
16973
|
-
--db-navigation-menu-focus-ring-offset: -1px;
|
|
17296
|
+
--db-toolbar-border-radius: var(--db-shape-control);
|
|
16974
17297
|
|
|
16975
17298
|
/* Color */
|
|
16976
|
-
--db-
|
|
16977
|
-
--db-
|
|
16978
|
-
--db-
|
|
16979
|
-
--db-
|
|
16980
|
-
/* No v2
|
|
16981
|
-
--db-
|
|
16982
|
-
--db-
|
|
17299
|
+
--db-toolbar-surface: var(--db-surface-subtle);
|
|
17300
|
+
--db-toolbar-border: var(--db-border-base);
|
|
17301
|
+
--db-toolbar-separator-surface: var(--db-border-base);
|
|
17302
|
+
--db-toolbar-toggle-item-text: var(--db-text-base);
|
|
17303
|
+
/* No v2 token holds the toggle hover / press text yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17304
|
+
--db-toolbar-toggle-item-text-hover: var(--db-color-action-default-text-hover);
|
|
17305
|
+
--db-toolbar-toggle-item-text-press: var(--db-color-action-default-text-press);
|
|
17306
|
+
--db-toolbar-shadow: var(--db-elevation-med);
|
|
16983
17307
|
|
|
16984
17308
|
/* Density */
|
|
16985
|
-
--db-
|
|
16986
|
-
--db-
|
|
16987
|
-
--db-navigation-menu-link-padding-top: var(--db-space-1);
|
|
16988
|
-
--db-navigation-menu-link-padding-bottom: var(--db-space-2);
|
|
16989
|
-
--db-navigation-menu-focus-ring-width: var(--db-focus-ring-width);
|
|
16990
|
-
}
|
|
16991
|
-
|
|
16992
|
-
:where(.du-bois-dark) {
|
|
16993
|
-
/* Shape */
|
|
16994
|
-
/* TODO(FEINF-6505): adopt --db-shape-container-* once a 4px container radius exists; kept on --db-radius-sm to preserve 4px. */
|
|
16995
|
-
--db-snackbar-border-radius: var(--db-radius-sm);
|
|
16996
|
-
|
|
16997
|
-
/* Density */
|
|
16998
|
-
--db-snackbar-spacing-vertical: var(--db-space-3);
|
|
16999
|
-
--db-snackbar-spacing-horizontal: var(--db-space-4);
|
|
17000
|
-
--db-snackbar-close-button-spacing: var(--db-space-2);
|
|
17001
|
-
|
|
17002
|
-
/* Color */
|
|
17003
|
-
/* No v1/v2 system token holds this theme-invariant white. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
17004
|
-
--db-snackbar-text: #ffffff;
|
|
17005
|
-
/* No v1/v2 system token holds these theme-invariant close-icon colors. TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
17006
|
-
--db-snackbar-close-icon: #e8ecf0;
|
|
17007
|
-
--db-snackbar-close-icon-hover: #8acaff;
|
|
17008
|
-
--db-snackbar-close-icon-press: #bae1fc;
|
|
17309
|
+
--db-toolbar-gap: var(--db-space-4);
|
|
17310
|
+
--db-toolbar-spacing: var(--db-space-2);
|
|
17009
17311
|
}
|
|
17010
17312
|
|
|
17011
17313
|
:where(.du-bois-dark) {
|
|
17012
|
-
/*
|
|
17013
|
-
|
|
17014
|
-
--db-snackbar-surface: #445461;
|
|
17015
|
-
|
|
17016
|
-
/* Elevation */
|
|
17017
|
-
/* No v1/v2 system token holds this dark shadow; --db-elevation-med is theme-invariant (light). TODO(FEINF-6505): adopt a v2 system token when one is added. */
|
|
17018
|
-
--db-snackbar-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
17314
|
+
/* No v2 token holds the dark-mode elevation shadow yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17315
|
+
--db-toolbar-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
17019
17316
|
}
|
|
17020
17317
|
|
|
17021
17318
|
/* Tooltip renders an inverted surface (dark chip in light mode, light chip in dark mode), so it does
|
|
@@ -17042,7 +17339,7 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17042
17339
|
/* Darker v1 blue primitives than light mode — the chip is light here, so links need contrast. */
|
|
17043
17340
|
--db-tooltip-link-text: #2272b4; /* blue600 */
|
|
17044
17341
|
--db-tooltip-link-text-hover: #0e538b; /* blue700 */
|
|
17045
|
-
--db-tooltip-link-text-
|
|
17342
|
+
--db-tooltip-link-text-active: #04355d; /* blue800 */
|
|
17046
17343
|
|
|
17047
17344
|
/* Elevation */
|
|
17048
17345
|
/* v2 elevation tokens are theme-invariant, so --db-elevation-med would keep the light shadow here.
|
|
@@ -17050,32 +17347,3 @@ span.du-bois-dark-typography-ellipsis-single-line {
|
|
|
17050
17347
|
--db-tooltip-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.61);
|
|
17051
17348
|
}
|
|
17052
17349
|
|
|
17053
|
-
/* Declared under the theme classes too (not just :root) so the var() chain re-resolves inside a
|
|
17054
|
-
* `.du-bois-dark` subtree instead of freezing at the light values. */
|
|
17055
|
-
:where(.du-bois-dark) {
|
|
17056
|
-
/* Shape */
|
|
17057
|
-
--db-progress-border-radius: var(--db-shape-pill);
|
|
17058
|
-
|
|
17059
|
-
/* Color */
|
|
17060
|
-
--db-progress-track: var(--db-color-progress-track);
|
|
17061
|
-
--db-progress-fill: var(--db-color-progress-fill);
|
|
17062
|
-
|
|
17063
|
-
/* Density */
|
|
17064
|
-
--db-progress-size: var(--db-size-2);
|
|
17065
|
-
|
|
17066
|
-
/* Motion */
|
|
17067
|
-
/* No v2 motion token holds this duration. TODO(FEINF-6505): adopt a v2 motion token when one is added. */
|
|
17068
|
-
--db-progress-transition-duration: 300ms;
|
|
17069
|
-
}
|
|
17070
|
-
|
|
17071
|
-
:where(.du-bois-dark) {
|
|
17072
|
-
/* Color */
|
|
17073
|
-
/* No v2 token holds tertiary action-text states yet. TODO(FEINF-6505): adopt a v2 token when one lands. */
|
|
17074
|
-
--db-overflow-trigger-text: var(--db-color-action-tertiary-text-default);
|
|
17075
|
-
--db-overflow-trigger-text-hover: var(--db-color-action-tertiary-text-hover);
|
|
17076
|
-
--db-overflow-trigger-text-press: var(--db-color-action-tertiary-text-press);
|
|
17077
|
-
|
|
17078
|
-
/* Density */
|
|
17079
|
-
--db-overflow-spacing: var(--db-space-2);
|
|
17080
|
-
--db-overflow-menu-spacing: var(--db-space-1);
|
|
17081
|
-
}
|