Replies: 1 comment
-
The same need here. I would like to use variables of inputtext, but only available if an inputtext has been loaded before. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a bit of confusion about if/when I can use selectors or if I am doing something just wrong in the setup of v18.
in my component, i can just grab the root color with $dt and it works like a charm.
which is correct. However, if I try to reference the variable in the global styles.scss:
It says --p-card-background & --p-card-color are not set.
that said, if i set the color to a semantic value, like
--p-surface-900
It does work.Can you not use component variables in css? seems like something arbitrary or a bug in my implementation.
I'm trying to migrate things over to build off primeng, thus "reskinning" to match primeng would be ideal, but I feel like im doing something wrong if I can't access those variables in the CSS.
Beta Was this translation helpful? Give feedback.
All reactions