Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tailwind integration new nesting option #5974

Merged
merged 4 commits into from
Dec 29, 2023
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Dec 28, 2023

Description (required)

Add new nesting option documentation.

Related issues & labels (optional)

  • Closes #
  • Suggested label:

Core PR: withastro/astro#9529

The core PR is already merged, but I think it's fine even if we document this later.

Copy link

vercel bot commented Dec 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Dec 29, 2023 10:12am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs-i18n ⬜️ Ignored (Inspect) Visit Preview Dec 29, 2023 10:12am

@@ -159,6 +159,10 @@ export default defineConfig({

You can now [import your own `base.css` as a local stylesheet](/en/guides/styling/#import-a-local-stylesheet).

#### nesting

Applies the [`tailwindcss/nesting` PostCSS plugin](https://tailwindcss.com/docs/using-with-preprocessors#nesting) so you can use Tailwind's syntax with CSS nesting.
Copy link
Member

Choose a reason for hiding this comment

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

@bluwy Would a code sample here look identical to the one above, just showing nesting instead of applyBaseStyles: false? Is this a boolean? Can it be toggled off? What's the default?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I wrote this in a whim and it indeed looks vague looking back now 😅 Yes it's a boolean you can enable and it's false by default. Will polish this up tomorrow with code examples too!

Copy link
Member

Choose a reason for hiding this comment

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

Haha, perfect! Thanks, no rush! Just wanted to clarify!

@sarah11918 sarah11918 added the add new content Document something that is not in docs. May require testing, confirmation, or affect other pages. label Dec 28, 2023
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks so much!

@sarah11918 sarah11918 merged commit 7d8a055 into main Dec 29, 2023
8 checks passed
@sarah11918 sarah11918 deleted the tailwind-nesting branch December 29, 2023 13:15
ematipico pushed a commit that referenced this pull request Jan 26, 2024
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: voxel!() <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add new content Document something that is not in docs. May require testing, confirmation, or affect other pages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants