🎨 Rethink design system #118
Labels
🎨 Designer
Related to the theme designer page
🔶 size:large
Requires significant changes to the docs or the library.
Milestone
Essentially instead of using
text-primary-500
we want to define higher level shortcuts such astext-primary
,surface-primary
,surface-secondary
. This way we reduce the amount of variability while designing websites of always having to decide whether to usebg-surface-800
orbg-surface-900
for example, and instead just usesurface-primary
.It would also be good to have extra variables where dark mode attributes are also defined. So
surface-primary
is based on different CSS classes in dark and light mode.So instead of:
css values-> classes
we havecss values -> theme -> shortcuts
.Design settings:
surface-primary
(surface-primary-light
+surface-primary-dark
): main background colorsurface-secondary
(light + dark): Used for things like navbars and sidebarssurface-card
(light + dark): Used for modals, cards, etc, so elements that go on top of the other backgrounds.Still have to figure out the best naming conventions for these. Since we have
bg-surface
andbg-primary
it might be confusing to havesurface-primary
? Will have to ask others what they think about this.Resources
The text was updated successfully, but these errors were encountered: