Skip to content

Commit

Permalink
[docs][material-ui] Add theme setting for pigment-css migration (#43993)
Browse files Browse the repository at this point in the history
  • Loading branch information
effektsvk authored Oct 5, 2024
1 parent be68b09 commit 6eefa09
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ Add the following code to your [Next.js](#nextjs) or [Vite](#vite) config file:

const pigmentConfig = {
transformLibraries: ['@mui/material'],
+ theme: createTheme(/* parameters if any */),
+ theme: createTheme({
+ cssVariables: true,
+ /* other parameters, if any */
+ }),
};
```

Expand Down

0 comments on commit 6eefa09

Please sign in to comment.