Add custom CSS/SCSS
Description
Highlights
About the Extension
Custom CSS in the Administration
Add CSS gives you the page "CSS Container" under Extensions > Add CSS. There you keep your custom CSS in containers: each one has the checkbox "Active", a name, a sales channel selection and a code field "CSS/SCSS". The list shows the status, name and sales channels of your containers, sorted by name.
- "Add Container" opens a new container, which stays inactive until you tick "Active"
- Only active containers reach the storefront
- Several active containers are combined in alphabetical order of their names, and identical code is only included once
- The back arrow next to the page title takes you back to the list
CSS editor with SCSS and theme variables
The code field "CSS/SCSS" is a code editor with syntax highlighting. Your custom CSS is compiled together with the SCSS of your theme, so you can write SCSS and use the variables of your theme.
- "Add SCSS Variable" inserts one of 135 theme variables, such as $primary, $border-radius or $font-family-base, at the cursor
- The colour picker inserts the chosen colour as a hex code at the cursor
- In the colour picker, you set the colour with the colour field, the hue slider or the fields HEX, R, G and B, then click "Set Color"
How custom CSS reaches your storefront
During a theme compilation, the custom CSS of the active containers is appended after the styles of your theme. Saving alone does not change the storefront yet.
- "Save & Compile" saves the container and compiles the themes of your sales channels
- "Save" stores your changes, and they reach the storefront with the next theme compilation
- Other theme compilations include your custom CSS too, for example bin/console theme:compile
Custom CSS per sales channel
In the field "Sales channels", you choose where a container applies.
- A container without a selected sales channel applies to all of them, and the list shows "all"
- With sales channels selected, its custom CSS only goes into the themes of those sales channels
Permissions for the CSS editor
The permission "Add CSS" has the levels View, Edit, Create and Delete in the role settings.
- View: browse the containers
- Edit: change existing containers
- Create: add new containers
- Delete: remove containers in the list
- The levels do not include each other, so combine Edit, Create or Delete with View, and the role also needs read access to sales channels
Details
- Available: English, German
- Latest update: 18 November 2026
- Publication date: 4 September 2024
- Version: 2.0.1
- Category: Special features
Resources
Reviews (1)
Tolles Plugin
About the Extension Partner
weedesign
Partner Status
-
Shopware
Extension Partner
Details
- Ø-Rating: 4.9
- Partner since: 2019
- Extensions: 71
Support
- Based in: Germany
- Speaks: German, English
- Response time: Very quickly