-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I customize blog styles? #2353
Comments
yeah, i find this https://stackoverflow.com/a/58519684
|
@liushooter I had similar issue too, this does not have any effect because it's not properly referenced. It's actually best to style the blog using the styles.module.css and use this src/css/custom.css for styles you want to be available globally. This is what I figured out when trying to style my blog @yangshun should be able to give a more detailed explanation |
yarn swizzle @docusaurus/theme-classic BlogPostItem It generates You can overwrite your custom style in Sorry if this is different answer what you want! |
@kohheepeace thank you alot for this This is a lot easier . Thanks |
hi @rafaelrdealmeida , all the blog components are in the classic theme The one displayed in your screenshot looks like the BlogPostList component, that you can swizzle |
npm version: npm run swizzle @docusaurus/theme-classic [component] -- --danger |
I want to change docusaurus-v2 blog title style,
find this information in
@docusaurus/theme-classic/src/theme/BlogPostItem/styles.module.css
:I change
src/css/custom.css
following,no effect :Help me,How do I customize blog styles?
The text was updated successfully, but these errors were encountered: