Skip to content

Commit 6fd01f5

Browse files
Merge pull request #278 from kmcfaul/css-import-docs
docs(readme): include note about css import
2 parents c501946 + a8d5b29 commit 6fd01f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ body {
8383
}
8484
```
8585

86+
## PatternFly CSS
87+
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';`.
88+
This step has already been done for you by the PatternFly Seed application, in the `src/app/index.tsx` file.
89+
8690
## Adding custom CSS
8791
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.
8892

0 commit comments

Comments
 (0)