shadcn/ui Theme Customization Guide
shadcn/ui is a component library built on top of Radix UI and Tailwind CSS. Here's how we can customize the theme.
Color System
We use the following colors as our primary design language:
const colors = {primary: {DEFAULT: "#2563eb",foreground: "#ffffff",},secondary: {DEFAULT: "#6b7280",foreground: "#ffffff",},// ... other colors};
Component Styles
Button
Our button component uses the following custom styles:
const Button = {baseStyle: {fontWeight: "medium",borderRadius: "md",},variants: {solid: {bg: "primary",color: "white",},outline: {border: "1px solid",borderColor: "primary",},},};
Usage
- Install necessary dependencies in your project
- Configure tailwind.config.js
- Create global style file
- Apply the theme
For more details, please refer to our design specification documentation.