qwen-code/packages/cli/src/ui/themes/ayu-light.ts

138 lines
3 KiB
TypeScript
Raw Normal View History

/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { type ColorsTheme, Theme } from './theme.js';
2025-06-05 14:35:47 -07:00
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',
2025-06-05 14:35:47 -07:00
Comment: '#ABADB1',
Gray: '#a6aaaf',
GradientColors: ['#399ee6', '#86b300'],
2025-06-05 14:35:47 -07:00
};
2025-06-04 10:41:03 -07:00
export const AyuLight: Theme = new Theme(
'Ayu Light',
2025-05-08 16:00:55 -07:00
'light',
{
hljs: {
display: 'block',
overflowX: 'auto',
padding: '0.5em',
2025-06-05 14:35:47 -07:00
background: ayuLightColors.Background,
color: ayuLightColors.Foreground,
},
'hljs-comment': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.Comment,
fontStyle: 'italic',
},
'hljs-quote': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentCyan,
fontStyle: 'italic',
},
2025-06-04 10:41:03 -07:00
'hljs-string': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentGreen,
},
2025-06-04 10:41:03 -07:00
'hljs-constant': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentCyan,
},
'hljs-number': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentPurple,
},
2025-06-04 10:41:03 -07:00
'hljs-keyword': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentYellow,
},
2025-06-04 10:41:03 -07:00
'hljs-selector-tag': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentYellow,
},
2025-06-04 10:41:03 -07:00
'hljs-attribute': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentYellow,
},
2025-06-04 10:41:03 -07:00
'hljs-variable': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.Foreground,
},
2025-06-04 10:41:03 -07:00
'hljs-variable.language': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.LightBlue,
2025-06-04 10:41:03 -07:00
fontStyle: 'italic',
},
'hljs-title': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentBlue,
},
'hljs-section': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentGreen,
fontWeight: 'bold',
},
'hljs-type': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.LightBlue,
},
'hljs-class .hljs-title': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentBlue,
},
'hljs-tag': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.LightBlue,
},
'hljs-name': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentBlue,
},
2025-06-04 10:41:03 -07:00
'hljs-builtin-name': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentYellow,
},
2025-06-04 10:41:03 -07:00
'hljs-meta': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentYellow,
},
'hljs-symbol': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentRed,
},
'hljs-bullet': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentYellow,
},
2025-06-04 10:41:03 -07:00
'hljs-regexp': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentCyan,
},
2025-06-04 10:41:03 -07:00
'hljs-link': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.LightBlue,
},
'hljs-deletion': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentRed,
},
'hljs-addition': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentGreen,
},
'hljs-emphasis': {
fontStyle: 'italic',
},
'hljs-strong': {
fontWeight: 'bold',
},
2025-06-04 10:41:03 -07:00
'hljs-literal': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentCyan,
2025-06-04 10:41:03 -07:00
},
'hljs-built_in': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentRed,
2025-06-04 10:41:03 -07:00
},
'hljs-doctag': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentRed,
2025-06-04 10:41:03 -07:00
},
'hljs-template-variable': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentCyan,
2025-06-04 10:41:03 -07:00
},
'hljs-selector-id': {
2025-06-05 14:35:47 -07:00
color: ayuLightColors.AccentRed,
2025-06-04 10:41:03 -07:00
},
},
2025-06-05 14:35:47 -07:00
ayuLightColors,
);