Color Tokens
Color tokens help maintain consistent use of color throughout your app. Pure UI provides palettes for theme colors and primitives that you can use as a foundation for your design system.
Color tokens are referenced using the --p-color-{name}-{n}
CSS custom property, where
{name}
is the name of the palette and {n}
is the numeric value of the desired
swatch.
Theme Tokens
Theme tokens give you a semantic way to reference colors in your app. The primary palette is typically based on a brand color, whereas success, neutral, warning, and danger are used to visualize actions that correspond to their respective meanings.
--p-color-primary-{n}
--p-color-success-{n}
--p-color-warning-{n}
--p-color-danger-{n}
--p-color-neutral-{n}
--p-color-neutral-{n}
Looking for an easy way to customize your theme? Try the color token generator!
Primitives
Additional palettes are provided in the form of color primitives. Use these when you need arbitrary colors that don’t have semantic meaning. Color primitives are derived from the fantastic Tailwind color palette.
--p-color-gray-{n}
--p-color-red-{n}
--p-color-orange-{n}
--p-color-amber-{n}
--p-color-yellow-{n}
--p-color-lime-{n}
--p-color-green-{n}
--p-color-emerald-{n}
--p-color-teal-{n}
--p-color-cyan-{n}
--p-color-sky-{n}
--p-color-blue-{n}
--p-color-indigo-{n}
--p-color-violet-{n}
--p-color-purple-{n}
--p-color-fuchsia-{n}
--p-color-pink-{n}
--p-color-rose-{n}