Skip to content

web: Color-scheme detection. (Experimental) #14160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

GirlBossRush
Copy link
Contributor

@GirlBossRush GirlBossRush commented Apr 22, 2025

Depends on #14135

Details

This PR attempts to fix a collection of issues surrounding applying light and dark styles. By using the browser's reported color-scheme and omitting references the "UI theme" attribute, scheme-specific sheets can override style rules -- while not exposing the element's entire shadow root.


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@GirlBossRush GirlBossRush self-assigned this Apr 22, 2025
@GirlBossRush GirlBossRush requested a review from a team as a code owner April 22, 2025 02:58
Copy link

netlify bot commented Apr 22, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 15cec54
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/680793db4f5158000826216f
😎 Deploy Preview https://deploy-preview-14160--authentik-storybook.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 site configuration.

Copy link

netlify bot commented Apr 22, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 15cec54
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/680793db02cc8c00084a912f

Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.75%. Comparing base (976e81c) to head (6175520).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14160      +/-   ##
==========================================
- Coverage   92.79%   92.75%   -0.05%     
==========================================
  Files         799      799              
  Lines       41232    41232              
==========================================
- Hits        38263    38246      -17     
- Misses       2969     2986      +17     
Flag Coverage Δ
e2e 47.75% <ø> (-0.03%) ⬇️
integration 24.10% <ø> (ø)
unit 90.60% <ø> (ø)

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-6175520a0424bbb38be5ebb97de362d41a22a043
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-6175520a0424bbb38be5ebb97de362d41a22a043

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

@GirlBossRush GirlBossRush marked this pull request as draft April 24, 2025 18:09
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.

1 participant