Skip to content

Commit

Permalink
Merge pull request #368 from FormidableLabs/feature/codemirror-hints
Browse files Browse the repository at this point in the history
Update codemirror hint colors
  • Loading branch information
KenanYusuf authored May 21, 2021
2 parents 88e2ede + 5741045 commit def4776
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/panel/__snapshots__/App.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ exports[`App on mount matches snapshot 1`] = `
"hover": "#fff",
},
"tooltip": Object {
"active": "#252525",
"background": "#151515",
},
},
Expand Down
16 changes: 14 additions & 2 deletions src/panel/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const lightTheme = {
},
tooltip: {
background: darken(0.1, "#fff"),
active: darken(0.2, "#fff"),
},
text: {
base: colors.black,
Expand Down Expand Up @@ -145,6 +146,7 @@ export const darkTheme = {
},
tooltip: {
background: darken(0.03, colors.black),
active: lighten(0.03, colors.black),
},
text: {
base: lighten(0.8, colors.black),
Expand Down Expand Up @@ -228,8 +230,18 @@ export const GlobalStyle = createGlobalStyle`
border-color: ${(p) => p.theme.colors.text.base};
}
.CodeMirror-hints li.CodeMirror-hint-active {
background: ${(p) => p.theme.colors.canvas.base};
.CodeMirror-hints.default {
color: ${(p) => p.theme.colors.text.base};
background: ${(p) => p.theme.colors.tooltip.background};
border-color: ${(p) => p.theme.colors.tooltip.background};
}
.CodeMirror-hints.default > .CodeMirror-hint {
color: ${(p) => p.theme.colors.text.base};
}
.CodeMirror-hints.default > .CodeMirror-hint.CodeMirror-hint-active {
background: ${(p) => p.theme.colors.tooltip.active};
}
.CodeMirror-matchingbracket {
Expand Down

0 comments on commit def4776

Please sign in to comment.