diff --git a/docusaurus/docs/cms/admin-panel-customization/theme-extension.md b/docusaurus/docs/cms/admin-panel-customization/theme-extension.md index 67593b76c0..42e80916a3 100644 --- a/docusaurus/docs/cms/admin-panel-customization/theme-extension.md +++ b/docusaurus/docs/cms/admin-panel-customization/theme-extension.md @@ -19,5 +19,60 @@ To extend the theme, use either: - the `config.theme.dark` key for the Dark mode :::strapi Strapi Design System + The default defines various theme-related keys (shadows, colors…) that can be updated through the `config.theme.light` and `config.theme.dark` keys in `./admin/src/app.js`. The is fully customizable and has a dedicated documentation. ::: + +The following example shows how to override the primary color by customizing the light and dark theme keys in the [admin panel configuration](/cms/configurations/admin-panel): + + + + + +```js title="/src/admin/app.js" +export default { + config: { + theme: { + light: { + colors: { + primary600: "#4A6EFF", + }, + }, + dark: { + colors: { + primary600: "#9DB2FF", + }, + }, + }, + }, + bootstrap() {}, +} +``` + + + + + + +```ts title="/src/admin/app.ts" +export default { + config: { + theme: { + light: { + colors: { + primary600: '#4A6EFF', + }, + }, + dark: { + colors: { + primary600: '#9DB2FF', + }, + }, + }, + }, + bootstrap() {}, +} +``` + + +