Skip to content

feat: add customizable system accent color #144

Closed

Description

@RentnerKev

Summary

Replace the currently hard-coded green RentnerProxy accent with a configurable system accent color. The selection must propagate through the complete UI, including visual assets, rather than changing only buttons or CSS primitives.

The published RentnerKev color picker is @rentnerkev/picker, sourced from RentnerKev/RentnerPicker. Its documented React import is:

import { CustomColorPicker } from '@rentnerkev/picker'

Check its React 19/Tailwind 4 integration and global token names against RentnerProxy before adding it. Use the package where it fits the existing architecture.

Scope

Audit every place where the green branding or accent is encoded, directly or indirectly, including:

  • buttons, links, active navigation, focus states, badges, toggles, and appropriate chart/status accents
  • borders, highlights, gradients, hover/focus/active states, and accent-related shadows or glows
  • inline/imported SVGs, icons with embedded colors, the RentnerProxy logo and variants, decorative illustrations, sidebar/navigation background graphics, and other background images
  • login, setup, security, settings, and account surfaces
  • light and dark themes, responsive layouts, and any shared UI primitives

Do not perform a blind global color replacement. Preserve colors with separate semantic meanings, such as error, warning, and success, where appropriate.

Theme architecture

Refactor hard-coded accent values into semantic design tokens and CSS variables derived from the existing design system. The current stylesheet already defines brand and primary tokens; extend or adapt that system instead of creating a second, conflicting theme layer. The resulting model should cover the base accent, hover/active/muted variants, foreground contrast, borders, focus treatment, and any other roles the audit identifies.

Dynamic assets

Audit inline and imported SVGs, logo artwork, sidebar graphics, background images, gradients, masks, and icons with embedded colors. Where practical, make intended accent regions respond to the selected color through currentColor, CSS variables, SVG/CSS masks, dynamically generated SVG, or another controlled tinting technique. Avoid maintaining many manually generated color variants.

For raster assets that cannot safely be recolored, identify each case and replace it with a dynamic SVG/CSS equivalent, redesign it, or document why it remains deliberately non-accented. Avoid fragile CSS filters unless there is a clear technical reason and visual verification.

Color picker

Place the setting in the existing Settings/Appearance experience. Let an authorized user/admin open the picker, choose a color, preview the result, save it, and reset to the default RentnerProxy color. Do not create a separate settings system.

Persistence

Inspect the current settings and preference architecture. Decide and document before implementation whether this is a global system setting or a per-user appearance preference, based on current product semantics. Reuse the appropriate persistence layer; do not invent a parallel preferences architecture. The saved selection must survive reload, browser restart, and logout/login.

Accessibility

Validate text/background contrast, focus visibility, selected and disabled states, badges/statuses, and both light and dark themes. Arbitrary input colors must not be applied directly to every component if they make it unreadable. Generate foreground, hover, and muted variants deterministically with contrast in mind; handle invalid color input safely.

Migration/default behavior

Existing installations retain the current RentnerProxy green by default. With no custom color configured, there must be no appearance regression.

Tests

Cover the unchanged default; custom-color save and persistence across reload and logout/login; reset; invalid input; light/dark themes; interactive states; SVG/logo and sidebar/background artwork; contrast-sensitive components; responsive behavior; and no remaining unintended hard-coded green values.

Acceptance criteria

  • Accent color is configurable in the existing Settings/Appearance experience.
  • The verified RentnerKev picker is used where technically appropriate.
  • Existing hard-coded accent values are migrated into the established semantic token system without a duplicate theme architecture.
  • Interactive components and states update consistently.
  • Intended accent regions of the logo, SVGs, and sidebar/background artwork follow the selection.
  • No large set of pre-generated color variants is required.
  • Persistence follows the documented global/per-user scope and survives reload and logout/login.
  • Default installations retain the current green.
  • Light/dark themes and contrast/focus behavior remain accessible.
  • Relevant automated tests are included.
  • Final Beta UX/accessibility review fix: complete beta accessibility and UX review #74 validates the feature.

Priority and sequencing

Beta 1 UX/design-system work. Complete before final review #74 and release gate #75.

Activity

  1. added this to the v1.0.0-beta.1 milestone on Sep 30, 2026
  2. added
    accessibility
    enhancement
    area: ui
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityarea: uienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions