pub struct Palette { /* private fields */ }
Expand description
In general, it is a look-up table.
When the color is automatically mixed when the interpolation expression is activated.
Builtin colors
https://tailwindcss.com/docs/customizing-colors
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
50,
100,
200,
300,
400,
500,
600,
700,
800,
900
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Convert the source color to the destination color using the specified
method Read more
Convert the source color to the destination color using the bradford
method by default Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more