Skip to content

docs(docs): add comprehensive tailwind css playground documentation#998

Open
Oyead wants to merge 2 commits into
live-codes:developfrom
Oyead:add-TailwindCSS-Docs
Open

docs(docs): add comprehensive tailwind css playground documentation#998
Oyead wants to merge 2 commits into
live-codes:developfrom
Oyead:add-TailwindCSS-Docs

Conversation

@Oyead

@Oyead Oyead commented Jun 22, 2026

Copy link
Copy Markdown

What type of PR is this? (check all applicable)

  • ✨ Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • ♻️ Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert
  • 🌐 Internationalization / Translation

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

Screenshot_20260623_005424 Screenshot_20260623_005307 Screenshot_20260623_005252 Screenshot_20260623_005237

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentations?

  • [x ] 📓 docs (./docs)
  • 📕 storybook (./storybook)
  • 📜 README.md
  • 🙅 no documentation needed

[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

  • Documentation
    • Completed the Tailwind CSS language MDX page by replacing the previous placeholder with structured, end-to-end content.
    • Added interactive LiveCodes demos and usage guidance, including examples for using Tailwind with CSS frameworks in JSX/SFCs.
    • Expanded “Language Info,” “Compiler” behavior (client-side Tailwind JIT), code formatting guidance, and a starter template link.
    • Included additional Tailwind and LiveCodes-related resource links.

@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploy Preview for livecodes ready!

Name Link
🔨 Latest commit e87cece
🔍 Latest deploy log https://app.netlify.com/projects/livecodes/deploys/6a3a6a302925300008fa02d3
😎 Deploy Preview https://deploy-preview-998--livecodes.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 18779d3d-1cf8-4c19-a5a7-3d335dfebb00

📥 Commits

Reviewing files that changed from the base of the PR and between c9fde19 and e87cece.

📒 Files selected for processing (1)
  • docs/docs/languages/tailwindcss.mdx
💤 Files with no reviewable changes (1)
  • docs/docs/languages/tailwindcss.mdx

Walkthrough

The docs/docs/languages/tailwindcss.mdx file is populated with full documentation content, replacing the prior TODO placeholder. It adds two exported demo configuration objects, interactive demo and usage sections rendered via LiveCodes and RunInLiveCodes components, and reference sections covering language info, JIT compiler behavior, Prettier formatting, a starter template link, and external/internal links.

Changes

Tailwind CSS Documentation Page

Layer / File(s) Summary
Imports and exported demo config objects
docs/docs/languages/tailwindcss.mdx
Adds MDX component imports and defines basicDemo and tailwindcssDemo with editor selections, embedded source content, and tailwindcss as the processor.
Demo and Usage sections
docs/docs/languages/tailwindcss.mdx
Renders a LiveCodes component for the main demo, adds an info note on Tailwind directive handling, wires RunInLiveCodes to basicDemo, and adds a JSX/SFC subsection wired to tailwindcssDemo.
Language info, compiler, formatting, template, and links
docs/docs/languages/tailwindcss.mdx
Documents language name, extensions, editor type, client-side JIT compilation, Prettier formatting, the starter template URL, and links to Tailwind and related CSS processor docs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related PRs

  • live-codes/livecodes#874: Both PRs replace TODO... placeholders in language .mdx docs with fully populated sections that import and render LiveCodes/RunInLiveCodes using demo configs, following the same documentation pattern across different language files.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: comprehensive documentation was added to the Tailwind CSS language page, replacing the previous TODO placeholder with detailed content sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 1d722a9 and 88e8a2c.

📒 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 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:


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.

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.
🤖 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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ 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 configsbasicDemo, variantsDemo, and tailwindcssDemo for interactive playground examples.

Pullfrog  | Fix all ➔Fix 👍s ➔View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Comment thread docs/docs/languages/tailwindcss.mdx Outdated
processors: ['tailwindcss'],
};

export const variantsDemo = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Addressed in c9fde19.

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@Oyead Oyead force-pushed the add-TailwindCSS-Docs branch from c9fde19 to e87cece Compare June 23, 2026 11:12

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 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.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@sonarqubecloud

Copy link
Copy Markdown

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 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.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant