Repository navigation
core: allow interfaces to specify alternative stylesheets - #20774
Conversation
…rnative stylesheets
## What
Moves the stylesheet invocation in `theme.html` to `skeleton.html`, give it a block and a block name so that pages using `skeleton.html` can override or extend it as needed.
## Why
The biggest wall we’re hitting right now is the lack of flexibility at the very top of the CSS. We simply use the same CSS file for *too much*, when really we should be thinking in terms of leaner, more targeted top-level CSS for some things, and more rich and expressive CSS when it’s necessary.
The style sheet was being loaded unconditionally in `theme.html`; it’s not in a conditional statement or overridable where it was; `skeleton` just loads it blindly. This change lets `theme.html` be what it is meant to be, an isolated container for the JavaScript logic for discerning the color mode, while enabling CSS developers to elide the stylesheet, provide alternative stylesheets, or (using `{{ block.super}}`) amend or extend the default stylesheet.
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ 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 #20774 +/- ##
==========================================
- Coverage 93.39% 93.35% -0.05%
==========================================
Files 983 983
Lines 55475 55475
==========================================
- Hits 51811 51787 -24
- Misses 3664 3688 +24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-bd304e76c8e28e279fd8b03c4dac2c8371cd4bc3
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-bd304e76c8e28e279fd8b03c4dac2c8371cd4bc3Afterwards, run the upgrade commands from the latest release notes. |
* main: core: allow interfaces to specify alternative stylesheets (#20774) website/docs: update agent docs (#20782) core, web: update translations (#20809) lifecycle/aws: bump aws-cdk from 2.1109.0 to 2.1110.0 in /lifecycle/aws (#20810) core: bump axllent/mailpit from v1.29.2 to v1.29.3 in /tests/e2e (#20811) core: bump cachetools from 7.0.4 to 7.0.5 (#20812) core: bump goauthentik/fips-python from `b481db2` to `3636935` in /lifecycle/container (#20814) core: bump goauthentik/fips-debian from `6c9197b` to `0975985` in /lifecycle/container (#20815) web: bump the storybook group across 1 directory with 5 updates (#20816) web: bump cspell from 9.6.4 to 9.7.0 (#20817) web: bump @formatjs/intl-listformat from 8.2.1 to 8.2.2 in /web (#20818) web: bump mermaid from 11.12.3 to 11.13.0 in /web (#20819) web: bump @types/node from 25.3.5 to 25.4.0 in /web (#20820) endpoints/connectors/agent: cleanup leftover (#20808) endpoints: prevent selection of incompatible connector (#20806) website/docs: Add steps to set up group devices (#20735) web/rbac: disambiguate duplicate permission names in initial permissions (#20786)
* main: (51 commits) web/flow/stages: permit the form handler to look in the light or shadowDOM for controls (#20832) web/style/flow: flow css barrel file (#20833) web/flow: provide labels for the stage import-and-invoke table (#20834) core: bump goauthentik/fips-python from `3636935` to `46b26b8` in /lifecycle/container (#20842) core: bump library/nginx from `0236ee0` to `d0913a1` in /website (#20843) core, web: update translations (#20835) core: bump goauthentik/fips-debian from `0975985` to `2517845` in /lifecycle/container (#20841) core: bump twilio from 9.10.2 to 9.10.3 (#20838) core: bump aws-cdk-lib from 2.241.0 to 2.242.0 (#20840) ci: bump astral-sh/setup-uv from 7.3.1 to 7.4.0 in /.github/actions/setup (#20844) providers/SCIM: Add discover support (#20658) core: allow interfaces to specify alternative stylesheets (#20774) website/docs: update agent docs (#20782) core, web: update translations (#20809) lifecycle/aws: bump aws-cdk from 2.1109.0 to 2.1110.0 in /lifecycle/aws (#20810) core: bump axllent/mailpit from v1.29.2 to v1.29.3 in /tests/e2e (#20811) core: bump cachetools from 7.0.4 to 7.0.5 (#20812) core: bump goauthentik/fips-python from `b481db2` to `3636935` in /lifecycle/container (#20814) core: bump goauthentik/fips-debian from `6c9197b` to `0975985` in /lifecycle/container (#20815) web: bump the storybook group across 1 directory with 5 updates (#20816) ...
* main: (50 commits) web/flow/stages: permit the form handler to look in the light or shadowDOM for controls (#20832) web/style/flow: flow css barrel file (#20833) web/flow: provide labels for the stage import-and-invoke table (#20834) core: bump goauthentik/fips-python from `3636935` to `46b26b8` in /lifecycle/container (#20842) core: bump library/nginx from `0236ee0` to `d0913a1` in /website (#20843) core, web: update translations (#20835) core: bump goauthentik/fips-debian from `0975985` to `2517845` in /lifecycle/container (#20841) core: bump twilio from 9.10.2 to 9.10.3 (#20838) core: bump aws-cdk-lib from 2.241.0 to 2.242.0 (#20840) ci: bump astral-sh/setup-uv from 7.3.1 to 7.4.0 in /.github/actions/setup (#20844) providers/SCIM: Add discover support (#20658) core: allow interfaces to specify alternative stylesheets (#20774) website/docs: update agent docs (#20782) core, web: update translations (#20809) lifecycle/aws: bump aws-cdk from 2.1109.0 to 2.1110.0 in /lifecycle/aws (#20810) core: bump axllent/mailpit from v1.29.2 to v1.29.3 in /tests/e2e (#20811) core: bump cachetools from 7.0.4 to 7.0.5 (#20812) core: bump goauthentik/fips-python from `b481db2` to `3636935` in /lifecycle/container (#20814) core: bump goauthentik/fips-debian from `6c9197b` to `0975985` in /lifecycle/container (#20815) web: bump the storybook group across 1 directory with 5 updates (#20816) ...
Allow interfaces to specify alternative stylesheets
What
Moves the stylesheet invocation in
theme.htmltoskeleton.html, give it a block and a block name so that pages usingskeleton.htmlcan override or extend it as needed.Why
The biggest wall we’re hitting right now is the lack of flexibility at the very top of the CSS. We simply use the same CSS file for too much, when really we should be thinking in terms of leaner, more targeted top-level CSS for some things, and more rich and expressive CSS when it’s necessary.
The style sheet was being loaded unconditionally in
theme.html; it’s not in a conditional statement or overridable where it was;skeletonjust loads it blindly. This change letstheme.htmlbe what it is meant to be, an isolated container for the JavaScript logic for discerning the color mode, while enabling CSS developers to elide the stylesheet, provide alternative stylesheets, or (using{{ block.super}}) amend or extend the default stylesheet.make web)