Overview
Color customization is the foundation of matching the Layerswap Widget to your branding. The widget supports comprehensive color theming including primary and secondary palettes, status colors, and text colors.Generating Color Palettes
Creating consistent color shades (100-900) for your theme is easy with Tailwind Shades:Tailwind Shades Generator
Generate color palettes with 10 shades from a single base color. Ideal for creating consistent primary and secondary color schemes.
How to Use Tailwind Shades
- Visit tailwindshades.app
- Enter your brand’s primary color (hex, RGB, or HSL)
- The tool generates 10 shades (100-900) plus a DEFAULT shade
- Copy the generated colors and convert to Layerswap format
Converting Tailwind Colors to Layerswap Format
Tailwind Shades provides colors in various formats. For Layerswap, use theRGB values without the rgb() wrapper:
Tailwind Shades Output:
Color Types
ThemeColor Type
Primary and secondary colors follow theThemeColor structure with 10 shades:
StatusColor Type
Status colors (warning, error, success) use a simpler structure:Primary Colors
Primary color palette used for main UI elements. Includes 10 shades (100-900), a DEFAULT value, and a text color.
- Main action buttons
- Links and interactive elements
- Primary highlights and accents
- Progress indicators
Secondary Colors
Secondary color palette used for backgrounds, cards, and supporting UI elements. Follows the same structure as primary colors.
- Card backgrounds
- Panel surfaces
- Secondary text and labels
- Borders and dividers
Tertiary Color
Tertiary color used for borders, dividers, and subtle UI elements. Single RGB value.
- Borders
- Dividers
- Input field outlines
- Decorative elements
Button Text Color
Text color specifically for buttons. Overrides the primary text color for button labels.
Status Colors
Status colors are used for displaying different states like warnings, errors, and success messages. Each status color has foreground (text) and background values.Warning Colors
Warning color with foreground (text) and background values.
Error Colors
Error color with foreground (text) and background values.
Success Colors
Success color with foreground (text) and background values.