Each component can have a style file. By default, Flynt supports vanilla CSS files, and the pre-processor Stylus.
The style file should be named
style.css, and be placed within the individual component folder. This file will be automatically compiled to the
dist folder in the same location.
Components/ExampleComponent/style.styl compiles to
This will not automatically enqueue the styles in the front-end. To do this, you must enqueue the files within the component’s
It is also possible to add support for other pre-processors with gulp. See an example of how to switch to SASS here.