tenderowls / moorka

ABANDONED
21 stars 5 forks source link

CSS from Scala code #3

Open fomkin opened 9 years ago

fomkin commented 9 years ago

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 commented 9 years ago

https://github.com/japgolly/scalacss