File size: 2,705 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 |
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { type ColorsTheme, Theme } from './theme.js';
const draculaColors: ColorsTheme = {
type: 'dark',
Background: '#282a36',
Foreground: '#f8f8f2',
LightBlue: '#8be9fd',
AccentBlue: '#8be9fd',
AccentPurple: '#ff79c6',
AccentCyan: '#8be9fd',
AccentGreen: '#50fa7b',
AccentYellow: '#f1fa8c',
AccentRed: '#ff5555',
DiffAdded: '#11431d',
DiffRemoved: '#6e1818',
Comment: '#6272a4',
Gray: '#6272a4',
GradientColors: ['#ff79c6', '#8be9fd'],
};
export const Dracula: Theme = new Theme(
'Dracula',
'dark',
{
hljs: {
display: 'block',
overflowX: 'auto',
padding: '0.5em',
background: draculaColors.Background,
color: draculaColors.Foreground,
},
'hljs-keyword': {
color: draculaColors.AccentBlue,
fontWeight: 'bold',
},
'hljs-selector-tag': {
color: draculaColors.AccentBlue,
fontWeight: 'bold',
},
'hljs-literal': {
color: draculaColors.AccentBlue,
fontWeight: 'bold',
},
'hljs-section': {
color: draculaColors.AccentBlue,
fontWeight: 'bold',
},
'hljs-link': {
color: draculaColors.AccentBlue,
},
'hljs-function .hljs-keyword': {
color: draculaColors.AccentPurple,
},
'hljs-subst': {
color: draculaColors.Foreground,
},
'hljs-string': {
color: draculaColors.AccentYellow,
},
'hljs-title': {
color: draculaColors.AccentYellow,
fontWeight: 'bold',
},
'hljs-name': {
color: draculaColors.AccentYellow,
fontWeight: 'bold',
},
'hljs-type': {
color: draculaColors.AccentYellow,
fontWeight: 'bold',
},
'hljs-attribute': {
color: draculaColors.AccentYellow,
},
'hljs-symbol': {
color: draculaColors.AccentYellow,
},
'hljs-bullet': {
color: draculaColors.AccentYellow,
},
'hljs-addition': {
color: draculaColors.AccentGreen,
},
'hljs-variable': {
color: draculaColors.AccentYellow,
},
'hljs-template-tag': {
color: draculaColors.AccentYellow,
},
'hljs-template-variable': {
color: draculaColors.AccentYellow,
},
'hljs-comment': {
color: draculaColors.Comment,
},
'hljs-quote': {
color: draculaColors.Comment,
},
'hljs-deletion': {
color: draculaColors.AccentRed,
},
'hljs-meta': {
color: draculaColors.Comment,
},
'hljs-doctag': {
fontWeight: 'bold',
},
'hljs-strong': {
fontWeight: 'bold',
},
'hljs-emphasis': {
fontStyle: 'italic',
},
},
draculaColors,
);
|