Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toggle button to to docs page and save custom themes on initilization #97

Merged
merged 1 commit into from Mar 27, 2020

Conversation

tskarhed
Copy link
Contributor

Fixes #94
And adds
Screenshot from 2020-03-27 12-47-02

@@ -55,9 +55,15 @@ const store = (themes: Partial<DarkModeStore> = {}): DarkModeStore => {

export const DarkMode: React.FunctionComponent<DarkModeProps> = props => {
const [isDark, setDark] = React.useState(prefersDark.matches);
const params = useParameter('darkMode', {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing 👏 This looks so much better than what we were doing.

@hipstersmoothie hipstersmoothie added the minor Increment the minor version when merged label Mar 27, 2020
@hipstersmoothie hipstersmoothie merged commit 8ffee27 into hipstersmoothie:master Mar 27, 2020
@hipstersmoothie
Copy link
Owner

🚀 PR was released in v0.4.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme won't load if default Story is just MDX
2 participants