How to use themes with codemirror 6?
See original GitHub issueHello, how do I use themes with codemirror 6?
I tried this but it does not change visual
import GraphiQLComponent from 'graphiql';
import React from 'react';
const graphQLFetcher = ...
export const GraphiQL: React.FC = () => (
<GraphiQLComponent
fetcher={graphQLFetcher}
editorTheme="material"
/>
);
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Example: Styling - CodeMirror
Themes are simply extensions that tell the editor to mount an additional style module and add the (generated) class name that enables those...
Read more >craftzdog/cm6-themes: Themes for CodeMirror 6 - GitHub
Available themes · Basic Light · Basic Dark · Solarized Light · Solarized Dark · Material Dark · Nord · Gruvbox Light ·...
Read more >Themes for CodeMirror 6
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll...
Read more >Styling CodeMirror v6 with Material UI | #DevLog 005 - YouTube
Added custom styling to CodeMirror v6 using CodeMirror extensions and Material UI's theme object.
Read more >Styling CodeMirror v6 with Material UI | DevLog 005
... CodeMirror v6 using CodeMirror extensions and Material UI's theme object. ... CodeMirror 6 has a straightforward way of modifying the highlight style....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the time being, yes.
codemirror-graphql
ships with support for both, butgraphiql
sets a hard dependency on CM 5 for now.CC @thomasheyenbrock @imolorhe @yoshiakis I think this would be a good candidate for the 2.x graphiql, and then for 3.x we support either just monaco or both
I’d be interested in implementing CM6 support—is help still needed with this? If so, if there already partial work towards it, or any gotchas to be aware of?