Theming not working
See original GitHub issueHi, I think mdx-deck is pretty cool and decided to make my first presentation with it this weekend but I’m having a little bit of trouble.
I need some block quotes and lists, but the default styling doesn’t seem right to me so I decided to create my own theme that uses italic font for block quotes and centers list items. For some reason it is not working.
I’m running the latest version 1.8.2. Here’s my code.
index.mdx
export { default as theme } from './Theme.js'
# This is the title of my deck
---
> some qoute
- one
- two
- three
---
# The End
Theme.js
// example theme
import theme from 'mdx-deck/themes'
export default {
...theme,
blockquote: {
fontStyle: 'italic'
},
li: {
textAlign: 'left'
}
}
package.json
{
"name": "mdx-sample",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@mdx-js/tag": "^0.16.6",
"react": "^16.7.0"
}
}
Actual Result
The browser shows the same default theme. the quote text is not in italics and the list items align to center instead of left.
Expected Result
If I edit styles with the browser’s dev tools I can get the expected result
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
9 Best Ways to Fix Samsung Themes Not Working Issue
9 Best Ways to Fix Samsung Themes Not Working Issue · 1. Restart Phone · 2. Turn off Accessibility Option · 3. Enable...
Read more >Is Your Windows Theme Not Syncing Properly? Here's the Fix
1. Check if the Theme Itself Is Causing Issues · 2. Restart the SettingsSyncHost.exe Service · 3. Ensure the Syncing Feature Is Enable...
Read more >Themes not working for Messages - Samsung Community
Touch and hold an empty area of your Home screen, and then tap Themes. Tap Menu (the three horizontal lines), tap My stuff,...
Read more >Theming not working - ℹ️ Support - Nextcloud community
The issue you are facing: all of my theming settings are no longer applied. it was fine until mariadb automaticly updated. I tried...
Read more >Themes not loading - WordPress.org
This sounds like a caching issue. Are you using any caching plugins or does your host do server-based caching? Viewing 2 replies -...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That actually worked.
installed
mdx-deck
as a dev dependency with Yarn and then rannode_modules/.bin/mdx-deck index.mdx
. Everything styles correctly, also bold text in headers is a lot bigger.Thanks for the help!
Sounds good – I suspect it might be an issue with styled-components, which can not work as expected when there are multiple/conflicting versions