Token

com.alecdorrington.laminarcomponents.Theme.Token
final case class Token(name: String, fallback: String)

A custom property of the theme.

Value parameters

fallback

Its value wherever the page leaves it unset.

name

Its name, as --lc-accent.

Attributes

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

Members list

Value members

Concrete methods

def :=(to: String): StyleSetter[String, String]

Sets the property.

Sets the property.

Value parameters

to

The value, as #0b7a75 or another property's var(--brand).

Attributes

Returns

The declaration.

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

val prop: StyleProp[String]

The property itself.

The property itself.

Attributes

val value: String

Its value, or the fallback, as a declaration's value reads it.

Its value, or the fallback, as a declaration's value reads it.

Attributes