Usa variables de tema en un componente de tema

Is there a way to use theme variables (e.g., $primary or $love) in a theme component?

Should work fine in css

Ah. I was asking a more basic question. The theme variables are in a Sass file, right? How would I use them from a theme (or theme component) when I’m just adding CSS?

They are just there, implicitly, using magic

Read through the source of the material design theme

3 Me gusta

Thanks, I think I got it. I was able to use them if I dropped a variable in the CSS field in the theme UI, but not in the way I’m including them (via <link rel="stylesheet" href="…">). I’ll look into restructuring my theme so that it plays well with the new theme architecture.

1 me gusta

Este tema se cerró automáticamente después de 2531 días. Ya no se permiten nuevas respuestas.