Every variable is read with a fallback and never declared by the component, so it inherits like any other custom property:
set one on :root (or in a [bit-theme] block) to restyle every instance, on any ancestor to restyle the ones inside it,
or on the Style of one instance to restyle it - and any instance nested inside it, which inherits the value too; a parameter changes one alone,
as does the real CSS property on the instance's Style / Styles when that property does not inherit (opacity: 1 keeps
one disabled instance undimmed without undimming a disabled one inside it), while an inherited one such as color or
font-family also reaches the nested instances that do not set it themselves. Leave a variable unset and the component
falls back to the theme token beside it.
| Name |
Default value |
Description |
|---|
| --bit-DropMenu-color |
--bit-clr-fg-pri |
Text and icon color of the button at rest. The Color parameter wins over it. Shared by the three variants: --bit-DropMenu-fill-color, --bit-DropMenu-outline-color and --bit-DropMenu-text-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-background |
--bit-clr-bg-pri (transparent for Outline, Text and Transparent) |
Background of the button at rest. The Color parameter wins over it where the look paints one; the transparent background of Outline, Text and Transparent is its alone. Shared by the three variants: --bit-DropMenu-fill-background, --bit-DropMenu-outline-background and --bit-DropMenu-text-background are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-border-color |
Per Variant |
Border color of the button, in every state. The Color parameter wins over it where the look paints the border with the Color. Shared by the three variants: --bit-DropMenu-fill-border-color, --bit-DropMenu-outline-border-color and --bit-DropMenu-text-border-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-hover-border-color |
--bit-DropMenu-border-color, or per Variant |
Border color of the button on hover. Shared by the three variants: --bit-DropMenu-fill-hover-border-color, --bit-DropMenu-outline-hover-border-color and --bit-DropMenu-text-hover-border-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-active-border-color |
--bit-DropMenu-border-color, or per Variant |
Border color of the button while pressed or open. Shared by the three variants: --bit-DropMenu-fill-active-border-color, --bit-DropMenu-outline-active-border-color and --bit-DropMenu-text-active-border-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-border-width |
--bit-shp-brd-width |
Border thickness of the button. |
| --bit-DropMenu-radius |
--bit-shp-radius-button |
Corner radius of the button, followed by its focus ring. |
| --bit-DropMenu-hover-color |
--bit-clr-fg-pri |
Text and icon color on hover. The Color parameter wins over it. Shared by the three variants: --bit-DropMenu-fill-hover-color, --bit-DropMenu-outline-hover-color and --bit-DropMenu-text-hover-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-hover-background |
--bit-clr-bg-pri-hover |
Background on hover. The Color parameter wins over it. Shared by the three variants: --bit-DropMenu-fill-hover-background, --bit-DropMenu-outline-hover-background and --bit-DropMenu-text-hover-background are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-active-color |
--bit-clr-fg-pri |
Text and icon color while pressed or while the callout is open. The Color parameter wins over it. Shared by the three variants: --bit-DropMenu-fill-active-color, --bit-DropMenu-outline-active-color and --bit-DropMenu-text-active-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-active-background |
--bit-clr-bg-pri-active |
Background while pressed or while the callout is open. The Color parameter wins over it. Shared by the three variants: --bit-DropMenu-fill-active-background, --bit-DropMenu-outline-active-background and --bit-DropMenu-text-active-background are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-disabled-color |
--bit-clr-fg-dis |
Text and icon color when disabled or loading. The Color parameter wins over it. Shared by the three variants: --bit-DropMenu-fill-disabled-color, --bit-DropMenu-outline-disabled-color and --bit-DropMenu-text-disabled-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-disabled-background |
--bit-clr-bg-pri (transparent for Outline, Text and Transparent) |
Background when disabled or loading. The Color parameter wins over it where the look paints one. Shared by the three variants: --bit-DropMenu-fill-disabled-background, --bit-DropMenu-outline-disabled-background and --bit-DropMenu-text-disabled-background are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-disabled-border-color |
Per Variant |
Border color when disabled or loading. Shared by the three variants: --bit-DropMenu-fill-disabled-border-color, --bit-DropMenu-outline-disabled-border-color and --bit-DropMenu-text-disabled-border-color are read ahead of it; a drop menu with no Variant reads it alone. |
| --bit-DropMenu-fill-color |
--bit-DropMenu-color |
Text and icon color of the button at rest of a Fill drop menu alone, read ahead of --bit-DropMenu-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-background |
--bit-DropMenu-background |
Background of the button at rest of a Fill drop menu alone, read ahead of --bit-DropMenu-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-border-color |
--bit-DropMenu-border-color |
Border color of the button, in every state, of a Fill drop menu alone, read ahead of --bit-DropMenu-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-hover-color |
--bit-DropMenu-hover-color |
Text and icon color on hover of a Fill drop menu alone, read ahead of --bit-DropMenu-hover-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-hover-background |
--bit-DropMenu-hover-background |
Background on hover of a Fill drop menu alone, read ahead of --bit-DropMenu-hover-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-hover-border-color |
--bit-DropMenu-hover-border-color |
Border color on hover of a Fill drop menu alone, read ahead of --bit-DropMenu-hover-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-active-color |
--bit-DropMenu-active-color |
Text and icon color while pressed or open of a Fill drop menu alone, read ahead of --bit-DropMenu-active-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-active-background |
--bit-DropMenu-active-background |
Background while pressed or open of a Fill drop menu alone, read ahead of --bit-DropMenu-active-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-active-border-color |
--bit-DropMenu-active-border-color |
Border color while pressed or open of a Fill drop menu alone, read ahead of --bit-DropMenu-active-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-disabled-color |
--bit-DropMenu-disabled-color |
Text and icon color when disabled or loading of a Fill drop menu alone, read ahead of --bit-DropMenu-disabled-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-disabled-background |
--bit-DropMenu-disabled-background |
Background when disabled or loading of a Fill drop menu alone, read ahead of --bit-DropMenu-disabled-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-fill-disabled-border-color |
--bit-DropMenu-disabled-border-color |
Border color when disabled or loading of a Fill drop menu alone, read ahead of --bit-DropMenu-disabled-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-color |
--bit-DropMenu-color |
Text and icon color of the button at rest of an Outline drop menu alone, read ahead of --bit-DropMenu-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-background |
--bit-DropMenu-background |
Background of the button at rest of an Outline drop menu alone, read ahead of --bit-DropMenu-background so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-outline-border-color |
--bit-DropMenu-border-color |
Border color of the button, in every state, of an Outline drop menu alone, read ahead of --bit-DropMenu-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-hover-color |
--bit-DropMenu-hover-color |
Text and icon color on hover of an Outline drop menu alone, read ahead of --bit-DropMenu-hover-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-hover-background |
--bit-DropMenu-hover-background |
Background on hover of an Outline drop menu alone, read ahead of --bit-DropMenu-hover-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-hover-border-color |
--bit-DropMenu-hover-border-color |
Border color on hover of an Outline drop menu alone, read ahead of --bit-DropMenu-hover-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-active-color |
--bit-DropMenu-active-color |
Text and icon color while pressed or open of an Outline drop menu alone, read ahead of --bit-DropMenu-active-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-active-background |
--bit-DropMenu-active-background |
Background while pressed or open of an Outline drop menu alone, read ahead of --bit-DropMenu-active-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-active-border-color |
--bit-DropMenu-active-border-color |
Border color while pressed or open of an Outline drop menu alone, read ahead of --bit-DropMenu-active-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-disabled-color |
--bit-DropMenu-disabled-color |
Text and icon color when disabled or loading of an Outline drop menu alone, read ahead of --bit-DropMenu-disabled-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-outline-disabled-background |
--bit-DropMenu-disabled-background |
Background when disabled or loading of an Outline drop menu alone, read ahead of --bit-DropMenu-disabled-background so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-outline-disabled-border-color |
--bit-DropMenu-disabled-border-color |
Border color when disabled or loading of an Outline drop menu alone, read ahead of --bit-DropMenu-disabled-border-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-text-color |
--bit-DropMenu-color |
Text and icon color of the button at rest of a Text drop menu alone, read ahead of --bit-DropMenu-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-text-background |
--bit-DropMenu-background |
Background of the button at rest of a Text drop menu alone, read ahead of --bit-DropMenu-background so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-text-border-color |
--bit-DropMenu-border-color |
Border color of the button, in every state, of a Text drop menu alone, read ahead of --bit-DropMenu-border-color so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-text-hover-color |
--bit-DropMenu-hover-color |
Text and icon color on hover of a Text drop menu alone, read ahead of --bit-DropMenu-hover-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-text-hover-background |
--bit-DropMenu-hover-background |
Background on hover of a Text drop menu alone, read ahead of --bit-DropMenu-hover-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-text-hover-border-color |
--bit-DropMenu-hover-border-color |
Border color on hover of a Text drop menu alone, read ahead of --bit-DropMenu-hover-border-color so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-text-active-color |
--bit-DropMenu-active-color |
Text and icon color while pressed or open of a Text drop menu alone, read ahead of --bit-DropMenu-active-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-text-active-background |
--bit-DropMenu-active-background |
Background while pressed or open of a Text drop menu alone, read ahead of --bit-DropMenu-active-background so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-text-active-border-color |
--bit-DropMenu-active-border-color |
Border color while pressed or open of a Text drop menu alone, read ahead of --bit-DropMenu-active-border-color so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-text-disabled-color |
--bit-DropMenu-disabled-color |
Text and icon color when disabled or loading of a Text drop menu alone, read ahead of --bit-DropMenu-disabled-color so a theme can set this variant apart from the other two. The Color parameter wins over it. |
| --bit-DropMenu-text-disabled-background |
--bit-DropMenu-disabled-background |
Background when disabled or loading of a Text drop menu alone, read ahead of --bit-DropMenu-disabled-background so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-text-disabled-border-color |
--bit-DropMenu-disabled-border-color |
Border color when disabled or loading of a Text drop menu alone, read ahead of --bit-DropMenu-disabled-border-color so a theme can set this variant apart from the other two. The Color parameter leaves it alone. |
| --bit-DropMenu-focus-color |
--bit-clr-pri-focus |
Focus ring color of the button. The Color parameter wins over it. While it is unset, the focus ring is the library's own --bit-shd-focus-ring, so replacing that token re-shapes it too. |
| --bit-DropMenu-min-height |
--bit-siz-ctrl-md |
Smallest height of the button, and the width of one that holds only an icon. The Size parameter wins over it. |
| --bit-DropMenu-padding |
--bit-siz-ctrl-pad-y-md --bit-siz-ctrl-pad-x-md |
Padding of the button. The Size parameter wins over it. |
| --bit-DropMenu-gap |
spacing(1) |
Room between the icon, the text and the chevron. |
| --bit-DropMenu-font-size |
--bit-tpg-fs-sm |
Text size of the button. The Size parameter wins over it. |
| --bit-DropMenu-font-weight |
--bit-tpg-font-weight |
Text weight of the button. |
| --bit-DropMenu-icon-size |
--bit-siz-icon-md |
Size of the icon, the chevron and the spinner. The Size parameter wins over it. |
| --bit-DropMenu-spinner-color |
The button's own text color |
The moving arc of the loading spinner. |
| --bit-DropMenu-spinner-track-color |
The text color at 25% |
The ring the spinner's arc travels on. |
| --bit-DropMenu-callout-background |
--bit-clr-bg-pri, or the Background kind |
Background of the callout. The Background parameter wins over it. |
| --bit-DropMenu-callout-color |
--bit-clr-fg-pri |
Text color of the callout. |
| --bit-DropMenu-callout-border-color |
None, or the Border kind |
Border color of the callout. The Border parameter wins over it. |
| --bit-DropMenu-callout-border-width |
0, or --bit-shp-brd-width with Border |
Border thickness of the callout. |
| --bit-DropMenu-callout-radius |
--bit-shp-radius-popup |
Corner radius of the callout. |
| --bit-DropMenu-callout-shadow |
--bit-shd-popup |
Elevation of the callout. |
| --bit-DropMenu-callout-padding |
0 |
Padding around the content of the callout. |
| --bit-DropMenu-callout-width |
auto (the Width parameter) |
Width of the callout. |
| --bit-DropMenu-callout-min-width |
auto (the MinWidth parameter) |
Narrowest the callout gets. |
| --bit-DropMenu-callout-max-width |
none (the MaxWidth parameter) |
Widest the callout gets. |
| --bit-DropMenu-callout-max-height |
The MaxHeight parameter |
Tallest the callout grows before it scrolls; only read when MaxHeight is set. |
| --bit-DropMenu-overlay-background |
transparent |
The layer behind an open callout. |