← Về thư mục
📄 / / root / ceo / projects / blog / nhi-nhi-vo-blog / src / themes / custom / README.md

Custom Theme Creation

Creating a Custom Theme

  1. Rename the template: Rename custom.ts to whatever you want (e.g., my-theme.ts)
  2. Modify colors: Update the color scales to match your design
  3. Update config:
  4. Set theme: "custom" in src/config.ts
  5. Set customThemeFile: "my-theme" (filename without .ts extension)
  6. Test: Use pnpm dev to see your theme changes in real-time

That's it! The system automatically finds and uses your custom theme.

Multiple Custom Themes

If you want multiple custom themes: 1. Copy custom.ts and rename it (e.g., my-cool-theme.ts, cool-green-theme.ts) 2. Modify the colors in each file to create different themes 3. Switch between themes by changing customThemeFile in src/config.ts (e.g., "my-cool-theme", "cool-green-theme")

Color Scale Guidelines

Primary Colors

Highlight Colors

Theme Testing

Best Practices

Examples

See existing themes in src/themes/index.ts for reference implementations.