{"title":"Banner styling reference","slug":"pos-banner-styling-reference","url":"https://support.storeconnect.com/articles/pos-banner-styling-reference","url_markdown":"https://support.storeconnect.com/articles/pos-banner-styling-reference.md","subtitle":null,"summary":"Every part, attribute, and component property for restyling the POS\u0026#39;s banners with CSS, the rows that show a message inline, such as a payment error at checkout or a notice in the cart, with tested examples such as coloring the banners that need attention or rounding their corners, and the list of what can\u0026#39;t be styled yet.","type":"Developer_Documentation","video_url":"","keywords":"pos banner css, pos notice css, payment error banner css, banner-root, banner-icon, banner-message, banner-dismiss, banner-action, data-theme, --sc-banner-font-size, --sc-banner-action-font-size, pos styling api, pos parts","last_modified":"2026-11-26T05:52:23+0000","body_markdown":"Banners are the messages shown in a row on a POS screen, such as a payment error at checkout or a\nnotice in the cart. Each banner starts with an icon, and some have a button that operators tap to\nretry an action or close the banner. You can change banner colors, corners, text size, the color\nof the icon, etc. Follow the [POS styling API](pos-styling-api#rules) rules when you style banners.\n\n## Where a banner appears\n\nBanners appear on many POS screens. For example:\n\n- Messages from a payment terminal, and payment errors at checkout\n- Notices in the cart, such as a delivery whose details have changed\n- Notices on settings screens, and in dialogs opened from the navigation\n- Whether a station is available\n- The notice on the shift screen that the register must be connected to end a shift\n\n## Parts\n\n| Part | What it is | Available from |\n| --- | --- | --- |\n| `banner-root` | The whole banner, with the fill, border, and type. | v22.0.17 |\n| `banner-icon` | The icon at the start of the banner, or the spinner while it loads. | v22.0.17 |\n| `banner-message` | The banner's message. | v22.0.17 |\n| `banner-dismiss` | The round button at the corner that dismisses the banner. | v22.0.17 |\n| `banner-action` | The button at the end that takes the banner's action, such as Retry. | v22.0.17 |\n\nThe **Available from** column shows the first release that carries the name.\n\n## Attributes\n\nNarrow `banner-root` by this, inside `:where()`, to style one theme of banner.\n\n| Attribute | Values | Default | Available from |\n| --- | --- | --- | --- |\n| `data-theme` | `brand`, `notify`, `warning`, `neutral`, `alert` | `brand` | v22.0.17 |\n\n- `brand`: the primary soft fill, for most messages.\n- `notify`: the soft error fill, for something that needs attention, such as a payment that was\n  cancelled.\n- `warning`: the same colors as `notify`.\n- `neutral`: a raised fill with a hairline border.\n- `alert`: no fill or border, so the screen behind shows through. Used only on the notice on the\n  shift screen.\n\n## Component properties\n\nSet these on `banner-root` or on `:root`. The text size you set doesn't apply to these four\nbanners, which have a fixed text size:\n\n- The error on the options screen for a rental\n- The rental error on the screen for a fulfillment\n- The error under the barcode scanner\n- The notice in the Square manual payment dialog\n\n| Property | What it sets | Default | Available from |\n| --- | --- | --- | --- |\n| `--sc-banner-font-size` | The size of the text. | var(--sc-type-body-medium-size) | v22.0.17 |\n| `--sc-banner-font-weight` | The weight of the text. | var(--sc-type-body-medium-weight) | v22.0.17 |\n| `--sc-banner-line-height` | The line height of the text. | var(--sc-type-body-medium-line-height) | v22.0.17 |\n| `--sc-banner-action-font-size` | The size of the action button's text. | var(--sc-type-label-large-size) | v22.0.17 |\n| `--sc-banner-action-font-weight` | The weight of the action button's text. | var(--sc-type-label-large-weight-em) | v22.0.17 |\n| `--sc-banner-action-line-height` | The line height of the action button's text. | var(--sc-type-label-large-line-height) | v22.0.17 |\n\n## Examples\n\nEach example is tested against the POS on every change.\n\n**\"Make the banners that need attention our brand red.\"**\n\n```css\n\n[part~='banner-root']:where([data-theme='notify']),\n[part~='banner-root']:where([data-theme='warning']) {\n  background-color: #b42318;\n  border-color: #b42318;\n  color: #ffffff;\n}\n```\n\n**\"Make the banners' text bigger.\"**\n\n```css\n\n[part~='banner-root'] {\n  --sc-banner-font-size: 17px;\n  --sc-banner-line-height: 24px;\n}\n```\n\n**\"Round the banners' corners.\"**\n\n```css\n\n[part~='banner-root'] {\n  border-radius: 12px;\n}\n```\n\n**\"Give the Retry buttons our brand color.\"**\n\n```css\n\n[part~='banner-action'] {\n  background-color: #0b5394;\n  color: #ffffff;\n}\n```\n\n**\"Color the icon at the start of each banner.\"**\n\n```css\n\n[part~='banner-icon'] {\n  color: #0b5394;\n}\n```\n\n## What can't be styled yet\n\n- One banner on its own, such as the shift screen's notice, since no banner has a name yet\n- A banner that can be pressed, apart from one that can't\n- The action and dismiss buttons while they're hovered, apart from the other states: a fill you\n  set on them also replaces the fill they take while hovered\n- What a few screens put inside a banner beside or instead of a message, such as the countdown on\n  a rental hold in the cart and the error on a rental's options screen\n\n## Retired\n\nNone yet."}