Skip to content

A Derby plugin for adding the possibility to define (links to) styles on a component level

Notifications You must be signed in to change notification settings

BBWeb/d-component-styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

d-component-styles

A Derby plugin for adding the possibility to define (links to) styles on a component level

How to use

Adds the possibility to add a style-property on your Component prototype with a link to a stylesheet (or .styl, etc.), which will automatically be added when the component is added. I.e. it works very similar to defining the view on the component. E.g.

// When this component is loaded through app.component('./mycomponent/index.js'), the stylesheet in './mycomponents/styles/index.styl' will automatically be added
function MyComponent () {}

MyComponent.prototype.style = __dirname + '/styles'

About

A Derby plugin for adding the possibility to define (links to) styles on a component level

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published