diff --git a/src/app-pages/documentation/getting-started/adding-tailwind.jsx b/src/app-pages/documentation/getting-started/adding-tailwind.jsx index 8bf84a6..2d1e622 100644 --- a/src/app-pages/documentation/getting-started/adding-tailwind.jsx +++ b/src/app-pages/documentation/getting-started/adding-tailwind.jsx @@ -105,6 +105,26 @@ export default defineConfig({ ./src/index.css +

+ Import the Groundwork stylesheet from your application entry point, + after index.css. This keeps Tailwind and Groundwork in + a predictable order. +

+ ./src/main.jsx + + + +);`} + > +

terminal @@ -113,7 +133,6 @@ export default defineConfig({ ./src/App.jsx +

+ Open ./src/main.jsx and + import the Groundwork stylesheet after your application stylesheet. + Keeping both imports in the entry point makes their order explicit + and ensures Groundwork component styles are applied last. +

+ ./src/main.jsx + + + +);`} + />

Open the ./src/App.jsx file. We're going to replace the contents with the code block below: @@ -158,7 +178,6 @@ npm run dev`} ./src/App.jsx

- import "@usace/groundwork/dist/groundwork.css" + import "@usace/groundwork/groundwork.css" - +
- Make sure to import groundwork.css from Groundwork into your top-level - component (i.e. App.jsx), then go build stuff with the components + Import Groundwork CSS in your application entry point (for example, + main.jsx), after your application stylesheet. This keeps stylesheet + order predictable and prevents app-wide styles from overriding + Groundwork components.

Contributing