Skip to content

docs: add Tailwind CSS v4 & shadcn/ui guides with e2e tests#3099

Merged
SoonIter merged 9 commits intomainfrom
syt-vibe-kanban/0358-tailwind-v4-e2e
Feb 3, 2026
Merged

docs: add Tailwind CSS v4 & shadcn/ui guides with e2e tests#3099
SoonIter merged 9 commits intomainfrom
syt-vibe-kanban/0358-tailwind-v4-e2e

Conversation

@SoonIter
Copy link
Copy Markdown
Member

@SoonIter SoonIter commented Feb 2, 2026

Summary

  • Rewrite Tailwind CSS and shadcn/ui documentation using <Steps> component for both zh/en
  • Add components.json configuration guide and dark mode @custom-variant setup for shadcn/ui
  • Add shadcn/ui button and dark mode e2e tests to tailwind-v4 fixture
  • Sync Tailwind CSS preEntry tip to English preview.mdx
  • Move docs from guide/basic/ to ui/ directory

Test plan

  • Verify Tailwind CSS v4 e2e tests pass (utility classes, shadcn/ui button, dark mode toggle)
  • Verify documentation renders correctly with <Steps> component
  • Verify components.json example works with shadcn CLI

🤖 Generated with Claude Code

Add an e2e test fixture verifying Tailwind CSS v4 integration with Rspress,
and add dedicated Tailwind CSS documentation pages (en/zh) to the website.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 2, 2026 10:04
@SoonIter SoonIter changed the title feat: add Tailwind CSS v4 e2e test and documentation docs: add Tailwind CSS v4 e2e test and documentation Feb 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 2, 2026

Rsdoctor Bundle Diff Analysis

Found 3 projects in monorepo, 3 projects with changes.

📊 Quick Summary
Project Total Size Change
node 11.9 MB 📈 +316.5 KB (+2.7%)
node_md 1.5 MB 📈 +22.2 KB (+1.5%)
web 15.8 MB +62.2 KB (0.4%)
📋 Detailed Reports (Click to expand)

📁 node

Path: website/doc_build/diff-rsdoctor/node/rsdoctor-data.json

📌 Baseline Commit: 6b664bbfb6 | PR: #3100

Metric Current Baseline Change
📊 Total Size 11.9 MB 11.6 MB +316.5 KB (+2.7%)
📄 JavaScript 0 B 0 B 0
🎨 CSS 0 B 0 B 0
🌐 HTML 11.9 MB 11.6 MB +316.5 KB (+2.7%)
📁 Other Assets 0 B 0 B 0

📦 Download Diff Report: node Bundle Diff

📁 node_md

Path: website/doc_build/diff-rsdoctor/node_md/rsdoctor-data.json

📌 Baseline Commit: 6b664bbfb6 | PR: #3100

Metric Current Baseline Change
📊 Total Size 1.5 MB 1.5 MB +22.2 KB (+1.5%)
📄 JavaScript 0 B 0 B 0
🎨 CSS 0 B 0 B 0
🌐 HTML 0 B 0 B 0
📁 Other Assets 1.5 MB 1.5 MB +22.2 KB (+1.5%)

📦 Download Diff Report: node_md Bundle Diff

📁 web

Path: website/doc_build/diff-rsdoctor/web/rsdoctor-data.json

📌 Baseline Commit: 6b664bbfb6 | PR: #3100

Metric Current Baseline Change
📊 Total Size 15.8 MB 15.7 MB +62.2 KB (0.4%)
📄 JavaScript 15.5 MB 15.5 MB +55.8 KB (0.4%)
🎨 CSS 119.3 KB 119.3 KB 0
🌐 HTML 0 B 0 B 0
📁 Other Assets 166.2 KB 159.8 KB +6.4 KB (+4.0%)

📦 Download Diff Report: web Bundle Diff

Generated by Rsdoctor GitHub Action

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Feb 2, 2026

Deploying rspress-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9aa7255
Status: ✅  Deploy successful!
Preview URL: https://c5eb8a9c.rspress-v2.pages.dev
Branch Preview URL: https://syt-vibe-kanban-0358-tailwin.rspress-v2.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds official Tailwind CSS v4 integration coverage to the repo, both in documentation and in automated e2e testing. It introduces a dedicated Tailwind v4 fixture, updates dependency locking for the new tooling, and wires Tailwind docs into the website navigation.

Changes:

  • Add English and Chinese Tailwind CSS v4 setup guides, including PostCSS and globalStyles configuration examples.
  • Introduce a new e2e/fixtures/tailwind-v4 project (config, CSS, MDX page, and Playwright test) to verify Tailwind utilities work correctly with Rspress.
  • Update dependency-related tooling: extend check-dependency-version ignores and refresh pnpm-lock.yaml with Tailwind v4 and its transitive dependencies.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/docs/zh/guide/basic/tailwind-css.mdx New Chinese guide describing how to install, configure, and use Tailwind CSS v4 with Rspress, including example MDX usage.
website/docs/zh/guide/basic/_meta.json Registers the new Tailwind CSS guide in the Chinese basic guide sidebar navigation.
website/docs/en/guide/basic/tailwind-css.mdx New English Tailwind CSS v4 integration guide with PostCSS config, tailwind.css entry file, rspress.config.ts example, and usage snippet.
website/docs/en/guide/basic/_meta.json Registers the new Tailwind CSS guide in the English basic guide sidebar navigation.
pnpm-lock.yaml Locks in Tailwind CSS v4 (tailwindcss, @tailwindcss/postcss, @tailwindcss/node, @tailwindcss/oxide*) and associated lightningcss artifacts, and updates the resolved graph for rsbuild-plugin-publint and related tooling.
package.json Extends the check-dependency-version script to ignore the new @rspress-fixture/tailwind-v4 fixture when enforcing dependency consistency.
e2e/fixtures/tailwind-v4/tsconfig.json TypeScript config for the Tailwind v4 fixture, enabling MDX checking and targeting the doc content plus rspress.config.ts.
e2e/fixtures/tailwind-v4/tailwind.css Minimal Tailwind CSS entry file using @import 'tailwindcss'; for v4.
e2e/fixtures/tailwind-v4/rspress.config.ts Rspress configuration for the Tailwind v4 fixture, wiring root: doc and globalStyles: tailwind.css.
e2e/fixtures/tailwind-v4/postcss.config.mjs PostCSS configuration that enables Tailwind v4 via the @tailwindcss/postcss plugin.
e2e/fixtures/tailwind-v4/package.json Package definition for the Tailwind v4 fixture, including Rspress core dependency and Tailwind v4 devDependencies.
e2e/fixtures/tailwind-v4/index.test.ts Playwright e2e test that boots the fixture with rspress dev and asserts Tailwind utility classes affect computed color, font-weight, and padding as expected.
e2e/fixtures/tailwind-v4/doc/index.mdx Example MDX page in the fixture that uses Tailwind utility classes to produce distinct styles for the test to assert against.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

SoonIter and others added 3 commits February 2, 2026 18:11
…e docs

- Add shadcn/ui integration guide (en/zh) with setup steps and Button example
- Remove outdated Tailwind CSS v3 section from custom page documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reference Rsbuild's Tailwind CSS v4 and v3 documentation since Rspress
is built on Rsbuild with consistent configuration. Add warnings about
Cascade Layers browser compatibility and CSS preprocessor limitations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…dd e2e tests

- Rewrite Tailwind CSS and shadcn/ui docs using <Steps> component for both zh/en
- Add components.json configuration guide for shadcn/ui
- Add dark mode @custom-variant setup to Tailwind CSS guide
- Add shadcn/ui button and dark mode e2e tests to tailwind-v4 fixture
- Sync Tailwind CSS preEntry tip to English preview.mdx
- Fix shadcn-ui prerequisite link to new /ui/tailwindcss path

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@SoonIter SoonIter changed the title docs: add Tailwind CSS v4 e2e test and documentation docs: add Tailwind CSS v4 & shadcn/ui guides with e2e tests Feb 2, 2026
@SoonIter SoonIter requested a review from Timeless0911 February 3, 2026 06:28
@SoonIter SoonIter enabled auto-merge (squash) February 3, 2026 06:28
@SoonIter SoonIter merged commit 7d01dbd into main Feb 3, 2026
5 checks passed
@SoonIter SoonIter deleted the syt-vibe-kanban/0358-tailwind-v4-e2e branch February 3, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants