/* GitHub Dark Theme for Prism.js */ /* Based on GitHub's code highlighting */ code[class*="language-"], pre[class*="language-"] { color: #e6edf3; background: none; text-shadow: none; font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-size: 0.875rem; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; -moz-tab-size: 2; -o-tab-size: 2; tab-size: 2; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } /* Code blocks */ pre[class*="language-"] { padding: 0; margin: 0; overflow: auto; } :not(pre) > code[class*="language-"], pre[class*="language-"] { background: transparent; } /* Inline code */ :not(pre) > code[class*="language-"] { padding: 0.1em 0.3em; border-radius: 0.3em; white-space: normal; } /* Token colors - GitHub Dark theme */ .token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8b949e; } .token.punctuation { color: #e6edf3; } .token.namespace { opacity: 0.7; } .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #79c0ff; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #a5d6ff; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #e6edf3; } .token.atrule, .token.attr-value, .token.keyword { color: #ff7b72; } .token.function, .token.class-name { color: #d2a8ff; } .token.regex, .token.important, .token.variable { color: #ffa657; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; } /* String colors */ .token.string { color: #a5d6ff; } /* Keyword colors */ .token.keyword { color: #ff7b72; } /* Function colors */ .token.function { color: #d2a8ff; } /* Class name */ .token.class-name { color: #ffa657; } /* Boolean, number */ .token.boolean, .token.number { color: #79c0ff; } /* Operator */ .token.operator { color: #ff7b72; } /* Attribute name (HTML/JSX) */ .token.attr-name { color: #79c0ff; } /* Tag name (HTML/JSX) */ .token.tag { color: #7ee787; } /* Decorator / Annotation */ .token.decorator, .token.annotation { color: #d2a8ff; } /* Template string punctuation */ .token.template-string .token.interpolation-punctuation { color: #ff7b72; } /* JSON keys */ .language-json .token.property { color: #7ee787; } /* Diff */ .token.deleted { color: #ffa198; background: rgba(248, 81, 73, 0.15); } .token.inserted { color: #7ee787; background: rgba(46, 160, 67, 0.15); } /* Selection */ code[class*="language-"]::selection, code[class*="language-"] *::selection, pre[class*="language-"]::selection, pre[class*="language-"] *::selection { background: rgba(56, 139, 253, 0.4); } /* Line highlighting */ .line-highlight { background: rgba(56, 139, 253, 0.15); border-left: 3px solid #58a6ff; margin-left: -4px; padding-left: 1px; }