cosmicds / hubbleds

Hubble's law data story
MIT License
0 stars 8 forks source link

Using theme colors in solara #423

Closed patudom closed 1 week ago

patudom commented 1 month ago

Is there a way to specify theme colors (primary, secondary, etc), inside solara style specifications, like here? https://github.com/johnarban/hubbleds/blob/051c87c15d12ee78359dd844c5ab1a0499a5a71f/src/hubbleds/components/grid_viewer/grid_viewer.py#L12

If we ever decided to change the theme colors, this usage will be very messy to update.

patudom commented 1 month ago

Per @johnarban's suggestion, we now import our theme colors into the css here, but we still need to wire up functionality that allows the css colors to respond to light/dark theme changes.