Skip to content
RaspberryPints Logo

Custom CSS for a layout

Add your own CSS to one custom layout with a Custom CSS item, target single items with class names, and find built-in class names on the cheat sheet.

2 min readUpdated November 25, 2026

A Custom CSS item adds your own CSS to one layout. Use it for decoration the style settings can't draw, like patterns, glows or shapes behind your taps. It only affects the layout it's in.

Add a Custom CSS item

  1. Open the layout in the Display Editor

  2. Drag Custom CSS onto the page

    It's under Other in the Components panel. In the editor it shows as a small dashed block that reads "Custom CSS: decorates the whole layout. This block isn't shown on screens."

    The editor with Custom CSS highlighted in the Components panel, and the Custom CSS block highlighted at the top of the layout
  3. Select the block and click Edit properties

    Or double-click it. The Edit Custom CSS window opens.

  4. Write your CSS in Custom CSS for this layout

    The Edit Custom CSS window with CSS that draws a gradient and a pattern behind the layout
  5. Click Save Changes, then Save the layout

    The canvas shows your CSS as soon as you click Save Changes.

Target the whole layout

Use .layout for the layout itself. .layout::before with position: absolute and inset: 0 is a layer behind everything, because the layout's content sits above it.

.layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(228, 9, 94, 0.25), transparent 60%);
}

Your rules are limited to this layout, so they never change other layouts or the admin around the editor.

Target one item

  1. Open the item's settings

    Select it and click Edit properties.

  2. Open the Styles tab and scroll to CSS class names

    The Styles tab of an item's settings, with the CSS class names field highlighted
  3. Type a class name, like neon-title

    Use lowercase letters, numbers and dashes, up to 3 names separated by spaces. Names can't start with cl-. The field then shows the selector to use, like .neon-title.

  4. Style it in your Custom CSS item

    For example, .neon-title { text-shadow: 0 0 12px #e4095e; }.

Built-in class names

Every part of a layout also has a built-in class name, such as .cl-tap for a tap item, .cl-tap-name for the beer name and .cl-tap-price for its price. You can also pick out one tap with [data-tap-number="1"], or every item of a kind with [data-component-type="tap"].

The full list is on the CSS cheat sheet. Open it from Settings > Advanced > Taplist-wide CSS > View CSS Cheat Sheet. While custom layouts are on, it shows the Custom Layout CSS Cheatsheet.

The Custom Layout CSS Cheatsheet page, listing class names such as .cl-layout and .cl-content with what each one styles

What isn't allowed

For safety, some CSS is changed or ignored:

  • If the CSS uses @import, backslashes, image-set() or script code such as javascript:, none of it is applied. The block in the editor turns red and reads "Custom CSS is off: it contains something that isn't allowed".
  • Images must be inline SVG (data:image/svg+xml). Any other url() is ignored.
  • position: fixed works like position: absolute.
  • At-rules other than @media, @supports and @keyframes are ignored, and so is nested CSS.
  • One Custom CSS item holds up to 20,000 characters.

Custom CSS and Taplist-wide CSS

Taplist-wide CSS in Settings > Advanced applies to your whole public taplist: every layout, and the classic grid and column views. A Custom CSS item applies to one layout. The Display Editor shows both, without images from web addresses. See Themes and Settings.

Was this article helpful?