Textualize / textual

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
https://textual.textualize.io/
MIT License
25.21k stars 774 forks source link

Theming and style language #5078

Open willmcgugan opened 2 days ago

willmcgugan commented 2 days ago

We need a system to allow customization of styles, and enforce a consistent look and feel.

Something inspired by Posting...

darrenburns commented 1 day ago

Some ideas and a bunch of questions that would be good to chat about:

Q - How should this interact with App.dark?

Posting has no concept of "dark mode" vs "light mode". It just has themes. Should App.dark become something like App.theme = "textual-dark"? The problem was that colours pretty much always needed tweaked when put against a light background vs a dark background.

I'm also worried that enforcing "if you design a theme then you need to make sure it has a light variant" isn't ideal.