Add 'darker' theme

This commit is contained in:
Luck
2021-10-28 22:42:03 +01:00
parent dc09fd8845
commit b74b7526b6
2 changed files with 50 additions and 1 deletions

View File

@@ -85,6 +85,22 @@ const Main = styled.main`
color: ${props => props.theme.editor.property};
}
.token.tag .punctuation {
color: ${props => props.theme.editor.primary};
}
.token.script > .token.punctuation {
color: ${props => props.theme.editor.punctuation};
}
.token.tag .attr-value {
color: ${props => props.theme.editor.selector};
}
.token.tag .script {
color: ${props => props.theme.editor.primary};
}
.token.boolean {
color: ${props => props.theme.editor.keyword};
}
@@ -99,8 +115,11 @@ const Main = styled.main`
color: ${props => props.theme.editor.number};
}
.token.attr-name {
color: ${props => props.theme.editor.function};
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,

View File

@@ -55,6 +55,36 @@ const themes = {
variable: '#ee9900',
},
},
darker: {
primary: '#c9d1d9', // fg.default
secondary: '#010409', // canvas.inset
highlight: '#161b22', // canvas.overlay
editor: {
background: '#0d1117', // canvas.default
lineNumber: '#484f58', // fg.subtle
lineNumberHl: '#f0f6fc', // fg.onEmphasis
lineNumberHlBackground: '#161b22', // canvas.overlay
primary: '#c9d1d9', // fg.default
selection: '#c9d1d9', // fg.default
comment: '#8b949e',
commentTag: '#79c0ff',
punctuation: '#d2a8ff',
annotation: '#a5d6ff',
namespace: '#c9d1d9',
property: '#7ee787',
constant: '#ff7b72',
number: '#f2cc60',
selector: '#79c0ff',
operator: '#ff7b72',
keyword: '#ff7b72',
function: '#e2c5ff',
className: '#ffa657',
variable: '#ffa657',
},
},
};
export default themes;