Docs  /  Settings  /  Customising the design (CSS)

Customising the design (CSS)

Last updated: 12. November 2026

The configurator should look like your shop: colours, font, corners, the look of the selection fields. You adjust all of this with CSS, without any JavaScript. This page applies to the V3 frontend engine. Legacy generates different HTML, so the variables and classes below do not apply there.

What the configurator already takes from the shop

In a shop – via a shop plugin or the HTML snippet – the configurator takes font, font size and text colour from your theme. You do not need to do anything for this. You only need to adjust what the configurator brings along itself: accent colour, borders, backgrounds, corners. Upper case and letter spacing that your theme gives to all buttons, for example, do not apply inside the configurator, though.

If you embed it with data-configento-embed-mode="admin-preview", it shows title, price and summary itself and also uses its own colours for texts. Even then it inherits the font from the page.

Where your CSS belongs

You have two places:

  • Your shop's theme – the right place if all configurators should look the same.
  • Custom CSS in the Component Settings under Design – the right place for a single component. It is loaded with the configurator, in the shop and in the preview in the admin.

Put [data-configento] in front of rules for individual elements, e.g. [data-configento] .cfg-toggle-item__price. The configurator loads its own CSS after your theme; with this prefix your rule still wins. The exceptions are text colour, font size, upper case and letter spacing: in the shop, the configurator resets these for its elements so that your theme does not leak in. To change them for individual elements from your theme, add another class, e.g. [data-configento] .cfg-char .cfg-toggle-item__price. The component's custom CSS loads after the configurator and does not need this. Neither is necessary for the variables below.

Colours, font and corners

The simplest adjustment: set variables on :root. They take effect in the whole configurator and also in the enlarged image view and the info windows, which open outside the configurator.

:root {
  --configento-color-accent: #1d3c78;
  --configento-color-border: #c8d0e0;
  --configento-radius-md: 0;
}
Variable Default Affects
--configento-color-accent #2563eb Selected values, radio buttons and checkboxes, selected images, active tab, progress bar, Next button, action button, links in texts
--configento-color-accent-fg #ffffff Text on surfaces in the accent colour, e.g. in the Next button
--configento-color-accent-soft #dbeafe Light background in the accent colour, e.g. for the active tab
--configento-color-border #e2e8f0 Borders and dividers
--configento-color-border-strong #868f9e Borders of input fields, buttons and image tiles
--configento-color-bg #ffffff Background of the configurator
--configento-color-bg-subtle #f8fafc Slightly set-off surfaces
--configento-color-bg-elevated #ffffff Groups, select lists, buttons and windows
--configento-color-fg #0f172a Text – only with admin-preview; in the shop it comes from the theme
--configento-color-fg-muted #64748b Secondary texts – only with admin-preview
--configento-color-error #b91c1c Error messages and invalid fields
--configento-color-error-soft #fee2e2 Light background of errors
--configento-color-success, --configento-color-success-soft #059669, #d1fae5 Success messages
--configento-color-warning, --configento-color-warning-soft #b45309, #fef3c7 Warnings
--configento-radius-sm, -md, -lg 4px, 8px, 12px Corners: small elements, fields and tiles, windows
--configento-font-family Font of the page Font – only needed if the configurator should use a different font than the page
--cfg-value-image-size 40px Size of the images in radio button and checkbox rows

The names of these variables stay the same in all 3.x versions.

Active color and primary color: A configurator's accent colour comes from the first of these sources that is set:

  1. the component's Active color (component settings → Design),
  2. --configento-color-accent from your CSS,
  3. the Primary color under Settings → Branding – it also applies to PDFs and emails,
  4. the default blue #2563eb.

For one colour across all components, the primary color in Branding is enough. You only need the Active color when a component should differ; it then also applies instead of your CSS.

Different font: If the configurator should use a different font than the page, set it on the element with data-configento. The font must be loaded on the page, for example via your theme.

[data-configento] { font-family: 'Source Sans 3', sans-serif; }

Styling individual elements

For styling beyond the variables there are classes and attributes that we guarantee: they stay the same in all 3.x versions and only change with a new first version digit. Other classes and the rest of the HTML structure may change.

Frame of every characteristic

Class / attribute Element
.cfg-char The whole characteristic. Also carries the classes from the characteristic's CSS class field.
[data-configento-char-id], [data-configento-char-type] On the same element: ID and data type of the characteristic, e.g. radiobuttons, checkbox, text, area, select
[data-configento-invalid] On the same element, as long as an error message is shown
.cfg-char__head Header row with the title
.cfg-char__title Title
.cfg-char__required Required-field asterisk in the title
.cfg-char__info Info text below the title
.cfg-char__body The input element with everything that belongs to it
.cfg-char__errors, .cfg-char__error List of error messages and each single message
.cfg-char-disabled Wraps a characteristic that a rule blocks when Values excluded by rules is set to Show disabled. The characteristic is then greyed out and cannot be used.

Radio buttons and checkboxes

Class / attribute Element
.cfg-toggle-list List of all values
.cfg-toggle-item with [data-configento-value-id] One value, with its ID
.cfg-toggle-item__label The label around the whole row. The input (type="radio" or type="checkbox") is its direct child.
.cfg-toggle-item__image Image of the value
.cfg-toggle-item__text Text block with label and info texts
.cfg-toggle-item__label-text Label of the value
.cfg-toggle-item__info Info text of the value
.cfg-toggle-item__price Surcharge
.cfg-toggle-item__info-trigger The (i) button that holds the value's info text when Tooltip for values is on for the characteristic
[data-configento-disabled] On .cfg-toggle-item and on the image tiles of a list with images, when a rule blocks the value and Values excluded by rules is set to Show disabled

You reach the selected state via the input, e.g. .cfg-toggle-item__label:has(input:checked). Long labels wrap with hyphenation, the surcharge stays on one line. You set the image size with --cfg-value-image-size.

Input fields and select lists

Class Element
input.cfg-input Single-line input field
textarea.cfg-textarea Multi-line input field
select.cfg-select Select list

Combined image in the 360° view

Class Element
.cfg-combined-image--rotating The rotatable combined image
.cfg-combined-image__progress Loading indicator while the images load. Its colour comes from the component's Loading animation color.
.cfg-combined-image__hint The hint “360° view — drag to rotate” until the customer turns the image for the first time

Custom text and custom image (product designer)

Fields of type Custom text on the product and Custom image on the product carry the attribute [data-configento-char-type="customtext"] or [data-configento-char-type="customimage"] on .cfg-char.

Class / attribute Element
.cfg-design__controls Row of selections and sliders (font, size, colour, or size, rotation)
.cfg-design__control One labelled control in that row
.cfg-design__row A row that always sits below the sliders, e.g. the alignment or the picture buttons
.cfg-design__buttons A group of buttons
.cfg-design__button Every product designer button; pressed buttons carry [data-configento-selected]
.cfg-design__button--primary The main buttons Upload picture and Apply
.cfg-design__safe Note that text or a picture is too close to the edge or the hole
.cfg-design__overlap Note that text and picture cover each other
.cfg-design__check Note of a custom check; data-configento-level is warn or block, see Custom print data checks
Custom text Element
.cfg-customtext The whole field
.cfg-customtext__input Text input
.cfg-customtext__font, .cfg-customtext__size Font selection, size slider
.cfg-customtext__fit Note at the size slider when the text is shrunk automatically
.cfg-customtext__note Note that a rule restricts colours, fonts or sizes
.cfg-customtext__contrast Note when the contrast to the background is too low
.cfg-customtext__colorcount Note that more colours are used than print colours are booked
.cfg-customtext__colors, .cfg-customtext__swatches Colour area and list of swatches
.cfg-customtext__swatch One swatch; the selected one carries [data-configento-selected]
.cfg-customtext__free-color Free colour picker
.cfg-customtext__alignment-row, .cfg-customtext__aligns, .cfg-customtext__align Row, group and single button of the alignment
.cfg-customtext__reset-position Reset position
Custom image Element
.cfg-customimage The whole field
.cfg-customimage__upload, .cfg-customimage__hint Upload picture and the hint below it
.cfg-customimage__picked Preview row after the upload with .cfg-customimage__thumb, __meta and __name
.cfg-customimage__dpi Resolution; [data-configento-quality] is ok, low (below Warn below) or blocked (below Refuse below)
.cfg-customimage__warning, .cfg-customimage__error Resolution hint, error message
.cfg-customimage__tools Sliders Size (__size) and Rotation (__rotation)
.cfg-customimage__actions Buttons __rotate-left, __rotate-right, __mirror, __crop, __reset-position, __replace, __remove
Crop and product image Element
.cfg-crop, .cfg-crop__panel Crop window and its content
.cfg-crop__stage, .cfg-crop__frame Picture area and selected section
.cfg-crop__handle with --nw, --ne, --sw, --se The four corner handles
.cfg-crop__actions Buttons __whole (Whole picture), __cancel, __apply
.cfg-combined-image__text The customer's text or picture in the product image; a picture also carries .cfg-combined-image__picture
.cfg-combined-image__zone Dashed design zone while hovering, selecting and moving
.cfg-combined-image__text-handle The movable part

You set the size of the colour swatches with --cfg-swatch-size (default 1.75rem).

If CSS isn't enough because a characteristic should look and behave completely differently – for example as a licence plate – you draw it with your own rendering in JavaScript.

The easiest way to target a specific characteristic is your own class: enter it in the editor in the characteristic's CSS class field, and it ends up on the .cfg-char element.

Fields side by side

With the column classes you place the characteristics of a group side by side, for example first name and last name in one row. Enter the class in the editor in the characteristic's CSS class field. You don't need any CSS of your own.

Class Width
cfg-col-3 A quarter of the row
cfg-col-4 A third
cfg-col-6 Half
cfg-col-8 Two thirds
cfg-col-12 The whole row
  • The characteristics fill the row in their order within the group. Two consecutive characteristics with cfg-col-6 share one row.
  • Characteristics without a column class in the same group take the whole row.
  • If the group is narrower than 480 pixels, for example on a smartphone, all characteristics stack again.
  • The classes only take effect in groups that use at least one of them. Groups without a column class and widths from your theme (e.g. Magento's grid12-6) stay unchanged.
  • Only with the V3 frontend engine.

Examples

Custom radio buttons – circle via CSS instead of the browser default, selected row highlighted:

[data-configento] [data-configento-char-type="radiobuttons"] .cfg-toggle-item__label > input {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--configento-color-accent);
  border-radius: 50%;
}
[data-configento] [data-configento-char-type="radiobuttons"] .cfg-toggle-item__label > input:checked {
  background: radial-gradient(var(--configento-color-accent) 45%, transparent 50%);
}
[data-configento] .cfg-toggle-item__label:has(input:checked) {
  background: var(--configento-color-accent-soft);
}

For this, set --configento-color-accent and --configento-color-accent-soft on :root, as shown above.

Show errors more clearly:

[data-configento] .cfg-char[data-configento-invalid] .cfg-char__title { color: var(--configento-color-error); }
[data-configento] .cfg-char[data-configento-invalid] .cfg-input { border-color: var(--configento-color-error); }

Hide surcharges, for example if your shop shows them differently:

[data-configento] .cfg-toggle-item__price { display: none; }

Larger images on the values and blocked values shown fainter:

:root { --cfg-value-image-size: 64px; }
[data-configento] .cfg-toggle-item[data-configento-disabled] { opacity: 0.4; }

Product designer in shop colours – round, larger swatches, a clear frame around the selected colour, main buttons in shop green and an eye-catching warning when the resolution is too low:

[data-configento] { --cfg-swatch-size: 2.25rem; }
[data-configento] .cfg-customtext__swatch { border-radius: 50%; }
[data-configento] .cfg-customtext__swatch[data-configento-selected] { outline: 3px solid #0a7d4f; outline-offset: 2px; }
[data-configento] .cfg-design__button--primary { background: #0a7d4f; border-color: #0a7d4f; }
[data-configento] .cfg-customimage__dpi[data-configento-quality="low"] { color: #b45309; font-weight: 700; }

Troubleshooting

Problem Cause and solution
Your rule has no effect The configurator loads its CSS after your theme. Put [data-configento] in front of the selector. For text colour, font size, upper case or letter spacing, add another class (e.g. .cfg-char) or put the rule into the component's custom CSS.
Colour works in the configurator, but not in the enlarged image view The variable is set on an element instead of on :root. The enlarged view opens outside the configurator.
Accent colour from the CSS is ignored An Active color is set in the component. Clear the field.
Text colour does not change In the shop, the text colour comes from the theme. --configento-color-fg only works with admin-preview.
Everything looks different after switching to V3 Legacy has different classes. Rebuild your CSS with the variables and classes on this page and check it in the preview.

Next steps


← All articles Try free for 14 days