Greater-London-Authority / ldn-viz-tools

https://greater-london-authority.github.io/ldn-viz-tools/
1 stars 0 forks source link

Design tokens #366

Open ChrisKnightLDN opened 1 week ago

ChrisKnightLDN commented 1 week ago

Major change updates theme and EVERY COMPONENT to use design tokens and css vars for theme switching etc.

jamesscottbrown commented 4 days ago

Preview of how this looks in Storybook: https://dev.ldn-gis.co.uk/storybook-design-tokens/?path=/docs/introduction--documentation

ChrisKnightLDN commented 1 day ago

The contrast on the map controls is off though. You can probably resolve this by forcing dark mode in <Map> or I can force dark mode in each map app. We can resolve map color schemes independently:

image

yes - given the ongoing work on map components I held off addressing this - a global dark class would revert the buttons to their current dark grey apperence.