You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/overview/integrations.mdx
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,7 @@
1
1
# Integrations
2
2
3
3
<Subtitle>Learn how to configure your bundler to use Pigment CSS.</Subtitle>
4
-
<Meta
5
-
name="description"
6
-
content="Learn how to configure your bundler to use Pigment CSS."
7
-
/>
4
+
<Metaname="description"content="Learn how to configure your bundler to use Pigment CSS." />
8
5
9
6
## Bundler integrations
10
7
@@ -22,14 +19,14 @@ All bundler specific configurations follow the same pattern.
22
19
23
20
1. First import the `default` export from the bundler specific package path and name it as per your bundler conventions -
24
21
25
-
* Next.js - `@pigment-css/plugin/nextjs`
26
-
* Vite - `@pigment-css/plugin/vite`
27
-
* Webpack - `@pigment-css/plugin/webpack`
22
+
- Next.js - `@pigment-css/plugin/nextjs`
23
+
- Vite - `@pigment-css/plugin/vite`
24
+
- Webpack - `@pigment-css/plugin/webpack`
28
25
29
26
and then pass in the Pigment CSS configuration options (if any).
30
27
31
28
2. After this, import the `@pigment-css/react-new/styles.css` file in the main entry point file of the app. Make sure that this file is only imported once in the app otherwise you will end up with duplicate styles in the final bundle.
32
-
This import will be responsible for adding the Pigment CSS layer order as well as injecting the css tokens configured in the [theming](/features/theming) section.
29
+
This import will be responsible for adding the Pigment CSS layer order as well as injecting the css tokens configured in the [theming](/features/theming) section.
0 commit comments