{"title":"Media group styling reference","slug":"pos-media-group-styling-reference","url":"https://support.storeconnect.com/articles/pos-media-group-styling-reference","url_markdown":"https://support.storeconnect.com/articles/pos-media-group-styling-reference.md","subtitle":null,"summary":"Every part, attribute, and component property for restyling the POS\u0026#39;s stacks of thumbnails with CSS, such as the pictures on a cart card, a bundle, or a station ticket, with tested examples such as spreading a tight stack out or taking its shadow off, and the list of what can\u0026#39;t be styled yet.","type":"Developer_Documentation","video_url":"","keywords":"pos media group css, pos thumbnail stack css, bundle thumbnails css, media-group-root, media-group-image, media-group-label, media-group-badge, data-density, --sc-media-group-overlap, --sc-media-group-darken-step, --sc-media-group-item-radius, pos styling api, pos parts","last_modified":"2026-11-26T05:56:56+0000","body_markdown":"A media group is a stack of thumbnail images on a POS screen, such as the thumbnails on the cart\ncard or on a bundle. The first image sits on top, with the rest tucked behind it. Some media groups\nalso show how many images are left out of the stack, such as **+2 more**. You can change the\noverlap, corners, shadow, and shading of the images in a media group, etc. Follow the [POS styling API](pos-styling-api#rules)\nrules when you style media groups.\n\n## Where a media group appears\n\nMedia groups appear in these places:\n\n- The cart card\n- A bundle in the cart and on an order\n- Above the cart actions, and on the screen for saving the cart as an open order\n- The fulfillment screens\n- Station tickets\n- The order dialog\n- The list of choices when building a bundle\n- The snack bar, where the media group is also named `snack-bar-media-group`\n\nThe count pinned to the corner of a media group, such as on the cart card or on a bundle, is a\nbadge named `media-group-badge`. In the snack bar, the badge is also named `snack-bar-count`.\n\nEach image in a media group is a [media image](pos-media-image-styling-reference). A media image\nproperty for the corners, shape, or shadow has no effect on the images in a media group when you\nset it on `:root`. Set the property on `media-group-image` to change the images in media groups\nonly, or on `media-image-root` to change every image. For the corners and shape, use the media\ngroup properties below instead, which keep each tile and the scrim matched to the image.\n\n## Parts\n\n| Part | What it is | Available from |\n| --- | --- | --- |\n| `media-group-root` | The whole stack, with the count of images it leaves out and anything pinned to the corner. | v22.0.17 |\n| `media-group-image` | The tile around each image in the stack, with the corners and the scrim that darkens the images further back. The image inside is a media image. | v22.0.17 |\n| `media-group-label` | The text beside the stack saying how many images it leaves out, such as +2 more, when a screen shows it. | v22.0.17 |\n| `media-group-badge` | The badge pinned to the stack's corner, when a screen gives it one, such as the count on the cart card or on a bundle. 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 `media-group-root` by this, inside `:where()`, to style the stacks of one density.\n\n| Attribute | Values | Default | Available from |\n| --- | --- | --- | --- |\n| `data-density` | `standard`, `compact`, `comfortable`, `custom` | `standard` | v22.0.17 |\n\n- `compact`: the images overlap closely, and each image further back is a little darker. Used on\n  the cart card, bundles, station tickets, and the snack bar.\n- `comfortable`: the images barely overlap, and most show how many images are left out. Used above\n  the cart actions, on the screen for saving the cart as an open order, on the fulfillment\n  screens, in the order dialog, and when building a bundle.\n- `custom`: an overlap set for one screen. Not used on any screen yet.\n- `standard`: the default overlap of the media group. Not used on any screen yet.\n\n## Component properties\n\nSet these on `media-group-root`, on it narrowed by `data-density`, or on `:root`.\n\n| Property | What it sets | Default | Available from |\n| --- | --- | --- | --- |\n| `--sc-media-group-overlap` | How far each image after the first tucks under the one before it, as a negative margin. It replaces the overlap of every density. | -8px | v22.0.17 |\n| `--sc-media-group-overlap-step` | How much further each image tucks in than the one before it, as a share of the overlap, such as 0.1 for a tenth more each time. | 0 | v22.0.17 |\n| `--sc-media-group-darken-step` | How much darker each image further back gets, as the strength of a dark scrim added per image. Compact stacks use 0.08 and the rest none, and a value you set replaces both. | 0 | v22.0.17 |\n| `--sc-media-group-item-radius` | The corners of each image and its tile. | 8px | v22.0.17 |\n| `--sc-media-group-aspect-ratio` | The shape of each image, as width / height. | 1/1 | v22.0.17 |\n| `--sc-media-group-shadow` | The shadow under the stack, as a filter, such as drop-shadow(0 1px 2px #0003). | drop-shadow(1px 2px 2px rgb(var(--sc-color-layer-dark) / 15%)) | v22.0.17 |\n| `--sc-media-group-label-size` | The size of the label's text. | var(--sc-type-label-large-size) | v22.0.17 |\n| `--sc-media-group-label-weight` | The weight of the label's text. | var(--sc-type-label-large-weight-em) | v22.0.17 |\n| `--sc-media-group-label-color` | The color of the label's text. | var(--sc-color-on-surface-variant) | v22.0.17 |\n\n## Examples\n\nEach example is tested against the POS on every change.\n\n**\"Spread the images in the tight stacks out a little.\"**\n\n```css\n\n[part~='media-group-root']:where([data-density='compact']) {\n  --sc-media-group-overlap: -16px;\n}\n```\n\n**\"Make the images further back in a tight stack darker.\"**\n\n```css\n\n[part~='media-group-root']:where([data-density='compact']) {\n  --sc-media-group-darken-step: 0.15;\n}\n```\n\n**\"Round the images in a stack less.\"**\n\n```css\n\n[part~='media-group-root'] {\n  --sc-media-group-item-radius: 2px;\n}\n```\n\n**\"Take the shadow off the stacks.\"**\n\n```css\n\n[part~='media-group-root'] {\n  --sc-media-group-shadow: none;\n}\n```\n\n**\"Make the +2 more text bolder, in our brand color.\"**\n\n```css\n\n[part~='media-group-root'] {\n  --sc-media-group-label-weight: 700;\n  --sc-media-group-label-color: #0b5394;\n}\n```\n\n**\"Show the count on the stacks in our brand color.\"** Use the badge properties:\n\n```css\n\n[part~='media-group-badge'] {\n  --sc-badge-bg: #0b5394;\n  --sc-badge-color: #ffffff;\n}\n```\n\n**\"Draw a white ring around each image in a stack.\"**\n\n```css\n\n[part~='media-group-image'] {\n  --sc-media-image-border: 2px solid #ffffff;\n}\n```\n\n## What can't be styled yet\n\n- One stack on its own, other than the snack bar's, since no other stack has a name yet\n- The image on top apart from the others, and a new or an expired image apart from the rest:\n  the dashed border around an expired image is the POS's own\n- A collapsed stack, or one a person can press, apart from the others\n- The size of the images apart from their overlap: a size you set on the images leaves the\n  overlap the stack works out from its own size, so set `--sc-media-group-overlap` with it\n- The bounce a new image makes as it arrives, and how a stack folds up when it collapses\n\n## Retired\n\nNone yet."}