jxnblk / mdx-deck

♠️ React MDX-based presentation decks
https://mdx-deck.jxnblk.com
MIT License
11.32k stars 605 forks source link

Fix/improve themes examples #744

Closed haraldreingruber closed 4 years ago

haraldreingruber commented 4 years ago

It took me a bit to figure out how to change then theme, as I was looking first at the examples and missed that the theme const needs to be exported as well.

I kinda prefer importing the whole themes object from 'mdx-deck', but I also like the previous style of importing only the theme which is actually used. If that's preferred, I guess the package name changed recently and we would need to do something like:

import { big } from '@mdx-deck/themes'
export const theme = big
haraldreingruber commented 4 years ago

Just saw that there is already a PR for this: #743 Thanks, @M0nica