Skip to content

Commit 7cd1432

Browse files
authored
Update README.md
1 parent ec0b3fd commit 7cd1432

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,36 @@ $ yarn start
248248
Open
249249
[localhost:3000/localDev.html?endpoint=https://api.graph.cool/simple/v1/swapi](http://localhost:3000/localDev.html?endpoint=https://api.graph.cool/simple/v1/swapi) for local development!
250250

251+
## Custom Theme
252+
From `[email protected]` on you can provide a `codeTheme` property to the React Component to customize your color theme.
253+
These are the available options:
254+
```ts
255+
256+
export interface EditorColours {
257+
property: string
258+
comment: string
259+
punctuation: string
260+
keyword: string
261+
def: string
262+
qualifier: string
263+
attribute: string
264+
number: string
265+
string: string
266+
builtin: string
267+
string2: string
268+
variable: string
269+
meta: string
270+
atom: string
271+
ws: string
272+
selection: string
273+
cursorColor: string
274+
editorBackground: string
275+
resultBackground: string
276+
leftDrawerBackground: string
277+
rightDrawerBackground: string
278+
}
279+
```
280+
251281
### Versions
252282

253283
This is repository is a "mono repo" and contains multiple packages using [Yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/). Please be aware that versions are **not** synchronised between packages. The versions of the [release page](https://github.com/graphcool/graphql-playground/releases) refer to the electron app.

0 commit comments

Comments
 (0)