docs(docs): add comprehensive tailwind css playground documentation#998
docs(docs): add comprehensive tailwind css playground documentation#998Oyead wants to merge 2 commits into
Conversation
✅ Deploy Preview for livecodes ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughThe ChangesTailwind CSS Documentation Page
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/docs/languages/tailwindcss.mdx`:
- Line 84: The link to the Tailwind CSS JIT compiler documentation in the mdx
file references an outdated v2 archived page at `/docs/just-in-time-mode`.
Update the URL in the markdown link to point to the current Tailwind v3+
documentation page on class detection instead, since JIT is now the default
engine and the v2 page serves only as a historical reference.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 838dae6c-902e-470e-80e3-13ea2ee7e6d7
📒 Files selected for processing (1)
docs/docs/languages/tailwindcss.mdx
|
|
||
| ## Compiler | ||
|
|
||
| [Tailwind CSS JIT compiler](https://tailwindcss.com/docs/just-in-time-mode), running client-side in the browser. The JIT compiler generates styles on-demand, so only the classes used in your markup are included in the output. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor
🧩 Analysis chain
🌐 Web query:
What is the current official Tailwind CSS documentation page that explains class detection / JIT-style on-demand generation for the latest Tailwind version?
💡 Result:
In modern versions of Tailwind CSS (v3.0 and above, including the latest v4.0), "JIT-style" on-demand generation is no longer an optional mode that needs to be enabled—it is the default, underlying engine of the framework [1][2][3]. Because it is now the standard behavior, there is no longer a specific "JIT mode" documentation page. Instead, the documentation explains this concept under the "Core Concepts" section, specifically on the page titled "Styling with utility classes" [4]. This page describes how Tailwind scans your source files to generate CSS on-demand based on the classes you actually use [4]. Key details regarding the current state of Tailwind's compilation: - Default Behavior: Since Tailwind CSS v3.0, the framework has been JIT-only [1]. You do not need to configure any special modes; you simply set up your content paths (in v3) or rely on automatic source detection (in v4) [5][6][2]. - Official Documentation: The primary resource for understanding how Tailwind processes your classes is the "Core Concepts" section of the documentation [4]. You can access it here: https://tailwindcss.com/docs/styling-with-utility-classes. - Evolution: The "Just-in-Time Mode" page [7] exists in the documentation primarily as a historical reference for users migrating from Tailwind CSS v2.x, where JIT was an experimental feature that required manual activation via the mode: 'jit' configuration [7][2]. In summary, you should refer to the "Styling with utility classes" documentation [4] to understand how Tailwind's modern on-demand engine detects and generates your utility classes.
Citations:
- 1: "Old" build/compilation mode for Tailwind 3 tailwindlabs/tailwindcss#6256
- 2: https://eastondev.com/blog/en/posts/dev/20260330-tailwind-performance-optimization/
- 3: https://www.acciyo.com/understanding-tailwind-css-jit-mode-for-faster-development-in-2025/
- 4: https://tailwindcss.com/docs/styling-with-utility-classes
- 5: https://v3.tailwindcss.com/docs/v4-beta
- 6: https://tailwindcss.com/blog/tailwindcss-v4
- 7: https://tailwindcss.com/docs/just-in-time-mode
Update the JIT docs reference to a current-version Tailwind page.
Line 84 links to a v2 archived page (/docs/just-in-time-mode). In Tailwind v3+, JIT is the default engine rather than an optional mode, and this page now serves only as a historical reference. Switch to the current documentation on class detection.
Suggested change
-[Tailwind CSS JIT compiler](https://tailwindcss.com/docs/just-in-time-mode), running client-side in the browser. The JIT compiler generates styles on-demand, so only the classes used in your markup are included in the output.
+[Tailwind CSS compiler](https://tailwindcss.com/docs/styling-with-utility-classes), running client-side in the browser. It generates styles on-demand, so only the classes used in your markup are included in the output.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| [Tailwind CSS JIT compiler](https://tailwindcss.com/docs/just-in-time-mode), running client-side in the browser. The JIT compiler generates styles on-demand, so only the classes used in your markup are included in the output. | |
| [Tailwind CSS compiler](https://tailwindcss.com/docs/styling-with-utility-classes), running client-side in the browser. It generates styles on-demand, so only the classes used in your markup are included in the output. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/docs/languages/tailwindcss.mdx` at line 84, The link to the Tailwind CSS
JIT compiler documentation in the mdx file references an outdated v2 archived
page at `/docs/just-in-time-mode`. Update the URL in the markdown link to point
to the current Tailwind v3+ documentation page on class detection instead, since
JIT is now the default engine and the v2 page serves only as a historical
reference.
There was a problem hiding this comment.
ℹ️ No critical issues — one minor cleanup suggestion inline.
Reviewed changes — fills in the Tailwind CSS language documentation page which was previously a TODO stub.
- Add Tailwind CSS docs page — demo embeds, usage guide (HTML and JSX/SFC), language info, compiler notes, and reference links.
- Three demo configs —
basicDemo,variantsDemo, andtailwindcssDemofor interactive playground examples.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
| processors: ['tailwindcss'], | ||
| }; | ||
|
|
||
| export const variantsDemo = { |
There was a problem hiding this comment.
variantsDemo is defined and exported but never referenced anywhere on the page. Remove it or add a demo that uses it (e.g. a variant-specific example).
There was a problem hiding this comment.
Addressed in c9fde19.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
c9fde19 to
e87cece
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — removed the unused variantsDemo constant, addressing the prior Pullfrog review feedback.
- Removed unused
variantsDemo— the variant-specific demo config was exported but never referenced on the page.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — removed the unused variantsDemo constant (addressing prior Pullfrog review feedback) and reworded the commit message. No other changes since the last review.
- Removed unused
variantsDemo— the variant-specific demo config was exported but never referenced on the page.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏




What type of PR is this? (check all applicable)
Description
Add Tailwind CSS language documentation
Fills in the tailwindcss.mdx language page which was previously a TODO.
Related Tickets & Documents
#769
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentations?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?
Summary by CodeRabbit