Skip to content
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0008696
docs(backend): correct TypeScript code fences in TS tabs (controllers…
web-flow Nov 20, 2025
49a15fb
docs(bundlers): clarify webpack config example rename and JS/TS filen…
web-flow Nov 20, 2025
9502ba1
docs(routes): add guidance to prefer fully-qualified handler names in…
web-flow Nov 20, 2025
8ad2c1f
docs(api-tokens): add concise security tip (least privilege, rotation…
web-flow Nov 20, 2025
aff6acc
docs(controllers): add caution about validateQuery/sanitizeQuery/sani…
web-flow Nov 20, 2025
afa9417
docs(policies): clarify scoped policy folders and fix example path
web-flow Nov 20, 2025
1badc73
docs(webhooks): add signature verification tip and fix TS config path
web-flow Nov 20, 2025
8406c4f
docs(theme-extension): add minimal TS example for theme.light and the…
web-flow Nov 20, 2025
28c572a
Limit PR scope based on title; keep only intended doc(s); revert unre…
web-flow Nov 20, 2025
f484814
Refactor example into Docusaurus Tabs with JS and TS; remove extra H3…
web-flow Nov 20, 2025
b2a1749
Theme extension docs: fix JS example to quote color hex strings (keep…
web-flow Nov 20, 2025
b843130
Theme extension docs: add one-sentence intro above JS/TS example (PR …
web-flow Nov 20, 2025
f9c5781
Fix intro sentence placement outside frontmatter; position above Tabs…
web-flow Nov 20, 2025
0b0e654
Place example intro sentence after Strapi callout and before Tabs (PR…
web-flow Nov 20, 2025
b79e90e
Fix frontmatter formatting: remove blank line after tags (PR #2850)
web-flow Nov 20, 2025
58b3c1b
Theme extension docs: remove explicit 'both JavaScript and TypeScript…
web-flow Nov 20, 2025
b4d14c7
Merge main into branch
web-flow Nov 20, 2025
93f1147
Theme extension: link to Admin panel configuration and use full wordi…
web-flow Nov 20, 2025
b624ccb
Theme extension: fix internal Markdown link syntax to /cms/configurat…
web-flow Nov 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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.
:::

The following example shows how to override the primary color in both JavaScript and TypeScript by customizing the light and dark theme keys in the admin config.


<Tabs groupId="js-ts">
<TabItem value="js" label="JavaScript">

```js title="/src/admin/app.js"
export default {
config: {
theme: {
light: {
colors: {
primary600: "#4A6EFF",
},
},
dark: {
colors: {
primary600: "#9DB2FF",
},
},
},
},
bootstrap() {},
}
```

</TabItem>

<TabItem value="ts" label="TypeScript">


```ts title="/src/admin/app.ts"
export default {
config: {
theme: {
light: {
colors: {
primary600: '#4A6EFF',
},
},
dark: {
colors: {
primary600: '#9DB2FF',
},
},
},
},
bootstrap() {},
}
```

</TabItem>
</Tabs>