System Information
- Strapi Version: 4.15
- Operating System:MacOS
- Database:postgres
- Node Version: 20
Sounds like you may want to take a look at the “Extension” section of the Admin Panel Customization doc?
I’ve had success importing the desired .css
file inside my plugin Recently went through something similar when I wanted to add Tailwind CSS to Strapi.
can you share a sample code/snippet as i didn’t find any example of extending admin panel components
The easiest way I’ve found to do this is using a custom plugin.
Create a custom plugin to import the desired .css
file inside of the root index[.js|.tsx]
file.
./admin/src/styles/global.css
with the desired overrides./admin/src/index.js
(or ./admin/src/index.tsx
with typescript plugin) e.g.import "./styles/global.css";
...
"my-plugin": {
enabled: true,
resolve: "./src/plugins/my-plugin",
},
./server
directory, as well as any code associated with custom admin panels e.g. ./admin/src/pages
can be removed.Hi !
Did you manage to make this work with strapi 5 ?
because I follow every steps you describe but my style is not applied
Thanks