Alex Polkhovsky
Alex Polkhovsky

Reputation: 3360

How do you modify Ionic colors in Meteor?

I'm using the official Ionic package for Meteor. Working directly with Ionic, there is a way to write a SASS theme. How would you do this in a Meteor set up?

Upvotes: 2

Views: 102

Answers (2)

Luca
Luca

Reputation: 558

  1. Add the fourseven:scss package
  2. Download this repo https://github.com/nickw/meteor-ionic-scss-import and copy all the files to /client/stylesheets/ionic
  3. In your main scss file, import ionic.import.scss: @import "./ionic/ionic.import.scss";
  4. Overwrite the colors in _variables.import.scss
  5. Go have a beer.

Upvotes: 1

pors
pors

Reputation: 4054

You might want to have a look at how it was done in Meteoric. Although this package is no longer maintained you can reuse the concepts that are used there:

Note that these packages support an older version of Ionic, if you want to use the newest version, you can include it from here in your "style" folder: https://github.com/driftyco/ionic/tree/master/scss

Upvotes: 1

Related Questions