Skip to content

Commit 32a7006

Browse files
use different colors for field names and argument names (#2757)
1 parent ca067d8 commit 32a7006

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@graphiql/plugin-explorer': patch
3+
'@graphiql/react': patch
4+
---
5+
6+
Use different colors for field names and argument names

packages/graphiql-plugin-explorer/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function ExplorerPlugin(props: GraphiQLExplorerProps) {
3030
def: 'hsl(var(--color-tertiary))',
3131
property: 'hsl(var(--color-info))',
3232
qualifier: 'hsl(var(--color-secondary))',
33-
attribute: 'hsl(var(--color-info))',
33+
attribute: 'hsl(var(--color-tertiary))',
3434
number: 'hsl(var(--color-success))',
3535
string: 'hsl(var(--color-warning))',
3636
builtin: 'hsl(var(--color-success))',

packages/graphiql-react/src/editor/style/codemirror.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
}
7676
/* Name (ObjectField, Argument) */
7777
& .cm-attribute {
78-
color: hsl(var(--color-info));
78+
color: hsl(var(--color-tertiary));
7979
}
8080
/* Name (Directive) */
8181
& .cm-meta {

0 commit comments

Comments
 (0)