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

Dark mode for embeddable sandbox? #247

Open
mbrowne opened this issue Apr 14, 2023 · 1 comment
Open

Dark mode for embeddable sandbox? #247

mbrowne opened this issue Apr 14, 2023 · 1 comment

Comments

@mbrowne
Copy link

mbrowne commented Apr 14, 2023

It looks like there's an option to default to dark mode for the explorer, but not the sandbox. Or am I missing something?

@mbrowne
Copy link
Author

mbrowne commented Apr 14, 2023

On a related note, it seems that setting the dark mode theme isn't working for the explorer either, or whatever gets rendered by ApolloServerPluginLandingPageProductionDefault. When I do this (with NODE_ENV=production), it still uses the light theme:

    const apolloServer = new ApolloServer({
        plugins: [
            ApolloServerPluginLandingPageProductionDefault({
                embed: {
                    displayOptions: {
                        theme: 'dark',
                    },
                },
            }
        ],
        ...
    })

I'm using the latest Apollo server, 4.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant