Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

CSS from Scala code #3

Open
fomkin opened this issue Dec 18, 2014 · 1 comment
Open

CSS from Scala code #3

fomkin opened this issue Dec 18, 2014 · 1 comment
Assignees
Milestone

Comments

@fomkin
Copy link
Member

fomkin commented Dec 18, 2014

Add static typed CSS-like DSL with BEM notation support. Something like this

Style {

  block("button") {

    `background-color` := "red"
    `padding` := 5 px

    modifier("disabled") {
      `background-color` := "gray"
    }

    element("icon") {
      // something
    }
  }
}
@fomkin
Copy link
Member Author

fomkin commented Mar 30, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant