Theme

com.alecdorrington.laminarcomponents.Theme
object Theme

The custom properties the components are coloured and shaped by, each with a default. A page sets them to its own, usually on :root:

Stylesheet(rule(":root")(Theme.accent := "#0b7a75", Theme.radius := "4px"))

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Theme.type

Members list

Type members

Classlikes

final case class Token(name: String, fallback: String)

A custom property of the theme.

A custom property of the theme.

Value parameters

fallback

Its value wherever the page leaves it unset.

name

Its name, as --lc-accent.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete fields

val accent: Token

The colour of what is chosen or to be pressed.

The colour of what is chosen or to be pressed.

Attributes

The accent under the pointer.

The accent under the pointer.

Attributes

The accent, faint, behind what it marks.

The accent, faint, behind what it marks.

Attributes

val border: Token

The colour of borders.

The colour of borders.

Attributes

The colour of borders that stand out, as a field's.

The colour of borders that stand out, as a field's.

Attributes

val danger: Token

The colour of what deletes or cannot be undone.

The colour of what deletes or cannot be undone.

Attributes

The danger colour under the pointer.

The danger colour under the pointer.

Attributes

val field: Token

The colour of a field to type in, until focused.

The colour of a field to type in, until focused.

Attributes

The ring around what has the keyboard's focus.

The ring around what has the keyboard's focus.

Attributes

val radius: Token

The rounding of the corners of dialogs and popovers.

The rounding of the corners of dialogs and popovers.

Attributes

The rounding of the corners of buttons, fields and menus.

The rounding of the corners of buttons, fields and menus.

Attributes

val shadow: Token

The shadow beneath menus and dialogs.

The shadow beneath menus and dialogs.

Attributes

The shadow beneath buttons.

The shadow beneath buttons.

Attributes

val surface: Token

The colour of popovers, menus and dialogs.

The colour of popovers, menus and dialogs.

Attributes

The colour of a plain button under the pointer.

The colour of a plain button under the pointer.

Attributes

val text: Token

The colour of text.

The colour of text.

Attributes

The colour of text of least note, and of borders under the pointer.

The colour of text of least note, and of borders under the pointer.

Attributes

The colour of text of less note.

The colour of text of less note.

Attributes

val tokens: List[Token]

Every property of the theme.

Every property of the theme.

Attributes

The colour of a tooltip.

The colour of a tooltip.

Attributes

The colour of a tooltip's text.

The colour of a tooltip's text.

Attributes