Skip to content

Theming

Peacock UI is built on top of Tailwind CSS 4 and leverages CSS variables for deep customization.

Color System

The default palette is inspired by high-fidelity dark modes.

VariableDefault HexDescription
peacock-primary#5865F2The signature Discord-inspired blue.
peacock-success#23a559Vibrant emerald for success states.
peacock-danger#f43f5eSoft rose for errors.
peacock-dark#0f0f12Deep charcoal for backgrounds.

Customizing via Tailwind

You can override these colors in your tailwind.config.mjs:

js
export default {
  theme: {
    extend: {
      colors: {
        peacock: {
          primary: '#your-hex-code',
        }
      }
    }
  }
}

Dark Mode

Peacock UI is dark-mode first. Ensure your application has the dark class on a parent element (or use the PeacockProvider) to enable the full aesthetic.

tsx
<PeacockProvider theme="dark">
  <App />
</PeacockProvider>

Released under the MIT License.