Skip to content

Commit

Permalink
fix: code editor styles
Browse files Browse the repository at this point in the history
  • Loading branch information
notmedia committed Nov 13, 2022
1 parent 10ac250 commit 0b6d2a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions src/app/components/code-editor/code-editor.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const StyledCodeMirror = styled(CodeMirror, {

'.cm-content': {
padding: 0,
caretColor: '$selection',
fontFamily: '$mono',
fontSize: '$fontSizes$sm',
},
Expand All @@ -23,16 +22,20 @@ export const StyledCodeMirror = styled(CodeMirror, {
borderLeftColor: '$text',
},

'.cm-selectionBackground': {
backgroundColor: '$selection !important',
'.cm-focused .cm-selectionBackground, .cm-selectionBackground': {
backgroundColor: '$selection',
},

'.cm-activeLine': {
backgroundColor: '$accents1',
},

'.cm-selectionMatch': {
backgroundColor: '$accents4',
backgroundColor: '$green200',
},

'.cm-activeLine': {
backgroundColor: '$accents1',
'.cm-line': {
padding: '0 0 0 4px',
},

'.cm-gutters': {
Expand Down
2 changes: 1 addition & 1 deletion src/app/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const DarkTheme = createTheme({
colors: {
background: '#202225',
backgroundContrast: '#292b2f',
selection: 'rgba(166, 198, 224, 0.2)',
selection: 'rgb(49, 54, 62)',
ezy: '#acc917',
gradient: 'linear-gradient(112deg, #acc917 -25%, #4f680f 90%)',
},
Expand Down

0 comments on commit 0b6d2a5

Please sign in to comment.