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: docusaurus/docs/cms/admin-panel-customization/options.md
+24-9
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,7 @@ export default {
118
118
<TabItemvalue="ts"label="TypeScript">
119
119
120
120
```jsx title="/src/admin/app.ts"
121
+
// Note: you may see some ts errors, don't worry about them
121
122
importAuthLogofrom"./extensions/my-logo.png";
122
123
importMenuLogofrom"./extensions/logo.png";
123
124
importfaviconfrom"./extensions/favicon.png";
@@ -142,16 +143,25 @@ export default {
142
143
},
143
144
// Override or extend the theme
144
145
theme: {
145
-
colors: {
146
-
primary100:"#f6ecfc",
147
-
primary200:"#e0c1f4",
148
-
primary500:"#ac73e6",
149
-
primary600:"#9736e8",
150
-
primary700:"#8312d1",
151
-
danger700:"#b72b1a",
152
-
},
146
+
dark:{
147
+
colors: {
148
+
alternative100:'#f6ecfc',
149
+
alternative200:'#e0c1f4',
150
+
alternative500:'#ac73e6',
151
+
alternative600:'#9736e8',
152
+
alternative700:'#8312d1',
153
+
buttonNeutral0:'#ffffff',
154
+
buttonPrimary500:'#7b79ff',
155
+
// you can see other colors in the link below
156
+
},
157
+
},
158
+
light:{
159
+
// you can see the light color here just like dark colors https://github.com/strapi/design-system/blob/main/packages/design-system/src/themes/lightTheme/light-colors.ts
160
+
},
161
+
},
153
162
},
154
163
// Extend the translations
164
+
// you can see the traslations keys here https://github.com/strapi/strapi/blob/develop/packages/core/admin/admin/src/translations
155
165
translations: {
156
166
fr: {
157
167
"Auth.form.email.label":"test",
@@ -171,6 +181,11 @@ export default {
171
181
};
172
182
```
173
183
184
+
:::note
185
+
You can see the full translation keys, for instance to change the welcome message, [on GitHub](https://github.com/strapi/strapi/blob/develop/packages/core/admin/admin/src/translations).
186
+
Light and dark colors are also found [on GitHub](https://github.com/strapi/design-system/tree/main/packages/design-system/src/themes).
187
+
:::
188
+
174
189
</TabItem>
175
190
</Tabs>
176
191
@@ -445,5 +460,5 @@ To extend the theme, use either:
445
460
- the `config.theme.dark` key for the Dark mode
446
461
447
462
:::strapi Strapi Design System
448
-
The default <ExternalLink to="https://github.com/strapi/design-system/tree/main/packages/strapi-design-system/src/themes" text="Strapi theme"/> 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 <ExternalLink to="https://design-system.strapi.io/" text="Strapi Design System"/> is fully customizable and has a dedicated <ExternalLink to="https://design-system-git-main-strapijs.vercel.app" text="StoryBook"/> documentation.
463
+
The default <ExternalLink to="https://github.com/strapi/design-system/tree/main/packages/design-system/src/themes" text="Strapi theme"/> 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 <ExternalLink to="https://design-system.strapi.io/" text="Strapi Design System"/> is fully customizable and has a dedicated <ExternalLink to="https://design-system-git-main-strapijs.vercel.app" text="StoryBook"/> documentation.
0 commit comments