From 6eefa09722f532335bcde74294b759a36e84c523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Slov=C3=A1k?= Date: Sat, 5 Oct 2024 07:07:42 +0200 Subject: [PATCH] [docs][material-ui] Add theme setting for pigment-css migration (#43993) --- .../migration/upgrade-to-v6/migrating-to-pigment-css.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/data/material/migration/upgrade-to-v6/migrating-to-pigment-css.md b/docs/data/material/migration/upgrade-to-v6/migrating-to-pigment-css.md index e930a44fc56b89..6f638f65342926 100644 --- a/docs/data/material/migration/upgrade-to-v6/migrating-to-pigment-css.md +++ b/docs/data/material/migration/upgrade-to-v6/migrating-to-pigment-css.md @@ -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 */ ++ }), }; ```