Goal: keep text, controls and messages clear in light and dark modes. You do not need to change every field: use the group matching what you want to adjust.
Change one colour
- Open the relevant section and check Light variant or Dark variant.
- Use its colour picker or enter the offered HEX value, such as
#276E82. - Inspect that component and its states in the preview below the editor.
- Check the other variant and select Save theme.
Result: the saved colour changes for that purpose without overwriting the other variant. A primary-button colour does not set every button, table and message colour.
Base colours
| Field group | Applies to |
|---|---|
| Page background and text | Main background and body text. |
| Muted text | Supporting details, which must remain readable despite reduced emphasis. |
| Surface background and text | General component surfaces. |
| Border and link | Element boundaries and links. |
Buttons and document actions
Primary, secondary, success, warning, danger and info colours serve different purposes. Text for each of the six button types has its own selector in both variants:
| Text-colour mode | Effect |
|---|---|
| Automatic | Determines text colour from the chosen button background. |
| Manual | Enables your own colour; check readability again after changing the background. |
Document actions have separate background, icon/text, border, hover and active-state fields. These are controls such as icons beside a document; they need not have the same colours as a large primary button.
Cards and tables
- Cards have background, text, border, accent and shadow colours.
- Title, content and side cards have separate background, text, border and accent colours.
- Tables have header background/text, regular row background/text, alternate-row background and borders.
Shape, shadow visibility and accent position are set under Content and cards. Choosing a shadow colour does not itself enable a disabled shadow.
Messages, labels and statuses
Primary, success, warning, danger and information messages have background, text and border colours. Badge and tag labels have their own background and text. Success and warning should also be understandable through text or icons rather than colour alone.
Forms and content blocks
| Group | What to check |
|---|---|
| Focus, disabled fields, valid/invalid states | Keyboard focus stays visible; disabled text and error messages remain readable. |
| Code, quotation and callout | Code background/text, quotation border, and callout background/text/border. |
| Editor content tabs | Default, hover and active states, border, accent and panel background/text. |
| Editor accordion | Separate heading and body backgrounds/text. Open and close the example. |
Final check
Preview includes buttons, cards, a table, messages, tabs, accordion, code, a dialog, a dropdown and short notifications. Compare light and dark sides, then open real pages with a form and longer content. When one text is hard to read, adjust its colour or corresponding surface rather than changing the entire hero for one description.
Komentari
0Još nema komentara.
Za dodavanje komentara potrebna je prijava.