From 09d6e95d3762e9ff20ab7af3803c0375c4f9aefc Mon Sep 17 00:00:00 2001 From: "Charles Graham, SWT" Date: Wed, 26 Aug 2026 16:53:59 -0500 Subject: [PATCH] Document Groundwork CSS import order --- .../getting-started/adding-tailwind.jsx | 21 ++++++++++++++++++- .../getting-started/client-side-routing.jsx | 3 +-- .../getting-started/quick-start-guide.jsx | 21 ++++++++++++++++++- src/app-pages/documentation/index.jsx | 10 +++++---- 4 files changed, 47 insertions(+), 8 deletions(-) diff --git a/src/app-pages/documentation/getting-started/adding-tailwind.jsx b/src/app-pages/documentation/getting-started/adding-tailwind.jsx index 8bf84a6e..2d1e622c 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