Semantic is a UI framework designed for theming. It is possible to build nice and beautiful UI using Scala language. Here I will provide short instructions how to do that.


The code is based one the semantic-ui-react wrapper for Semantic UI React component. It is written using scalajs-react library for ScalaJs.

Add dependencies in build.sbt:

libraryDependencies ++= Seq(
  "com.dbrsn.scalajs.react.components" %%% "semantic-ui-react" % "0.3.1"
npmDependencies in Compile ++= Seq(
  "semantic-ui-react" -> "0.84.0",
  "react" -> "16.7.0",
  "react-dom" -> "16.7.0"


Example of usage:

SuiButton(animated = true, onClick = (_: ReactMouseEventFromHtml) => Callback(???))(
  SuiButtonContent(visible = true)("Hello, World!"),
  SuiButtonContent(hidden = true)(SuiIcon(name = SuiIconType("arrow right"))())

Don’t forget to add styles to your html:

<link rel="stylesheet" href="//" />

Source Code

Source code can be found here