ScalaCSS

Quick Start

Add ScalaCSS to your project by adding this dependency to your SBT build:

libraryDependencies += "com.github.japgolly.scalacss" %% "core" % "0.5.3"

Or for Scala.JS:

libraryDependencies += "com.github.japgolly.scalacss" %%% "core" % "0.5.3"

Then to start using it, decide which of the following best suits your needs.

StyleSheets come in two flavours.

Standalone.

Produces static CSS for external consumption.

Like SCSS and LESS.

Example.

Inline.

Styles are values that can be applied directly in Scala & Scala.JS to HTML-like stuff.

Example.