Functions
color
Color(0xFF0066FF).
css
"rgb(26, 26, 26)".
hex
"#1A1A1A" or "#1A1A1A80".Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Kotlin Object
companion object
| Function | Description |
|---|---|
color | Creates a color from a Compose color, for example Color(0xFF0066FF). |
css | Creates a color from a CSS color value, for example "rgb(26, 26, 26)". |
hex | Creates a color from a hex string, for example "#1A1A1A" or "#1A1A1A80". |
fun color(color: Color): CheckoutColor
Color(0xFF0066FF).
fun css(value: String): CheckoutColor
"rgb(26, 26, 26)".
fun hex(value: String): CheckoutColor
"#1A1A1A" or "#1A1A1A80".Was this page helpful?
