Skip to content

docs(repo): put Mosaic's layer after Tailwind's base reset - #10896

Merged
alexcarpenter merged 1 commit into
carp/mosaic-docs-sitefrom
max/mosaic-docs-tailwind-layers
Nov 18, 2026
Merged

alexcarpenter merged 1 commit into
carp/mosaic-docs-sitefrom
max/mosaic-docs-tailwind-layers

Conversation

@maxyinger

Copy link
Copy Markdown
Collaborator

Fix for the With Tailwind snippet in setup.mdx (#10862).

Tailwind v4's @import 'tailwindcss' declares @layer theme, base, components, utilities. With @layer clerk; declared first, the order becomes clerk, theme, base, …, so Tailwind's base reset (button padding, backgrounds, borders) outranks every Mosaic rule. We hit this setting up @clerk/mosaic in a fresh Next.js 16 + Tailwind v4 app for clerk.com/ui.

The snippet now lists Tailwind's layers with clerk between base and components: the reset stays below Mosaic, and utilities stay above it.

@layer theme, base, clerk, components, utilities;
@import 'tailwindcss';
@import '@clerk/mosaic/styles.css' layer(clerk);

Targets carp/mosaic-docs-site, so it lands with #10862.

🤖 Generated with Claude Code

With `@layer clerk;` declared first, Tailwind's base layer outranks Mosaic's, so its reset (button
padding, backgrounds, borders) strips Mosaic's styles. Declaring Tailwind's layers around `clerk` keeps
the reset below Mosaic and utilities above it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mosaic-docs Ready Ready Preview Nov 18, 2026 4:32pm UTC
swingset Building Building Preview Nov 18, 2026 4:32pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
clerk-js-sandbox Skipped Skipped Nov 18, 2026 4:32pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3330d4a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@alexcarpenter
alexcarpenter merged commit 1ec2a07 into carp/mosaic-docs-site Nov 18, 2026
10 of 11 checks passed
@alexcarpenter
alexcarpenter deleted the max/mosaic-docs-tailwind-layers branch November 18, 2026 16:33

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – swingset — 3330d4ad Deployed Nov 18, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 3330d4ad Deployed Nov 18, 2026 by vercel[bot]
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.

2 participants