works.iterative.ui.components.laminar.tailwind.color
We need a generic Color model that can be used both on server and on client.
We have adopted the Tailwind model for now. There is nothing inherently Tailwind-specific in the implementation, but all the values are taken from their palette and the area model is very HTML biased.
Still, I think that it is a good starting point for exploration and will satisfy our current needs.
Attributes
Members list
Type members
Classlikes
Complete color definition that can be rendered to CSS.
Complete color definition that can be rendered to CSS.
Includes the area, kind and weight of the color.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Defines the area the color should apply to, eg. background, text, border, etc.
Defines the area the color should apply to, eg. background, text, border, etc.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A combination of ColorKind and ColorWeight, if applicable.
A combination of ColorKind and ColorWeight, if applicable.
By applying area we get the full Color definition.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class UnweightedColorDefclass WeightedColorDef
Defines what color should be used, without specifying the area or weight.
Defines what color should be used, without specifying the area or weight.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object amberobject autoobject blackobject blueobject currentobject cyanobject emeraldobject fuchsiaobject grayobject greenobject indigoobject inheritobject limeobject neutralobject orangeobject pinkobject purpleobject redobject roseobject skyobject slateobject stoneobject tealobject transpobject violetobject whiteobject yellowobject zincShow all
Defines weight of a color, eg. 50, 100, 200, etc.
Defines weight of a color, eg. 50, 100, 200, etc.
Tailwind-like.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ColorWeight.type