How can I use SCSS like on normal react js web application?

I am going to use node-sass package instead of the current styling method that is supported on Frontity.

import './theme-files/assets/scss/style.scss';

like the above. is it possible?

Hey @forevereffort welome to the Frontity community!

It’s not possible to use SCSS with Frontity. It’s covered here in our docs: https://docs.frontity.org/learning-frontity/styles#from-sass-to-css-in-js

You also can find more information in these other two threads:

Hope this helps.

@Pablo Thank you very much. for building theme from scratch, I need to add normalize.css. how can I do it?

I am using https://necolas.github.io/normalize.css/ for start html building

PS @Pablo can you review my another question, too? By somereason, I need to get another page acf fields. my following frontity API using is correct?

Hi @forevereffort

Take a look at this repo for an example of importing a CSS file into a Frontity project: https://github.com/frontity-demos/bootstrap-theme-demo

This example uses Bootstrap, but the principle will apply to any CSS file.

In particular take a look at this file: https://github.com/frontity-demos/bootstrap-theme-demo/blob/master/packages/bootstrap-theme/src/components/Theme/index.js

Here are the docs for applying styles globally across your project:

Hope this helps.

@mburridge Thank you very much. if possible, can you review my another question? By somereason, I need to get another page acf fields. my following frontity API using is correct?