Color and appearance
Assign colors by meaning, provide light and dark tokens, and pair every color cue with text, shape, an icon, or position.
Accent--aui-accent
Label--aui-label
Secondary label--aui-label-secondary
Background--aui-bg
Elevated--aui-bg-elevated
Fill--aui-fill
Success--aui-success
Warning--aui-warning
Destructive--aui-danger
Platform note. Web colors cannot use Apple platform semantic color APIs. The package provides its own adaptive semantic tokens.
What the guidance says
- Use color consistently for status, emphasis, and interactivity.
- Test every custom color in light, dark, and increased contrast contexts.
- Use a second cue such as text, shape, icon, or position whenever color communicates information.
- Keep semantic meanings stable even when the rendered color changes with the appearance.
How to apply it on the web
- Map backgrounds, labels, fills, separators, accent, danger, success, and warning to semantic CSS variables.
- Provide explicit light and dark token sets and respect the browser color scheme preference.
- Keep focus indicators visible without relying only on a color shift.
- Treat the numerical color values as library choices, not copied Apple system constants.
What to check
- Does each semantic color keep the same meaning throughout the interface?
- Can every state be understood without color?
- Do text, icons, controls, and focus indicators pass contrast checks in every theme?
- Have charts and status colors been checked for cultural meaning in supported locales?