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
|
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { type ColorsTheme, Theme } from './theme.js';
import { darkSemanticColors } from './semantic-tokens.js';
const ayuDarkColors: ColorsTheme = {
type: 'dark',
Background: '#0b0e14',
Foreground: '#bfbdb6',
LightBlue: '#59C2FF',
AccentBlue: '#39BAE6',
AccentPurple: '#D2A6FF',
AccentCyan: '#95E6CB',
AccentGreen: '#AAD94C',
AccentYellow: '#FFB454',
AccentRed: '#F26D78',
DiffAdded: '#293022',
DiffRemoved: '#3D1215',
Comment: '#646A71',
Gray: '#3D4149',
GradientColors: ['#FFB454', '#F26D78'],
};
export const AyuDark: Theme = new Theme(
'Ayu',
'dark',
{
hljs: {
display: 'block',
overflowX: 'auto',
padding: '0.5em',
background: ayuDarkColors.Background,
color: ayuDarkColors.Foreground,
},
'hljs-keyword': {
color: ayuDarkColors.AccentYellow,
},
'hljs-literal': {
color: ayuDarkColors.AccentPurple,
},
'hljs-symbol': {
color: ayuDarkColors.AccentCyan,
},
'hljs-name': {
color: ayuDarkColors.LightBlue,
},
'hljs-link': {
color: ayuDarkColors.AccentBlue,
},
'hljs-function .hljs-keyword': {
color: ayuDarkColors.AccentYellow,
},
'hljs-subst': {
color: ayuDarkColors.Foreground,
},
'hljs-string': {
color: ayuDarkColors.AccentGreen,
},
'hljs-title': {
color: ayuDarkColors.AccentYellow,
},
'hljs-type': {
color: ayuDarkColors.AccentBlue,
},
'hljs-attribute': {
color: ayuDarkColors.AccentYellow,
},
'hljs-bullet': {
color: ayuDarkColors.AccentYellow,
},
'hljs-addition': {
color: ayuDarkColors.AccentGreen,
},
'hljs-variable': {
color: ayuDarkColors.Foreground,
},
'hljs-template-tag': {
color: ayuDarkColors.AccentYellow,
},
'hljs-template-variable': {
color: ayuDarkColors.AccentYellow,
},
'hljs-comment': {
color: ayuDarkColors.Comment,
fontStyle: 'italic',
},
'hljs-quote': {
color: ayuDarkColors.AccentCyan,
fontStyle: 'italic',
},
'hljs-deletion': {
color: ayuDarkColors.AccentRed,
},
'hljs-meta': {
color: ayuDarkColors.AccentYellow,
},
'hljs-doctag': {
fontWeight: 'bold',
},
'hljs-strong': {
fontWeight: 'bold',
},
'hljs-emphasis': {
fontStyle: 'italic',
},
},
ayuDarkColors,
darkSemanticColors,
);
|