imba-styles

0.1.1 • Public • Published

imba-styles

Write CSS in Imba/JavaScript:

var styles = require "imba-styles"
 
tag article
    styles.insert self,
        header-css:
            font-weight: "bold"
            font-size: "28px"
            margin-bottom: "0.5em"
 
        body-css:
            "& p":
                margin-bottom: "1em"
 
    def render
        <self>
            <div class=@header-css> object.title
            <div class=@body-css> object.body
 
tag main
    def render
        <self>
            <style> styles.toString
            <article>

Readme

Keywords

Package Sidebar

Install

npm i imba-styles

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • judofyr