{"title":"Labeled value styling reference","slug":"pos-labeled-value-styling-reference","url":"https://support.storeconnect.com/articles/pos-labeled-value-styling-reference","url_markdown":"https://support.storeconnect.com/articles/pos-labeled-value-styling-reference.md","subtitle":null,"summary":"Every part, attribute, and component property for restyling the POS\u0026#39;s labeled values with CSS, the label above a value on record screens, product fields, and totals, and the notes under an item in the cart, with tested examples such as darker labels or bolder values, and the list of what can\u0026#39;t be styled yet.","type":"Developer_Documentation","video_url":"","keywords":"pos labeled value css, pos record details css, pos field label css, labeled-value-root, labeled-value-label, labeled-value-value, labeled-value-icon, labeled-value-badge, data-size, --sc-labeled-value-copy-icon-fill, pos styling api, pos parts","last_modified":"2026-11-26T05:52:23+0000","body_markdown":"A labeled value is a label with a value under it on a POS screen, such as **Order total** above\nthe amount. Some labeled values have no label, such as the notes under an item in the cart. A badge,\nloading dots, or an icon can appear before the value. You can change the color, size, and weight\nof labels and values, the icons and badges before a value, etc. Follow the [POS styling API](pos-styling-api#rules) rules when you\nstyle labeled values.\n\n## Where a labeled value appears\n\nLabeled values appear in these places:\n\n- The details on record screens, such as the total, reference, and customer on an order\n- The fields on a product screen\n- The totals at checkout and in the cart\n- The details of a fulfillment, a stock adjustment, and a stock request\n- The notes under an item in the cart or on an order, such as a status that needs attention or an\n  order being prepared. These notes have no label.\n\nSome notes have a color for their status, such as red for an alert. A color you set on\n`labeled-value-root` replaces the status color. Each note under an item is also named\n`item-details-caption`. To style the notes of one status, narrow `item-details-caption` by the\nstatus, as set out in the [item details styling reference](pos-item-details-styling-reference). To\nstyle the loading dots beside a status, see the\n[loading dots styling reference](pos-loading-dots-styling-reference).\n\n## Parts\n\n| Part | What it is | Available from |\n| --- | --- | --- |\n| `labeled-value-root` | The whole labeled value: the label above the value, or the value alone. | v22.0.17 |\n| `labeled-value-label` | The label above the value, when there is one. | v22.0.17 |\n| `labeled-value-value` | The value's row: the text, with the badge, loading dots, icon, or tag beside it when there is one. The text takes the row's type and color. | v22.0.17 |\n| `labeled-value-icon` | The icon before the value's text, when there is one. | v22.0.17 |\n| `labeled-value-badge` | The badge before the value's text, when there is one. It is a badge, so style it with the badge properties. | v22.0.17 |\n\nThe **Available from** column shows the first release that carries the name.\n\n## Attributes\n\nNarrow `labeled-value-root` by this, inside `:where()`, to style one size of labeled value.\n\n| Attribute | Values | Default | Available from |\n| --- | --- | --- | --- |\n| `data-size` | `small`, `medium`, `large` | `medium` | v22.0.17 |\n\nEach size has a different type for the label and the value. A value with no label has smaller type\nthan a value with a label. A type you set on `labeled-value-label` or `labeled-value-value`\napplies at every size, so narrow by `data-size` to change one size only.\n\n## Component properties\n\nSet these on `labeled-value-root` or on `:root`. Both apply only to a labeled value with a copy\nbutton, which no screen shows yet.\n\n| Property | What it sets | Default | Available from |\n| --- | --- | --- | --- |\n| `--sc-labeled-value-max-width` | The widest a labeled value with a copy button grows, so the value truncates beside the button. | 200px | v22.0.17 |\n| `--sc-labeled-value-copy-icon-fill` | The color of the copy button's icon. | rgb(var(--sc-color-layer-dark) / 60%) | v22.0.17 |\n\n## Examples\n\nEach example is tested against the POS on every change.\n\n**\"Make the labels darker.\"**\n\n```css\n\n[part~='labeled-value-label'] {\n  opacity: 1;\n  color: #334155;\n}\n```\n\n**\"Make the values bolder.\"**\n\n```css\n\n[part~='labeled-value-value'] {\n  font-weight: 700;\n}\n```\n\n**\"Make the large values bigger, and leave the rest.\"** Narrow by the size:\n\n```css\n\n[part~='labeled-value-root']:where([data-size='large']) [part~='labeled-value-value'] {\n  font-size: 22px;\n  line-height: 28px;\n}\n```\n\n**\"Color the icons and badges in the notes under an item.\"**\n\n```css\n\n[part~='labeled-value-icon'] {\n  color: #b42318;\n}\n\n[part~='labeled-value-badge'] {\n  --sc-badge-bg: #b42318;\n  --sc-badge-color: #ffffff;\n}\n```\n\n## What can't be styled yet\n\n- One labeled value on its own, such as an order's total: only the notes under an item have a\n  name, `item-details-caption`\n- One status color of the notes under an item, such as the alert notes, apart from the others,\n  through `labeled-value-root`: narrow `item-details-caption` by the theme instead, on the\n  [item details styling reference](pos-item-details-styling-reference)\n- A value with no label, such as a note under an item, apart from one with a label: a rule on\n  `labeled-value-value` reaches both\n- The value's text apart from the row around it, such as the text color without the icon's: the\n  icon has its own part, but the text has none\n- The copy button and its tooltip, apart from the two properties above\n- What a screen puts in the value or beside it, such as a tag or the struck-through price on an\n  item with a discount\n\n## Retired\n\nNone yet."}