Basic Customization
All components accept aclassName
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 likeAsset Info Card
, User Position Summary
, and others use the Card component internally:
Buttons
TheButton
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