Skip to main content
The Compound React UI components are built with shadcn/ui and Tailwind CSS, making them highly customizable while maintaining a consistent look and feel.

Basic Customization

All components accept a className prop that allows you to add custom Tailwind CSS classes:

Theme Customization

The components use CSS variables for theming, following the shadcn/ui convention. You can customize these variables in your global CSS file:

Compound-Specific Styling

To match the Compound Finance brand, you might want to use the following color scheme:

Component-Specific Styling

Each component has specific parts that can be styled. Here are some examples:

Cards

Components like Asset Info Card, User Position Summary, and others use the Card component internally:
You can target these elements with custom classes:

Buttons

The Button component is used throughout the UI components and can be customized with variants:

Using with Tailwind CSS

To use these components with Tailwind CSS, make sure you have Tailwind CSS installed and configured in your project. You’ll need the following plugins:
  • tailwindcss-animate
  • class-variance-authority
  • clsx
  • tailwind-merge
For a complete setup guide, see the shadcn/ui installation guide.