McKayB
Access CSS Variables?
@kapa.ai None of these variables:
... are working, whether I use them in the same main.css file where they're created, or I try to use them in inline styles. They do, however, show up as being defined in the browser dev tools.
29 replies
Access CSS Variables?
@kapa.ai Your first solution doesn't make the cyan var work, it just makes other divs in the project turn red.
Your second solution didn't do anything that I could see.
Your third solution wiped out the red background and font-size CSS rules' behavior that was working before.
29 replies
Access CSS Variables?
@kapa.ai Yeah I made a minimal reproduction of the issue. These are the only files I modified from base Nuxt:
nuxt.config.ts
~/assets/main.css
app.vue
The background-color: red and the font-size rule are being applied fine. The
var(--myCyan)
is not.29 replies
Submit securely
OK that pretty well answers the question -- follow-up question is for opinions: should I just embrace the Nuxt native way, or should I use the third-party Form Actions extension? Considering I know I've liked Actions better than API endpoints in other frameworks, but also that I'm trying to keep the project sleek and elegant.
7 replies