Skip to content

Add named color theme presets (sunset, aurora, mono, ...) #4

Description

@m3hrab

What problem does this solve?

Right now customizing colors means setting all four hex inputs
individually. A theme_preset input with a few curated named palettes
would make experimentation much easier.

Proposed solution

  • Add a THEME_PRESET optional env var / theme_preset action input
  • Define 3-4 built-in presets (e.g. "sunset", "aurora", "mono") as
    {recentColorDark, oldColorDark, recentColorLight, oldColorLight} quads
    in a PRESETS object
  • If theme_preset is set, use its colors as defaults — but individual
    color inputs (recent_color_dark, etc.) should still override the
    preset if explicitly set, so presets are a convenience, not a
    restriction
  • Document available presets in the README inputs table

Alternatives considered

Could instead ship presets purely as documentation (copy-paste color
quads in the README) rather than code — simpler, but less discoverable.
Worth a quick discussion before starting.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions