Use scss directly on a widget #744
Replies: 2 comments
-
|
Outdated. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
AGS transpiles scss and will give you the css so you can do import css from "./mybutton.scss";
app.apply_css(css)keep in mind that scss is a preprocessor, if you want to apply scss per widget instance you have to transpile manually, for example using |
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
Uh oh!
There was an error while loading. Please reload this page.
-
We can use SCSS or CSS at the root level of the application. We can also apply CSS directly to a widget. Is there a way to apply SCSS directly to a widget as well?
For example, I’d like to do something similar to CSS, but with SCSS:
import scss from "./mybutton.scss";
Beta Was this translation helpful? Give feedback.
All reactions