[Feature] Extend semantic status colours with --info, --note, and --draft #6639
aosmcleod
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature description
HeroUI's semantic colour palette ships
--success,--warning, and--danger— the three conventional status colours for positive, cautionary, and destructive states. In practice, most applications also need:These three fill gaps that every design system eventually addresses ad-hoc. Without them, teams end up using
--warningfor info (wrong semantics), inventing one-off colours (inconsistent), or reaching for arbitrary values (breaks theming).Proposed implementation
Follow the same pattern HeroUI uses for success/warning/danger:
Plus
@theme inlineregistrations so Tailwind utilities work (bg-info,text-note-foreground, etc.):Soft variants (
--info-soft,--note-soft,--draft-soft) auto-derive viacolor-mixthe same way HeroUI's existing soft tokens do.Why these specific hues?
--accent(which may also be blue in some themes) because info is fixed by convention — re-branding--accentto green shouldn't shift info callouts.Scope
This is a theme-level addition only — no new React components needed. The colours would be available to existing components via their
colorprop (Alert, Badge, Chip, etc.) if those components already accept arbitrary colour values, or could be added to their colour enum in a follow-up.Prior art
blue(info) andpurple(note-equivalent) in its colour schemeblue,violet,plumas semantic optionsinfoas a distinct status alongside success/warning/errorinfoas a fourth severity levelAll reactions