Design system #1932
Replies: 1 comment
-
ColorsI would suggest to use oklch(lightness chroma hue) format for the colors. Example of how we can build a design system with oklch: TheoryhueEach information has its own hue :
ChromaChroma is used to differentiate between surfaces and top level elements :
lightnessLightness is used to create shades without the same category Examples:Plain colorsCurrently:
After:
The difference if small, but it provides a great way to manage shades in the app
Tertiary buttonCurrently: After: Secondary buttonCurrently: After: Or with chroma: 0.08 BenefitIt provides a pattern that we can use for different state (hover, focus, selected, active, ...), and future component. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the current design system in the application
Components
Navigation
Used to navigate between pages or subpages.
One item should always be selected
States:
Main nav
Top



Bottom
Cart links (this one is alone for now)
Subnav
trade / simulator


portfolio / explorer / edit
Switch
Used for a mandatory selection
One item should always be selected
States:
Radio group
Use for optional selection
At most one item is selected
States:
Input
States:
Note: the difference of color here is because of the gradient, the background looks actually the same on each input.
Combobox
Input search combined with a listbox. Focus doesn't leave the input field.
Items of the listbox can be selected if wanted.
Search input
States:
Listbox
States
Menu
List of links, buttons, radio or checkbox
States:
Buttons & Links
Radio
Top layer
Dynamic elements that are on top of the page
Tooltip
Describe an element in the page
Opens on hover, anchored to the hovered element.
Should not contain actionable items
Popover
Opens on click, anchored to the element clicked.
Scroll is still enabled
Contains actionable items
Modal
Opens on click, fixed on the top of the page
Scroll is disabled
Track focus in the modal
Usually contains a form
States:
Buttons / Links
States:
Surfaces
Tables
State:
Surface
Contrast surface
Beta Was this translation helpful? Give feedback.
All reactions