{"title":"Tag styling reference","slug":"pos-tag-styling-reference","url":"https://support.storeconnect.com/articles/pos-tag-styling-reference","url_markdown":"https://support.storeconnect.com/articles/pos-tag-styling-reference.md","subtitle":null,"summary":"Every part, attribute, and property for restyling the POS\u0026#39;s tags with CSS, the small labels that show a status or a fact, such as an order\u0026#39;s status or a product\u0026#39;s stock, with tested examples such as giving the brand tags your brand color, and the list of what can\u0026#39;t be styled yet.","type":"Developer_Documentation","video_url":"","keywords":"pos tag css, pos status tag css, pos label css, order status tag css, stock tag css, tag-root, tag-icon, data-size, data-variant, data-theme, pos styling api, pos parts","last_modified":"2026-12-01T05:42:51+0000","body_markdown":"Tags are the small labels on a POS screen that show operators a status or a detail, such as an order's status, a product's stock, or **Partly paid** on an item on an order. Operators can read tags but can't tap them. You can change tag colors, borders, corners, text size, icon size, etc. Follow the [POS styling API](pos-styling-api#rules) rules when you style tags.\n\n## Where a tag appears\n\nTags appear on many POS screens. For example:\n\n- The status of an order, and the status of each payment on the order\n- The status of a fulfillment\n- A product's stock, such as **In stock** or **Not tracked**\n- A price adjustment on an item in the cart\n- **Partly paid** on an item on an order\n- The tag on a product card\n- **Default** beside the default printer in the **Hardware** settings\n- **Degraded**, **Disabled**, or **Offline** on a fulfillment station\n- A record's tag fields, in the record's row, card, and page\n\n## Parts\n\n| Part | What it is | Available from |\n| --- | --- | --- |\n| `tag-root` | The whole tag: the fill, border, corners, and text. | v22.0.19 |\n| `tag-icon` | The icon before the text, on a tag that shows one. | v22.0.19 |\n\nThe **Available from** column shows the first release that carries the name.\n\n## Attributes\n\nTo style one kind of tag, narrow `tag-root` by one of these attributes, inside `:where()`.\n\n| Attribute | Values | Default | Available from |\n| --- | --- | --- | --- |\n| `data-size` | `small`, `medium`, `large` | `medium` | v22.0.19 |\n| `data-variant` | `filled`, `text`, `outlined` | `filled` | v22.0.19 |\n| `data-theme` | `alert`, `brand`, `inverse`, `neutral`, `notify`, `success` | `brand` | v22.0.19 |\n\nThe values of `data-size` and `data-theme` are always lowercase, so match them in lowercase.\n\n`data-variant` sets how a tag looks:\n\n- `filled`: a fill in the theme's color.\n- `text`: plain text with no fill and no border, in the color of the text around the tag.\n- `outlined`: a dashed border around a softer fill.\n\n`data-theme` sets what a tag means, and so the tag colors:\n\n- `brand`: a soft fill in the primary color. An outlined brand tag has a primary border.\n- `neutral`: a quiet surface fill. An outlined neutral tag has a gray border.\n- `alert`: the error color, for something that needs attention, such as a price adjustment. An outlined alert tag has a soft fill with red text.\n- `notify`: the same as `alert` on a filled tag.\n- `success`: a soft green fill.\n- `inverse`: a dark fill with light text.\n\nOnly the `brand`, `neutral`, and `alert` themes have colors for an outlined tag. An outlined tag with another theme has a dashed border and none of the theme colors.\n\n## Component properties\n\nSet these on `tag-root` to change every tag. The small, medium, and large sizes each have separate text properties, and a large tag has separate padding, corner, and icon properties, so set the property for the size you want to change.\n\nA filled or outlined tag uses the theme colors, so `--sc-tag-color`, `--sc-tag-bg`, and `--sc-tag-border-color` apply only to a tag whose theme sets no color. To color a themed tag, style `tag-root` directly, narrowed by `data-theme`.\n\n| Property | What it sets | Default | Available from |\n| --- | --- | --- | --- |\n| `--sc-tag-gap` | The space between the icon and the text. | `3px` | v22.0.19 |\n| `--sc-tag-color` | The text and icon color, on a tag whose theme sets none: a text tag, or an outlined tag with the `inverse`, `notify`, or `success` theme. | `inherit` | v22.0.19 |\n| `--sc-tag-bg` | The fill, on a tag whose theme sets none: a text tag, or an outlined tag with the `inverse`, `notify`, or `success` theme. | `transparent` | v22.0.19 |\n| `--sc-tag-border-width` | The width of the border, on every tag except a filled brand tag. | `1px` | v22.0.19 |\n| `--sc-tag-border-style` | The style of the border, on a text tag and on a filled tag other than a brand tag. An outlined tag's border is always dashed. | `solid` | v22.0.19 |\n| `--sc-tag-border-color` | The color of the border, on a tag whose theme sets none: a text tag, a filled tag other than a brand tag, or an outlined tag with the `inverse`, `notify`, or `success` theme. | `transparent` | v22.0.19 |\n| `--sc-tag-padding` | The space inside a small or medium tag, around the text. | `1px 3px` | v22.0.19 |\n| `--sc-tag-border-radius` | How round the corners of a small or medium tag are. | `5px` | v22.0.19 |\n| `--sc-tag-font-size` | The text size of a medium tag. | `var(--sc-type-label-medium-size)` | v22.0.19 |\n| `--sc-tag-font-weight` | The text weight of a medium tag. | `var(--sc-type-label-medium-weight)` | v22.0.19 |\n| `--sc-tag-line-height` | The line height of a medium tag. | `var(--sc-type-label-medium-line-height)` | v22.0.19 |\n| `--sc-tag-icon-size` | The width and height of the icon on a small or medium tag. | `14px` | v22.0.19 |\n| `--sc-tag-icon-stroke` | The stroke width of the icon. | `2` | v22.0.19 |\n| `--sc-tag-small-font-size` | The text size of a small tag. | `var(--sc-type-label-small-size)` | v22.0.19 |\n| `--sc-tag-small-font-weight` | The text weight of a small tag. | `var(--sc-type-label-small-weight)` | v22.0.19 |\n| `--sc-tag-small-line-height` | The line height of a small tag. | `var(--sc-type-label-small-line-height)` | v22.0.19 |\n| `--sc-tag-large-padding` | The space inside a large tag, around the text. | `2px 4px` | v22.0.19 |\n| `--sc-tag-large-border-radius` | How round the corners of a large tag are. | `6px` | v22.0.19 |\n| `--sc-tag-large-font-size` | The text size of a large tag. | `var(--sc-type-label-large-size)` | v22.0.19 |\n| `--sc-tag-large-font-weight` | The text weight of a large tag. | `var(--sc-type-label-large-weight)` | v22.0.19 |\n| `--sc-tag-large-line-height` | The line height of a large tag. | `var(--sc-type-label-large-line-height)` | v22.0.19 |\n| `--sc-tag-large-icon-size` | The width and height of the icon on a large tag. | `16px` | v22.0.19 |\n\n## Examples\n\nEach example is tested against the POS on every change.\n\n**\"Make the tags' corners squarer.\"** A large tag has a separate corner property:\n\n```css\n\n[part~='tag-root'] {\n  --sc-tag-border-radius: 2px;\n  --sc-tag-large-border-radius: 3px;\n}\n```\n\n**\"Give the tags a little more room.\"**\n\n```css\n\n[part~='tag-root'] {\n  --sc-tag-padding: 2px 6px;\n  --sc-tag-large-padding: 3px 8px;\n}\n```\n\n**\"Make the small tags easier to read.\"**\n\n```css\n\n[part~='tag-root'] {\n  --sc-tag-small-font-size: 12px;\n  --sc-tag-small-font-weight: 600;\n}\n```\n\n**\"Make the brand tags our brand color.\"** A themed tag uses the theme colors, so style the part, narrowed by the theme and by how the tag looks:\n\n```css\n\n[part~='tag-root']:where([data-theme='brand']):where([data-variant='filled']) {\n  background-color: #0b5394;\n  color: #ffffff;\n}\n```\n\n**\"Make the alert tags a softer red.\"**\n\n```css\n\n[part~='tag-root']:where([data-theme='alert']):where([data-variant='filled']) {\n  background-color: #d14343;\n}\n```\n\n**\"Give the outlined tags a solid border.\"**\n\n```css\n\n[part~='tag-root']:where([data-variant='outlined']) {\n  border-style: solid;\n}\n```\n\n**\"Color the tags drawn as plain text.\"**\n\n```css\n\n[part~='tag-root']:where([data-variant='text']) {\n  --sc-tag-color: #0b5394;\n}\n```\n\n**\"Make the icons in tags thinner.\"**\n\n```css\n\n[part~='tag-root'] {\n  --sc-tag-icon-stroke: 1.5;\n}\n```\n\n## What can't be styled yet\n\n- One tag alone, such as an order's status or **Default** on a printer, since no tag has a name yet. A tag inside another component, such as a labeled value or an item's details, has no name from that component either.\n- The colors of a filled or outlined tag through the tag properties. These tags use the fill, text color, and border color of the theme, so style `tag-root` for those, narrowed by `data-theme`.\n- The text apart from the icon, since the text has no separate part.\n- A tag with a theme this page doesn't list, such as the **layby** tag on the checkout summary, apart from other tags. That tag still follows `tag-root`.\n- The corners and padding of a fulfillment's status tag through the tag properties, since the fulfillment screens set the corners and padding. Style `tag-root` directly for that tag.\n\n## Retired\n\nNone yet."}