From a8d5b298b387f9b900b649c4bf51c86a3e8a9d5e Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Mon, 10 Aug 2026 09:55:36 -0400 Subject: [PATCH] docs(readme): include note about css import --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 402547c6..2c8ae673 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,10 @@ body { } ``` +## PatternFly CSS +For applications using Patternfly React, styles should be imported at the base level of the application with the following: `import '@patternfly/react-core/dist/styles/base.css';`. +This step has already been done for you by the PatternFly Seed application, in the `src/app/index.tsx` file. + ## Adding custom CSS When importing CSS from a third-party package for the first time, you may encounter the error `Module parse failed: Unexpected token... You may need an appropriate loader to handle this file typ...`. You need to register the path to the stylesheet directory in [stylePaths.js](./stylePaths.js). We specify these explicitly for performance reasons to avoid webpack needing to crawl through the entire node_modules directory when parsing CSS modules.