komposable / komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components
http://komponent.io
MIT License
427 stars 31 forks source link

Create a file for (S)CSS variables on install #88

Open Spone opened 6 years ago

Spone commented 6 years ago

When we run rails g komponent:install, let's create a file in frontend/base/variables.(s)css

When we generate a component, we should @import the variables file by default in the generated (S)CSS file. Make sure that the path is right (especially for nested components).

Or maybe we could add some configuration to be able to always import with @import "base/variables"; It's possible with https://github.com/postcss/postcss-import but we have to check with Sass.