From 60921c6c2d4432021b0f69ff56b4d9d870ef68f5 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Wed, 18 Dec 2024 16:48:39 +0100 Subject: [PATCH] feat(docs): show comparative example color uses in ui-docs --- front/ui-docs/using-color.md | 198 +++++++++++++++++++++++++++++++++++ 1 file changed, 198 insertions(+) diff --git a/front/ui-docs/using-color.md b/front/ui-docs/using-color.md index 7b26b4272..4d269795c 100644 --- a/front/ui-docs/using-color.md +++ b/front/ui-docs/using-color.md @@ -1,11 +1,16 @@ Want to fix colors? @@ -570,6 +575,199 @@ For example, you want to add visible lines around ghost links and buttons when t - In our example, we would add the line `border-color: var(--hover-border-color);` under `&:hover` to make the outline on interactive items visible on hover. - Make sure to test all affected components before committing and merging the changes +## Overview of current styles + +Make sure that: + +- Contrasts meet WCAG2 requirements +- Colors and outlines communicate the correct dose of prominence +- All styles are different enough from each other to not be confused + +Here is the meaning the styles should convey: + +- **active**: The user has chosen this option +- **Here**: The user is exactly here +- **raised**: Things on this surface complement the main area (sidebar, aside, ...) +- **default**: Background of the app +- **secondary**: This is interactive! As of now, secondary things need a secondary background. +- **primary**: Important! + +### Links and buttons + +--- + + + + + + Inline Link and Link + + +--- + + + + Here + ghost + outline + solid raised + + + Elsewhere + ghost + outline + solid raised + + + +--- + + + + + + + + + +--- + + + + + + + + + + + + Inline Link and Link + + +--- + + + + Here + ghost + outline + solid raised + + + Elsewhere + ghost + outline + solid raised + + + +--- + + + + + + + + + +--- + + + + + + + + + + + + Inline Link and Link + + +--- + + + + Here + ghost + outline + solid raised + + + Elsewhere + ghost + outline + solid raised + + + +--- + + + + + + + + + +--- + + + + + + + + + + + + Inline Link and Link + + +--- + + + + Here + ghost + outline + solid raised + + + Elsewhere + ghost + outline + solid raised + + + +--- + + + + + + + + + +--- + + + + + + + + + + +