File size: 3,152 Bytes
d810ed8 |
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 |
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { darkTheme, Theme } from './theme.js';
export const DefaultDark: Theme = new Theme(
'Default',
'dark',
{
hljs: {
display: 'block',
overflowX: 'auto',
padding: '0.5em',
background: darkTheme.Background,
color: darkTheme.Foreground,
},
'hljs-keyword': {
color: darkTheme.AccentBlue,
},
'hljs-literal': {
color: darkTheme.AccentBlue,
},
'hljs-symbol': {
color: darkTheme.AccentBlue,
},
'hljs-name': {
color: darkTheme.AccentBlue,
},
'hljs-link': {
color: darkTheme.AccentBlue,
textDecoration: 'underline',
},
'hljs-built_in': {
color: darkTheme.AccentCyan,
},
'hljs-type': {
color: darkTheme.AccentCyan,
},
'hljs-number': {
color: darkTheme.AccentGreen,
},
'hljs-class': {
color: darkTheme.AccentGreen,
},
'hljs-string': {
color: darkTheme.AccentYellow,
},
'hljs-meta-string': {
color: darkTheme.AccentYellow,
},
'hljs-regexp': {
color: darkTheme.AccentRed,
},
'hljs-template-tag': {
color: darkTheme.AccentRed,
},
'hljs-subst': {
color: darkTheme.Foreground,
},
'hljs-function': {
color: darkTheme.Foreground,
},
'hljs-title': {
color: darkTheme.Foreground,
},
'hljs-params': {
color: darkTheme.Foreground,
},
'hljs-formula': {
color: darkTheme.Foreground,
},
'hljs-comment': {
color: darkTheme.Comment,
fontStyle: 'italic',
},
'hljs-quote': {
color: darkTheme.Comment,
fontStyle: 'italic',
},
'hljs-doctag': {
color: darkTheme.Comment,
},
'hljs-meta': {
color: darkTheme.Gray,
},
'hljs-meta-keyword': {
color: darkTheme.Gray,
},
'hljs-tag': {
color: darkTheme.Gray,
},
'hljs-variable': {
color: darkTheme.AccentPurple,
},
'hljs-template-variable': {
color: darkTheme.AccentPurple,
},
'hljs-attr': {
color: darkTheme.LightBlue,
},
'hljs-attribute': {
color: darkTheme.LightBlue,
},
'hljs-builtin-name': {
color: darkTheme.LightBlue,
},
'hljs-section': {
color: darkTheme.AccentYellow,
},
'hljs-emphasis': {
fontStyle: 'italic',
},
'hljs-strong': {
fontWeight: 'bold',
},
'hljs-bullet': {
color: darkTheme.AccentYellow,
},
'hljs-selector-tag': {
color: darkTheme.AccentYellow,
},
'hljs-selector-id': {
color: darkTheme.AccentYellow,
},
'hljs-selector-class': {
color: darkTheme.AccentYellow,
},
'hljs-selector-attr': {
color: darkTheme.AccentYellow,
},
'hljs-selector-pseudo': {
color: darkTheme.AccentYellow,
},
'hljs-addition': {
backgroundColor: '#144212',
display: 'inline-block',
width: '100%',
},
'hljs-deletion': {
backgroundColor: '#600',
display: 'inline-block',
width: '100%',
},
},
darkTheme,
);
|