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.

Custom components in theme broken

See original GitHub issue

Seems like the components field in custom themes isn’t respected (perhaps being merged with default/base theme incorrectly? Trying to follow the syntax highlighting docs and am using latest mdx-deck.

import { syntaxHighlighterPrism, dark } from 'mdx-deck/themes'

export const themes = [syntaxHighlighterPrism, dark]

` ``
<div>This has the default theme style for `code`</div>
` ``
  • Intentionally wrote malformed backticks in code sample.

Following: https://github.com/jxnblk/mdx-deck/blob/master/docs/theming.md#syntax-highlighting

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jxnblkcommented, Apr 20, 2019

Closing this since the original issue appears to have been resolved

1reaction
jxnblkcommented, Apr 14, 2019

@derekr heads up that there’s now an experimental Gatsby theme package, if you’re still looking into using MDX Deck with Gatsby, see https://github.com/jxnblk/mdx-deck/tree/master/packages/gatsby-theme

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Theme not applying to components - Stack Overflow
Hello I am trying to apply my custom theme (simple color change) from Theme.js to the components in App.js. However, the components are ......
Read more >
Plugins not working on custom theme - WordPress.org
i have developed a custom theme and tried using some plugins on it but the plugins always seem to be in broken layout...
Read more >
Troubleshooting - Material UI - MUI
There are two reasons why component styles may be broken after you've completed all steps in the migration process. First, check if you...
Read more >
Angular Material Theming System - Complete Guide
After adding support for multiple themes, we will learn how to apply Angular Material's theming to custom components. We will take an example...
Read more >
Customize Theme - Ant Design
Customizing theme variables for some component; ... Customize theme with ConfigProvider. In version 5.0 we call the smallest element that affects the theme...
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