File size: 3,088 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 |
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { type ColorsTheme, Theme } from './theme.js';
const ayuLightColors: ColorsTheme = {
type: 'light',
Background: '#f8f9fa',
Foreground: '#5c6166',
LightBlue: '#55b4d4',
AccentBlue: '#399ee6',
AccentPurple: '#a37acc',
AccentCyan: '#4cbf99',
AccentGreen: '#86b300',
AccentYellow: '#f2ae49',
AccentRed: '#f07171',
DiffAdded: '#C6EAD8',
DiffRemoved: '#FFCCCC',
Comment: '#ABADB1',
Gray: '#a6aaaf',
GradientColors: ['#399ee6', '#86b300'],
};
export const AyuLight: Theme = new Theme(
'Ayu Light',
'light',
{
hljs: {
display: 'block',
overflowX: 'auto',
padding: '0.5em',
background: ayuLightColors.Background,
color: ayuLightColors.Foreground,
},
'hljs-comment': {
color: ayuLightColors.Comment,
fontStyle: 'italic',
},
'hljs-quote': {
color: ayuLightColors.AccentCyan,
fontStyle: 'italic',
},
'hljs-string': {
color: ayuLightColors.AccentGreen,
},
'hljs-constant': {
color: ayuLightColors.AccentCyan,
},
'hljs-number': {
color: ayuLightColors.AccentPurple,
},
'hljs-keyword': {
color: ayuLightColors.AccentYellow,
},
'hljs-selector-tag': {
color: ayuLightColors.AccentYellow,
},
'hljs-attribute': {
color: ayuLightColors.AccentYellow,
},
'hljs-variable': {
color: ayuLightColors.Foreground,
},
'hljs-variable.language': {
color: ayuLightColors.LightBlue,
fontStyle: 'italic',
},
'hljs-title': {
color: ayuLightColors.AccentBlue,
},
'hljs-section': {
color: ayuLightColors.AccentGreen,
fontWeight: 'bold',
},
'hljs-type': {
color: ayuLightColors.LightBlue,
},
'hljs-class .hljs-title': {
color: ayuLightColors.AccentBlue,
},
'hljs-tag': {
color: ayuLightColors.LightBlue,
},
'hljs-name': {
color: ayuLightColors.AccentBlue,
},
'hljs-builtin-name': {
color: ayuLightColors.AccentYellow,
},
'hljs-meta': {
color: ayuLightColors.AccentYellow,
},
'hljs-symbol': {
color: ayuLightColors.AccentRed,
},
'hljs-bullet': {
color: ayuLightColors.AccentYellow,
},
'hljs-regexp': {
color: ayuLightColors.AccentCyan,
},
'hljs-link': {
color: ayuLightColors.LightBlue,
},
'hljs-deletion': {
color: ayuLightColors.AccentRed,
},
'hljs-addition': {
color: ayuLightColors.AccentGreen,
},
'hljs-emphasis': {
fontStyle: 'italic',
},
'hljs-strong': {
fontWeight: 'bold',
},
'hljs-literal': {
color: ayuLightColors.AccentCyan,
},
'hljs-built_in': {
color: ayuLightColors.AccentRed,
},
'hljs-doctag': {
color: ayuLightColors.AccentRed,
},
'hljs-template-variable': {
color: ayuLightColors.AccentCyan,
},
'hljs-selector-id': {
color: ayuLightColors.AccentRed,
},
},
ayuLightColors,
);
|