These are chat archives for japgolly/scalacss

18th
Aug 2017
uneewk
@uneewk
Aug 18 2017 16:46
object MyStyles extends StyleSheet.Inline {
  import dsl._

  val noMacrosOrClassnameHintHere =
    style("manual")(
      margin(12 px),
      padding(0.5 ex),
      cursor.pointer,
      textDecorationLine.underline.overline,
      backgroundImage := "radial-gradient(5em circle at top left, yellow, blue)"
    )
}
when I try MyStyles.render I get:
Error:(5, 11) could not find implicit value for parameter r: scalacss.internal.Renderer[Out]
MyStyles.render
^
what I'm I doing wrong
Robert Elliot
@Mahoney
Aug 18 2017 19:19
You need to import a context to provide the implicit parameter.
import scalacss.ProdDefaults._ or import scalacss.DevDefaults._