These are chat archives for japgolly/scalacss

24th
Sep 2017
Ryan Williams
@ryan-williams
Sep 24 2017 15:22

working through the docs, similar problem to that discussed above, in order to get

println( MyStyles.render )

to compile i needed to import these implicits:

import scalacss.DevDefaults.{ cssEnv, cssStringRenderer }
now i'm missing how to actually add these styles to my page… :) i assume it's simple but i can't find info in the docs. I see some installStyles APIs and things…

looks like

import scalacss.defaults.PlatformExports._
installStyle(
  createStyleElement(
    MyStyles.render
  )
)

works