Skip to content

web/theme: Remove the categories build from the theme - #26982

Merged
kensternberg-authentik merged 1 commit into
mainfrom
web/theme/yagni-the-categories
Oct 19, 2026
Merged

kensternberg-authentik merged 1 commit into
mainfrom
web/theme/yagni-the-categories

Conversation

@kensternberg-authentik

Copy link
Copy Markdown
Contributor

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.


Checklist

  • [🌨️🥁] The project has been linted, built, and tested (make all)
  • [🌨️🥁] The documentation has been updated and formatted (make docs)
  • [🌨️🥁] I have read the AI usage policy.

🌨️🥁 ... sorry, tried to make it "Raining on a parade."

## 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
kensternberg-authentik marked this pull request as ready for review October 16, 2026 18:01
@netlify

netlify Bot commented Oct 16, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 52d65c0
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6ad26640011f910a796577eb
😎 Deploy Preview https://deploy-preview-26982--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.26%. Comparing base (69531d7) to head (52d65c0).
✅ All tests successful. No failed tests found.

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              
Flag Coverage Δ
conformance 32.42% <ø> (+<0.01%) ⬆️
e2e 37.12% <ø> (+<0.01%) ⬆️
integration 28.79% <ø> (-0.50%) ⬇️
rust 44.42% <ø> (ø)
unit 93.95% <ø> (+<0.01%) ⬆️
unit-migrate 93.95% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download 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-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

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)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-52d65c05b9d24880b401b1891be43380314b74fc

Afterwards, run the upgrade commands from the latest release notes.

@kensternberg-authentik
kensternberg-authentik merged commit a749575 into main Oct 19, 2026
147 checks passed
@kensternberg-authentik
kensternberg-authentik deleted the web/theme/yagni-the-categories branch October 19, 2026 22:31
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)
  ...
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