JSPM

themes-classname

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q80037F
  • License MIT

create themes className(m-name--themes-night)

Package Exports

  • themes-classname

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (themes-classname) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

themes-classname

npm i themes-classname --save
var themesClassName = require('themes-classname')
themesClassName({
    themes: 'dark',
    prefixClassName: 'm-modal'
})
// "m-modal--themes-dark"
themesClassName({
    themes: 'dark big',
    prefixClassName: 'm-modal'
})
// "m-modal--themes-dark m-modal--themes-big"
themesClassName({
    themes: 'dark big',
    prefixClassName: 'm-select'
}, 'menu')
// "m-select-menu--themes-dark m-select-menu--themes-big"