Merge pull request 'feat: 3 new codemirror themes' (#1394) from jade/themes into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1394
This commit is contained in:
commit
a8f2537e31
4 changed files with 137 additions and 0 deletions
12
packages/codemirror/themes.mjs
vendored
12
packages/codemirror/themes.mjs
vendored
|
|
@ -8,6 +8,11 @@ import CutiePi, { settings as CutiePiSettings } from './themes/CutiePi.mjs';
|
||||||
import sonicPink, { settings as sonicPinkSettings } from './themes/sonic-pink.mjs';
|
import sonicPink, { settings as sonicPinkSettings } from './themes/sonic-pink.mjs';
|
||||||
import redText, { settings as redTextSettings } from './themes/red-text.mjs';
|
import redText, { settings as redTextSettings } from './themes/red-text.mjs';
|
||||||
import greenText, { settings as greenTextSettings } from './themes/green-text.mjs';
|
import greenText, { settings as greenTextSettings } from './themes/green-text.mjs';
|
||||||
|
import archBtw, { settings as archBtwSettings } from './themes/archBtw.mjs';
|
||||||
|
import fruitDaw, { settings as fruitDawSettings } from './themes/fruitDaw.mjs';
|
||||||
|
|
||||||
|
import bluescreenlight, { settings as bluescreenlightsettings } from './themes/bluescreenlight.mjs';
|
||||||
|
|
||||||
import androidstudio, { settings as androidstudioSettings } from './themes/androidstudio.mjs';
|
import androidstudio, { settings as androidstudioSettings } from './themes/androidstudio.mjs';
|
||||||
import atomone, { settings as atomOneSettings } from './themes/atomone.mjs';
|
import atomone, { settings as atomOneSettings } from './themes/atomone.mjs';
|
||||||
import aura, { settings as auraSettings } from './themes/aura.mjs';
|
import aura, { settings as auraSettings } from './themes/aura.mjs';
|
||||||
|
|
@ -39,17 +44,20 @@ import { setTheme } from '@strudel/draw';
|
||||||
export const themes = {
|
export const themes = {
|
||||||
strudelTheme,
|
strudelTheme,
|
||||||
algoboy,
|
algoboy,
|
||||||
|
archBtw,
|
||||||
androidstudio,
|
androidstudio,
|
||||||
atomone,
|
atomone,
|
||||||
aura,
|
aura,
|
||||||
bbedit,
|
bbedit,
|
||||||
blackscreen,
|
blackscreen,
|
||||||
bluescreen,
|
bluescreen,
|
||||||
|
bluescreenlight,
|
||||||
CutiePi,
|
CutiePi,
|
||||||
darcula,
|
darcula,
|
||||||
dracula,
|
dracula,
|
||||||
duotoneDark,
|
duotoneDark,
|
||||||
eclipse,
|
eclipse,
|
||||||
|
fruitDaw,
|
||||||
githubDark,
|
githubDark,
|
||||||
githubLight,
|
githubLight,
|
||||||
greenText,
|
greenText,
|
||||||
|
|
@ -78,10 +86,12 @@ export const themes = {
|
||||||
export const settings = {
|
export const settings = {
|
||||||
strudelTheme: strudelThemeSettings,
|
strudelTheme: strudelThemeSettings,
|
||||||
bluescreen: bluescreenSettings,
|
bluescreen: bluescreenSettings,
|
||||||
|
bluescreenlight: bluescreenlightsettings,
|
||||||
blackscreen: blackscreenSettings,
|
blackscreen: blackscreenSettings,
|
||||||
whitescreen: whitescreenSettings,
|
whitescreen: whitescreenSettings,
|
||||||
teletext: teletextSettings,
|
teletext: teletextSettings,
|
||||||
algoboy: algoboySettings,
|
algoboy: algoboySettings,
|
||||||
|
archBtw: archBtwSettings,
|
||||||
androidstudio: androidstudioSettings,
|
androidstudio: androidstudioSettings,
|
||||||
atomone: atomOneSettings,
|
atomone: atomOneSettings,
|
||||||
aura: auraSettings,
|
aura: auraSettings,
|
||||||
|
|
@ -92,9 +102,11 @@ export const settings = {
|
||||||
eclipse: eclipseSettings,
|
eclipse: eclipseSettings,
|
||||||
CutiePi: CutiePiSettings,
|
CutiePi: CutiePiSettings,
|
||||||
sonicPink: sonicPinkSettings,
|
sonicPink: sonicPinkSettings,
|
||||||
|
fruitDaw: fruitDawSettings,
|
||||||
githubLight: githubLightSettings,
|
githubLight: githubLightSettings,
|
||||||
githubDark: githubDarkSettings,
|
githubDark: githubDarkSettings,
|
||||||
greenText: greenTextSettings,
|
greenText: greenTextSettings,
|
||||||
|
|
||||||
gruvboxDark: gruvboxDarkSettings,
|
gruvboxDark: gruvboxDarkSettings,
|
||||||
gruvboxLight: gruvboxLightSettings,
|
gruvboxLight: gruvboxLightSettings,
|
||||||
materialDark: materialDarkSettings,
|
materialDark: materialDarkSettings,
|
||||||
|
|
|
||||||
38
packages/codemirror/themes/archBtw.mjs
vendored
Normal file
38
packages/codemirror/themes/archBtw.mjs
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
* Arch Btw
|
||||||
|
* Modern terminal inspired theme
|
||||||
|
* made by Jade
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
const hex = ['rgb(0, 0, 0)', 'rgb(82, 208, 250)', 'rgba(113, 208, 250, .4)', 'rgba(113, 208, 250, .15)'];
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: hex[0],
|
||||||
|
lineBackground: 'transparent',
|
||||||
|
foreground: hex[1],
|
||||||
|
selection: hex[2],
|
||||||
|
selectionMatch: hex[0],
|
||||||
|
gutterBackground: hex[0],
|
||||||
|
gutterForeground: hex[2],
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: hex[0],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings,
|
||||||
|
styles: [
|
||||||
|
{
|
||||||
|
tag: [t.function(t.variableName), t.function(t.propertyName), t.url, t.processingInstruction],
|
||||||
|
color: hex[1],
|
||||||
|
},
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: hex[1] },
|
||||||
|
{ tag: [t.comment, t.brace, t.bracket], color: hex[2] },
|
||||||
|
{ tag: [t.variableName, t.propertyName, t.labelName], color: hex[1] },
|
||||||
|
{ tag: [t.attributeName, t.number], color: hex[1] },
|
||||||
|
{ tag: t.keyword, color: hex[1] },
|
||||||
|
{ tag: [t.string, t.regexp, t.special(t.propertyName)], color: hex[1] },
|
||||||
|
],
|
||||||
|
});
|
||||||
37
packages/codemirror/themes/bluescreenlight.mjs
vendored
Normal file
37
packages/codemirror/themes/bluescreenlight.mjs
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
* A lighter blue screen theme
|
||||||
|
* made by Jade
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
const hex = ['rgb(75, 130, 247)', 'rgb(47, 108, 246)', 'rgb(255, 255, 255)', 'rgba(255, 255, 255,.3)'];
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: hex[0],
|
||||||
|
lineBackground: 'transparent',
|
||||||
|
foreground: hex[2],
|
||||||
|
selection: hex[3],
|
||||||
|
selectionMatch: hex[0],
|
||||||
|
gutterBackground: hex[0],
|
||||||
|
gutterForeground: hex[2],
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: hex[1],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings,
|
||||||
|
styles: [
|
||||||
|
{
|
||||||
|
tag: [t.function(t.variableName), t.function(t.propertyName), t.url, t.processingInstruction],
|
||||||
|
color: hex[2],
|
||||||
|
},
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: hex[2] },
|
||||||
|
{ tag: [t.comment, t.bracket, t.brace, t.compareOperator], color: hex[3] },
|
||||||
|
{ tag: [t.variableName, t.propertyName, t.labelName], color: hex[2] },
|
||||||
|
{ tag: [t.attributeName, t.number], color: hex[2] },
|
||||||
|
{ tag: t.keyword, color: hex[2] },
|
||||||
|
{ tag: [t.string, t.regexp, t.special(t.propertyName)], color: hex[2] },
|
||||||
|
],
|
||||||
|
});
|
||||||
50
packages/codemirror/themes/fruitDaw.mjs
vendored
Normal file
50
packages/codemirror/themes/fruitDaw.mjs
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*
|
||||||
|
* Fruit Daw
|
||||||
|
* made by Jade
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
const hex = [
|
||||||
|
'rgb(84, 93, 98)',
|
||||||
|
'rgb(255, 255, 255)',
|
||||||
|
'rgba(255, 255, 255, .25)',
|
||||||
|
'rgb(67, 76, 81)',
|
||||||
|
'rgb(186, 230, 115)',
|
||||||
|
'rgb(252, 184, 67)',
|
||||||
|
'rgb(124, 206, 254)',
|
||||||
|
'rgb(83, 101, 102)',
|
||||||
|
'rgba(46, 62, 72,.5)',
|
||||||
|
'rgb(94, 100, 108)',
|
||||||
|
'rgb(167, 216, 177)',
|
||||||
|
];
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: hex[0],
|
||||||
|
lineBackground: 'transparent',
|
||||||
|
foreground: hex[10],
|
||||||
|
selection: hex[8],
|
||||||
|
selectionMatch: hex[0],
|
||||||
|
gutterBackground: hex[3],
|
||||||
|
gutterForeground: hex[2],
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: hex[3],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings,
|
||||||
|
styles: [
|
||||||
|
{
|
||||||
|
tag: [t.function(t.variableName), t.function(t.propertyName), t.url, t.processingInstruction],
|
||||||
|
color: hex[1],
|
||||||
|
},
|
||||||
|
{ tag: [t.bool, t.special(t.variableName)], color: hex[1] },
|
||||||
|
{ tag: [t.comment, t.brace, t.bracket], color: hex[2] },
|
||||||
|
{ tag: [t.variableName], color: hex[1] },
|
||||||
|
{ tag: [t.labelName, t.propertyName, t.self, t.atom], color: hex[5] },
|
||||||
|
{ tag: [t.attributeName, t.number], color: hex[6] },
|
||||||
|
{ tag: t.keyword, color: hex[5] },
|
||||||
|
{ tag: [t.string, t.regexp, t.special(t.propertyName)], color: hex[4] },
|
||||||
|
],
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue