Replies: 3 comments 9 replies
-
I think it's the way to go, to make a m3 global theme (similar to this) and keep component tokens at a minimum if possible. I've seen you already did an attempt in #16035, but I guess you were the first one to try so at that time and therefore got no real discussion. More components are being migrated, so there may be more interest right now. With the before and after you have given, does that mean you've a global theme proposal ready? There's no (?) documentation on which tokens are usable for theme authors and if you pick a few random themes from this article you will see that's a mixture of all kinds. I think it would be great to document (or just refer to the documentation of m3 design) now that there's a chance. As a result, I don't think it may be a breaking change, but whatsoever you will get unhappy people. (I've seen that when we migrated the slider from polymer to m3 last month. 😅) Still, it looks like the code base will stick longer with a combination of Polymer (paper-tokens), Material Design Components (mdc-tokens) and now Material Design 3 (md-tokens). Mainly because of there's a lot of code, it's hard to migrate from one to another and since the new material design 3 is not complete as of today, that won't make it easier. It's actually not really clear at this time if material design 3 is on their internal roadmap. Polymer to be completely removed from the code base has been mentioned in 2019 and should be a no-brainer now since the last polymer elements are replaced and there's just a bunch of paper-elements left. Looking forward to the comments of the HomeAssistant team, since I think that is required to have to move forward. |
Beta Was this translation helpful? Give feedback.
-
@matthiasdebaat would it be possible to create a material 3 theme for Home Assistant since more and more components are being migrated to Material 3? That would be a great first step and allow us to adopt material 3 faster (it would also help to generalizing dialog layouts, which is a feature request from you since dialogs are to be migrated as well) |
Beta Was this translation helpful? Give feedback.
-
Revamping the color system requires coordination between:
This will only be accepted if the new color system passes all 4 criteria. |
Beta Was this translation helpful? Give feedback.
-
Problems with current colors:
Solution:
Become M3-first. Make a base set of things like
--md-sys-color-primary: [the color]
, and turn primary-color into a derived color.Now the base style is M3-generated, it looks better, and redeclaring M3 stuff each time is no longer needed.
Result:
Blockers:
Conclusion:
I want to make a PR for this, but since this is a big change I want to get people's thoughts first, so leave your thoughts in the comments (ideally as in "change [...] to [...]" or "this will only be accepted if [...]", not "this is a bad idea")
Beta Was this translation helpful? Give feedback.
All reactions