Skip to content
Log in

Chip styling reference

On this page

Chips are the small labels on a POS screen that show which filters are applied to a list, or which coupon is applied to the cart. You can change chip colors, borders, corners, text, the color of the cross that operators tap to remove a filter, etc. Follow the POS styling API rules when you style chips.

Where a chip appears

Chips appear in these places:

  • The filters applied to a list of records
  • A coupon applied to the cart
  • The status filters applied to a station’s list of tickets
  • The categories listed on a station’s screen, which only show a value

Parts

Part What it is Available from
chip-root The whole chip, with the fill, border, and corners. v22.0.15
chip-dismiss-icon The cross at the end of a chip that can be dismissed. v22.0.15
chip-chevron The chevron at the end of a chip that opens something. Not used on any screen yet. v22.0.15

The Available from column shows the first release that carries the name.

Attributes

Narrow chip-root by this, inside :where(), to style one theme of chip.

Attribute Values Default Available from
data-theme primary, default, subtle default v22.0.15
  • primary — the primary soft fill, for a chip that is picked or applied, such as an applied filter
  • default — a white fill with a hairline border
  • subtle — a quiet inset fill with no border

Component properties

None yet. Style the parts directly.

Examples

Each example is tested against the POS on every change.

“Give the picked chips our brand color.”

```css

background-color: #0b5394; color: #ffffff; } ```

“Make the chips’ corners squarer.”

```css

part~=’chip-root’ { border-radius: 6px; } ```

“Give the plain chips a darker border.”

```css

border-color: #9aa5b1; } ```

“Make the chips’ text bolder.”

```css

part~=’chip-root’ { font-weight: 700; } ```

“Color the cross on a chip that can be dismissed.”

```css

[part~=’chip-dismiss-icon’] { color: #b42318; } ```

What can’t be styled yet

  • One chip on its own, such as one filter, since no chip has a name yet
  • A chip while it’s hovered, apart from the other states: a fill you set on a chip also replaces the fill it takes while hovered
  • A chip that can be pressed, apart from one that only shows a value
  • How chips are laid out in a list

Retired

None yet.

Was this article helpful?

Was this article helpful?