Skip to content

Update frontend apps to ensure the new functional colour custom prope…#5645

Draft
luke-booker wants to merge 1 commit into
v6-upgrade-feature-branchfrom
update-frontend-apps-to-ensure-the-new-functional-colour-custom-properties-are-excluded-from-secondary-stylesheets
Draft

Update frontend apps to ensure the new functional colour custom prope…#5645
luke-booker wants to merge 1 commit into
v6-upgrade-feature-branchfrom
update-frontend-apps-to-ensure-the-new-functional-colour-custom-properties-are-excluded-from-secondary-stylesheets

Conversation

@luke-booker

@luke-booker luke-booker commented Jul 6, 2026

Copy link
Copy Markdown

What

In Design System v6, importing the core base styles automatically outputs a massive block of CSS custom properties such as colour variables.

Why

The primary stylesheet (application.scss) must output these variables so the application renders its colours correctly. However, if secondary or standalone stylesheets also import the base, they will include an identical and redundant copy of the same code.

Using the $govuk-output-custom-properties: false; flag in secondary files tells the compiler to provide the layout tools required but don’t duplicate the variables we’ve already loaded. This will keep the compiled asset file sizes lean and free of duplicates.

Jira card: NAV-18925

Visual changes

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5645 July 6, 2026 16:03 Inactive
@luke-booker luke-booker force-pushed the update-frontend-apps-to-ensure-the-new-functional-colour-custom-properties-are-excluded-from-secondary-stylesheets branch from 4aeda37 to 0a4ee0d Compare July 6, 2026 16:42
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5645 July 6, 2026 16:43 Inactive
…rties are excluded from secondary stylesheets
@luke-booker luke-booker force-pushed the update-frontend-apps-to-ensure-the-new-functional-colour-custom-properties-are-excluded-from-secondary-stylesheets branch from 0a4ee0d to 3d8e269 Compare July 8, 2026 10:17
@govuk-ci govuk-ci had a problem deploying to govuk-frontend-app-pr-5645 July 8, 2026 10:17 Failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants