Files
gemini-cli/packages/cli/src/ui/themes/xcode.ts

151 lines
3.1 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 xcodeColors: ColorsTheme = {
type: 'light',
Background: '#fff',
Foreground: 'black',
LightBlue: '#0E0EFF',
AccentBlue: '#1c00cf',
AccentPurple: '#aa0d91',
AccentCyan: '#3F6E74',
AccentGreen: '#007400',
AccentYellow: '#836C28',
AccentRed: '#c41a16',
Comment: '#007400',
Gray: '#c0c0c0',
GradientColors: ['#1c00cf', '#007400'],
2025-06-05 14:35:47 -07:00
};
export const XCode: Theme = new Theme(
2025-06-05 14:35:47 -07:00
'Xcode',
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: xcodeColors.Background,
color: xcodeColors.Foreground,
},
'xml .hljs-meta': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.Gray,
},
'hljs-comment': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.Comment,
},
'hljs-quote': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.Comment,
},
'hljs-tag': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-attribute': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-keyword': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-selector-tag': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-literal': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-name': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-variable': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentCyan,
},
'hljs-template-variable': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentCyan,
},
'hljs-code': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentRed,
},
'hljs-string': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentRed,
},
'hljs-meta-string': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentRed,
},
'hljs-regexp': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.LightBlue,
},
'hljs-link': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.LightBlue,
},
'hljs-title': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentBlue,
},
'hljs-symbol': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentBlue,
},
'hljs-bullet': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentBlue,
},
'hljs-number': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentBlue,
},
'hljs-section': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentYellow,
},
'hljs-meta': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentYellow,
},
'hljs-class .hljs-title': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-type': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-built_in': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-builtin-name': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-params': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentPurple,
},
'hljs-attr': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentYellow,
},
'hljs-subst': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.Foreground,
},
'hljs-formula': {
backgroundColor: '#eee',
fontStyle: 'italic',
},
'hljs-addition': {
backgroundColor: '#baeeba',
},
'hljs-deletion': {
backgroundColor: '#ffc8bd',
},
'hljs-selector-id': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentYellow,
},
'hljs-selector-class': {
2025-06-05 14:35:47 -07:00
color: xcodeColors.AccentYellow,
},
'hljs-doctag': {
fontWeight: 'bold',
},
'hljs-strong': {
fontWeight: 'bold',
},
'hljs-emphasis': {
fontStyle: 'italic',
},
},
2025-06-05 14:35:47 -07:00
xcodeColors,
);