---
title: "Labeled value styling reference"
source: https://support.storeconnect.com/articles/pos-labeled-value-styling-reference
type: article
format: markdown
site: StoreConnect Support — product and developer documentation for StoreConnect
site_index: https://storeconnect.com/llms.txt
docs_index: https://support.storeconnect.com/llms.txt
note: Append .md to any page or article URL on this site to get its Markdown form.
---
# Labeled value styling reference

A labeled value is a label with a value under it on a POS screen, such as **Order total** above
the amount. Some labeled values have no label, such as the notes under an item in the cart. A badge,
loading dots, or an icon can appear before the value. You can change the color, size, and weight
of labels and values, the icons and badges before a value, etc. Follow the [POS styling API](pos-styling-api#rules) rules when you
style labeled values.

## Where a labeled value appears

Labeled values appear in these places:

- The details on record screens, such as the total, reference, and customer on an order
- The fields on a product screen
- The totals at checkout and in the cart
- The details of a fulfillment, a stock adjustment, and a stock request
- The notes under an item in the cart or on an order, such as a status that needs attention or an
  order being prepared. These notes have no label.

Some notes have a color for their status, such as red for an alert. A color you set on
`labeled-value-root` replaces the status color. Each note under an item is also named
`item-details-caption`. To style the notes of one status, narrow `item-details-caption` by the
status, as set out in the [item details styling reference](pos-item-details-styling-reference). To
style the loading dots beside a status, see the
[loading dots styling reference](pos-loading-dots-styling-reference).

## Parts

| Part | What it is | Available from |
| --- | --- | --- |
| `labeled-value-root` | The whole labeled value: the label above the value, or the value alone. | v22.0.17 |
| `labeled-value-label` | The label above the value, when there is one. | v22.0.17 |
| `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 |
| `labeled-value-icon` | The icon before the value's text, when there is one. | v22.0.17 |
| `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 |

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

## Attributes

Narrow `labeled-value-root` by this, inside `:where()`, to style one size of labeled value.

| Attribute | Values | Default | Available from |
| --- | --- | --- | --- |
| `data-size` | `small`, `medium`, `large` | `medium` | v22.0.17 |

Each size has a different type for the label and the value. A value with no label has smaller type
than a value with a label. A type you set on `labeled-value-label` or `labeled-value-value`
applies at every size, so narrow by `data-size` to change one size only.

## Component properties

Set these on `labeled-value-root` or on `:root`. Both apply only to a labeled value with a copy
button, which no screen shows yet.

| Property | What it sets | Default | Available from |
| --- | --- | --- | --- |
| `--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 |
| `--sc-labeled-value-copy-icon-fill` | The color of the copy button's icon. | rgb(var(--sc-color-layer-dark) / 60%) | v22.0.17 |

## Examples

Each example is tested against the POS on every change.

**"Make the labels darker."**

```css

[part~='labeled-value-label'] {
  opacity: 1;
  color: #334155;
}
```

**"Make the values bolder."**

```css

[part~='labeled-value-value'] {
  font-weight: 700;
}
```

**"Make the large values bigger, and leave the rest."** Narrow by the size:

```css

[part~='labeled-value-root']:where([data-size='large']) [part~='labeled-value-value'] {
  font-size: 22px;
  line-height: 28px;
}
```

**"Color the icons and badges in the notes under an item."**

```css

[part~='labeled-value-icon'] {
  color: #b42318;
}

[part~='labeled-value-badge'] {
  --sc-badge-bg: #b42318;
  --sc-badge-color: #ffffff;
}
```

## What can't be styled yet

- One labeled value on its own, such as an order's total: only the notes under an item have a
  name, `item-details-caption`
- One status color of the notes under an item, such as the alert notes, apart from the others,
  through `labeled-value-root`: narrow `item-details-caption` by the theme instead, on the
  [item details styling reference](pos-item-details-styling-reference)
- A value with no label, such as a note under an item, apart from one with a label: a rule on
  `labeled-value-value` reaches both
- The value's text apart from the row around it, such as the text color without the icon's: the
  icon has its own part, but the text has none
- The copy button and its tooltip, apart from the two properties above
- What a screen puts in the value or beside it, such as a tag or the struck-through price on an
  item with a discount

## Retired

None yet.

---

## Follow StoreConnect

- [Email Newsletter](https://storeconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://storeconnect.com/partners)
- [Become a Partner](https://storeconnect.com/become-a-partner)
- [News](https://storeconnect.com/articles/news)
- [Events](https://storeconnect.com/articles/events)
- [Feature Comparison](https://storeconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://storeconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

## Machine-readable

- [Site index for agents](https://storeconnect.com/llms.txt): curated map of the StoreConnect site in llms.txt format
- [Documentation index for agents](https://support.storeconnect.com/llms.txt): full technical and product documentation map

Every page and article on this site has a Markdown rendering: append `.md` to its URL.

Continue in Markdown: [Help documentation](https://support.storeconnect.com/help-documentation.md) · [Developer reference](https://support.storeconnect.com/developer-reference.md) · [Videos & tutorials](https://support.storeconnect.com/videos-tutorials.md) · [Release notes](https://support.storeconnect.com/release-notes.md)

---

StoreConnect Support — https://support.storeconnect.com/articles/pos-labeled-value-styling-reference