Open borekb opened 4 years ago
The docs show two approaches how to import and set a theme:
1. (e.g. here):
import { themes } from 'mdx-deck'; export const theme = themes.dark;
2. (e.g. here):
import { dark } from 'mdx-deck/themes'; export const theme = dark;
I'm wondering why this doesn't work:
export { dark as theme } from 'mdx-deck/themes';
It's even in the homepage's GIF but I guess it's no longer supported. Out of curiosity, what's the technical reason? I'd prefer this one-liner 😄.
This is currently a limitation with MDX, which I believe will be resolved in a future version
The docs show two approaches how to import and set a theme:
1. (e.g. here):
2. (e.g. here):
I'm wondering why this doesn't work:
It's even in the homepage's GIF but I guess it's no longer supported. Out of curiosity, what's the technical reason? I'd prefer this one-liner 😄.