Skip to content

Commit

Permalink
refactor: Clean up for Tailwind CSS 4
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 27, 2025
1 parent f5487c2 commit bc502a3
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions buildchain/src/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@
*
*/

/**
* This injects Tailwind's base styles, which is a combination of
* Normalize.css and some additional base styles.
*
* You can see the styles here:
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css
*/

/**
* We don't want these in the Control Panel
* @import "tailwindcss/preflight";
*/

/**
* Here we add custom component classes; stuff we want loaded
* *before* the utilities so that the utilities can still
Expand All @@ -28,15 +15,14 @@
@import "./components/canto-field.css";

/**
* This injects all of Tailwind's utility classes, generated based on your
* config file.
* Disable the Tailwind CSS Preflight styles, as they can interfere with Craft CMS
* CP styles. ref: https://tailwindcss.com/docs/preflight#disabling-preflight
*
*/
@layer theme, base, components, utilities;

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

@source "../../../src/templates";

/**
Expand Down

0 comments on commit bc502a3

Please sign in to comment.