Repository navigation
web/theme: Remove the categories build from the theme - #26982
Merged
Merged
Conversation
## What This commit removes the generation of the seven categories from the Theme build: - `./color.css` - `./typography.css` - `./spacing.css` - `./shape.css` - `./shadow.css` - `./motion.css` - `./z-index.css` And correspondingly: - The exports are removed from `package.json` - The documentation has been updated to remove the reference to the category files - Bumps the major version number to reflect that this is a major change, even if we have no one who uses the removed feature. ## Why Mostly because we’re not using it, and we don’t know anyone else who is. Lines of code we run with every build, that builds tools we never use, is a liability in terms of maintenance, performance, test time, and code quality. These files are generated through regular expressions over the generated CSS, which is notoriously fragile; a change in the Styleframe output would require corresponding changes to the parser. There are no tests to validate the parser output. If we need them back someday, (a) they’re still there, and still categorized, in the DTCG (Design Token Community Group) files and can be extracted at any time and (b) the original code is still in the git history, there for as long as the repo lasts. Practically, *we* don’t even use the categories in Patternfly SASS files when we look something up; we just got to `patternfly.css` and look at the generated theme file. What `package.json` generates is the base theme for Authentik and the metadata necessary to make that theme malleable for agents and automation tools. The DTCG and Theme CSS Custom Property files are more than sufficient for that purpose; if anything, as a separate source of truth for “what is a property set to?” the category files are a barrier to tooling rather than a help.
kensternberg-authentik
marked this pull request as ready for review
October 16, 2026 18:01
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #26982 +/- ##
==========================================
- Coverage 92.29% 92.26% -0.04%
==========================================
Files 1185 1185
Lines 79577 79577
Branches 4351 4351
==========================================
- Hits 73444 73418 -26
- Misses 6067 6093 +26
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Contributor
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 38944030874 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-52d65c05b9d24880b401b1891be43380314b74fc
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-52d65c05b9d24880b401b1891be43380314b74fcAfterwards, run the upgrade commands from the latest release notes. |
GirlBossRush
approved these changes
Oct 19, 2026
kensternberg-authentik
added a commit
that referenced
this pull request
Nov 5, 2026
* main: (21 commits) policies: fix warning from setting non-string tracing data (#27062) root: annotate hot paths (#27052) website/docs: contributing: add guidelines for vendor contributions (#27032) providers/saml: Add ability to select encryption algorithm (#27009) lib: set postgres timezone on connection (#27053) core: add postgres connection info (#27024) ci: fix cargo deny for basic-toml (#27054) web/elements: keep ak-array-input edits through form submission (#27045) enterprise: optimize middleware (#27015) core: bump goauthentik/platform-ssh from 26.04-ak-0.72.0 to 26.04-ak-0.72.1 in /tests/e2e (#27038) core: bump ruff from 0.16.10 to 0.17.0 (#27044) core: bump sentry-sdk from 2.71.0 to 2.72.0 (#27043) core: bump django-postgres-extra from 3.0.0 to 3.0.1 (#27042) core: bump python-kadmin-rs from 0.7.4 to 0.7.5 (#27040) core: bump goauthentik/selenium from 152.0-ak-0.72.0 to 152.0-ak-0.72.1 in /tests/e2e (#27039) core: bump aiohttp from 3.14.3 to 3.14.4 (#27034) web/flow: fix remember-me being cleared by CSRF token rotation (#25205) web/theme: Remove the categories build from the theme (#26982) core: bump library/golang from `2f84bc9` to `4766793` in /lifecycle/container (#26996) providers/saml: verify logoutrequest/response signatures (#26534) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This commit removes the generation of the seven categories from the Theme build:
./color.css./typography.css./spacing.css./shape.css./shadow.css./motion.css./z-index.cssAnd correspondingly:
package.jsonWhy
Mostly because we’re not using it, and we don’t know anyone else who is. Lines of code we run with every build, that builds tools we never use, is a liability in terms of maintenance, performance, test time, and code quality. These files are generated through regular expressions over the generated CSS, which is notoriously fragile; a change in the Styleframe output would require corresponding changes to the parser. There are no tests to validate the parser output.
If we need them back someday, (a) they’re still there, and still categorized, in the DTCG (Design Token Community Group) files and can be extracted at any time and (b) the original code is still in the git history, there for as long as the repo lasts.
Practically, we don’t even use the categories in Patternfly SASS files when we look something up; we just got to
patternfly.cssand look at the generated theme file. Whatpackage.jsongenerates is the base theme for Authentik and the metadata necessary to make that theme malleable for agents and automation tools. The DTCG and Theme CSS Custom Property files are more than sufficient for that purpose; if anything, as a separate source of truth for “what is a property set to?” the category files are a barrier to tooling rather than a help.Checklist
make all)make docs)🌨️🥁 ... sorry, tried to make it "Raining on a parade."