Skip to content

Commit

Permalink
use different colors for field names and argument names (#2757)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheyenbrock authored Sep 7, 2022
1 parent ca067d8 commit 32a7006
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/violet-mangos-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphiql/plugin-explorer': patch
'@graphiql/react': patch
---

Use different colors for field names and argument names
2 changes: 1 addition & 1 deletion packages/graphiql-plugin-explorer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function ExplorerPlugin(props: GraphiQLExplorerProps) {
def: 'hsl(var(--color-tertiary))',
property: 'hsl(var(--color-info))',
qualifier: 'hsl(var(--color-secondary))',
attribute: 'hsl(var(--color-info))',
attribute: 'hsl(var(--color-tertiary))',
number: 'hsl(var(--color-success))',
string: 'hsl(var(--color-warning))',
builtin: 'hsl(var(--color-success))',
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql-react/src/editor/style/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
}
/* Name (ObjectField, Argument) */
& .cm-attribute {
color: hsl(var(--color-info));
color: hsl(var(--color-tertiary));
}
/* Name (Directive) */
& .cm-meta {
Expand Down

0 comments on commit 32a7006

Please sign in to comment.