Skip to content

salesforce-ux/design-system-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Design System Compiler

Installation

npm install @salesforce-ux/design-system-compiler

Usage

const fs = require('fs')
const path = require('path')
const {compile} = require('@salesforce-ux/design-system-compiler')
const pathToSassFolder = path.resolve(__dirname, 'node_modules/@salesforce-ux/design-system/scss')

// produce a css file scoped to your class name
compile(pathToSassFolder, {scope: 'myScope'}, css => {
  fs.writeFileSync('scoped-design-system.css', css)
})
// no scoping class:
compile(pathToSassFolder, {}, css => {
  fs.writeFileSync('scoped-design-system.css', css)
})

Licenses

Source code is licensed under BSD 3-Clause

About

Sass Compiler for the design system

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published