跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Setup Tailwind Typescript

技能 已验证 活跃

Configure Tailwind CSS with TypeScript in a Next.js or React project. Covers installation, configuration, custom theme extensions, component patterns, and type-safe styling utilities. Use when adding Tailwind CSS to an existing TypeScript project, customizing the Tailwind theme for a project's design system, setting up type-safe component styling patterns, or configuring Tailwind plugins and extensions.

目的

To provide a clear, step-by-step guide for developers to integrate and configure Tailwind CSS effectively within their TypeScript projects, ensuring a smooth styling workflow and maintainable design system.

功能

  • Install Tailwind CSS and related dependencies
  • Configure `tailwind.config.ts` with custom themes and content paths
  • Set up global styles with Tailwind directives and custom layers
  • Create type-safe utility functions for merging class names
  • Implement dark mode support
  • Integrate optional Tailwind plugins

使用场景

  • Adding Tailwind CSS to a new or existing TypeScript project
  • Customizing a project's design system with Tailwind's theme extensions
  • Establishing type-safe component styling patterns
  • Configuring Tailwind plugins for extended functionality

非目标

  • Configuring CSS preprocessors other than PostCSS
  • Advanced Next.js or React-specific optimizations beyond Tailwind integration
  • Styling complex UI components from scratch (focus is on Tailwind setup)

安装

/plugin install agent-almanac@pjt222-agent-almanac

质量评分

已验证
100 /100
about 22 hours ago 分析

信任信号

最近提交2 days ago
星标14
许可证MIT
状态
查看源代码