Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70448

Set Theme on Build / Serve

$
0
0

@seven21 wrote:

I’m very new to ionic so I still don’t know much about configuring the project.

One of the things we need to implement is building different apps with different themes. All my research points to theme switching, but what we’re aiming is different.

We have a single code base but will have to create multiple versions mostly only differs in colors. There will only be one theme per app.
If I were to manually do this, and say I want to create a red themed app, I will update the colors in variables.scss then build or serve.
Now if I want to create a green themed app, I just repeat the same process above, change color to green and, build or serve.

Can this be achieved using a configuration setting and select which theme to use on build or serve command,
something like “ionic serve --theme=red” ?

Thanks in advance

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>