color

scalatags.generic.Styles.color
object color

The CSS color property sets the foreground color of an element's text content, and its decorations. It doesn't affect any other characteristic of the element; it should really be called text-color and would have been named so, save for historical reasons and its appearance in CSS Level 1.

MDN

Attributes

Graph
Supertypes
class Style
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
color.type

Members list

Value members

Deprecated methods

def fuschia: StylePair[Builder, String]

Attributes

Deprecated
true

Inherited methods

def :=[Builder, T](v: T)(implicit ev: StyleValue[Builder, T]): StylePair[Builder, T]

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Attributes

Inherited from:
Style
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val aqua: StylePair[Builder, String]
lazy val black: StylePair[Builder, String]
lazy val blue: StylePair[Builder, String]
lazy val fuchsia: StylePair[Builder, String]
lazy val gray: StylePair[Builder, String]
lazy val green: StylePair[Builder, String]
lazy val lime: StylePair[Builder, String]
lazy val maroon: StylePair[Builder, String]
lazy val olive: StylePair[Builder, String]
lazy val purple: StylePair[Builder, String]
lazy val red: StylePair[Builder, String]
lazy val silver: StylePair[Builder, String]
lazy val teal: StylePair[Builder, String]
lazy val white: StylePair[Builder, String]
lazy val yellow: StylePair[Builder, String]

Inherited fields

lazy val currentColor: (CurrentColor, String)

Attributes

Inherited from:
CurrentColor (hidden)