Skip to content

feat: add customizable system accent color - #146

Merged
RentnerKev merged 4 commits into
mainfrom
feat/custom-accent-color
Sep 30, 2026
Merged

RentnerKev merged 4 commits into
mainfrom
feat/custom-accent-color

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add a system-wide accent color in the existing JSONB system settings, editable by owners and admins.
  • Derive contrast-aware semantic colors from one HEX value and render the saved palette during SSR before hydration.
  • Integrate the published @rentnerkev/picker with light/dark previews and reset in Appearance settings.
  • Theme controls, navigation, charts, logos, SVG waves, sidebar/auth backgrounds, and error/404 artwork. Original green assets remain untouched for the default color.

Verification

  • Local typecheck, lint, focused tests, and web production build pass.
  • Automated tests cover validation, permissions, persistence, SSR, picker rendering, palette contrast, and generated artwork masks.
  • Full CI passes on the final head: Bun tests with PostgreSQL, build, Rust, production smokes, compatibility, audits, and CodeQL.
  • Blue/orange artwork previews were visually inspected. Static favicon and documentation artwork retain their original green; runtime CSS cannot theme these assets.

Closes #144

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 139 files, which is 39 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: Repository: RentnerKev/RentnerProxy/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 831c12e8-80d7-4068-9436-7b7925194b11

📥 Commits

Reviewing files that changed from the base of the PR and between 8807839 and 871bbd6.

⛔ Files ignored due to path filters (10)
  • bun.lock is excluded by !**/*.lock, !**/*.lock
  • web/public/login-panel-background-v1-accent-mask.png is excluded by !**/*.png
  • web/public/login-panel-wave-desktop-mask.svg is excluded by !**/*.svg
  • web/public/login-panel-wave-desktop.svg is excluded by !**/*.svg
  • web/public/login-panel-wave-mobile-mask.svg is excluded by !**/*.svg
  • web/public/login-panel-wave-mobile.svg is excluded by !**/*.svg
  • web/public/rentnerproxy-logo-accent-mask.png is excluded by !**/*.png
  • web/public/rentnerproxy-logo-long-accent-mask.png is excluded by !**/*.png
  • web/public/system-error-v1-960-accent-mask.png is excluded by !**/*.png
  • web/public/system-not-found-v1-960-accent-mask.png is excluded by !**/*.png
📒 Files selected for processing (139)
  • package.json
  • scripts/generate-accent-art-masks.py
  • web/src/config/appearance.config.ts
  • web/src/config/calendar.config.ts
  • web/src/config/input.config.ts
  • web/src/config/permissions.config.ts
  • web/src/config/toast.config.ts
  • web/src/features/Admin/AccessPolicyManagement/Components/AccessPolicyCredentialsModal.tsx
  • web/src/features/Admin/AccessPolicyManagement/Components/AccessPolicyFormFields.tsx
  • web/src/features/Admin/AccessPolicyManagement/Components/AccessPolicyFormModal.tsx
  • web/src/features/Admin/AccessPolicyManagement/Components/AccessPolicyManagementPageView.tsx
  • web/src/features/Admin/AccessPolicyManagement/Components/AccessPolicyRuntimeStatusPanel.tsx
  • web/src/features/Admin/AccessPolicyManagement/Components/AccessPolicyTableCells.tsx
  • web/src/features/Admin/AccessPolicyManagement/Components/BasicAuthAccountFormModal.tsx
  • web/src/features/Admin/AuditLogs/Components/AuditLogsPageView.tsx
  • web/src/features/Admin/AuditLogs/Components/AuditLogsTable.tsx
  • web/src/features/Admin/CertificateManagement/Components/CertificateDetailsModal.tsx
  • web/src/features/Admin/CertificateManagement/Components/CertificateImportFields.tsx
  • web/src/features/Admin/CertificateManagement/Components/CertificateImportModal.tsx
  • web/src/features/Admin/CertificateManagement/Components/CertificateManagementPageView.tsx
  • web/src/features/Admin/CertificateManagement/Components/CertificateRequestModal.tsx
  • web/src/features/Admin/CertificateManagement/Components/CertificateTableCells.tsx
  • web/src/features/Admin/CertificateManagement/Components/CertificatesTable.tsx
  • web/src/features/Admin/CertificateManagement/Helpers/certificateTableCells.ts
  • web/src/features/Admin/CertificateManagement/index.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecBansTable.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecDashboardPanel.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecDecisionChart.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecManagedOnline.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecOriginChart.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecPageView.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecStatusPanel.tsx
  • web/src/features/Admin/CrowdSec/Components/CrowdSecTransitionModal.tsx
  • web/src/features/Admin/CrowdSec/Components/ForwardAuthSummaryPanel.tsx
  • web/src/features/Admin/CrowdSec/Components/SecurityDashboardPage.tsx
  • web/src/features/Admin/Migration/MigrationPage.tsx
  • web/src/features/Admin/NpmImport/NpmImportPage.tsx
  • web/src/features/Admin/ProxyAccessLogs/Components/ProxyAccessLogsPageView.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/CaddyConfigCodeBlock.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/DomainInputs.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyConfigEditorModal.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyGlobalConfigEditorModal.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostFormFields.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostFormModalFooter.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostManagementPageView.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyHostTableCells.tsx
  • web/src/features/Admin/ProxyHostManagement/Components/ProxyRuntimeStatusPanel.tsx
  • web/src/features/Admin/RedirectHostManagement/Components/RedirectHostFormFields.tsx
  • web/src/features/Admin/RedirectHostManagement/Components/RedirectHostFormModalFooter.tsx
  • web/src/features/Admin/RedirectHostManagement/Components/RedirectHostManagementPageView.tsx
  • web/src/features/Admin/RedirectHostManagement/Components/RedirectHostTableCells.tsx
  • web/src/features/Admin/RedirectHostManagement/Components/RedirectRuntimeStatusPanel.tsx
  • web/src/features/Admin/RoleManagement/Components/RoleFormFields.tsx
  • web/src/features/Admin/RoleManagement/Components/RoleFormModalFooter.tsx
  • web/src/features/Admin/RoleManagement/Components/RoleManagementPageView.tsx
  • web/src/features/Admin/RoleManagement/Components/RolesTable.tsx
  • web/src/features/Admin/TrustedCaManagement/Components/TrustedCaImportModal.tsx
  • web/src/features/Admin/TrustedCaManagement/Components/TrustedCaManagementPageView.tsx
  • web/src/features/Admin/TrustedCaManagement/Components/TrustedCasTable.tsx
  • web/src/features/Admin/UserManagement/Components/UserFormFields.tsx
  • web/src/features/Admin/UserManagement/Components/UserFormModalFooter.tsx
  • web/src/features/Admin/UserManagement/Components/UserManagementPageView.tsx
  • web/src/features/Admin/UserManagement/Components/UserTableCells.tsx
  • web/src/features/Admin/UserManagement/Components/UsersTable.tsx
  • web/src/features/Auth/AcceptInvite/Components/AcceptInviteForm.tsx
  • web/src/features/Auth/ForgotPassword/Components/ForgotPasswordForm.tsx
  • web/src/features/Auth/Login/Components/LoginForm.tsx
  • web/src/features/Auth/Login/Components/TwoFactorLoginForm.tsx
  • web/src/features/Auth/PasswordReset/Components/PasswordResetForm.tsx
  • web/src/features/Auth/Setup/Components/SetupForm.tsx
  • web/src/features/FoundationStatus/Components/CompactFoundationStatus.tsx
  • web/src/features/FoundationStatus/Components/ConnectionTrace.tsx
  • web/src/features/FoundationStatus/Components/CrowdSecOverview.tsx
  • web/src/features/FoundationStatus/Components/FullFoundationStatus.tsx
  • web/src/features/FoundationStatus/Components/ServiceStatus.tsx
  • web/src/features/FoundationStatus/index.tsx
  • web/src/features/SystemAppearance/server.ts
  • web/src/features/UserSettings/Components/AccountIdentity.tsx
  • web/src/features/UserSettings/Components/ChangePasswordForm.tsx
  • web/src/features/UserSettings/Components/ChangePasswordPanel.tsx
  • web/src/features/UserSettings/Components/LanguageSettingsPanel.tsx
  • web/src/features/UserSettings/Components/ProfileImageCropDialog.tsx
  • web/src/features/UserSettings/Components/ProfileImagePanel.tsx
  • web/src/features/UserSettings/Components/ReauthenticationModal.tsx
  • web/src/features/UserSettings/Components/RecoveryCodesModal.tsx
  • web/src/features/UserSettings/Components/RenamePasskeyModal.tsx
  • web/src/features/UserSettings/Components/SecuritySection.tsx
  • web/src/features/UserSettings/Components/SystemAppearancePanel.tsx
  • web/src/features/UserSettings/Components/TotpSetupModal.tsx
  • web/src/features/UserSettings/Helpers/userSettingsPage.ts
  • web/src/features/UserSettings/Hooks/useSystemAppearancePanel.ts
  • web/src/features/UserSettings/index.tsx
  • web/src/language/Locales/de.json
  • web/src/language/Locales/en.json
  • web/src/language/Locales/es.json
  • web/src/language/Locales/fr.json
  • web/src/layout/Components/ApplicationShell/Components/ApplicationHeader.tsx
  • web/src/layout/Components/ApplicationShell/Components/ApplicationNavigation.tsx
  • web/src/layout/Components/ApplicationShell/Components/ApplicationSidebarScrollIndicator.tsx
  • web/src/layout/Components/ApplicationShell/Components/ApplicationSidebarSurface.tsx
  • web/src/layout/Components/ApplicationShell/Components/ApplicationTopbar.tsx
  • web/src/layout/Components/ApplicationShell/Components/ApplicationUserPanel.tsx
  • web/src/layout/Components/ApplicationShell/Components/ApplicationVersion.tsx
  • web/src/layout/Components/ApplicationShell/index.tsx
  • web/src/layout/Components/AuthShell/index.tsx
  • web/src/layout/Components/RootDocument.tsx
  • web/src/layout/Components/SystemStatePage/Components/SystemStatePage.tsx
  • web/src/layout/Components/SystemStatePage/GlobalErrorPage.tsx
  • web/src/layout/Components/SystemStatePage/NotFoundPage.tsx
  • web/src/layout/Components/Theme/index.tsx
  • web/src/routes/__root.tsx
  • web/src/server/SystemAppearance/system-appearance.service.ts
  • web/src/shared/ActionMenu/index.tsx
  • web/src/shared/Avatar/Components/UserAvatar.tsx
  • web/src/shared/Branding/BrandRasterImage.tsx
  • web/src/shared/Domain/ManagedDomainLink.tsx
  • web/src/shared/Domain/ManagedDomainOverflow.tsx
  • web/src/shared/Forms/UtcDateTimeInput.tsx
  • web/src/shared/Management/ContentState.tsx
  • web/src/shared/Management/PageHeader.tsx
  • web/src/shared/Modal/Components/ConfirmDialog.tsx
  • web/src/shared/Modal/index.tsx
  • web/src/shared/Table/Components/TableBodyState.tsx
  • web/src/shared/Table/Components/TableFilterToggle.tsx
  • web/src/shared/Table/Components/TableFilters.tsx
  • web/src/shared/Table/Components/TableHead.tsx
  • web/src/shared/Table/Components/TableLayout.tsx
  • web/src/shared/Table/Components/TablePaginationControls.tsx
  • web/src/styles.css
  • web/src/tests/accent-assets.test.tsx
  • web/src/tests/accent-document-ssr.test.tsx
  • web/src/tests/accent-palette.test.ts
  • web/src/tests/role-permission-groups.test.ts
  • web/src/tests/system-appearance-postgresql.integration.test.ts
  • web/src/tests/system-appearance-ui.test.tsx
  • web/src/tests/system-appearance.test.ts
  • web/src/theme/accentPalette.ts
  • web/src/theme/systemAccentContext.ts
  • web/src/theme/useDocumentAccent.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added area: auth Authentication, accounts, sessions, passkeys, and access control. area: proxy Proxy host configuration and request forwarding. area: runtime Caddy and privileged controller runtime behavior. area: certificates Certificates, ACME, trusted CAs, and TLS material. area: ui Web interface components, routes, styling, and localization. labels Sep 30, 2026
@github-actions github-actions Bot added the area: database Database schema, migrations, and persistence. label Sep 30, 2026
@RentnerKev
RentnerKev marked this pull request as ready for review September 30, 2026 12:44
@github-actions

Copy link
Copy Markdown

🐳 RentnerProxy PR Preview

A test-only image for this pull request has been published successfully.

Images

Type Image
Moving preview for this PR ghcr.io/rentnerkev/rentnerproxy:pr-146
Exact tested build ghcr.io/rentnerkev/rentnerproxy:pr-146-a2c87c8f3f32

Image digest: sha256:e10d64570fe322e3892c041b147ccdfb04d8f8d5f4edc89ca63df80df85bd737

Tested and built merge commit: a2c87c8f3f32db33b2cf1cc1ea7afc8f9ce2d35e

Pull request head commit: 871bbd696eaef9fc970e85b947116ef31d064d09

For reproducible testing and bug reports, prefer pr-146-a2c87c8f3f32. The pr-146 tag moves to the newest successful preview for this PR.


⚠️ Unreviewed development preview

This image contains unreviewed pull-request code. It may contain bugs, breaking changes, incomplete or incompatible migrations, configuration errors, and changes that damage data or runtime state.

Do not use this PR preview image with production data.

Before testing:

  1. Back up PostgreSQL.
  2. Back up the complete RentnerProxy controller/runtime state in /var/lib/rentnerproxy, including certificates, private keys, ACME state, active configuration, last-known-good state, and trusted CA material.
  3. Prefer a separate test database and separate Docker volumes.
  4. Use an isolated Docker Compose project and avoid production port bindings.

Docker

docker pull ghcr.io/rentnerkev/rentnerproxy:pr-146-a2c87c8f3f32

Docker Compose

In a separate test copy of docker-compose.yml, replace the service image with:

image: ghcr.io/rentnerkev/rentnerproxy:pr-146-a2c87c8f3f32

Then use an isolated Compose project:

docker compose --project-name rentnerproxy-pr-146 pull
docker compose --project-name rentnerproxy-pr-146 up -d

The repository Compose file binds ports 80, 81, and 443; change those bindings or stop the production stack before testing.

This preview is intended only for testing this pull request and is not a production release.

@RentnerKev
RentnerKev merged commit 06af594 into main Sep 30, 2026
29 checks passed
@RentnerKev
RentnerKev deleted the feat/custom-accent-color branch September 30, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: auth Authentication, accounts, sessions, passkeys, and access control. area: certificates Certificates, ACME, trusted CAs, and TLS material. area: database Database schema, migrations, and persistence. area: proxy Proxy host configuration and request forwarding. area: runtime Caddy and privileged controller runtime behavior. area: ui Web interface components, routes, styling, and localization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add customizable system accent color

1 participant