question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Theming not working

See original GitHub issue

Hi, 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.

screenshot from 2019-01-06 20-19-12

Expected Result

If I edit styles with the browser’s dev tools I can get the expected result

screenshot from 2019-01-06 20-26-09

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
GAumalacommented, Mar 10, 2019

That actually worked.

installed mdx-deck as a dev dependency with Yarn and then ran node_modules/.bin/mdx-deck index.mdx . Everything styles correctly, also bold text in headers is a lot bigger.

Thanks for the help!

0reactions
jxnblkcommented, Mar 10, 2019

Sounds good – I suspect it might be an issue with styled-components, which can not work as expected when there are multiple/conflicting versions

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found