Skip to content

subsetcss/config-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@subsetcss/config-helpers

Helpers for building out .subsetcss.js config files.

Available helpers

getVariables

const { getVariables } = require('@subsetcss/config-helpers');

let colors = getVariables('app/styles/variables.scss');
// colors = [
//   { key: '$primary': value: 'red' },
//   { key: '$secondary': value: 'blue' }
// ]

module.exports = {
  subsets: {
    color: colors.map(c => c.key)
  }
};

Works for files ending in .scss and .less.

Contributing

Check out the Contributing guide.

About

No description or website provided.

Topics

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages