Skip to content

Commit

Permalink
refactor: Don’t use layers
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 3, 2025
1 parent 418bd24 commit 2bd82f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions buildchain/src/css/tailwind-config.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

/**
* Disable the Tailwind CSS Preflight styles, as they can interfere with Craft CMS
* CP styles. ref: https://tailwindcss.com/docs/preflight#disabling-preflight
*
* CP styles. We intentionally do not use @layer here because we don't control the
* rest of the CP CSS (which does not use @layer), and need the Tailwind utilities
* to override it. ref: https://tailwindcss.com/docs/preflight#disabling-preflight
*/
@layer theme, base, components, utilities;
@import "tailwindcss/theme.css";
@import "tailwindcss/utilities.css";

@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" layer(utilities);
@source "../../../src/templates";

@theme {
Expand Down

0 comments on commit 2bd82f6

Please sign in to comment.