Boolean$chip-disable-everything: false !default;Set to true to disable all the chip styles
Boolean$chip-disable-icon: false !default;Set to true to disable the icon styles within a chip
Boolean$chip-disable-avatar: avatar.$disable-everything !default;Set to true to disable the avatar styles within a chip
Boolean$chip-disable-progress: progress.$disable-everything or progress.$disable-circular !default;Set to true to disable the circular progress styles within a chip
Boolean$chip-disable-content: false !default;Set to true if all Chip components have been updated to enable
disableContentWrap
Boolean$chip-disable-solid-theme: false !default;Set to true if all Chip components will only use theme="outline".
Boolean$chip-disable-solid-raisable: false !default;Set to true if all Chip components will never enable the raisable
prop while the theme="solid".
Boolean$chip-disable-outline-theme: $disable-everything !default;Set to true if all Chip components will never set theme="outline"
Boolean$chip-disable-outline-raisable: false !default;Set to true if all Chip components will never enable the raisable
prop while the theme="outline".
Boolean$chip-disable-left-addon: false !default;Set to true if the leftAddon prop will never be provided to the Chip
component.
Boolean$chip-disable-right-addon: false !default;Set to true if the rightAddon prop will never be provided to the Chip
component.
Boolean$chip-disable-selected-theme: false !default;Set to true if the selectedThemed prop will never be enabled on the
Chip component.
Boolean$chip-disable-selected-icon-transition: false !default;Set to true if the disableIconTransition will always be enabled for the
Chip component
Number$chip-gap: spacing.get-var(md) !default;The gap between items in the Chip.
Number$chip-height: 2rem !default;The default Chip height.
Number$chip-border-radius: border-radius.get-var(lg) !default;The default Chip border radius.
Number$chip-icon-size: 1.125rem !default;The default size for icons that are rendered within a Chip normally as the leftAddon or rightAddon props.
Number$chip-avatar-size: 1.5rem !default;The default size for avatars that are rendered within a Chip normally as the leftAddon or rightAddon props.
Number$chip-progress-size: $icon-size !default;The default size for circular progress components that are rendered within a Chip normally as the leftAddon or rightAddon props.
Number$chip-progress-width: 12 !default;The default progress.$circular-stroke-width to apply to circular progress components rendered within a Chip normally as the leftAddon or
rightAddon props.
Map$chip-typography: map.merge(
typography.$base-font-styles,
typography.$body-2-styles
) !default;The default Chip typography
Number$chip-horizontal-padding: calc(spacing.get-var(md) * 1.25) !default;The default horizontal padding on Chips.
Number$chip-vertical-padding: spacing.get-var(none) !default;The default vertical padding on Chips.
Number$chip-addon-left-padding: spacing.get-var(xs) !default;The amount of padding-left to apply to the Chip if a leftAddon prop was provided.
Number$chip-addon-right-padding: spacing.get-var(sm) !default;The amount of padding-right to apply to the Chip if a rightAddon prop was provided.
Color $chip-theme-background-color: theme.get-swatch(
theme.$primary-color,
300,
false,
color.adjust(theme.$primary-color, $lightness: -20%)
) !default;The background-color to apply when the themed prop is enabled.
Color $chip-theme-color: a11y.contrast-color($theme-background-color) !default;The text color to apply when the themed prop is enabled.
Color $chip-solid-light-background-color: colors.$grey-300 !default;The light theme background color for the theme="solid"
Color $chip-solid-light-disabled-background-color: colors.$grey-100 !default;The light theme background color for the theme="solid" and the Chip is disabled.
Color $chip-solid-light-color: a11y.contrast-color($solid-light-background-color) !default;The light theme text color for the theme="solid"
Color$chip-solid-dark-disabled-background-color: color.adjust(
colors.$grey-900,
$lightness: 2%
) !default;The dark theme background color for the theme="solid" and the Chip is disabled.
Color $chip-solid-dark-color: a11y.contrast-color($solid-dark-background-color) !default;The dark theme text color for the theme="solid"
Color $chip-solid-background-color: theme.get-default-color(
$solid-light-background-color,
$solid-dark-background-color
) !default;The default theme="solid" background-color
Color $chip-solid-disabled-background-color: theme.get-default-color(
$solid-light-disabled-background-color,
$solid-dark-disabled-background-color
) !default;The default theme="solid" disabled background-color
Color $chip-solid-color: theme.get-default-color(
$solid-light-color,
$solid-dark-color
) !default;The default theme="solid" text color
Color$chip-solid-raisable-box-shadow-z-value: 4 !default;A number between 0-24 representing the box-shadow elevation when the user is pressing the Chip with a theme="solid" and raisable.
Number$chip-solid-raisable-transition-duration: transition.$linear-duration !default;The raisable transition duration while theme="solid"
Number$chip-outline-width: calc(interaction.get-var(focus-width) / 2) !default;The outline width when a theme="outline".
Number$chip-outline-raisable-box-shadow-z-value: 8 !default;A number between 0-24 representing the box-shadow elevation when the user is pressing the Chip with a theme="outline" and raisable.
Color $chip-outline-light-color: colors.$grey-300 !default;The box-shadow color to use in light themes when theme="outline"
Color $chip-outline-light-background-color: theme.$light-theme-surface-color !default;The background-color to use in light themes when theme="outline"
Color $chip-outline-light-text-color: a11y.contrast-color(
$outline-light-background-color
) !default;The text color to use in light themes when theme="outline"
Color $chip-outline-dark-color: $outline-light-color !default;The box-shadow color to use in dark themes when theme="outline"
Color $chip-outline-dark-text-color: a11y.contrast-color(
$outline-dark-background-color
) !default;The text color to use in dark themes when theme="outline"
Color $chip-outline-color: theme.get-default-color(
$outline-light-color,
$outline-dark-color
) !default;The box-shadow color to use when theme="outline"
Color $chip-outline-background-color: theme.get-default-color(
$outline-light-background-color,
$outline-dark-background-color
) !default;The background-color to use when theme="outline"
Color $chip-outline-text-color: theme.get-default-color(
$outline-light-text-color,
$outline-dark-text-color
) !default;The text color to use when theme="outline"
Number$chip-outline-raisable-transition-duration: transition.$linear-duration !default;The raisable transition duration while theme="outline"
List$chip-variables: (
gap,
height,
border-radius,
horizontal-padding,
vertical-padding,
solid-background-color,
solid-disabled-background-color,
solid-color,
theme-background-color,
theme-color,
outline-color,
outline-width,
outline-background-color,
outline-text-color
);The available configurable css variables and mostly used internally for the
get-var, set-var, and use-var utils.
mixin@mixin set-var($name, $value) { … }| Name | Description | Type | Default Value |
|---|---|---|---|
$name | The supported variable name | String | — |
$value | The value to set the variable to. Supports | any | — |
mixin@mixin use-var($property, $name: $property, $fallback: null) { … }mixin@mixin use-light-theme { … }Applies the light the variables based on feature flags
mixin@mixin use-dark-theme { … }Applies the dark the variables based on feature flags
mixin@mixin variables { … }Conditionally applies the css variables based on feature flags
mixin@mixin styles($disable-layer: false) { … }Generates all the styles based on feature flags.
| Name | Description | Type | Default Value |
|---|---|---|---|
$disable-layer | Set this to | Boolean | false |
function@function get-var($name, $fallback: null) { … }Stringa var() statement
| Name | Description | Type | Default Value |
|---|---|---|---|
$name | The supported variable name | String | — |
$fallback | An optional fallback value | any | null |