This commit is contained in:
Jade (Rose) Rowland 2025-02-20 00:54:33 -05:00
parent aabc82bedd
commit b664bd3d1f
3 changed files with 55 additions and 5 deletions

View file

@ -4,6 +4,7 @@ import blackscreen, { settings as blackscreenSettings } from './themes/blackscre
import whitescreen, { settings as whitescreenSettings } from './themes/whitescreen.mjs';
import teletext, { settings as teletextSettings } from './themes/teletext.mjs';
import algoboy, { settings as algoboySettings } from './themes/algoboy.mjs';
import grl2000, {settings as grl2000Settings} from './themes/grl2000.mjs'
import terminal, { settings as terminalSettings } from './themes/terminal.mjs';
import abcdef, { settings as abcdefSettings } from './themes/abcdef.mjs';
import androidstudio, { settings as androidstudioSettings } from './themes/androidstudio.mjs';
@ -55,6 +56,7 @@ export const themes = {
androidstudio,
duotoneDark,
githubDark,
grl2000,
gruvboxDark,
materialDark,
nord,
@ -98,6 +100,7 @@ export const settings = {
duotoneLight: duotoneLightSettings,
duotoneDark: duotoneDarkSettings,
eclipse: eclipseSettings,
grl2000: grl2000Settings,
githubLight: githubLightSettings,
githubDark: githubDarkSettings,
gruvboxDark: gruvboxDarkSettings,

47
packages/codemirror/themes/grl2000.mjs vendored Normal file
View file

@ -0,0 +1,47 @@
/**
* @name Atom One
* Atom One dark syntax theme
*
* https://github.com/atom/one-dark-syntax
*/
import { tags as t } from '@lezer/highlight';
import { createTheme } from './theme-helper.mjs';
const deepPurple = '#5c019a'
const yellowPink = '#fbeffc'
const grey = '#272C35'
const pinkAccent ="#fee1ff"
const lightGrey = '#465063'
const bratGreen = "#9acd3f"
const pink = '#f6a6fd'
export const settings = {
background: 'white',
lineBackground: 'transparent',
foreground: deepPurple,
caret: '#797977',
selection: yellowPink,
selectionMatch: '#2B323D',
gutterBackground: grey,
gutterForeground: lightGrey,
gutterBorder: 'transparent',
lineHighlight: pinkAccent,
};
export default createTheme({
theme: 'dark',
settings,
styles: [
{
tag: [t.function(t.variableName), t.function(t.propertyName), t.url, t.processingInstruction],
color: deepPurple,
},
{ tag: [t.tagName, t.heading], color: settings.foreground },
{ tag: t.comment, color: pink },
{ tag: [t.variableName, t.propertyName, t.labelName], color: lightGrey },
{ tag: [t.attributeName, t.number], color: 'hsl( 29, 54%, 61%)' },
{ tag: t.className, color: grey },
{ tag: t.keyword, color: grey },
{ tag: [t.string, t.regexp, t.special(t.propertyName)], color: bratGreen },
],
});