Learn PhyGrid

Customise Endless Aisle with CSS

Some Endless Aisle settings accept CSS. Use them to change how one element looks, for example the text size on a banner. No field applies CSS across the whole app. Each CSS field styles one element and the elements inside it.

How CSS fields work

  • Write CSS declarations for the element the field belongs to, without a selector:

    border-radius: 0;
    background-color: #000;
    
  • To style an element inside it, use a nested rule with one of its stable class names:

    .icon {
      width: 60px;
      height: 60px;
    }
    
  • Your CSS only applies to that element. It can’t break other parts of the kiosk

  • Only target the class names listed on this page. Other class names change with each new app version

Which settings accept CSS

SettingStylesClass names inside
Layout → Customize Omnibar with CSSThe bar at the bottom of the screen, on all screens except search.omnibar-background, .omnibar-search-field
Banner Styles → Container, Content, Title, Description, Call to actionOne banner: the whole tile, its text block, the title, the description, and the call-to-action row.icon in Call to action
Category Styles → Container, Content, TitleOne category tile, its title bar, and the title.icon in Content
Product Card Style Override → Container, Image, Brand, Name, Price, Promo PriceEvery product card: the card, the image, the brand, the name, the price, and the promotional priceimg.lazyload in Image
Powered by logo → Customize with CSSThe “powered by” logo on the idle screen.powered-by-image
Guided selling assistant → Customize Heading with CSS, Customize Footer with CSS, Customize Chat Box Container/Content with CSSThe assistant on a category’s product list.heading, .text, .sub-text, .divider, .btn-reset, .btn-close, .content, .chat-question, .chat-response, .chat-bubble-option, .chat-recommendation
Theme → ShadowsShadow values, not full CSS: for example 0 8px 16px rgba(0, 0, 0, .15)

Banner and category titles are white by default. Change their colour with the Title style field of each banner or category.

How to style a banner

  1. Expand Active → Home → Banners and open the banner

  2. Expand Styles

  3. Enter CSS in the field for the part you want to change, for example in Title:

    font-size: 48px;
    color: #1a1a1a;
    text-transform: uppercase;
    
  4. Click Save all changes and check the result on the kiosk

Step image 1
Step image 1
Step image 2
Step image 2
Step image 3

How to change the layout of tiles

The home screen lays out banners and categories on a grid of 12 columns, or 6 columns on a portrait screen. Each tile takes a number of columns:

  • Banners: the full width, 12 columns, or 6 on a portrait screen. 320 px high, or 554 px on a portrait screen
  • Categories: 3 columns, so four fit in a row, or two on a portrait screen. 320 px high, or 15% of the screen height on a portrait screen

The Container style field of a banner or category applies to the tile itself. Use it to change the tile’s size and how many columns it takes. For example, to fit three categories in a row instead of four, add this to the Container field of each category:

grid-column: span 4;
height: 260px;
Columns per tile (grid-column)Tiles per row, landscape
span 121
span 62
span 43
span 3 (default for categories)4
span 26

To put two banners side by side, give both grid-column: span 6;.

To set a different layout for portrait screens, add a media query to the same field:

grid-column: span 4;

@media (orientation: portrait) {
  grid-column: span 3;
}

Use the same value on every tile in a row to keep the row even. Inside a tile, the Content field styles the text block. Arrange it with flexbox, for example align-items: center; to centre the title.

Step image 1
Step image 1
Step image 2

How to style all product cards

  1. Expand Product Card Style Override
  2. Enter CSS in the fields for the parts you want to change, for example:
    • Container: border: 1px solid #e5e5e5; box-shadow: none;
    • Name: font-size: 18px; font-weight: 600;
    • Promo Price: color: #c8102e;
  3. Click Save all changes

The changes apply to product cards everywhere: category lists, search results, and recommendations.

Step image 1
Step image 1

Tips

  • Use the theme colours, fonts, and shapes for brand-wide changes. Use CSS for exceptions on single elements. See Customise the look of Endless Aisle
  • Test on the kiosk screen in its real orientation. Banners and tiles have different sizes in portrait and landscape
  • Keep a copy of your CSS outside the PhyGrid Console. You can then restore it after testing changes