Theme support for extended colours and named colour in theme reference #646
-
Hi, I have setup my light and dark theme specifications as follows, based on the information available at https://solara.dev/documentation/components/lab/theming and the theme generator at https://theme-generator.vuetifyjs.com/.
Q1: However, this does not specify the "on" colours discussed at https://m2.material.io/design/material-theming/implementing-your-theme.html. Are they supported? Can I specify colours such as As a consequence of lacking the ability of specifying the "on" and the other colours, with the dark mode it is impossible to see the currently selected top navigation menu item at https://huggingface.co/spaces/xtremebytes/TLDRLC. Q2: If I want to refer to a particular named colour from the theme using the style to specify the CSS, I could go with something like this. However, using this, the colour does not change when the theme is toggled from dark to light or light to dark. Why?
Q3: Finally, is Material 3 -- https://m3.material.io/ -- supported? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hey @anirbanbasu! Q1: It's actually unclear to me whether Vuetify supports "on" colours. I'll take a look and get back to you. However, in general I would expect Q2: This is because Q3: Not currently. This is something we've talked about among the developers before, and is something we'd like to get in at some point in the future. |
Beta Was this translation helpful? Give feedback.
-
@iisakkirotko thanks a lot! That worked (see commit: anirbanbasu/tldrlc@d79dcef). I shall mark your last reply as the answer. |
Beta Was this translation helpful? Give feedback.
@anirbanbasu sorry, I think I should have phrased my previous answer better. If passing
layout=Layout
to the routes, you only need to pass it to the "root path", i.e.You can see some more discussion about why this happens a couple comments down in this issue.