Customizing Decidim styles with SCSS and Tailwind

Admin colors cover only part of a Decidim look. This page explains when to move into SCSS and Tailwind overrides, how each layer is set up, and what it costs to keep them working across upgrades.

On this page

How to customize Decidim styles with SCSS and Tailwind beyond admin colors

If the admin panel can change your colors and logo but the public site, the admin layout or the system pages still look like stock Decidim, you need stylesheet work. Admin branding covers a small set of appearance settings. Anything beyond those settings, such as spacing, component layout, typography rules or the look of pages that have no settings at all, is changed in the source code. In a Decidim application, that work happens in the Rails application you deploy, which is built on Ruby on Rails and PostgreSQL and licensed under the AGPL-3.0. Your changes sit in your own repository, so they must be carried through every upgrade.

The customization reaches three layouts that a brief often treats as one: the public site, the admin panel and the system pages such as sign-in and error screens. The main entry point is decidim_application.scss in your application's stylesheet folder, which lets you add rules that apply across the public and admin layouts. Some areas need a different route. Overriding a whole stylesheet file replaces Decidim's version of that file, which gives full control but means you must merge each upstream change by hand. The Tailwind configuration override is a separate decision: it changes the utility classes available to your templates, so confirm with your front-end lead whether your build already uses Tailwind before adding it.

Before you start, confirm three things in your own build. First, which Decidim minor version you are on: the current supported lines are 0.32.x and 0.31.x according to the project's security policy, and Decidim v0.32 requires Ruby 3.4.7 and Node 22.14.x, while v0.31 uses Ruby 3.3.4 and Node 22.14.x. Second, that your asset pipeline compiles cleanly after each change, since style errors often appear only in production builds. Third, which stylesheet files you have overridden, because each one is a future merge task. Ask your implementation partner for a written list of every override and the upgrade effort each one adds. Review the Decidim update documentation before choosing whole-file overrides.

Which style layer to change for public, admin and system layouts

The decidim_application.scss layer is the first place to look when a change must apply across the site without replacing core styling. In a Decidim application it is the stylesheet your own application loads on top of the framework styles, so rules written there apply to the public site and, depending on the selectors you use, to the admin and system layouts as well. It suits variables, typography, spacing, buttons and header treatments that reflect your identity. Because it is your file, Decidim releases do not overwrite it, but a rule that targets a core class can silently stop matching after a release renames markup.

  • Scope: site-wide rules that load after the framework styles, so they can override core values.
  • Typical use: brand colors applied through variables, font choices, button and link states, and header or footer spacing.
  • Layout targeting: public, admin and system layouts use different markup, so a selector that works on the public site may do nothing in the admin panel. Scope selectors deliberately.
  • Maintenance risk: low to moderate. Rules that depend on internal class names break quietly when markup changes.
  • Verification: confirm the file path and loading order in the release you run, since the docs define the mechanism but the exact location depends on your application layout.

Before each upgrade, review every selector against the new release and check each layout in a browser, not only the public home page.

Styling options and when each fits

This table compares the four ways to change how Decidim looks: admin-panel branding, the decidim_application.scss file, whole-file stylesheet overrides and the Tailwind configuration override. Read each row as a trade-off, and treat the upgrade exposure column as the main signal for how much maintenance each option adds over time. The main takeaway is that the lightest option that meets your design needs is usually the one to start with.

OptionScope and upgrade exposureSkills needed and when it fits
Admin-panel brandingColors, logos and appearance settings per organization. Low exposure because it does not touch code files.Admin staff can apply it without a developer. Fits basic identity needs and multi-tenant sites with simple differences.
decidim_application.scssAdds rules for public, admin and system layouts in one custom file. Moderate exposure, since selectors can shift when Decidim's own styles change.Needs a developer comfortable with SCSS and browser inspection. Fits targeted layout and typography changes across the three layouts.
Whole-file SCSS overridesReplaces a complete stylesheet that Decidim ships. High exposure, because every upstream change to that file must be merged by hand.Needs strong SCSS skills and a repeatable merge process. Fits only when smaller overrides cannot achieve the required design.
Tailwind configuration overrideChanges the Tailwind setup that Decidim's styling builds on, such as theme values. Exposure depends on how far the Tailwind configuration is changed and tested after each upgrade.Needs developers who know Tailwind and Decidim's build pipeline. Fits teams that want a consistent design token system and will test every release.
Ask before choosingConfirm the supported Decidim version, your layout coverage and who will merge changes at each upgrade.Agree the option in writing with the partner, including how styling is tested on the public, admin and system layouts before release.

Setting up a Decidim theme override in order

This sequence takes a team from confirming the Decidim release and its toolchain to a tested style override across public, admin and system pages. Each step ends with a check, so problems surface in development rather than after go-live.

  1. Confirm the target release and toolchain

    Start by fixing the exact Decidim minor version your platform runs or will run, then record its Ruby and Node requirements from the installation and update documentation. Decidim v0.32 requires Ruby 3.4.7 and Node 22.14.x, while v0.31 uses Ruby 3.3.4 and Node 22.14.x, so the version decision determines the build environment. The step is done when the team has a written version and toolchain record that the whole project uses. Confirm the version is still in security support, because the project supports only the last two minor versions until 1.0.

  2. Build a development environment that matches production

    Set up a local or staging environment with the same Decidim release, Ruby and Node versions, PostgreSQL major version and asset pipeline settings as production. Use the manual installation guide or the Docker setup, and confirm that the same branding settings, locales and organization records exist. The check is simple: the application boots, the public site and admin panel load, and the asset build finishes without errors. If the environment differs from production, style problems will appear only after release.

  3. Make the first override in decidim_application.scss

    Place your first style changes in the application stylesheet that Decidim loads for the public, admin and system layouts, and keep them to variables and selectors you can justify. Prefer changes that correspond to documented theme variables before writing new selectors. Recompile assets after each change and confirm there are no compilation warnings. Done means the stylesheet compiles cleanly and the change appears on the public front page in the development environment.

  4. Verify each layout separately

    Review the public site, the admin panel and the system (super admin) pages one at a time, because each layout can render the same component differently. Check navigation, forms, buttons, tables, error pages and mobile widths, and record a screenshot for each layout. Confirm that admin styles do not break public pages and the reverse. Write down any element that needs a rule scoped to one layout, and do not move on until each layout has a signed-off screenshot set.

  5. Check the stylesheet against each upgrade candidate

    Before adding anything heavier, test the override on the next minor release that your plan targets, because Decidim changes markup and class names between versions. Read the release notes and upgrade instructions for each version, and rerun the layout review on that branch. The check is a list of selectors that still match and a list that no longer matches. Keep this list with the project so the upgrade team knows what to revisit.

  6. Add a whole-file override only when necessary

    Override an entire Decidim stylesheet file only if the application stylesheet cannot reach the element you need. A whole-file copy takes on the maintenance of every rule in that file, so record the source version it was copied from and the reason for the copy. The check is that the rebuilt stylesheet matches the original everywhere except the intended changes, verified by the same layout review as before.

  7. Add a Tailwind configuration override last

    Introduce a Tailwind configuration override only when utility classes are a clear requirement for your front-end work, because it changes how the whole build generates CSS. Confirm the Tailwind setup works with the Decidim asset pipeline for your target release, then rebuild and repeat the public, admin and system review. Done means the build output is stable across two clean builds and every layout still matches its screenshots.

  8. Record the override and hand it to operations

    Document every override with its file, the Decidim version it was written for, the layouts it affects and the screenshots that prove it works. Store the code in version control and add the layout review to the release checklist for every deployment. The step is complete when operations can reproduce the build from the repository and an engineer who did not write the overrides can rerun the review.

How overrides affect upgrades between Decidim versions

Every SCSS and Tailwind override you ship is a maintenance item that must be rechecked at each Decidim upgrade. Decidim's update guidance says to move one minor version at a time, for example 0.29 to 0.30 before 0.31, and to follow the upgrade instructions published with each release. That means an override written against 0.31 will be checked again when you step to 0.32, and again at every step after that. Plan the upgrade as a sequence of short, separate tests rather than one jump, and record for each step which overrides were checked and what changed.

The highest-risk overrides are whole-file replacements. When you copy an entire stylesheet, such as a layout or component partial, into your application, you freeze the upstream version of that file in your codebase. Later upstream changes to variables, selectors or structure will not reach you, and your copy may silently stop matching the markup. Prefer decidim_application.scss for small, scoped rules, and when a full file override is unavoidable, keep a diff against the upstream file for each release. Keep overrides in one clearly named location, document the reason for each one, and add visual regression checks for public, admin and system layouts so that breakage is caught in staging rather than by participants.

Support windows set the pace. Decidim supports only the last two minor versions with security updates until version 1.0, currently 0.32.x and 0.31.x, and 0.30.x and earlier are no longer supported. Decidim also gives implementers 2 months to apply patches for standard vulnerabilities and 4 months for critical ones before details are disclosed. Confirm with your own team how quickly a styling change can be tested and deployed, because an upgrade that is delayed to preserve a heavily customized stylesheet can leave you outside the supported line. Ask your implementation partner to estimate the recheck effort for each override before you commit to a target version.

Security and operational risks in custom stylesheets

Custom stylesheets sit in the path of every page a participant sees, so a small CSS change can affect form errors, consent controls and assistive technology. The cards below cover the risks that come with overriding Decidim styles and the operational baseline for patching and reporting vulnerabilities.

Hidden form errors and consent controls

Overrides that change spacing, display or z-index can hide validation messages, field hints or the consent checkboxes that gate registration and cookie choices. A participant may submit a form that looks complete but is rejected, or consent may appear granted without a visible control. Check each override against registration, proposal submission and cookie banner flows in every layout, including the admin and system layouts, before release.

Asset build changes in production

Stylesheets pass through the asset pipeline, so changes to decidim_application.scss or Tailwind configuration alter the compiled output that production serves. A dependency or Node version change can alter the build even when no custom style changed. Ask who owns the build step, how compiled assets are versioned, and whether staging produces the same output as production before a release.

Frozen files that miss upstream fixes

Overriding a whole stylesheet file copies its contents at one point in time. Later Decidim releases that fix layout, security-related markup or accessibility problems in that file will not reach your site unless you merge them in. Record each overridden file, the upstream version it came from, and a review step for every minor upgrade.

Accessibility regressions

Color, focus outline and text size changes can break contrast, keyboard focus visibility and reflow on small screens. Public participation platforms often must meet accessibility expectations, so these regressions are a compliance issue as well as a usability one. Test custom styles with keyboard navigation and a screen reader on the public, admin and system layouts, and check contrast on every customized color.

Security reporting and patch windows

Decidim supports only its last two minor versions with security updates until version 1.0, so a stylesheet built on an older branch may be left without fixes. Decidim gives implementers 2 months to apply patches for standard vulnerabilities and 4 months for critical ones before details are disclosed. Report suspected issues to security@decidim.org or through GitHub Security Advisories, and plan style regression tests so a security patch can be applied quickly.

Decidim security policy

Questions buyers ask before customizing Decidim styles

What drives the effort of a Decidim styling project?

The effort depends mainly on how many layouts you touch, how deep the overrides go, and how often you will need to upgrade. Changing variables and a few rules in decidim_application.scss for the public layout is a small task. Covering public, admin and system layouts, replacing whole stylesheet files and adjusting a Tailwind configuration is a larger one, because each override is code your team must re-check on every release. Ask the partner to list every layout and stylesheet in scope, and to state how each override will be verified after an upgrade. Upgrade frequency matters as much as initial build: each minor version change can alter the markup or stylesheets you overrode.

Can our own developers customize Decidim styles in-house?

Yes, a team with Rails and SCSS experience can do the work in-house, provided it can read the Decidim source for the version it runs. The skills needed are Sass, the Decidim stylesheet structure, basic Rails asset handling and enough Tailwind knowledge to change its configuration safely. The hard part is not the first change but keeping it working over time. Decide who owns the overrides after launch, who reviews them when a supported release arrives, and who tests the admin and system layouts, which are often forgotten. A partner is useful when these skills are thin or when the work must be finished before a fixed date.

What do we need to provide before styling work starts?

Prepare the design files, brand rules and a short list of screens that matter most. Design files should show the public pages, admin pages and any system pages such as error screens, with colors, fonts and spacing stated explicitly. Provide test accounts for each role that sees a different layout, including administrators and any multi-tenant organizations. Also provide a staging environment that matches production closely enough to review changes, and agree who signs off each screen. Missing staging access or unclear brand rules are common reasons work stalls, because every decision then waits for a review cycle.

How long does a Decidim styling project take?

Duration follows scope, so the honest answer is that it depends on the number of layouts, the number of screens reviewed and how many overrides must be verified. A change limited to the public layout with a few stylesheet rules is shorter than a project covering public, admin and system layouts with whole-file overrides. Ask for a timeline in the written scope that lists the phases: discovery, build, review, staging sign-off and release. No duration in this answer is taken from a researched source, so confirm the figures with the partner against your own scope rather than relying on general estimates.

How do we ask for a quote for Decidim styling work?

Send a written brief that names the Decidim version you run, every layout in scope, the number of stylesheet files you expect to override, the Tailwind changes you need, and the design files you can share. Ask the partner to separate one-time build work from recurring work such as upgrade reviews and retesting. Most engagements are fixed-scope, so the quote should follow from the written scope, with deliverables and timelines agreed before work starts. DeployOpen does not publish a price list, so compare quotes on the stated scope, not on headline numbers.

Which Decidim versions should we target for a custom stylesheet?

Target a version that still receives security updates, because styling work built on an unsupported release will need to be redone soon. Decidim supports only the last two minor versions with security updates until version 1.0, which currently means 0.32.x and 0.31.x, while 0.30.x and earlier are not supported. Confirm the current support window on the project's security policy before you choose a base version. Also check the Ruby and Node requirements for your chosen release, since v0.32 requires Ruby 3.4.7 and Node 22.14.x, while v0.31 uses Ruby 3.3.4 and Node 22.14.x.

What breaks when we override whole Decidim stylesheet files?

Overriding a whole stylesheet file copies a snapshot of upstream styles into your codebase, so later upstream fixes do not reach you unless you merge them. Common symptoms after an upgrade include broken spacing on forms, missing states on buttons and admin tables that no longer align. To limit this, prefer variable changes and targeted rules in decidim_application.scss where they are enough, and reserve whole-file overrides for cases that truly need them. Keep a list of every overridden file with the version it was copied from, and run a visual review of public, admin and system screens on each upgrade.

Does styling work change how we upgrade Decidim?

Yes, because styling overrides become part of every upgrade you perform. Decidim's update guide says to upgrade one minor version at a time, for example 0.29 to 0.30 before 0.31, and to follow each release's upgrade instructions because some change database structures. Back up the database before each step. Plan a styling review as a separate task in each upgrade, covering the layouts you changed and any Tailwind configuration, so that visual regressions are caught before users see them. Ask your partner whether upgrade reviews are included in the build or offered as a recurring retainer.

How style layers stack in a Decidim build

The build starts with Decidim's base stylesheets, then applies admin-panel branding variables, then the project's decidim_application.scss for the public, admin and system layouts. Whole-file overrides and the Tailwind configuration come next, and everything is compiled into the assets each layout serves. The checkpoint is at the end: after any Decidim upgrade, confirm that each override still targets a file and selector that exists in the new release and that the compiled output still renders all three layouts.

Style layers compile in order into the assets each layout serves.

How DeployOpen works on this

DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own infrastructure, and styling work follows the same method. We scope the stylesheet changes against the public, admin and system layouts you actually use, then build and verify them in a environment that mirrors your production Decidim release.

How we scope

  • We list which layouts need changes: public pages, admin panel and system pages, each with its own stylesheet entry point.
  • We confirm your target Decidim minor version and whether Tailwind or only SCSS is in use before any code is written.
  • The written scope names every whole-file override and Tailwind configuration change so upgrade effort is visible up front.

How we build

  • We keep custom rules in decidim_application.scss where possible and record each whole-file override with its reason.
  • We build and test the Tailwind configuration override against the Node version your Decidim release requires.
  • We check contrast, responsive layout and each layout's appearance in a staging copy of your installation before release.

How we hand over

  • You receive the stylesheet and configuration files, a list of overridden Decidim files and the steps to rebuild assets.
  • The handover document explains which overrides must be re-checked at each minor version upgrade.
  • We walk your platform and development team through the build commands and the rollback procedure.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer if your styling changes need regular review.
  • Ask any partner to confirm how they will re-test styling after a Decidim minor upgrade, since overrides can break when markup changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.