File size: 4,256 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
import {
HighlightStyle,
syntaxHighlighting,
tags
} from "./chunk-AHXJAWF2.js";
import {
EditorView
} from "./chunk-UKXRAEWG.js";
import "./chunk-3BHLKIA4.js";
import "./chunk-TNDHKS54.js";
// node_modules/@codemirror/theme-one-dark/dist/index.js
var chalky = "#e5c07b";
var coral = "#e06c75";
var cyan = "#56b6c2";
var invalid = "#ffffff";
var ivory = "#abb2bf";
var stone = "#7d8799";
var malibu = "#61afef";
var sage = "#98c379";
var whiskey = "#d19a66";
var violet = "#c678dd";
var darkBackground = "#21252b";
var highlightBackground = "#2c313a";
var background = "#282c34";
var tooltipBackground = "#353a42";
var selection = "#3E4451";
var cursor = "#528bff";
var color = {
chalky,
coral,
cyan,
invalid,
ivory,
stone,
malibu,
sage,
whiskey,
violet,
darkBackground,
highlightBackground,
background,
tooltipBackground,
selection,
cursor
};
var oneDarkTheme = EditorView.theme({
"&": {
color: ivory,
backgroundColor: background
},
".cm-content": {
caretColor: cursor
},
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },
".cm-panels": { backgroundColor: darkBackground, color: ivory },
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
".cm-searchMatch": {
backgroundColor: "#72a1ff59",
outline: "1px solid #457dff"
},
".cm-searchMatch.cm-searchMatch-selected": {
backgroundColor: "#6199ff2f"
},
".cm-activeLine": { backgroundColor: "#6699ff0b" },
".cm-selectionMatch": { backgroundColor: "#aafe661a" },
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
backgroundColor: "#bad0f847"
},
".cm-gutters": {
backgroundColor: background,
color: stone,
border: "none"
},
".cm-activeLineGutter": {
backgroundColor: highlightBackground
},
".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 });
var oneDarkHighlightStyle = HighlightStyle.define([
{
tag: tags.keyword,
color: violet
},
{
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
color: coral
},
{
tag: [tags.function(tags.variableName), tags.labelName],
color: malibu
},
{
tag: [tags.color, tags.constant(tags.name), tags.standard(tags.name)],
color: whiskey
},
{
tag: [tags.definition(tags.name), tags.separator],
color: ivory
},
{
tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
color: chalky
},
{
tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, tags.special(tags.string)],
color: cyan
},
{
tag: [tags.meta, tags.comment],
color: stone
},
{
tag: tags.strong,
fontWeight: "bold"
},
{
tag: tags.emphasis,
fontStyle: "italic"
},
{
tag: tags.strikethrough,
textDecoration: "line-through"
},
{
tag: tags.link,
color: stone,
textDecoration: "underline"
},
{
tag: tags.heading,
fontWeight: "bold",
color: coral
},
{
tag: [tags.atom, tags.bool, tags.special(tags.variableName)],
color: whiskey
},
{
tag: [tags.processingInstruction, tags.string, tags.inserted],
color: sage
},
{
tag: tags.invalid,
color: invalid
}
]);
var oneDark = [oneDarkTheme, syntaxHighlighting(oneDarkHighlightStyle)];
export {
color,
oneDark,
oneDarkHighlightStyle,
oneDarkTheme
};
//# sourceMappingURL=@codemirror_theme-one-dark.js.map
|