fix: light theme
This commit is contained in:
@@ -12,84 +12,64 @@ const malibu = "#61afef"
|
|||||||
const sage = "#98c379"
|
const sage = "#98c379"
|
||||||
const whiskey = "#d19a66"
|
const whiskey = "#d19a66"
|
||||||
const violet = "#c678dd"
|
const violet = "#c678dd"
|
||||||
const darkBackground = "#21252b"
|
|
||||||
const highlightBackground = "#2c313a"
|
|
||||||
const background = "#282c34"
|
|
||||||
const tooltipBackground = "#353a42"
|
|
||||||
const selection = "#3E4451"
|
|
||||||
const cursor = "#528bff"
|
|
||||||
|
|
||||||
export const lightTheme = EditorView.theme(
|
export const lightTheme = EditorView.theme(
|
||||||
{
|
{
|
||||||
"&": {
|
"&": {
|
||||||
color: ivory,
|
fontSize: "var(--body-font-size)",
|
||||||
backgroundColor: background,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
".cm-content": {
|
".cm-content": {
|
||||||
caretColor: cursor,
|
caretColor: "var(--secondary-light-color)",
|
||||||
|
fontFamily: "var(--font-mono)",
|
||||||
|
backgroundColor: "var(--primary-color)",
|
||||||
|
},
|
||||||
|
"&.cm-focused .cm-cursor": {
|
||||||
|
borderLeftColor: "var(--secondary-light-color)",
|
||||||
},
|
},
|
||||||
|
|
||||||
"&.cm-focused .cm-cursor": { borderLeftColor: cursor },
|
|
||||||
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
|
||||||
{ backgroundColor: selection },
|
{ backgroundColor: "var(--primary-light-color)" },
|
||||||
|
".cm-panels": {
|
||||||
".cm-panels": { backgroundColor: darkBackground, color: ivory },
|
backgroundColor: "var(--primary-dark-color)",
|
||||||
|
color: "var(--secondary-light-color)",
|
||||||
|
},
|
||||||
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
||||||
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
||||||
|
|
||||||
|
".cm-activeLine": { backgroundColor: "var(--primary-light-color)" },
|
||||||
".cm-searchMatch": {
|
".cm-searchMatch": {
|
||||||
backgroundColor: "#72a1ff59",
|
backgroundColor: "#72a1ff59",
|
||||||
outline: "1px solid #457dff",
|
outline: "1px solid #457dff",
|
||||||
},
|
},
|
||||||
".cm-searchMatch.cm-searchMatch-selected": {
|
|
||||||
backgroundColor: "#6199ff2f",
|
|
||||||
},
|
|
||||||
|
|
||||||
".cm-activeLine": { backgroundColor: highlightBackground },
|
|
||||||
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
|
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
|
||||||
|
|
||||||
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
||||||
backgroundColor: "#bad0f847",
|
backgroundColor: "#bad0f847",
|
||||||
outline: "1px solid #515a6b",
|
outline: "1px solid #515a6b",
|
||||||
},
|
},
|
||||||
|
|
||||||
".cm-gutters": {
|
".cm-gutters": {
|
||||||
backgroundColor: background,
|
fontFamily: "var(--font-mono)",
|
||||||
color: stone,
|
backgroundColor: "var(--primary-color)",
|
||||||
border: "none",
|
borderColor: "var(--divider-light-color)",
|
||||||
|
},
|
||||||
|
".cm-lineNumbers": {
|
||||||
|
minWidth: "3em",
|
||||||
|
color: "var(--secondary-light-color)",
|
||||||
|
},
|
||||||
|
".cm-foldGutter": {
|
||||||
|
minWidth: "2em",
|
||||||
|
color: "var(--secondary-light-color)",
|
||||||
|
},
|
||||||
|
".cm-foldGutter .cm-gutterElement": {
|
||||||
|
textAlign: "center",
|
||||||
|
},
|
||||||
|
".cm-line": {
|
||||||
|
paddingLeft: "0.5em",
|
||||||
|
paddingRight: "0.5em",
|
||||||
},
|
},
|
||||||
|
|
||||||
".cm-activeLineGutter": {
|
".cm-activeLineGutter": {
|
||||||
backgroundColor: highlightBackground,
|
backgroundColor: "var(--primary-dark-color)",
|
||||||
},
|
|
||||||
|
|
||||||
".cm-foldPlaceholder": {
|
|
||||||
backgroundColor: "transparent",
|
|
||||||
border: "none",
|
|
||||||
color: "#ddd",
|
|
||||||
},
|
|
||||||
|
|
||||||
".cm-tooltip": {
|
|
||||||
border: "none",
|
|
||||||
backgroundColor: tooltipBackground,
|
|
||||||
},
|
|
||||||
".cm-tooltip .cm-tooltip-arrow:before": {
|
|
||||||
borderTopColor: "transparent",
|
|
||||||
borderBottomColor: "transparent",
|
|
||||||
},
|
|
||||||
".cm-tooltip .cm-tooltip-arrow:after": {
|
|
||||||
borderTopColor: tooltipBackground,
|
|
||||||
borderBottomColor: tooltipBackground,
|
|
||||||
},
|
|
||||||
".cm-tooltip-autocomplete": {
|
|
||||||
"& > ul > li[aria-selected]": {
|
|
||||||
backgroundColor: highlightBackground,
|
|
||||||
color: ivory,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ dark: true }
|
{ dark: false }
|
||||||
)
|
)
|
||||||
|
|
||||||
export const lightHighlightStyle = HighlightStyle.define([
|
export const lightHighlightStyle = HighlightStyle.define([
|
||||||
|
|||||||
Reference in New Issue
Block a user