mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
commit
fac698e39c
@ -14,5 +14,6 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"no-unused-vars": ["warn", { "destructuredArrayIgnorePattern": ".", "ignoreRestSiblings": false }],
|
"no-unused-vars": ["warn", { "destructuredArrayIgnorePattern": ".", "ignoreRestSiblings": false }],
|
||||||
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
|
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
|
||||||
}
|
},
|
||||||
|
"files": ["**/*.mjs", "**/*.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@ -22,10 +22,10 @@ jobs:
|
|||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 8.11.0
|
version: 9.12.2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|||||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -11,10 +11,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 8.11.0
|
version: 9.12.2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|||||||
86
eslint.config.mjs
Normal file
86
eslint.config.mjs
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
import _import from 'eslint-plugin-import';
|
||||||
|
import { fixupPluginRules } from '@eslint/compat';
|
||||||
|
import globals from 'globals';
|
||||||
|
import path from 'node:path';
|
||||||
|
import { fileURLToPath } from 'node:url';
|
||||||
|
import js from '@eslint/js';
|
||||||
|
import { FlatCompat } from '@eslint/eslintrc';
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
recommendedConfig: js.configs.recommended,
|
||||||
|
allConfig: js.configs.all,
|
||||||
|
});
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
'**/krill-parser.js',
|
||||||
|
'**/krill.pegjs',
|
||||||
|
'**/.eslintrc.json',
|
||||||
|
'**/server.js',
|
||||||
|
'**/tidal-sniffer.js',
|
||||||
|
'**/*.jsx',
|
||||||
|
'**/tunejs.js',
|
||||||
|
'out/**/*',
|
||||||
|
'**/postcss.config.js',
|
||||||
|
'**/postcss.config.cjs',
|
||||||
|
'**/tailwind.config.js',
|
||||||
|
'**/tailwind.config.cjs',
|
||||||
|
'**/vite.config.js',
|
||||||
|
'**/dist/**/*',
|
||||||
|
'!**/*.mjs',
|
||||||
|
'**/*.tsx',
|
||||||
|
'**/*.ts',
|
||||||
|
'**/*.json',
|
||||||
|
'**/dev-dist',
|
||||||
|
'**/dist',
|
||||||
|
'src-tauri/target/**/*',
|
||||||
|
'**/reverbGen.mjs',
|
||||||
|
'**/hydra.mjs',
|
||||||
|
'**/jsdoc-synonyms.js',
|
||||||
|
'packages/hs2js/src/hs2js.mjs',
|
||||||
|
'**/samples',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
...compat.extends('eslint:recommended').map((config) => ({
|
||||||
|
...config,
|
||||||
|
files: ['**/*.mjs', '**/*.js'],
|
||||||
|
})),
|
||||||
|
{
|
||||||
|
files: ['**/*.mjs', '**/*.js'],
|
||||||
|
|
||||||
|
plugins: {
|
||||||
|
import: fixupPluginRules(_import),
|
||||||
|
},
|
||||||
|
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.node,
|
||||||
|
...globals.browser,
|
||||||
|
},
|
||||||
|
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
sourceType: 'module',
|
||||||
|
},
|
||||||
|
|
||||||
|
rules: {
|
||||||
|
'no-unused-vars': [
|
||||||
|
'warn',
|
||||||
|
{
|
||||||
|
destructuredArrayIgnorePattern: '.',
|
||||||
|
ignoreRestSiblings: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
'import/no-extraneous-dependencies': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
devDependencies: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
@ -9,7 +9,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/codemirror": "workspace:*",
|
"@strudel/codemirror": "workspace:*",
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/web": "workspace:*"
|
"@strudel/web": "workspace:*"
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
|
|||||||
@ -12,6 +12,6 @@
|
|||||||
"superdough": "workspace:*"
|
"superdough": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,6 +31,6 @@
|
|||||||
"hs2js": "workspace:*"
|
"hs2js": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.8"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
26
package.json
26
package.json
@ -21,7 +21,7 @@
|
|||||||
"osc": "cd packages/osc && npm run server",
|
"osc": "cd packages/osc && npm run server",
|
||||||
"jsdoc": "jsdoc packages/ -c jsdoc/jsdoc.config.json",
|
"jsdoc": "jsdoc packages/ -c jsdoc/jsdoc.config.json",
|
||||||
"jsdoc-json": "jsdoc packages/ --template ./node_modules/jsdoc-json --destination doc.json -c jsdoc/jsdoc.config.json",
|
"jsdoc-json": "jsdoc packages/ --template ./node_modules/jsdoc-json --destination doc.json -c jsdoc/jsdoc.config.json",
|
||||||
"lint": "eslint . --ext mjs,js --quiet",
|
"lint": "eslint . --quiet",
|
||||||
"codeformat": "prettier --write .",
|
"codeformat": "prettier --write .",
|
||||||
"format-check": "prettier --check .",
|
"format-check": "prettier --check .",
|
||||||
"report-undocumented": "npm run jsdoc-json && node jsdoc/undocumented.mjs > undocumented.json",
|
"report-undocumented": "npm run jsdoc-json && node jsdoc/undocumented.mjs > undocumented.json",
|
||||||
@ -55,19 +55,21 @@
|
|||||||
"@strudel/xen": "workspace:*"
|
"@strudel/xen": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tauri-apps/cli": "^1.5.9",
|
"@eslint/compat": "^1.2.5",
|
||||||
"@vitest/ui": "^2.1.3",
|
"@eslint/eslintrc": "^3.2.0",
|
||||||
"acorn": "^8.13.0",
|
"@eslint/js": "^9.19.0",
|
||||||
"dependency-tree": "^10.0.9",
|
"@tauri-apps/cli": "^2.2.7",
|
||||||
"eslint": "^8.56.0",
|
"@vitest/ui": "^3.0.4",
|
||||||
|
"acorn": "^8.14.0",
|
||||||
|
"dependency-tree": "^11.0.1",
|
||||||
|
"eslint": "^9.19.0",
|
||||||
"eslint-plugin-import": "^2.31.0",
|
"eslint-plugin-import": "^2.31.0",
|
||||||
"events": "^3.3.0",
|
"events": "^3.3.0",
|
||||||
"jsdoc": "^4.0.3",
|
"globals": "^15.14.0",
|
||||||
|
"jsdoc": "^4.0.4",
|
||||||
"jsdoc-json": "^2.0.2",
|
"jsdoc-json": "^2.0.2",
|
||||||
"jsdoc-to-markdown": "^8.0.0",
|
"lerna": "^8.1.9",
|
||||||
"lerna": "^8.1.8",
|
"prettier": "^3.4.2",
|
||||||
"prettier": "^3.3.3",
|
"vitest": "^3.0.4"
|
||||||
"rollup-plugin-visualizer": "^5.12.0",
|
|
||||||
"vitest": "^2.1.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,26 +32,24 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/autocomplete": "^6.11.1",
|
"@codemirror/autocomplete": "^6.18.4",
|
||||||
"@codemirror/commands": "^6.3.3",
|
"@codemirror/commands": "^6.8.0",
|
||||||
"@codemirror/lang-javascript": "^6.2.1",
|
"@codemirror/lang-javascript": "^6.2.2",
|
||||||
"@codemirror/language": "^6.10.0",
|
"@codemirror/language": "^6.10.8",
|
||||||
"@codemirror/search": "^6.5.5",
|
"@codemirror/search": "^6.5.8",
|
||||||
"@codemirror/state": "^6.4.0",
|
"@codemirror/state": "^6.5.1",
|
||||||
"@codemirror/view": "^6.23.0",
|
"@codemirror/view": "^6.36.2",
|
||||||
"@lezer/highlight": "^1.2.0",
|
"@lezer/highlight": "^1.2.1",
|
||||||
"@nanostores/persistent": "^0.9.1",
|
"@nanostores/persistent": "^0.10.2",
|
||||||
"@replit/codemirror-emacs": "^6.0.1",
|
"@replit/codemirror-emacs": "^6.1.0",
|
||||||
"@replit/codemirror-vim": "^6.1.0",
|
"@replit/codemirror-vim": "^6.2.1",
|
||||||
"@replit/codemirror-vscode-keymap": "^6.0.2",
|
"@replit/codemirror-vscode-keymap": "^6.0.2",
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"@strudel/draw": "workspace:*",
|
"@strudel/draw": "workspace:*",
|
||||||
"@strudel/transpiler": "workspace:*",
|
"@strudel/transpiler": "workspace:*",
|
||||||
"@uiw/codemirror-themes": "^4.21.21",
|
"nanostores": "^0.11.3"
|
||||||
"@uiw/codemirror-themes-all": "^4.21.21",
|
|
||||||
"nanostores": "^0.9.5"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
468
packages/codemirror/themes.mjs
vendored
468
packages/codemirror/themes.mjs
vendored
@ -1,42 +1,41 @@
|
|||||||
import {
|
import strudelTheme, { settings as strudelThemeSettings } from './themes/strudel-theme.mjs';
|
||||||
abcdef,
|
import bluescreen, { settings as bluescreenSettings } from './themes/bluescreen.mjs';
|
||||||
androidstudio,
|
import blackscreen, { settings as blackscreenSettings } from './themes/blackscreen.mjs';
|
||||||
atomone,
|
import whitescreen, { settings as whitescreenSettings } from './themes/whitescreen.mjs';
|
||||||
aura,
|
import teletext, { settings as teletextSettings } from './themes/teletext.mjs';
|
||||||
bespin,
|
import algoboy, { settings as algoboySettings } from './themes/algoboy.mjs';
|
||||||
darcula,
|
import terminal, { settings as terminalSettings } from './themes/terminal.mjs';
|
||||||
dracula,
|
import abcdef, { settings as abcdefSettings } from './themes/abcdef.mjs';
|
||||||
duotoneDark,
|
import androidstudio, { settings as androidstudioSettings } from './themes/androidstudio.mjs';
|
||||||
eclipse,
|
import atomone, { settings as atomOneSettings } from './themes/atomone.mjs';
|
||||||
githubDark,
|
import aura, { settings as auraSettings } from './themes/aura.mjs';
|
||||||
gruvboxDark,
|
import bespin, { settings as bespinSettings } from './themes/bespin.mjs';
|
||||||
materialDark,
|
import darcula, { settings as darculaSettings } from './themes/darcula.mjs';
|
||||||
nord,
|
import dracula, { settings as draculaSettings } from './themes/dracula.mjs';
|
||||||
okaidia,
|
import duotoneDark, { settings as duotoneDarkSettings } from './themes/duotoneDark.mjs';
|
||||||
solarizedDark,
|
import duotoneLight, { settings as duotoneLightSettings } from './themes/duotoneLight.mjs';
|
||||||
sublime,
|
import eclipse, { settings as eclipseSettings } from './themes/eclipse.mjs';
|
||||||
tokyoNight,
|
import githubDark, { settings as githubDarkSettings } from './themes/githubDark.mjs';
|
||||||
tokyoNightStorm,
|
import githubLight, { settings as githubLightSettings } from './themes/githubLight.mjs';
|
||||||
vscodeDark,
|
import gruvboxDark, { settings as gruvboxDarkSettings } from './themes/gruvboxDark.mjs';
|
||||||
xcodeDark,
|
import gruvboxLight, { settings as gruvboxLightSettings } from './themes/gruvboxLight.mjs';
|
||||||
bbedit,
|
import materialDark, { settings as materialDarkSettings } from './themes/materialDark.mjs';
|
||||||
duotoneLight,
|
import materialLight, { settings as materialLightSettings } from './themes/materialLight.mjs';
|
||||||
githubLight,
|
import nord, { settings as nordSettings } from './themes/nord.mjs';
|
||||||
gruvboxLight,
|
import okaidia, { settings as okaidiaSettings } from './themes/okaidia.mjs';
|
||||||
materialLight,
|
import solarizedDark, { settings as solarizedDarkSettings } from './themes/solarizedDark.mjs';
|
||||||
noctisLilac,
|
import solarizedLight, { settings as solarizedLightSettings } from './themes/solarizedLight.mjs';
|
||||||
solarizedLight,
|
import sublime, { settings as sublimeSettings } from './themes/sublime.mjs';
|
||||||
tokyoNightDay,
|
import tokyoNight, { settings as tokyoNightSettings } from './themes/tokyoNight.mjs';
|
||||||
xcodeLight,
|
import tokyoNightStorm, { settings as tokyoNightStormSettings } from './themes/tokioNightStorm.mjs';
|
||||||
} from '@uiw/codemirror-themes-all';
|
import tokyoNightDay, { settings as tokyoNightDaySettings } from './themes/tokyoNightDay.mjs';
|
||||||
|
import vscodeDark, { settings as vscodeDarkSettings } from './themes/vscodeDark.mjs';
|
||||||
|
import vscodeLight, { settings as vscodeLightSettings } from './themes/vscodeLight.mjs';
|
||||||
|
import xcodeDark, { settings as xcodeDarkSettings } from './themes/xcodeDark.mjs';
|
||||||
|
import xcodeLight, { settings as xcodeLightSettings } from './themes/xcodeLight.mjs';
|
||||||
|
import bbedit, { settings as bbeditSettings } from './themes/bbedit.mjs';
|
||||||
|
import noctisLilac, { settings as noctisLilacSettings } from './themes/noctisLilac.mjs';
|
||||||
|
|
||||||
import strudelTheme from './themes/strudel-theme';
|
|
||||||
import bluescreen, { settings as bluescreenSettings } from './themes/bluescreen';
|
|
||||||
import blackscreen, { settings as blackscreenSettings } from './themes/blackscreen';
|
|
||||||
import whitescreen, { settings as whitescreenSettings } from './themes/whitescreen';
|
|
||||||
import teletext, { settings as teletextSettings } from './themes/teletext';
|
|
||||||
import algoboy, { settings as algoboySettings } from './themes/algoboy';
|
|
||||||
import terminal, { settings as terminalSettings } from './themes/terminal';
|
|
||||||
import { setTheme } from '@strudel/draw';
|
import { setTheme } from '@strudel/draw';
|
||||||
|
|
||||||
export const themes = {
|
export const themes = {
|
||||||
@ -46,15 +45,17 @@ export const themes = {
|
|||||||
whitescreen,
|
whitescreen,
|
||||||
teletext,
|
teletext,
|
||||||
algoboy,
|
algoboy,
|
||||||
terminal,
|
|
||||||
abcdef,
|
|
||||||
androidstudio,
|
|
||||||
atomone,
|
atomone,
|
||||||
aura,
|
aura,
|
||||||
bespin,
|
|
||||||
darcula,
|
darcula,
|
||||||
dracula,
|
dracula,
|
||||||
|
// todo: optimize
|
||||||
|
terminal,
|
||||||
|
bespin,
|
||||||
|
abcdef,
|
||||||
|
androidstudio,
|
||||||
duotoneDark,
|
duotoneDark,
|
||||||
|
duotoneLight,
|
||||||
eclipse,
|
eclipse,
|
||||||
githubDark,
|
githubDark,
|
||||||
gruvboxDark,
|
gruvboxDark,
|
||||||
@ -68,373 +69,54 @@ export const themes = {
|
|||||||
vscodeDark,
|
vscodeDark,
|
||||||
xcodeDark,
|
xcodeDark,
|
||||||
bbedit,
|
bbedit,
|
||||||
duotoneLight,
|
|
||||||
githubLight,
|
githubLight,
|
||||||
gruvboxLight,
|
gruvboxLight,
|
||||||
materialLight,
|
materialLight,
|
||||||
|
vscodeLight,
|
||||||
noctisLilac,
|
noctisLilac,
|
||||||
solarizedLight,
|
solarizedLight,
|
||||||
tokyoNightDay,
|
tokyoNightDay,
|
||||||
xcodeLight,
|
xcodeLight,
|
||||||
};
|
};
|
||||||
|
|
||||||
// lineBackground is background with 50% opacity, to make sure the selection below is visible
|
|
||||||
|
|
||||||
export const settings = {
|
export const settings = {
|
||||||
strudelTheme: {
|
strudelTheme: strudelThemeSettings,
|
||||||
background: '#222',
|
|
||||||
lineBackground: '#22222299',
|
|
||||||
foreground: '#fff',
|
|
||||||
// foreground: '#75baff',
|
|
||||||
caret: '#ffcc00',
|
|
||||||
selection: 'rgba(128, 203, 196, 0.5)',
|
|
||||||
selectionMatch: '#036dd626',
|
|
||||||
// lineHighlight: '#8a91991a', // original
|
|
||||||
lineHighlight: '#00000050',
|
|
||||||
gutterBackground: 'transparent',
|
|
||||||
// gutterForeground: '#8a919966',
|
|
||||||
gutterForeground: '#8a919966',
|
|
||||||
},
|
|
||||||
bluescreen: bluescreenSettings,
|
bluescreen: bluescreenSettings,
|
||||||
blackscreen: blackscreenSettings,
|
blackscreen: blackscreenSettings,
|
||||||
whitescreen: whitescreenSettings,
|
whitescreen: whitescreenSettings,
|
||||||
teletext: teletextSettings,
|
teletext: teletextSettings,
|
||||||
algoboy: algoboySettings,
|
algoboy: algoboySettings,
|
||||||
terminal: terminalSettings,
|
terminal: terminalSettings,
|
||||||
abcdef: {
|
abcdef: abcdefSettings,
|
||||||
background: '#0f0f0f',
|
androidstudio: androidstudioSettings,
|
||||||
lineBackground: '#0f0f0f99',
|
atomone: atomOneSettings,
|
||||||
foreground: '#defdef',
|
aura: auraSettings,
|
||||||
caret: '#00FF00',
|
bbedit: bbeditSettings,
|
||||||
selection: '#515151',
|
bespin: bespinSettings,
|
||||||
selectionMatch: '#515151',
|
darcula: darculaSettings,
|
||||||
gutterBackground: '#555',
|
dracula: draculaSettings,
|
||||||
gutterForeground: '#FFFFFF',
|
duotoneLight: duotoneLightSettings,
|
||||||
lineHighlight: '#314151',
|
duotoneDark: duotoneDarkSettings,
|
||||||
},
|
eclipse: eclipseSettings,
|
||||||
androidstudio: {
|
githubLight: githubLightSettings,
|
||||||
background: '#282b2e',
|
githubDark: githubDarkSettings,
|
||||||
lineBackground: '#282b2e99',
|
gruvboxDark: gruvboxDarkSettings,
|
||||||
foreground: '#a9b7c6',
|
gruvboxLight: gruvboxLightSettings,
|
||||||
caret: '#00FF00',
|
materialDark: materialDarkSettings,
|
||||||
selection: '#343739',
|
materialLight: materialLightSettings,
|
||||||
selectionMatch: '#343739',
|
noctisLilac: noctisLilacSettings,
|
||||||
lineHighlight: '#343739',
|
nord: nordSettings,
|
||||||
},
|
okaidia: okaidiaSettings,
|
||||||
atomone: {
|
solarizedLight: solarizedLightSettings,
|
||||||
background: '#272C35',
|
solarizedDark: solarizedDarkSettings,
|
||||||
lineBackground: '#272C3599',
|
sublime: sublimeSettings,
|
||||||
foreground: '#9d9b97',
|
tokyoNight: tokyoNightSettings,
|
||||||
caret: '#797977',
|
tokyoNightStorm: tokyoNightStormSettings,
|
||||||
selection: '#ffffff30',
|
vscodeDark: vscodeDarkSettings,
|
||||||
selectionMatch: '#2B323D',
|
vscodeLight: vscodeLightSettings,
|
||||||
gutterBackground: '#272C35',
|
xcodeLight: xcodeLightSettings,
|
||||||
gutterForeground: '#465063',
|
xcodeDark: xcodeDarkSettings,
|
||||||
gutterBorder: 'transparent',
|
tokyoNightDay: tokyoNightDaySettings,
|
||||||
lineHighlight: '#2B323D',
|
|
||||||
},
|
|
||||||
aura: {
|
|
||||||
background: '#21202e',
|
|
||||||
lineBackground: '#21202e99',
|
|
||||||
foreground: '#edecee',
|
|
||||||
caret: '#a277ff',
|
|
||||||
selection: '#3d375e7f',
|
|
||||||
selectionMatch: '#3d375e7f',
|
|
||||||
gutterBackground: '#21202e',
|
|
||||||
gutterForeground: '#edecee',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: '#a394f033',
|
|
||||||
},
|
|
||||||
bbedit: {
|
|
||||||
light: true,
|
|
||||||
background: '#FFFFFF',
|
|
||||||
lineBackground: '#FFFFFF99',
|
|
||||||
foreground: '#000000',
|
|
||||||
caret: '#FBAC52',
|
|
||||||
selection: '#FFD420',
|
|
||||||
selectionMatch: '#FFD420',
|
|
||||||
gutterBackground: '#f5f5f5',
|
|
||||||
gutterForeground: '#4D4D4C',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: '#00000012',
|
|
||||||
},
|
|
||||||
bespin: {
|
|
||||||
background: '#28211c',
|
|
||||||
lineBackground: '#28211c99',
|
|
||||||
foreground: '#9d9b97',
|
|
||||||
caret: '#797977',
|
|
||||||
selection: '#36312e',
|
|
||||||
selectionMatch: '#4f382b',
|
|
||||||
gutterBackground: '#28211c',
|
|
||||||
gutterForeground: '#666666',
|
|
||||||
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
|
||||||
},
|
|
||||||
darcula: {
|
|
||||||
background: '#2B2B2B',
|
|
||||||
lineBackground: '#2B2B2B99',
|
|
||||||
foreground: '#f8f8f2',
|
|
||||||
caret: '#FFFFFF',
|
|
||||||
selection: 'rgba(255, 255, 255, 0.1)',
|
|
||||||
selectionMatch: 'rgba(255, 255, 255, 0.2)',
|
|
||||||
gutterBackground: 'rgba(255, 255, 255, 0.1)',
|
|
||||||
gutterForeground: '#999',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
|
||||||
},
|
|
||||||
dracula: {
|
|
||||||
background: '#282a36',
|
|
||||||
lineBackground: '#282a3699',
|
|
||||||
foreground: '#f8f8f2',
|
|
||||||
caret: '#f8f8f0',
|
|
||||||
selection: 'rgba(255, 255, 255, 0.1)',
|
|
||||||
selectionMatch: 'rgba(255, 255, 255, 0.2)',
|
|
||||||
gutterBackground: '#282a36',
|
|
||||||
gutterForeground: '#6D8A88',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
|
||||||
},
|
|
||||||
duotoneLight: {
|
|
||||||
light: true,
|
|
||||||
background: '#faf8f5',
|
|
||||||
lineBackground: '#faf8f599',
|
|
||||||
foreground: '#b29762',
|
|
||||||
caret: '#93abdc',
|
|
||||||
selection: '#e3dcce',
|
|
||||||
selectionMatch: '#e3dcce',
|
|
||||||
gutterBackground: '#faf8f5',
|
|
||||||
gutterForeground: '#cdc4b1',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: '#EFEFEF',
|
|
||||||
},
|
|
||||||
duotoneDark: {
|
|
||||||
background: '#2a2734',
|
|
||||||
lineBackground: '#2a273499',
|
|
||||||
foreground: '#6c6783',
|
|
||||||
caret: '#ffad5c',
|
|
||||||
selection: 'rgba(255, 255, 255, 0.1)',
|
|
||||||
gutterBackground: '#2a2734',
|
|
||||||
gutterForeground: '#545167',
|
|
||||||
lineHighlight: '#36334280',
|
|
||||||
},
|
|
||||||
eclipse: {
|
|
||||||
light: true,
|
|
||||||
background: '#fff',
|
|
||||||
lineBackground: '#ffffff99',
|
|
||||||
foreground: '#000',
|
|
||||||
caret: '#FFFFFF',
|
|
||||||
selection: '#d7d4f0',
|
|
||||||
selectionMatch: '#d7d4f0',
|
|
||||||
gutterBackground: '#f7f7f7',
|
|
||||||
gutterForeground: '#999',
|
|
||||||
lineHighlight: '#e8f2ff',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
},
|
|
||||||
githubLight: {
|
|
||||||
light: true,
|
|
||||||
background: '#fff',
|
|
||||||
lineBackground: '#ffffff99',
|
|
||||||
foreground: '#24292e',
|
|
||||||
selection: '#BBDFFF',
|
|
||||||
selectionMatch: '#BBDFFF',
|
|
||||||
gutterBackground: '#fff',
|
|
||||||
gutterForeground: '#6e7781',
|
|
||||||
},
|
|
||||||
githubDark: {
|
|
||||||
background: '#0d1117',
|
|
||||||
lineBackground: '#0d111799',
|
|
||||||
foreground: '#c9d1d9',
|
|
||||||
caret: '#c9d1d9',
|
|
||||||
selection: '#003d73',
|
|
||||||
selectionMatch: '#003d73',
|
|
||||||
lineHighlight: '#36334280',
|
|
||||||
},
|
|
||||||
gruvboxDark: {
|
|
||||||
background: '#282828',
|
|
||||||
lineBackground: '#28282899',
|
|
||||||
foreground: '#ebdbb2',
|
|
||||||
caret: '#ebdbb2',
|
|
||||||
selection: '#bdae93',
|
|
||||||
selectionMatch: '#bdae93',
|
|
||||||
lineHighlight: '#3c3836',
|
|
||||||
gutterBackground: '#282828',
|
|
||||||
gutterForeground: '#7c6f64',
|
|
||||||
},
|
|
||||||
gruvboxLight: {
|
|
||||||
light: true,
|
|
||||||
background: '#fbf1c7',
|
|
||||||
lineBackground: '#fbf1c799',
|
|
||||||
foreground: '#3c3836',
|
|
||||||
caret: '#af3a03',
|
|
||||||
selection: '#ebdbb2',
|
|
||||||
selectionMatch: '#bdae93',
|
|
||||||
lineHighlight: '#ebdbb2',
|
|
||||||
gutterBackground: '#ebdbb2',
|
|
||||||
gutterForeground: '#665c54',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
},
|
|
||||||
materialDark: {
|
|
||||||
background: '#2e3235',
|
|
||||||
lineBackground: '#2e323599',
|
|
||||||
foreground: '#bdbdbd',
|
|
||||||
caret: '#a0a4ae',
|
|
||||||
selection: '#d7d4f0',
|
|
||||||
selectionMatch: '#d7d4f0',
|
|
||||||
gutterBackground: '#2e3235',
|
|
||||||
gutterForeground: '#999',
|
|
||||||
gutterActiveForeground: '#4f5b66',
|
|
||||||
lineHighlight: '#545b61',
|
|
||||||
},
|
|
||||||
materialLight: {
|
|
||||||
light: true,
|
|
||||||
background: '#FAFAFA',
|
|
||||||
lineBackground: '#FAFAFA99',
|
|
||||||
foreground: '#90A4AE',
|
|
||||||
caret: '#272727',
|
|
||||||
selection: '#80CBC440',
|
|
||||||
selectionMatch: '#FAFAFA',
|
|
||||||
gutterBackground: '#FAFAFA',
|
|
||||||
gutterForeground: '#90A4AE',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: '#CCD7DA50',
|
|
||||||
},
|
|
||||||
noctisLilac: {
|
|
||||||
light: true,
|
|
||||||
background: '#f2f1f8',
|
|
||||||
lineBackground: '#f2f1f899',
|
|
||||||
foreground: '#0c006b',
|
|
||||||
caret: '#5c49e9',
|
|
||||||
selection: '#d5d1f2',
|
|
||||||
selectionMatch: '#d5d1f2',
|
|
||||||
gutterBackground: '#f2f1f8',
|
|
||||||
gutterForeground: '#0c006b70',
|
|
||||||
lineHighlight: '#e1def3',
|
|
||||||
},
|
|
||||||
nord: {
|
|
||||||
background: '#2e3440',
|
|
||||||
lineBackground: '#2e344099',
|
|
||||||
foreground: '#FFFFFF',
|
|
||||||
caret: '#FFFFFF',
|
|
||||||
selection: '#3b4252',
|
|
||||||
selectionMatch: '#e5e9f0',
|
|
||||||
gutterBackground: '#2e3440',
|
|
||||||
gutterForeground: '#4c566a',
|
|
||||||
gutterActiveForeground: '#d8dee9',
|
|
||||||
lineHighlight: '#4c566a',
|
|
||||||
},
|
|
||||||
okaidia: {
|
|
||||||
background: '#272822',
|
|
||||||
lineBackground: '#27282299',
|
|
||||||
foreground: '#FFFFFF',
|
|
||||||
caret: '#FFFFFF',
|
|
||||||
selection: '#49483E',
|
|
||||||
selectionMatch: '#49483E',
|
|
||||||
gutterBackground: '#272822',
|
|
||||||
gutterForeground: '#FFFFFF70',
|
|
||||||
lineHighlight: '#00000059',
|
|
||||||
},
|
|
||||||
solarizedLight: {
|
|
||||||
light: true,
|
|
||||||
background: '#fdf6e3',
|
|
||||||
lineBackground: '#fdf6e399',
|
|
||||||
foreground: '#657b83',
|
|
||||||
caret: '#586e75',
|
|
||||||
selection: '#dfd9c8',
|
|
||||||
selectionMatch: '#dfd9c8',
|
|
||||||
gutterBackground: '#00000010',
|
|
||||||
gutterForeground: '#657b83',
|
|
||||||
lineHighlight: '#dfd9c8',
|
|
||||||
},
|
|
||||||
solarizedDark: {
|
|
||||||
background: '#002b36',
|
|
||||||
lineBackground: '#002b3699',
|
|
||||||
foreground: '#93a1a1',
|
|
||||||
caret: '#839496',
|
|
||||||
selection: '#173541',
|
|
||||||
selectionMatch: '#aafe661a',
|
|
||||||
gutterBackground: '#00252f',
|
|
||||||
gutterForeground: '#839496',
|
|
||||||
lineHighlight: '#173541',
|
|
||||||
},
|
|
||||||
sublime: {
|
|
||||||
background: '#303841',
|
|
||||||
lineBackground: '#30384199',
|
|
||||||
foreground: '#FFFFFF',
|
|
||||||
caret: '#FBAC52',
|
|
||||||
selection: '#4C5964',
|
|
||||||
selectionMatch: '#3A546E',
|
|
||||||
gutterBackground: '#303841',
|
|
||||||
gutterForeground: '#FFFFFF70',
|
|
||||||
lineHighlight: '#00000059',
|
|
||||||
},
|
|
||||||
tokyoNightDay: {
|
|
||||||
light: true,
|
|
||||||
background: '#e1e2e7',
|
|
||||||
lineBackground: '#e1e2e799',
|
|
||||||
foreground: '#3760bf',
|
|
||||||
caret: '#3760bf',
|
|
||||||
selection: '#99a7df',
|
|
||||||
selectionMatch: '#99a7df',
|
|
||||||
gutterBackground: '#e1e2e7',
|
|
||||||
gutterForeground: '#3760bf',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: '#5f5faf11',
|
|
||||||
},
|
|
||||||
tokyoNightStorm: {
|
|
||||||
background: '#24283b',
|
|
||||||
lineBackground: '#24283b99',
|
|
||||||
foreground: '#7982a9',
|
|
||||||
caret: '#c0caf5',
|
|
||||||
selection: '#6f7bb630',
|
|
||||||
selectionMatch: '#1f2335',
|
|
||||||
gutterBackground: '#24283b',
|
|
||||||
gutterForeground: '#7982a9',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: '#292e42',
|
|
||||||
},
|
|
||||||
tokyoNight: {
|
|
||||||
background: '#1a1b26',
|
|
||||||
lineBackground: '#1a1b2699',
|
|
||||||
foreground: '#787c99',
|
|
||||||
caret: '#c0caf5',
|
|
||||||
selection: '#515c7e40',
|
|
||||||
selectionMatch: '#16161e',
|
|
||||||
gutterBackground: '#1a1b26',
|
|
||||||
gutterForeground: '#787c99',
|
|
||||||
gutterBorder: 'transparent',
|
|
||||||
lineHighlight: '#1e202e',
|
|
||||||
},
|
|
||||||
vscodeDark: {
|
|
||||||
background: '#1e1e1e',
|
|
||||||
lineBackground: '#1e1e1e99',
|
|
||||||
foreground: '#9cdcfe',
|
|
||||||
caret: '#c6c6c6',
|
|
||||||
selection: '#6199ff2f',
|
|
||||||
selectionMatch: '#72a1ff59',
|
|
||||||
lineHighlight: '#ffffff0f',
|
|
||||||
gutterBackground: '#1e1e1e',
|
|
||||||
gutterForeground: '#838383',
|
|
||||||
gutterActiveForeground: '#fff',
|
|
||||||
},
|
|
||||||
xcodeLight: {
|
|
||||||
light: true,
|
|
||||||
background: '#fff',
|
|
||||||
lineBackground: '#ffffff99',
|
|
||||||
foreground: '#3D3D3D',
|
|
||||||
selection: '#BBDFFF',
|
|
||||||
selectionMatch: '#BBDFFF',
|
|
||||||
gutterBackground: '#fff',
|
|
||||||
gutterForeground: '#AFAFAF',
|
|
||||||
lineHighlight: '#EDF4FF',
|
|
||||||
},
|
|
||||||
xcodeDark: {
|
|
||||||
background: '#292A30',
|
|
||||||
lineBackground: '#292A3099',
|
|
||||||
foreground: '#CECFD0',
|
|
||||||
caret: '#fff',
|
|
||||||
selection: '#727377',
|
|
||||||
selectionMatch: '#727377',
|
|
||||||
lineHighlight: '#2F3239',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function getColors(str) {
|
function getColors(str) {
|
||||||
|
|||||||
52
packages/codemirror/themes/abcdef.mjs
vendored
Normal file
52
packages/codemirror/themes/abcdef.mjs
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
/**
|
||||||
|
* @name abcdef
|
||||||
|
* @author codemirror.net
|
||||||
|
* https://codemirror.net/5/theme/abcdef.css
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#0f0f0f',
|
||||||
|
lineBackground: '#0f0f0f99',
|
||||||
|
foreground: '#defdef',
|
||||||
|
caret: '#00FF00',
|
||||||
|
selection: '#515151',
|
||||||
|
selectionMatch: '#515151',
|
||||||
|
gutterBackground: '#555',
|
||||||
|
gutterForeground: '#FFFFFF',
|
||||||
|
lineHighlight: '#314151',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#0f0f0f',
|
||||||
|
foreground: '#defdef',
|
||||||
|
caret: '#00FF00',
|
||||||
|
selection: '#515151',
|
||||||
|
selectionMatch: '#515151',
|
||||||
|
gutterBackground: '#555',
|
||||||
|
gutterForeground: '#FFFFFF',
|
||||||
|
lineHighlight: '#0a6bcb3d',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: 'darkgoldenrod', fontWeight: 'bold' },
|
||||||
|
{ tag: t.atom, color: '#77F' },
|
||||||
|
{ tag: t.comment, color: '#7a7b7c', fontStyle: 'italic' },
|
||||||
|
{ tag: t.number, color: 'violet' },
|
||||||
|
{ tag: t.definition(t.variableName), color: '#fffabc' },
|
||||||
|
{ tag: t.variableName, color: '#abcdef' },
|
||||||
|
{ tag: t.function(t.variableName), color: '#fffabc' },
|
||||||
|
{ tag: t.typeName, color: '#FFDD44' },
|
||||||
|
{ tag: t.tagName, color: '#def' },
|
||||||
|
{ tag: t.string, color: '#2b4' },
|
||||||
|
{ tag: t.meta, color: '#C9F' },
|
||||||
|
// { tag: t.qualifier, color: '#FFF700' },
|
||||||
|
// { tag: t.builtin, color: '#30aabc' },
|
||||||
|
{ tag: t.bracket, color: '#8a8a8a' },
|
||||||
|
{ tag: t.attributeName, color: '#DDFF00' },
|
||||||
|
{ tag: t.heading, color: 'aquamarine', fontWeight: 'bold' },
|
||||||
|
{ tag: t.link, color: 'blueviolet', fontWeight: 'bold' },
|
||||||
|
],
|
||||||
|
});
|
||||||
2
packages/codemirror/themes/algoboy.mjs
vendored
2
packages/codemirror/themes/algoboy.mjs
vendored
@ -1,5 +1,5 @@
|
|||||||
import { tags as t } from '@lezer/highlight';
|
import { tags as t } from '@lezer/highlight';
|
||||||
import { createTheme } from '@uiw/codemirror-themes';
|
import { createTheme } from './theme-helper.mjs';
|
||||||
export const settings = {
|
export const settings = {
|
||||||
background: '#9bbc0f',
|
background: '#9bbc0f',
|
||||||
foreground: '#0f380f', // whats that?
|
foreground: '#0f380f', // whats that?
|
||||||
|
|||||||
38
packages/codemirror/themes/androidstudio.mjs
vendored
Normal file
38
packages/codemirror/themes/androidstudio.mjs
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/**
|
||||||
|
* @name androidstudio
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#282b2e',
|
||||||
|
lineBackground: '#282b2e99',
|
||||||
|
foreground: '#a9b7c6',
|
||||||
|
caret: '#00FF00',
|
||||||
|
selection: '#343739',
|
||||||
|
selectionMatch: '#343739',
|
||||||
|
lineHighlight: '#343739',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#282b2e',
|
||||||
|
foreground: '#a9b7c6',
|
||||||
|
caret: '#00FF00',
|
||||||
|
selection: '#4e5254',
|
||||||
|
selectionMatch: '#4e5254',
|
||||||
|
lineHighlight: '#7f85891f',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.keyword, t.deleted, t.className], color: '#cc7832' },
|
||||||
|
{ tag: [t.number, t.literal, t.derefOperator], color: '#6897bb' },
|
||||||
|
{ tag: [t.link, t.variableName], color: '#629755' },
|
||||||
|
{ tag: [t.comment, t.quote], color: 'grey' },
|
||||||
|
{ tag: [t.meta, t.documentMeta], color: '#bbb529' },
|
||||||
|
{ tag: [t.string, t.propertyName, t.attributeValue], color: '#6a8759' },
|
||||||
|
{ tag: [t.heading, t.typeName], color: '#ffc66d' },
|
||||||
|
{ tag: [t.attributeName], color: '#a9b7c6' },
|
||||||
|
{ tag: [t.emphasis], fontStyle: 'italic' },
|
||||||
|
],
|
||||||
|
});
|
||||||
49
packages/codemirror/themes/atomone.mjs
vendored
Normal file
49
packages/codemirror/themes/atomone.mjs
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
/**
|
||||||
|
* @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';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#272C35',
|
||||||
|
lineBackground: '#272C3599',
|
||||||
|
foreground: '#9d9b97',
|
||||||
|
caret: '#797977',
|
||||||
|
selection: '#ffffff30',
|
||||||
|
selectionMatch: '#2B323D',
|
||||||
|
gutterBackground: '#272C35',
|
||||||
|
gutterForeground: '#465063',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#2B323D',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#272C35',
|
||||||
|
foreground: '#9d9b97',
|
||||||
|
caret: '#797977',
|
||||||
|
selection: '#3d4c64',
|
||||||
|
selectionMatch: '#3d4c64',
|
||||||
|
gutterBackground: '#272C35',
|
||||||
|
gutterForeground: '#465063',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#2e3f5940',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{
|
||||||
|
tag: [t.function(t.variableName), t.function(t.propertyName), t.url, t.processingInstruction],
|
||||||
|
color: 'hsl(207, 82%, 66%)',
|
||||||
|
},
|
||||||
|
{ tag: [t.tagName, t.heading], color: '#e06c75' },
|
||||||
|
{ tag: t.comment, color: '#54636D' },
|
||||||
|
{ tag: [t.propertyName], color: 'hsl(220, 14%, 71%)' },
|
||||||
|
{ tag: [t.attributeName, t.number], color: 'hsl( 29, 54%, 61%)' },
|
||||||
|
{ tag: t.className, color: 'hsl( 39, 67%, 69%)' },
|
||||||
|
{ tag: t.keyword, color: 'hsl(286, 60%, 67%)' },
|
||||||
|
{ tag: [t.string, t.regexp, t.special(t.propertyName)], color: '#98c379' },
|
||||||
|
],
|
||||||
|
});
|
||||||
51
packages/codemirror/themes/aura.mjs
vendored
Normal file
51
packages/codemirror/themes/aura.mjs
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#21202e',
|
||||||
|
lineBackground: '#21202e99',
|
||||||
|
foreground: '#edecee',
|
||||||
|
caret: '#a277ff',
|
||||||
|
selection: '#3d375e7f',
|
||||||
|
selectionMatch: '#3d375e7f',
|
||||||
|
gutterBackground: '#21202e',
|
||||||
|
gutterForeground: '#edecee',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#a394f033',
|
||||||
|
};
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#21202e',
|
||||||
|
foreground: '#edecee',
|
||||||
|
caret: '#a277ff',
|
||||||
|
selection: '#5a51898f',
|
||||||
|
selectionMatch: '#5a51898f',
|
||||||
|
gutterBackground: '#21202e',
|
||||||
|
gutterForeground: '#edecee',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#a394f033',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#a277ff' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#edecee' },
|
||||||
|
{ tag: [t.propertyName], color: '#ffca85' },
|
||||||
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#61ffca' },
|
||||||
|
{ tag: [t.function(t.variableName), t.labelName], color: '#ffca85' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#61ffca' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#edecee' },
|
||||||
|
{ tag: [t.className], color: '#82e2ff' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#61ffca' },
|
||||||
|
{ tag: [t.typeName], color: '#82e2ff' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#a277ff' },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: '#61ffca' },
|
||||||
|
{ tag: [t.meta, t.comment], color: '#6d6d6d' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#a277ff' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#edecee' },
|
||||||
|
{ tag: t.invalid, color: '#ff6767' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
],
|
||||||
|
});
|
||||||
46
packages/codemirror/themes/bbedit.mjs
vendored
Normal file
46
packages/codemirror/themes/bbedit.mjs
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#FFFFFF',
|
||||||
|
lineBackground: '#FFFFFF99',
|
||||||
|
foreground: '#000000',
|
||||||
|
caret: '#FBAC52',
|
||||||
|
selection: '#FFD420',
|
||||||
|
selectionMatch: '#FFD420',
|
||||||
|
gutterBackground: '#f5f5f5',
|
||||||
|
gutterForeground: '#4D4D4C',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#00000012',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#FFFFFF',
|
||||||
|
foreground: '#000000',
|
||||||
|
caret: '#FBAC52',
|
||||||
|
selection: '#FFD420',
|
||||||
|
selectionMatch: '#FFD420',
|
||||||
|
gutterBackground: '#f5f5f5',
|
||||||
|
gutterForeground: '#4D4D4C',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#00000012',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.meta, t.comment], color: '#804000' },
|
||||||
|
{ tag: [t.keyword, t.strong], color: '#0000FF' },
|
||||||
|
{ tag: [t.number], color: '#FF0080' },
|
||||||
|
{ tag: [t.string], color: '#FF0080' },
|
||||||
|
{ tag: [t.variableName], color: '#006600' },
|
||||||
|
{ tag: [t.escape], color: '#33CC33' },
|
||||||
|
{ tag: [t.tagName], color: '#1C02FF' },
|
||||||
|
{ tag: [t.heading], color: '#0C07FF' },
|
||||||
|
{ tag: [t.quote], color: '#000000' },
|
||||||
|
{ tag: [t.list], color: '#B90690' },
|
||||||
|
{ tag: [t.documentMeta], color: '#888888' },
|
||||||
|
{ tag: [t.function(t.variableName)], color: '#0000A2' },
|
||||||
|
{ tag: [t.definition(t.typeName), t.typeName], color: '#6D79DE' },
|
||||||
|
],
|
||||||
|
});
|
||||||
39
packages/codemirror/themes/bespin.mjs
vendored
Normal file
39
packages/codemirror/themes/bespin.mjs
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// this is different from https://thememirror.net/bespin
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#28211c',
|
||||||
|
lineBackground: '#28211c99',
|
||||||
|
foreground: '#9d9b97',
|
||||||
|
caret: '#797977',
|
||||||
|
selection: '#36312e',
|
||||||
|
selectionMatch: '#4f382b',
|
||||||
|
gutterBackground: '#28211c',
|
||||||
|
gutterForeground: '#666666',
|
||||||
|
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
};
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#28211c',
|
||||||
|
foreground: '#9d9b97',
|
||||||
|
caret: '#797977',
|
||||||
|
selection: '#4f382b',
|
||||||
|
selectionMatch: '#4f382b',
|
||||||
|
gutterBackground: '#28211c',
|
||||||
|
gutterForeground: '#666666',
|
||||||
|
lineHighlight: '#ffffff1a',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.atom, t.number, t.link, t.bool], color: '#9b859d' },
|
||||||
|
{ tag: t.comment, color: '#937121' },
|
||||||
|
{ tag: [t.keyword, t.tagName], color: '#cf6a4c' },
|
||||||
|
{ tag: t.string, color: '#f9ee98' },
|
||||||
|
{ tag: t.bracket, color: '#9d9b97' },
|
||||||
|
{ tag: [t.variableName], color: '#5ea6ea' },
|
||||||
|
{ tag: t.definition(t.variableName), color: '#cf7d34' },
|
||||||
|
{ tag: [t.function(t.variableName), t.className], color: '#cf7d34' },
|
||||||
|
{ tag: [t.propertyName, t.attributeName], color: '#54be0d' },
|
||||||
|
],
|
||||||
|
});
|
||||||
2
packages/codemirror/themes/blackscreen.mjs
vendored
2
packages/codemirror/themes/blackscreen.mjs
vendored
@ -1,5 +1,5 @@
|
|||||||
import { tags as t } from '@lezer/highlight';
|
import { tags as t } from '@lezer/highlight';
|
||||||
import { createTheme } from '@uiw/codemirror-themes';
|
import { createTheme } from './theme-helper.mjs';
|
||||||
export const settings = {
|
export const settings = {
|
||||||
background: 'black',
|
background: 'black',
|
||||||
foreground: 'white', // whats that?
|
foreground: 'white', // whats that?
|
||||||
|
|||||||
2
packages/codemirror/themes/bluescreen.mjs
vendored
2
packages/codemirror/themes/bluescreen.mjs
vendored
@ -1,5 +1,5 @@
|
|||||||
import { tags as t } from '@lezer/highlight';
|
import { tags as t } from '@lezer/highlight';
|
||||||
import { createTheme } from '@uiw/codemirror-themes';
|
import { createTheme } from './theme-helper.mjs';
|
||||||
export const settings = {
|
export const settings = {
|
||||||
background: '#051DB5',
|
background: '#051DB5',
|
||||||
lineBackground: '#051DB550',
|
lineBackground: '#051DB550',
|
||||||
|
|||||||
46
packages/codemirror/themes/darcula.mjs
vendored
Normal file
46
packages/codemirror/themes/darcula.mjs
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/**
|
||||||
|
* @name darcula
|
||||||
|
* @author darcula
|
||||||
|
* Name: IntelliJ IDEA darcula theme
|
||||||
|
* From IntelliJ IDEA by JetBrains
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
export const settings = {
|
||||||
|
background: '#2B2B2B',
|
||||||
|
lineBackground: '#2B2B2B99',
|
||||||
|
foreground: '#f8f8f2',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
selectionMatch: 'rgba(255, 255, 255, 0.2)',
|
||||||
|
gutterBackground: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
gutterForeground: '#999',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#2B2B2B',
|
||||||
|
foreground: '#f8f8f2',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
selectionMatch: 'rgba(255, 255, 255, 0.2)',
|
||||||
|
gutterBackground: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
gutterForeground: '#999',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.atom, t.number], color: '#bd93f9' },
|
||||||
|
{ tag: [t.comment], color: '#61A151' },
|
||||||
|
{ tag: [t.string], color: '#6A8759' },
|
||||||
|
{ tag: [t.variableName, t.operator], color: '#A9B7C6' },
|
||||||
|
{ tag: [t.meta, t.className], color: '#A9B7C6' },
|
||||||
|
{ tag: [t.propertyName], color: '#FFC66D' },
|
||||||
|
{ tag: [t.keyword], color: '#CC7832' },
|
||||||
|
{ tag: [t.tagName], color: '#ff79c6' },
|
||||||
|
{ tag: [t.typeName], color: '#ffb86c' },
|
||||||
|
],
|
||||||
|
});
|
||||||
49
packages/codemirror/themes/dracula.mjs
vendored
Normal file
49
packages/codemirror/themes/dracula.mjs
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
/**
|
||||||
|
* @name dracula
|
||||||
|
* @author dracula
|
||||||
|
* Michael Kaminsky (http://github.com/mkaminsky11)
|
||||||
|
* Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme)
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#282a36',
|
||||||
|
lineBackground: '#282a3699',
|
||||||
|
foreground: '#f8f8f2',
|
||||||
|
caret: '#f8f8f0',
|
||||||
|
selection: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
selectionMatch: 'rgba(255, 255, 255, 0.2)',
|
||||||
|
gutterBackground: '#282a36',
|
||||||
|
gutterForeground: '#6D8A88',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#282a36',
|
||||||
|
foreground: '#f8f8f2',
|
||||||
|
caret: '#f8f8f0',
|
||||||
|
selection: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
selectionMatch: 'rgba(255, 255, 255, 0.2)',
|
||||||
|
gutterBackground: '#282a36',
|
||||||
|
gutterForeground: '#6D8A88',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.comment, color: '#6272a4' },
|
||||||
|
{ tag: t.string, color: '#f1fa8c' },
|
||||||
|
{ tag: t.atom, color: '#bd93f9' },
|
||||||
|
{ tag: t.meta, color: '#f8f8f2' },
|
||||||
|
{ tag: [t.keyword, t.operator, t.tagName], color: '#ff79c6' },
|
||||||
|
{ tag: [t.function(t.propertyName), t.propertyName], color: '#66d9ef' },
|
||||||
|
{
|
||||||
|
tag: [t.definition(t.variableName), t.function(t.variableName), t.className, t.attributeName],
|
||||||
|
color: '#50fa7b',
|
||||||
|
},
|
||||||
|
{ tag: t.atom, color: '#bd93f9' },
|
||||||
|
],
|
||||||
|
});
|
||||||
42
packages/codemirror/themes/duotoneDark.mjs
vendored
Normal file
42
packages/codemirror/themes/duotoneDark.mjs
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/**
|
||||||
|
* @name duotone
|
||||||
|
* @author Bram de Haan
|
||||||
|
* by Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#2a2734',
|
||||||
|
lineBackground: '#2a273499',
|
||||||
|
foreground: '#6c6783',
|
||||||
|
caret: '#ffad5c',
|
||||||
|
selection: 'rgba(255, 255, 255, 0.1)',
|
||||||
|
gutterBackground: '#2a2734',
|
||||||
|
gutterForeground: '#545167',
|
||||||
|
lineHighlight: '#36334280',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#2a2734',
|
||||||
|
foreground: '#6c6783',
|
||||||
|
caret: '#ffad5c',
|
||||||
|
selection: '#91ff6c26',
|
||||||
|
selectionMatch: '#91ff6c26',
|
||||||
|
gutterBackground: '#2a2734',
|
||||||
|
gutterForeground: '#545167',
|
||||||
|
lineHighlight: '#36334280',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.comment, t.bracket], color: '#6c6783' },
|
||||||
|
{ tag: [t.atom, t.number, t.keyword, t.link, t.attributeName, t.quote], color: '#ffcc99' },
|
||||||
|
{ tag: [t.emphasis, t.heading, t.tagName, t.propertyName, t.className, t.variableName], color: '#eeebff' },
|
||||||
|
{ tag: [t.typeName, t.url], color: '#7a63ee' },
|
||||||
|
{ tag: t.operator, color: '#ffad5c' },
|
||||||
|
{ tag: t.string, color: '#ffb870' },
|
||||||
|
{ tag: [t.propertyName], color: '#9a86fd' },
|
||||||
|
{ tag: [t.unit, t.punctuation], color: '#e09142' },
|
||||||
|
],
|
||||||
|
});
|
||||||
45
packages/codemirror/themes/duotoneLight.mjs
vendored
Normal file
45
packages/codemirror/themes/duotoneLight.mjs
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/**
|
||||||
|
* @name duotone
|
||||||
|
* @author Bram de Haan
|
||||||
|
* by Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#faf8f5',
|
||||||
|
lineBackground: '#faf8f599',
|
||||||
|
foreground: '#b29762',
|
||||||
|
caret: '#93abdc',
|
||||||
|
selection: '#e3dcce',
|
||||||
|
selectionMatch: '#e3dcce',
|
||||||
|
gutterBackground: '#faf8f5',
|
||||||
|
gutterForeground: '#cdc4b1',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#EFEFEF',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#faf8f5',
|
||||||
|
foreground: '#b29762',
|
||||||
|
caret: '#93abdc',
|
||||||
|
selection: '#e3dcce',
|
||||||
|
selectionMatch: '#e3dcce',
|
||||||
|
gutterBackground: '#faf8f5',
|
||||||
|
gutterForeground: '#cdc4b1',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#ddceb154',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.comment, t.bracket], color: '#b6ad9a' },
|
||||||
|
{ tag: [t.atom, t.number, t.keyword, t.link, t.attributeName, t.quote], color: '#063289' },
|
||||||
|
{ tag: [t.emphasis, t.heading, t.tagName, t.propertyName, t.variableName], color: '#2d2006' },
|
||||||
|
{ tag: [t.typeName, t.url, t.string], color: '#896724' },
|
||||||
|
{ tag: [t.operator, t.string], color: '#1659df' },
|
||||||
|
{ tag: [t.propertyName], color: '#b29762' },
|
||||||
|
{ tag: [t.unit, t.punctuation], color: '#063289' },
|
||||||
|
],
|
||||||
|
});
|
||||||
46
packages/codemirror/themes/eclipse.mjs
vendored
Normal file
46
packages/codemirror/themes/eclipse.mjs
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#fff',
|
||||||
|
lineBackground: '#ffffff99',
|
||||||
|
foreground: '#000',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: '#d7d4f0',
|
||||||
|
selectionMatch: '#d7d4f0',
|
||||||
|
gutterBackground: '#f7f7f7',
|
||||||
|
gutterForeground: '#999',
|
||||||
|
lineHighlight: '#e8f2ff',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#fff',
|
||||||
|
foreground: '#000',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: '#d7d4f0',
|
||||||
|
selectionMatch: '#d7d4f0',
|
||||||
|
gutterBackground: '#f7f7f7',
|
||||||
|
gutterForeground: '#999',
|
||||||
|
lineHighlight: '#006fff1c',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.comment], color: '#3F7F5F' },
|
||||||
|
{ tag: [t.documentMeta], color: '#FF1717' },
|
||||||
|
{ tag: t.keyword, color: '#7F0055', fontWeight: 'bold' },
|
||||||
|
{ tag: t.atom, color: '#00f' },
|
||||||
|
{ tag: t.number, color: '#164' },
|
||||||
|
{ tag: t.propertyName, color: '#164' },
|
||||||
|
{ tag: [t.variableName, t.definition(t.variableName)], color: '#0000C0' },
|
||||||
|
{ tag: t.function(t.variableName), color: '#0000C0' },
|
||||||
|
{ tag: t.string, color: '#2A00FF' },
|
||||||
|
{ tag: t.operator, color: 'black' },
|
||||||
|
{ tag: t.tagName, color: '#170' },
|
||||||
|
{ tag: t.attributeName, color: '#00c' },
|
||||||
|
{ tag: t.link, color: '#219' },
|
||||||
|
],
|
||||||
|
});
|
||||||
43
packages/codemirror/themes/githubDark.mjs
vendored
Normal file
43
packages/codemirror/themes/githubDark.mjs
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/**
|
||||||
|
* @name github
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#0d1117',
|
||||||
|
lineBackground: '#0d111799',
|
||||||
|
foreground: '#c9d1d9',
|
||||||
|
caret: '#c9d1d9',
|
||||||
|
selection: '#003d73',
|
||||||
|
selectionMatch: '#003d73',
|
||||||
|
lineHighlight: '#36334280',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#0d1117',
|
||||||
|
foreground: '#c9d1d9',
|
||||||
|
caret: '#c9d1d9',
|
||||||
|
selection: '#003d73',
|
||||||
|
selectionMatch: '#003d73',
|
||||||
|
lineHighlight: '#36334280',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.standard(t.tagName), t.tagName], color: '#7ee787' },
|
||||||
|
{ tag: [t.comment, t.bracket], color: '#8b949e' },
|
||||||
|
{ tag: [t.className, t.propertyName], color: '#d2a8ff' },
|
||||||
|
{ tag: [t.variableName, t.attributeName, t.number, t.operator], color: '#79c0ff' },
|
||||||
|
{ tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#ff7b72' },
|
||||||
|
{ tag: [t.string, t.meta, t.regexp], color: '#a5d6ff' },
|
||||||
|
{ tag: [t.name, t.quote], color: '#7ee787' },
|
||||||
|
{ tag: [t.heading, t.strong], color: '#d2a8ff', fontWeight: 'bold' },
|
||||||
|
{ tag: [t.emphasis], color: '#d2a8ff', fontStyle: 'italic' },
|
||||||
|
{ tag: [t.deleted], color: '#ffdcd7', backgroundColor: 'ffeef0' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#ffab70' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: t.invalid, color: '#f97583' },
|
||||||
|
],
|
||||||
|
});
|
||||||
45
packages/codemirror/themes/githubLight.mjs
vendored
Normal file
45
packages/codemirror/themes/githubLight.mjs
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/**
|
||||||
|
* @name github
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#fff',
|
||||||
|
lineBackground: '#ffffff99',
|
||||||
|
foreground: '#24292e',
|
||||||
|
selection: '#BBDFFF',
|
||||||
|
selectionMatch: '#BBDFFF',
|
||||||
|
gutterBackground: '#fff',
|
||||||
|
gutterForeground: '#6e7781',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#fff',
|
||||||
|
foreground: '#24292e',
|
||||||
|
selection: '#BBDFFF',
|
||||||
|
selectionMatch: '#BBDFFF',
|
||||||
|
gutterBackground: '#fff',
|
||||||
|
gutterForeground: '#6e7781',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.standard(t.tagName), t.tagName], color: '#116329' },
|
||||||
|
{ tag: [t.comment, t.bracket], color: '#6a737d' },
|
||||||
|
{ tag: [t.className, t.propertyName], color: '#6f42c1' },
|
||||||
|
{ tag: [t.variableName, t.attributeName, t.number, t.operator], color: '#005cc5' },
|
||||||
|
{ tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#d73a49' },
|
||||||
|
{ tag: [t.string, t.meta, t.regexp], color: '#032f62' },
|
||||||
|
{ tag: [t.name, t.quote], color: '#22863a' },
|
||||||
|
{ tag: [t.heading, t.strong], color: '#24292e', fontWeight: 'bold' },
|
||||||
|
{ tag: [t.emphasis], color: '#24292e', fontStyle: 'italic' },
|
||||||
|
{ tag: [t.deleted], color: '#b31d28', backgroundColor: 'ffeef0' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#e36209' },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: '#032f62' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: t.invalid, color: '#cb2431' },
|
||||||
|
],
|
||||||
|
});
|
||||||
83
packages/codemirror/themes/gruvboxDark.mjs
vendored
Normal file
83
packages/codemirror/themes/gruvboxDark.mjs
vendored
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
/**
|
||||||
|
* @name gruvbox-dark
|
||||||
|
* @author morhetz
|
||||||
|
* Name: Gruvbox
|
||||||
|
* From github.com/codemirror/codemirror5/blob/master/theme/gruvbox-dark.css
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#282828',
|
||||||
|
lineBackground: '#28282899',
|
||||||
|
foreground: '#ebdbb2',
|
||||||
|
caret: '#ebdbb2',
|
||||||
|
selection: '#bdae93',
|
||||||
|
selectionMatch: '#bdae93',
|
||||||
|
lineHighlight: '#3c3836',
|
||||||
|
gutterBackground: '#282828',
|
||||||
|
gutterForeground: '#7c6f64',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#282828',
|
||||||
|
foreground: '#ebdbb2',
|
||||||
|
caret: '#ebdbb2',
|
||||||
|
selection: '#b99d555c',
|
||||||
|
selectionMatch: '#b99d555c',
|
||||||
|
lineHighlight: '#baa1602b',
|
||||||
|
gutterBackground: '#282828',
|
||||||
|
gutterForeground: '#7c6f64',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#fb4934' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName], color: '#8ec07c' },
|
||||||
|
{ tag: [t.variableName], color: '#83a598' },
|
||||||
|
{ tag: [t.function(t.variableName)], color: '#b8bb26', fontStyle: 'bold' },
|
||||||
|
{ tag: [t.labelName], color: '#ebdbb2' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#d3869b' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#ebdbb2' },
|
||||||
|
{ tag: [t.brace], color: '#ebdbb2' },
|
||||||
|
{ tag: [t.annotation], color: '#fb4934d' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#d3869b' },
|
||||||
|
{ tag: [t.typeName, t.className], color: '#fabd2f' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#fb4934' },
|
||||||
|
{
|
||||||
|
tag: [t.tagName],
|
||||||
|
color: '#8ec07c',
|
||||||
|
fontStyle: 'bold',
|
||||||
|
},
|
||||||
|
{ tag: [t.squareBracket], color: '#fe8019' },
|
||||||
|
{ tag: [t.angleBracket], color: '#83a598' },
|
||||||
|
{ tag: [t.attributeName], color: '#8ec07c' },
|
||||||
|
{ tag: [t.regexp], color: '#8ec07c' },
|
||||||
|
{ tag: [t.quote], color: '#928374' },
|
||||||
|
{ tag: [t.string], color: '#ebdbb2' },
|
||||||
|
{
|
||||||
|
tag: t.link,
|
||||||
|
color: '#a89984',
|
||||||
|
textDecoration: 'underline',
|
||||||
|
textUnderlinePosition: 'under',
|
||||||
|
},
|
||||||
|
{ tag: [t.url, t.escape, t.special(t.string)], color: '#d3869b' },
|
||||||
|
{ tag: [t.meta], color: '#fabd2f' },
|
||||||
|
{ tag: [t.comment], color: '#928374', fontStyle: 'italic' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold', color: '#fe8019' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic', color: '#b8bb26' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#b8bb26' },
|
||||||
|
{ tag: [t.heading1, t.heading2], fontWeight: 'bold', color: '#b8bb26' },
|
||||||
|
{
|
||||||
|
tag: [t.heading3, t.heading4],
|
||||||
|
fontWeight: 'bold',
|
||||||
|
color: '#fabd2f',
|
||||||
|
},
|
||||||
|
{ tag: [t.heading5, t.heading6], color: '#fabd2f' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#d3869b' },
|
||||||
|
{ tag: [t.processingInstruction, t.inserted], color: '#83a598' },
|
||||||
|
{ tag: [t.contentSeparator], color: '#fb4934' },
|
||||||
|
{ tag: t.invalid, color: '#fe8019', borderBottom: `1px dotted #fb4934d` },
|
||||||
|
],
|
||||||
|
});
|
||||||
131
packages/codemirror/themes/gruvboxLight.mjs
vendored
Normal file
131
packages/codemirror/themes/gruvboxLight.mjs
vendored
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
/**
|
||||||
|
* @name gruvbox-light
|
||||||
|
* @author morhetz
|
||||||
|
* Name: Gruvbox
|
||||||
|
* From github.com/codemirror/codemirror5/blob/master/theme/gruvbox-light.css
|
||||||
|
*/
|
||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#fbf1c7',
|
||||||
|
lineBackground: '#fbf1c799',
|
||||||
|
foreground: '#3c3836',
|
||||||
|
caret: '#af3a03',
|
||||||
|
selection: '#ebdbb2',
|
||||||
|
selectionMatch: '#bdae93',
|
||||||
|
lineHighlight: '#ebdbb2',
|
||||||
|
gutterBackground: '#ebdbb2',
|
||||||
|
gutterForeground: '#665c54',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#fbf1c7',
|
||||||
|
foreground: '#3c3836',
|
||||||
|
caret: '#af3a03',
|
||||||
|
selection: '#bdae9391',
|
||||||
|
selectionMatch: '#bdae9391',
|
||||||
|
lineHighlight: '#a37f2238',
|
||||||
|
gutterBackground: '#ebdbb2',
|
||||||
|
gutterForeground: '#665c54',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#9d0006' },
|
||||||
|
{
|
||||||
|
tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],
|
||||||
|
color: '#427b58',
|
||||||
|
},
|
||||||
|
{ tag: [t.variableName], color: '#076678' },
|
||||||
|
{ tag: [t.function(t.variableName)], color: '#79740e', fontStyle: 'bold' },
|
||||||
|
{ tag: [t.labelName], color: '#3c3836' },
|
||||||
|
{
|
||||||
|
tag: [t.color, t.constant(t.name), t.standard(t.name)],
|
||||||
|
color: '#8f3f71',
|
||||||
|
},
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#3c3836' },
|
||||||
|
{ tag: [t.brace], color: '#3c3836' },
|
||||||
|
{
|
||||||
|
tag: [t.annotation],
|
||||||
|
color: '#9d0006',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],
|
||||||
|
color: '#8f3f71',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.typeName, t.className],
|
||||||
|
color: '#b57614',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.operator, t.operatorKeyword],
|
||||||
|
color: '#9d0006',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.tagName],
|
||||||
|
color: '#427b58',
|
||||||
|
fontStyle: 'bold',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.squareBracket],
|
||||||
|
color: '#af3a03',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.angleBracket],
|
||||||
|
color: '#076678',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.attributeName],
|
||||||
|
color: '#427b58',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.regexp],
|
||||||
|
color: '#427b58',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.quote],
|
||||||
|
color: '#928374',
|
||||||
|
},
|
||||||
|
{ tag: [t.string], color: '#3c3836' },
|
||||||
|
{
|
||||||
|
tag: t.link,
|
||||||
|
color: '#7c6f64',
|
||||||
|
textDecoration: 'underline',
|
||||||
|
textUnderlinePosition: 'under',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.url, t.escape, t.special(t.string)],
|
||||||
|
color: '#8f3f71',
|
||||||
|
},
|
||||||
|
{ tag: [t.meta], color: '#b57614' },
|
||||||
|
{ tag: [t.comment], color: '#928374', fontStyle: 'italic' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold', color: '#af3a03' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic', color: '#79740e' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#79740e' },
|
||||||
|
{ tag: [t.heading1, t.heading2], fontWeight: 'bold', color: '#79740e' },
|
||||||
|
{
|
||||||
|
tag: [t.heading3, t.heading4],
|
||||||
|
fontWeight: 'bold',
|
||||||
|
color: '#b57614',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.heading5, t.heading6],
|
||||||
|
color: '#b57614',
|
||||||
|
},
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#8f3f71' },
|
||||||
|
{
|
||||||
|
tag: [t.processingInstruction, t.inserted],
|
||||||
|
color: '#076678',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: [t.contentSeparator],
|
||||||
|
color: '#9d0006',
|
||||||
|
},
|
||||||
|
{ tag: t.invalid, color: '#af3a03', borderBottom: `1px dotted #9d0006` },
|
||||||
|
],
|
||||||
|
});
|
||||||
77
packages/codemirror/themes/materialDark.mjs
vendored
Normal file
77
packages/codemirror/themes/materialDark.mjs
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#2e3235',
|
||||||
|
lineBackground: '#2e323599',
|
||||||
|
foreground: '#bdbdbd',
|
||||||
|
caret: '#a0a4ae',
|
||||||
|
selection: '#d7d4f0',
|
||||||
|
selectionMatch: '#d7d4f0',
|
||||||
|
gutterBackground: '#2e3235',
|
||||||
|
gutterForeground: '#999',
|
||||||
|
gutterActiveForeground: '#4f5b66',
|
||||||
|
lineHighlight: '#545b61',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#2e3235',
|
||||||
|
foreground: '#bdbdbd',
|
||||||
|
caret: '#a0a4ae',
|
||||||
|
selection: '#d7d4f063',
|
||||||
|
selectionMatch: '#d7d4f063',
|
||||||
|
gutterBackground: '#2e3235',
|
||||||
|
gutterForeground: '#999',
|
||||||
|
gutterActiveForeground: '#4f5b66',
|
||||||
|
lineHighlight: '#545b6130',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#cf6edf' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#56c8d8' },
|
||||||
|
{ tag: [t.propertyName], color: '#facf4e' },
|
||||||
|
{ tag: [t.variableName], color: '#bdbdbd' },
|
||||||
|
{ tag: [t.function(t.variableName)], color: '#56c8d8' },
|
||||||
|
{ tag: [t.labelName], color: '#cf6edf' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#facf4e' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#fa5788' },
|
||||||
|
{ tag: [t.brace], color: '#cf6edf' },
|
||||||
|
{ tag: [t.annotation], color: '#ff5f52' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#ffad42' },
|
||||||
|
{ tag: [t.typeName, t.className], color: '#ffad42' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#7186f0' },
|
||||||
|
{ tag: [t.tagName], color: '#99d066' },
|
||||||
|
{ tag: [t.squareBracket], color: '#ff5f52' },
|
||||||
|
{ tag: [t.angleBracket], color: '#606f7a' },
|
||||||
|
{ tag: [t.attributeName], color: '#bdbdbd' },
|
||||||
|
{ tag: [t.regexp], color: '#ff5f52' },
|
||||||
|
{ tag: [t.quote], color: '#6abf69' },
|
||||||
|
{ tag: [t.string], color: '#99d066' },
|
||||||
|
{
|
||||||
|
tag: t.link,
|
||||||
|
color: '#56c8d8',
|
||||||
|
textDecoration: 'underline',
|
||||||
|
textUnderlinePosition: 'under',
|
||||||
|
},
|
||||||
|
{ tag: [t.url, t.escape, t.special(t.string)], color: '#facf4e' },
|
||||||
|
{ tag: [t.meta], color: '#707d8b' },
|
||||||
|
{ tag: [t.comment], color: '#707d8b', fontStyle: 'italic' },
|
||||||
|
{ tag: t.monospace, color: '#bdbdbd' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold', color: '#ff5f52' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic', color: '#99d066' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#facf4e' },
|
||||||
|
{ tag: t.heading1, fontWeight: 'bold', color: '#facf4e' },
|
||||||
|
{
|
||||||
|
tag: [t.heading2, t.heading3, t.heading4],
|
||||||
|
fontWeight: 'bold',
|
||||||
|
color: '#facf4e',
|
||||||
|
},
|
||||||
|
{ tag: [t.heading5, t.heading6], color: '#facf4e' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#56c8d8' },
|
||||||
|
{ tag: [t.processingInstruction, t.inserted], color: '#ff5f52' },
|
||||||
|
{ tag: [t.contentSeparator], color: '#56c8d8' },
|
||||||
|
{ tag: t.invalid, color: '#606f7a', borderBottom: `1px dotted #ff5f52` },
|
||||||
|
],
|
||||||
|
});
|
||||||
52
packages/codemirror/themes/materialLight.mjs
vendored
Normal file
52
packages/codemirror/themes/materialLight.mjs
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#FAFAFA',
|
||||||
|
lineBackground: '#FAFAFA99',
|
||||||
|
foreground: '#90A4AE',
|
||||||
|
caret: '#272727',
|
||||||
|
selection: '#80CBC440',
|
||||||
|
selectionMatch: '#FAFAFA',
|
||||||
|
gutterBackground: '#FAFAFA',
|
||||||
|
gutterForeground: '#90A4AE',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#CCD7DA50',
|
||||||
|
};
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#FAFAFA',
|
||||||
|
foreground: '#90A4AE',
|
||||||
|
caret: '#272727',
|
||||||
|
selection: '#80CBC440',
|
||||||
|
selectionMatch: '#80CBC440',
|
||||||
|
gutterBackground: '#FAFAFA',
|
||||||
|
gutterForeground: '#90A4AE',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#CCD7DA50',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#39ADB5' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#90A4AE' },
|
||||||
|
{ tag: [t.propertyName], color: '#6182B8' },
|
||||||
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#91B859' },
|
||||||
|
{ tag: [t.function(t.variableName), t.labelName], color: '#6182B8' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#39ADB5' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#90A4AE' },
|
||||||
|
{ tag: [t.className], color: '#E2931D' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#F76D47' },
|
||||||
|
{ tag: [t.typeName], color: '#E2931D', fontStyle: '#E2931D' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#39ADB5' },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: '#91B859' },
|
||||||
|
{ tag: [t.meta, t.comment], color: '#90A4AE' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#39ADB5' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#90A4AE' },
|
||||||
|
{ tag: t.invalid, color: '#E5393570' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
],
|
||||||
|
});
|
||||||
50
packages/codemirror/themes/noctisLilac.mjs
vendored
Normal file
50
packages/codemirror/themes/noctisLilac.mjs
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#f2f1f8',
|
||||||
|
lineBackground: '#f2f1f899',
|
||||||
|
foreground: '#0c006b',
|
||||||
|
caret: '#5c49e9',
|
||||||
|
selection: '#d5d1f2',
|
||||||
|
selectionMatch: '#d5d1f2',
|
||||||
|
gutterBackground: '#f2f1f8',
|
||||||
|
gutterForeground: '#0c006b70',
|
||||||
|
lineHighlight: '#e1def3',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#f2f1f8',
|
||||||
|
foreground: '#0c006b',
|
||||||
|
caret: '#5c49e9',
|
||||||
|
selection: '#d5d1f2',
|
||||||
|
selectionMatch: '#d5d1f2',
|
||||||
|
gutterBackground: '#f2f1f8',
|
||||||
|
gutterForeground: '#0c006b70',
|
||||||
|
lineHighlight: '#16067911',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.comment, color: '#9995b7' },
|
||||||
|
{
|
||||||
|
tag: t.keyword,
|
||||||
|
color: '#ff5792',
|
||||||
|
fontWeight: 'bold',
|
||||||
|
},
|
||||||
|
{ tag: [t.definitionKeyword, t.modifier], color: '#ff5792' },
|
||||||
|
{ tag: [t.className, t.tagName, t.definition(t.typeName)], color: '#0094f0' },
|
||||||
|
{ tag: [t.number, t.bool, t.null, t.special(t.brace)], color: '#5842ff' },
|
||||||
|
{ tag: [t.definition(t.propertyName), t.function(t.variableName)], color: '#0095a8' },
|
||||||
|
{ tag: t.typeName, color: '#b3694d' },
|
||||||
|
{ tag: [t.propertyName, t.variableName], color: '#fa8900' },
|
||||||
|
{ tag: t.operator, color: '#ff5792' },
|
||||||
|
{ tag: t.self, color: '#e64100' },
|
||||||
|
{ tag: [t.string, t.regexp], color: '#00b368' },
|
||||||
|
{ tag: [t.paren, t.bracket], color: '#0431fa' },
|
||||||
|
{ tag: t.labelName, color: '#00bdd6' },
|
||||||
|
{ tag: t.attributeName, color: '#e64100' },
|
||||||
|
{ tag: t.angleBracket, color: '#9995b7' },
|
||||||
|
],
|
||||||
|
});
|
||||||
78
packages/codemirror/themes/nord.mjs
vendored
Normal file
78
packages/codemirror/themes/nord.mjs
vendored
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#2e3440',
|
||||||
|
lineBackground: '#2e344099',
|
||||||
|
foreground: '#FFFFFF',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: '#3b4252',
|
||||||
|
selectionMatch: '#e5e9f0',
|
||||||
|
gutterBackground: '#2e3440',
|
||||||
|
gutterForeground: '#4c566a',
|
||||||
|
gutterActiveForeground: '#d8dee9',
|
||||||
|
lineHighlight: '#4c566a',
|
||||||
|
};
|
||||||
|
|
||||||
|
// Colors from https://www.nordtheme.com/docs/colors-and-palettes
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#2e3440',
|
||||||
|
foreground: '#FFFFFF',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: '#00000073',
|
||||||
|
selectionMatch: '#00000073',
|
||||||
|
gutterBackground: '#2e3440',
|
||||||
|
gutterForeground: '#4c566a',
|
||||||
|
gutterActiveForeground: '#d8dee9',
|
||||||
|
lineHighlight: '#4c566a29',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#5e81ac' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName], color: '#88c0d0' },
|
||||||
|
{ tag: [t.variableName], color: '#8fbcbb' },
|
||||||
|
{ tag: [t.function(t.variableName)], color: '#8fbcbb' },
|
||||||
|
{ tag: [t.labelName], color: '#81a1c1' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#5e81ac' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#a3be8c' },
|
||||||
|
{ tag: [t.brace], color: '#8fbcbb' },
|
||||||
|
{ tag: [t.annotation], color: '#d30102' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#b48ead' },
|
||||||
|
{ tag: [t.typeName, t.className], color: '#ebcb8b' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#a3be8c' },
|
||||||
|
{ tag: [t.tagName], color: '#b48ead' },
|
||||||
|
{ tag: [t.squareBracket], color: '#bf616a' },
|
||||||
|
{ tag: [t.angleBracket], color: '#d08770' },
|
||||||
|
{ tag: [t.attributeName], color: '#ebcb8b' },
|
||||||
|
{ tag: [t.regexp], color: '#5e81ac' },
|
||||||
|
{ tag: [t.quote], color: '#b48ead' },
|
||||||
|
{ tag: [t.string], color: '#a3be8c' },
|
||||||
|
{
|
||||||
|
tag: t.link,
|
||||||
|
color: '#a3be8c',
|
||||||
|
textDecoration: 'underline',
|
||||||
|
textUnderlinePosition: 'under',
|
||||||
|
},
|
||||||
|
{ tag: [t.url, t.escape, t.special(t.string)], color: '#8fbcbb' },
|
||||||
|
{ tag: [t.meta], color: '#88c0d0' },
|
||||||
|
{ tag: [t.monospace], color: '#d8dee9', fontStyle: 'italic' },
|
||||||
|
{ tag: [t.comment], color: '#4c566a', fontStyle: 'italic' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold', color: '#5e81ac' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic', color: '#5e81ac' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#5e81ac' },
|
||||||
|
{ tag: t.special(t.heading1), fontWeight: 'bold', color: '#5e81ac' },
|
||||||
|
{ tag: t.heading1, fontWeight: 'bold', color: '#5e81ac' },
|
||||||
|
{
|
||||||
|
tag: [t.heading2, t.heading3, t.heading4],
|
||||||
|
fontWeight: 'bold',
|
||||||
|
color: '#5e81ac',
|
||||||
|
},
|
||||||
|
{ tag: [t.heading5, t.heading6], color: '#5e81ac' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#d08770' },
|
||||||
|
{ tag: [t.processingInstruction, t.inserted], color: '#8fbcbb' },
|
||||||
|
{ tag: [t.contentSeparator], color: '#ebcb8b' },
|
||||||
|
{ tag: t.invalid, color: '#434c5e', borderBottom: `1px dotted #d30102` },
|
||||||
|
],
|
||||||
|
});
|
||||||
44
packages/codemirror/themes/okaidia.mjs
vendored
Normal file
44
packages/codemirror/themes/okaidia.mjs
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#272822',
|
||||||
|
lineBackground: '#27282299',
|
||||||
|
foreground: '#FFFFFF',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: '#49483E',
|
||||||
|
selectionMatch: '#49483E',
|
||||||
|
gutterBackground: '#272822',
|
||||||
|
gutterForeground: '#FFFFFF70',
|
||||||
|
lineHighlight: '#00000059',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#272822',
|
||||||
|
foreground: '#FFFFFF',
|
||||||
|
caret: '#FFFFFF',
|
||||||
|
selection: '#49483E',
|
||||||
|
selectionMatch: '#49483E',
|
||||||
|
gutterBackground: '#272822',
|
||||||
|
gutterForeground: '#FFFFFF70',
|
||||||
|
lineHighlight: '#0000003b',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.comment, t.documentMeta], color: '#8292a2' },
|
||||||
|
{ tag: [t.number, t.bool, t.null, t.atom], color: '#ae81ff' },
|
||||||
|
{ tag: [t.attributeValue, t.className, t.name], color: '#e6db74' },
|
||||||
|
{ tag: [t.propertyName, t.attributeName], color: '#a6e22e' },
|
||||||
|
{ tag: [t.variableName], color: '#9effff' },
|
||||||
|
{ tag: [t.squareBracket], color: '#bababa' },
|
||||||
|
{ tag: [t.string, t.special(t.brace)], color: '#e6db74' },
|
||||||
|
{ tag: [t.regexp, t.className, t.typeName, t.definition(t.typeName)], color: '#66d9ef' },
|
||||||
|
{
|
||||||
|
tag: [t.definition(t.variableName), t.definition(t.propertyName), t.function(t.variableName)],
|
||||||
|
color: '#fd971f',
|
||||||
|
},
|
||||||
|
// { tag: t.keyword, color: '#f92672' },
|
||||||
|
{ tag: [t.keyword, t.definitionKeyword, t.modifier, t.tagName, t.angleBracket], color: '#f92672' },
|
||||||
|
],
|
||||||
|
});
|
||||||
79
packages/codemirror/themes/solarizedDark.mjs
vendored
Normal file
79
packages/codemirror/themes/solarizedDark.mjs
vendored
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#002b36',
|
||||||
|
lineBackground: '#002b3699',
|
||||||
|
foreground: '#93a1a1',
|
||||||
|
caret: '#839496',
|
||||||
|
selection: '#173541',
|
||||||
|
selectionMatch: '#aafe661a',
|
||||||
|
gutterBackground: '#00252f',
|
||||||
|
gutterForeground: '#839496',
|
||||||
|
lineHighlight: '#173541',
|
||||||
|
};
|
||||||
|
|
||||||
|
const c = {
|
||||||
|
background: '#002B36',
|
||||||
|
foreground: '#839496',
|
||||||
|
selection: '#004454AA',
|
||||||
|
selectionMatch: '#005A6FAA',
|
||||||
|
cursor: '#D30102',
|
||||||
|
dropdownBackground: '#00212B',
|
||||||
|
dropdownBorder: '#2AA19899',
|
||||||
|
activeLine: '#00cafe11',
|
||||||
|
matchingBracket: '#073642',
|
||||||
|
keyword: '#859900',
|
||||||
|
storage: '#93A1A1',
|
||||||
|
variable: '#268BD2',
|
||||||
|
parameter: '#268BD2',
|
||||||
|
function: '#268BD2',
|
||||||
|
string: '#2AA198',
|
||||||
|
constant: '#CB4B16',
|
||||||
|
type: '#859900',
|
||||||
|
class: '#268BD2',
|
||||||
|
number: '#D33682',
|
||||||
|
comment: '#586E75',
|
||||||
|
heading: '#268BD2',
|
||||||
|
invalid: '#DC322F',
|
||||||
|
regexp: '#DC322F',
|
||||||
|
tag: '#268BD2',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: c.background,
|
||||||
|
foreground: c.foreground,
|
||||||
|
caret: c.cursor,
|
||||||
|
selection: c.selection,
|
||||||
|
selectionMatch: c.selection,
|
||||||
|
gutterBackground: c.background,
|
||||||
|
gutterForeground: c.foreground,
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: c.activeLine,
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: c.keyword },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: c.variable },
|
||||||
|
{ tag: [t.propertyName], color: c.function },
|
||||||
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: c.string },
|
||||||
|
{ tag: [t.function(t.variableName), t.labelName], color: c.function },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: c.constant },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: c.variable },
|
||||||
|
{ tag: [t.className], color: c.class },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: c.number },
|
||||||
|
{ tag: [t.typeName], color: c.type, fontStyle: c.type },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: c.keyword },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: c.regexp },
|
||||||
|
{ tag: [t.meta, t.comment], color: c.comment },
|
||||||
|
{ tag: t.tagName, color: c.tag },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: c.heading },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: c.variable },
|
||||||
|
{ tag: t.invalid, color: c.invalid },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
],
|
||||||
|
});
|
||||||
82
packages/codemirror/themes/solarizedLight.mjs
vendored
Normal file
82
packages/codemirror/themes/solarizedLight.mjs
vendored
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
// this is slightly different from https://thememirror.net/solarized-light
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#fdf6e3',
|
||||||
|
lineBackground: '#fdf6e399',
|
||||||
|
foreground: '#657b83',
|
||||||
|
caret: '#586e75',
|
||||||
|
selection: '#dfd9c8',
|
||||||
|
selectionMatch: '#dfd9c8',
|
||||||
|
gutterBackground: '#00000010',
|
||||||
|
gutterForeground: '#657b83',
|
||||||
|
lineHighlight: '#dfd9c8',
|
||||||
|
};
|
||||||
|
|
||||||
|
const c = {
|
||||||
|
background: '#FDF6E3',
|
||||||
|
foreground: '#657B83',
|
||||||
|
selection: '#EEE8D5',
|
||||||
|
selectionMatch: '#EEE8D5',
|
||||||
|
cursor: '#657B83',
|
||||||
|
dropdownBackground: '#EEE8D5',
|
||||||
|
dropdownBorder: '#D3AF86',
|
||||||
|
activeLine: '#3d392d11',
|
||||||
|
matchingBracket: '#EEE8D5',
|
||||||
|
keyword: '#859900',
|
||||||
|
storage: '#586E75',
|
||||||
|
variable: '#268BD2',
|
||||||
|
parameter: '#268BD2',
|
||||||
|
function: '#268BD2',
|
||||||
|
string: '#2AA198',
|
||||||
|
constant: '#CB4B16',
|
||||||
|
type: '#859900',
|
||||||
|
class: '#268BD2',
|
||||||
|
number: '#D33682',
|
||||||
|
comment: '#93A1A1',
|
||||||
|
heading: '#268BD2',
|
||||||
|
invalid: '#DC322F',
|
||||||
|
regexp: '#DC322F',
|
||||||
|
tag: '#268BD2',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: c.background,
|
||||||
|
foreground: c.foreground,
|
||||||
|
caret: c.cursor,
|
||||||
|
selection: c.selection,
|
||||||
|
selectionMatch: c.selectionMatch,
|
||||||
|
gutterBackground: c.background,
|
||||||
|
gutterForeground: c.foreground,
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: c.activeLine,
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: c.keyword },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: c.variable },
|
||||||
|
{ tag: [t.propertyName], color: c.function },
|
||||||
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: c.string },
|
||||||
|
{ tag: [t.function(t.variableName), t.labelName], color: c.function },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: c.constant },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: c.variable },
|
||||||
|
{ tag: [t.className], color: c.class },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: c.number },
|
||||||
|
{ tag: [t.typeName], color: c.type, fontStyle: c.type },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: c.keyword },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: c.regexp },
|
||||||
|
{ tag: [t.meta, t.comment], color: c.comment },
|
||||||
|
{ tag: t.tagName, color: c.tag },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: c.heading },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: c.variable },
|
||||||
|
{ tag: t.invalid, color: c.invalid },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
],
|
||||||
|
});
|
||||||
31
packages/codemirror/themes/strudel-theme.mjs
vendored
31
packages/codemirror/themes/strudel-theme.mjs
vendored
@ -1,19 +1,24 @@
|
|||||||
import { tags as t } from '@lezer/highlight';
|
import { tags as t } from '@lezer/highlight';
|
||||||
import { createTheme } from '@uiw/codemirror-themes';
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#222',
|
||||||
|
lineBackground: '#22222299',
|
||||||
|
foreground: '#fff',
|
||||||
|
// foreground: '#75baff',
|
||||||
|
caret: '#ffcc00',
|
||||||
|
selection: 'rgba(128, 203, 196, 0.5)',
|
||||||
|
selectionMatch: '#036dd626',
|
||||||
|
// lineHighlight: '#8a91991a', // original
|
||||||
|
lineHighlight: '#00000050',
|
||||||
|
gutterBackground: 'transparent',
|
||||||
|
// gutterForeground: '#8a919966',
|
||||||
|
gutterForeground: '#8a919966',
|
||||||
|
};
|
||||||
|
|
||||||
export default createTheme({
|
export default createTheme({
|
||||||
theme: 'dark',
|
theme: 'dark',
|
||||||
settings: {
|
settings,
|
||||||
background: '#222',
|
|
||||||
foreground: '#75baff', // whats that?
|
|
||||||
caret: '#ffcc00',
|
|
||||||
selection: 'rgba(128, 203, 196, 0.5)',
|
|
||||||
selectionMatch: '#036dd626',
|
|
||||||
// lineHighlight: '#8a91991a', // original
|
|
||||||
lineHighlight: '#00000050',
|
|
||||||
gutterBackground: 'transparent',
|
|
||||||
// gutterForeground: '#8a919966',
|
|
||||||
gutterForeground: '#8a919966',
|
|
||||||
},
|
|
||||||
styles: [
|
styles: [
|
||||||
{ tag: t.labelName, color: '#89ddff' },
|
{ tag: t.labelName, color: '#89ddff' },
|
||||||
{ tag: t.keyword, color: '#c792ea' },
|
{ tag: t.keyword, color: '#c792ea' },
|
||||||
|
|||||||
42
packages/codemirror/themes/sublime.mjs
vendored
Normal file
42
packages/codemirror/themes/sublime.mjs
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#303841',
|
||||||
|
lineBackground: '#30384199',
|
||||||
|
foreground: '#FFFFFF',
|
||||||
|
caret: '#FBAC52',
|
||||||
|
selection: '#4C5964',
|
||||||
|
selectionMatch: '#3A546E',
|
||||||
|
gutterBackground: '#303841',
|
||||||
|
gutterForeground: '#FFFFFF70',
|
||||||
|
lineHighlight: '#00000059',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#303841',
|
||||||
|
foreground: '#FFFFFF',
|
||||||
|
caret: '#FBAC52',
|
||||||
|
selection: '#4C5964',
|
||||||
|
selectionMatch: '#3A546E',
|
||||||
|
gutterBackground: '#303841',
|
||||||
|
gutterForeground: '#FFFFFF70',
|
||||||
|
lineHighlight: '#00000059',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.meta, t.comment], color: '#A2A9B5' },
|
||||||
|
{ tag: [t.attributeName, t.keyword], color: '#B78FBA' },
|
||||||
|
{ tag: t.function(t.variableName), color: '#5AB0B0' },
|
||||||
|
{ tag: [t.string, t.regexp, t.attributeValue], color: '#99C592' },
|
||||||
|
{ tag: t.operator, color: '#f47954' },
|
||||||
|
// { tag: t.moduleKeyword, color: 'red' },
|
||||||
|
{ tag: [t.tagName, t.modifier], color: '#E35F63' },
|
||||||
|
{ tag: [t.number, t.definition(t.tagName), t.className, t.definition(t.variableName)], color: '#fbac52' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#E35F63' },
|
||||||
|
{ tag: t.variableName, color: '#539ac4' },
|
||||||
|
{ tag: [t.propertyName, t.typeName], color: '#629ccd' },
|
||||||
|
{ tag: t.propertyName, color: '#36b7b5' },
|
||||||
|
],
|
||||||
|
});
|
||||||
2
packages/codemirror/themes/teletext.mjs
vendored
2
packages/codemirror/themes/teletext.mjs
vendored
@ -1,5 +1,5 @@
|
|||||||
import { tags as t } from '@lezer/highlight';
|
import { tags as t } from '@lezer/highlight';
|
||||||
import { createTheme } from '@uiw/codemirror-themes';
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
let colorA = '#6edee4';
|
let colorA = '#6edee4';
|
||||||
//let colorB = 'magenta';
|
//let colorB = 'magenta';
|
||||||
|
|||||||
2
packages/codemirror/themes/terminal.mjs
vendored
2
packages/codemirror/themes/terminal.mjs
vendored
@ -1,5 +1,5 @@
|
|||||||
import { tags as t } from '@lezer/highlight';
|
import { tags as t } from '@lezer/highlight';
|
||||||
import { createTheme } from '@uiw/codemirror-themes';
|
import { createTheme } from './theme-helper.mjs';
|
||||||
export const settings = {
|
export const settings = {
|
||||||
background: 'black',
|
background: 'black',
|
||||||
foreground: '#41FF00', // whats that?
|
foreground: '#41FF00', // whats that?
|
||||||
|
|||||||
42
packages/codemirror/themes/theme-helper.mjs
vendored
Normal file
42
packages/codemirror/themes/theme-helper.mjs
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import { EditorView } from '@codemirror/view';
|
||||||
|
import { syntaxHighlighting } from '@codemirror/language';
|
||||||
|
import { HighlightStyle } from '@codemirror/language';
|
||||||
|
|
||||||
|
export const createTheme = ({ theme, settings, styles }) => {
|
||||||
|
const _theme = EditorView.theme(
|
||||||
|
{
|
||||||
|
'&': {
|
||||||
|
color: settings.foreground,
|
||||||
|
backgroundColor: settings.background,
|
||||||
|
},
|
||||||
|
'.cm-gutters': {
|
||||||
|
backgroundColor: settings.gutterBackground,
|
||||||
|
color: settings.gutterForeground,
|
||||||
|
//borderRightColor: settings.gutterBorder
|
||||||
|
},
|
||||||
|
'.cm-content': {
|
||||||
|
caretColor: settings.caret,
|
||||||
|
},
|
||||||
|
'.cm-cursor, .cm-dropCursor': {
|
||||||
|
borderLeftColor: settings.caret,
|
||||||
|
},
|
||||||
|
'.cm-activeLineGutter': {
|
||||||
|
// color: settings.gutterActiveForeground
|
||||||
|
backgroundColor: settings.lineHighlight,
|
||||||
|
},
|
||||||
|
'.cm-activeLine': {
|
||||||
|
backgroundColor: settings.lineHighlight,
|
||||||
|
},
|
||||||
|
'&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection':
|
||||||
|
{
|
||||||
|
background: settings.selection + ' !important',
|
||||||
|
},
|
||||||
|
'& .cm-selectionMatch': {
|
||||||
|
backgroundColor: settings.selectionMatch,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ dark: theme === 'dark' },
|
||||||
|
);
|
||||||
|
const highlightStyle = HighlightStyle.define(styles);
|
||||||
|
return [_theme, syntaxHighlighting(highlightStyle)];
|
||||||
|
};
|
||||||
52
packages/codemirror/themes/tokioNightStorm.mjs
vendored
Normal file
52
packages/codemirror/themes/tokioNightStorm.mjs
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#24283b',
|
||||||
|
lineBackground: '#24283b99',
|
||||||
|
foreground: '#7982a9',
|
||||||
|
caret: '#c0caf5',
|
||||||
|
selection: '#6f7bb630',
|
||||||
|
selectionMatch: '#1f2335',
|
||||||
|
gutterBackground: '#24283b',
|
||||||
|
gutterForeground: '#7982a9',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#292e42',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#24283b',
|
||||||
|
foreground: '#7982a9',
|
||||||
|
caret: '#c0caf5',
|
||||||
|
selection: '#6f7bb630',
|
||||||
|
selectionMatch: '#343b5f',
|
||||||
|
gutterBackground: '#24283b',
|
||||||
|
gutterForeground: '#7982a9',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#292e427a',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#bb9af7' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#c0caf5' },
|
||||||
|
{ tag: [t.propertyName], color: '#7aa2f7' },
|
||||||
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#9ece6a' },
|
||||||
|
{ tag: [t.function(t.variableName), t.labelName], color: '#7aa2f7' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#bb9af7' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#c0caf5' },
|
||||||
|
{ tag: [t.className], color: '#c0caf5' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#ff9e64' },
|
||||||
|
{ tag: [t.typeName], color: '#2ac3de', fontStyle: '#2ac3de' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#bb9af7' },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: '#b4f9f8' },
|
||||||
|
{ tag: [t.meta, t.comment], color: '#565f89' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#89ddff' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#c0caf5' },
|
||||||
|
{ tag: t.invalid, color: '#ff5370' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
],
|
||||||
|
});
|
||||||
52
packages/codemirror/themes/tokyoNight.mjs
vendored
Normal file
52
packages/codemirror/themes/tokyoNight.mjs
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#1a1b26',
|
||||||
|
lineBackground: '#1a1b2699',
|
||||||
|
foreground: '#787c99',
|
||||||
|
caret: '#c0caf5',
|
||||||
|
selection: '#515c7e40',
|
||||||
|
selectionMatch: '#16161e',
|
||||||
|
gutterBackground: '#1a1b26',
|
||||||
|
gutterForeground: '#787c99',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#1e202e',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#1a1b26',
|
||||||
|
foreground: '#787c99',
|
||||||
|
caret: '#c0caf5',
|
||||||
|
selection: '#515c7e40',
|
||||||
|
selectionMatch: '#16161e',
|
||||||
|
gutterBackground: '#1a1b26',
|
||||||
|
gutterForeground: '#787c99',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#474b6611',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#bb9af7' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#c0caf5' },
|
||||||
|
{ tag: [t.propertyName], color: '#7aa2f7' },
|
||||||
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#9ece6a' },
|
||||||
|
{ tag: [t.function(t.variableName), t.labelName], color: '#7aa2f7' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#bb9af7' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#c0caf5' },
|
||||||
|
{ tag: [t.className], color: '#c0caf5' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#ff9e64' },
|
||||||
|
{ tag: [t.typeName], color: '#0db9d7' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#bb9af7' },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: '#b4f9f8' },
|
||||||
|
{ tag: [t.meta, t.comment], color: '#444b6a' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#89ddff' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#c0caf5' },
|
||||||
|
{ tag: t.invalid, color: '#ff5370' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
],
|
||||||
|
});
|
||||||
53
packages/codemirror/themes/tokyoNightDay.mjs
vendored
Normal file
53
packages/codemirror/themes/tokyoNightDay.mjs
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#e1e2e7',
|
||||||
|
lineBackground: '#e1e2e799',
|
||||||
|
foreground: '#3760bf',
|
||||||
|
caret: '#3760bf',
|
||||||
|
selection: '#99a7df',
|
||||||
|
selectionMatch: '#99a7df',
|
||||||
|
gutterBackground: '#e1e2e7',
|
||||||
|
gutterForeground: '#3760bf',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#5f5faf11',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#e1e2e7',
|
||||||
|
foreground: '#3760bf',
|
||||||
|
caret: '#3760bf',
|
||||||
|
selection: '#99a7df',
|
||||||
|
selectionMatch: '#99a7df',
|
||||||
|
gutterBackground: '#e1e2e7',
|
||||||
|
gutterForeground: '#3760bf',
|
||||||
|
gutterBorder: 'transparent',
|
||||||
|
lineHighlight: '#5f5faf11',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: t.keyword, color: '#007197' },
|
||||||
|
{ tag: [t.name, t.deleted, t.character, t.macroName], color: '#3760bf' },
|
||||||
|
{ tag: [t.propertyName], color: '#3760bf' },
|
||||||
|
{ tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)], color: '#587539' },
|
||||||
|
{ tag: [t.function(t.variableName), t.labelName], color: '#3760bf' },
|
||||||
|
{ tag: [t.color, t.constant(t.name), t.standard(t.name)], color: '#3760bf' },
|
||||||
|
{ tag: [t.definition(t.name), t.separator], color: '#3760bf' },
|
||||||
|
{ tag: [t.className], color: '#3760bf' },
|
||||||
|
{ tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace], color: '#b15c00' },
|
||||||
|
{ tag: [t.typeName], color: '#007197', fontStyle: '#007197' },
|
||||||
|
{ tag: [t.operator, t.operatorKeyword], color: '#007197' },
|
||||||
|
{ tag: [t.url, t.escape, t.regexp, t.link], color: '#587539' },
|
||||||
|
{ tag: [t.meta, t.comment], color: '#848cb5' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.link, textDecoration: 'underline' },
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#b15c00' },
|
||||||
|
{ tag: [t.atom, t.bool, t.special(t.variableName)], color: '#3760bf' },
|
||||||
|
{ tag: t.invalid, color: '#f52a65' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
],
|
||||||
|
});
|
||||||
80
packages/codemirror/themes/vscodeDark.mjs
vendored
Normal file
80
packages/codemirror/themes/vscodeDark.mjs
vendored
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#1e1e1e',
|
||||||
|
lineBackground: '#1e1e1e99',
|
||||||
|
foreground: '#9cdcfe',
|
||||||
|
caret: '#c6c6c6',
|
||||||
|
selection: '#6199ff2f',
|
||||||
|
selectionMatch: '#72a1ff59',
|
||||||
|
lineHighlight: '#ffffff0f',
|
||||||
|
gutterBackground: '#1e1e1e',
|
||||||
|
gutterForeground: '#838383',
|
||||||
|
gutterActiveForeground: '#fff',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#1e1e1e',
|
||||||
|
foreground: '#9cdcfe',
|
||||||
|
caret: '#c6c6c6',
|
||||||
|
selection: '#6199ff2f',
|
||||||
|
selectionMatch: '#72a1ff59',
|
||||||
|
lineHighlight: '#ffffff0f',
|
||||||
|
gutterBackground: '#1e1e1e',
|
||||||
|
gutterForeground: '#838383',
|
||||||
|
gutterActiveForeground: '#fff',
|
||||||
|
fontFamily: 'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{
|
||||||
|
tag: [
|
||||||
|
t.keyword,
|
||||||
|
t.operatorKeyword,
|
||||||
|
t.modifier,
|
||||||
|
t.color,
|
||||||
|
t.constant(t.name),
|
||||||
|
t.standard(t.name),
|
||||||
|
t.standard(t.tagName),
|
||||||
|
t.special(t.brace),
|
||||||
|
t.atom,
|
||||||
|
t.bool,
|
||||||
|
t.special(t.variableName),
|
||||||
|
],
|
||||||
|
color: '#569cd6',
|
||||||
|
},
|
||||||
|
{ tag: [t.controlKeyword, t.moduleKeyword], color: '#c586c0' },
|
||||||
|
{
|
||||||
|
tag: [
|
||||||
|
t.name,
|
||||||
|
t.deleted,
|
||||||
|
t.character,
|
||||||
|
t.macroName,
|
||||||
|
t.propertyName,
|
||||||
|
t.variableName,
|
||||||
|
t.labelName,
|
||||||
|
t.definition(t.name),
|
||||||
|
],
|
||||||
|
color: '#9cdcfe',
|
||||||
|
},
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#9cdcfe' },
|
||||||
|
{
|
||||||
|
tag: [t.typeName, t.className, t.tagName, t.number, t.changed, t.annotation, t.self, t.namespace],
|
||||||
|
color: '#4ec9b0',
|
||||||
|
},
|
||||||
|
{ tag: [t.function(t.variableName), t.function(t.propertyName)], color: '#dcdcaa' },
|
||||||
|
{ tag: [t.number], color: '#b5cea8' },
|
||||||
|
{ tag: [t.operator, t.punctuation, t.separator, t.url, t.escape, t.regexp], color: '#d4d4d4' },
|
||||||
|
{ tag: [t.regexp], color: '#d16969' },
|
||||||
|
{ tag: [t.special(t.string), t.processingInstruction, t.string, t.inserted], color: '#ce9178' },
|
||||||
|
{ tag: [t.angleBracket], color: '#808080' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: [t.meta, t.comment], color: '#6a9955' },
|
||||||
|
{ tag: t.link, color: '#6a9955', textDecoration: 'underline' },
|
||||||
|
{ tag: t.invalid, color: '#ff0000' },
|
||||||
|
],
|
||||||
|
});
|
||||||
81
packages/codemirror/themes/vscodeLight.mjs
vendored
Normal file
81
packages/codemirror/themes/vscodeLight.mjs
vendored
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#ffffff',
|
||||||
|
lineBackground: '#ffffff50',
|
||||||
|
foreground: '#383a42',
|
||||||
|
caret: '#000',
|
||||||
|
selection: '#add6ff',
|
||||||
|
selectionMatch: '#a8ac94',
|
||||||
|
lineHighlight: '#99999926',
|
||||||
|
gutterBackground: '#fff',
|
||||||
|
gutterForeground: '#237893',
|
||||||
|
gutterActiveForeground: '#0b216f',
|
||||||
|
fontFamily: 'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#ffffff',
|
||||||
|
foreground: '#383a42',
|
||||||
|
caret: '#000',
|
||||||
|
selection: '#add6ff',
|
||||||
|
selectionMatch: '#a8ac94',
|
||||||
|
lineHighlight: '#99999926',
|
||||||
|
gutterBackground: '#fff',
|
||||||
|
gutterForeground: '#237893',
|
||||||
|
gutterActiveForeground: '#0b216f',
|
||||||
|
fontFamily: 'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{
|
||||||
|
tag: [
|
||||||
|
t.keyword,
|
||||||
|
t.operatorKeyword,
|
||||||
|
t.modifier,
|
||||||
|
t.color,
|
||||||
|
t.constant(t.name),
|
||||||
|
t.standard(t.name),
|
||||||
|
t.standard(t.tagName),
|
||||||
|
t.special(t.brace),
|
||||||
|
t.atom,
|
||||||
|
t.bool,
|
||||||
|
t.special(t.variableName),
|
||||||
|
],
|
||||||
|
color: '#0000ff',
|
||||||
|
},
|
||||||
|
{ tag: [t.moduleKeyword, t.controlKeyword], color: '#af00db' },
|
||||||
|
{
|
||||||
|
tag: [
|
||||||
|
t.name,
|
||||||
|
t.deleted,
|
||||||
|
t.character,
|
||||||
|
t.macroName,
|
||||||
|
t.propertyName,
|
||||||
|
t.variableName,
|
||||||
|
t.labelName,
|
||||||
|
t.definition(t.name),
|
||||||
|
],
|
||||||
|
color: '#0070c1',
|
||||||
|
},
|
||||||
|
{ tag: t.heading, fontWeight: 'bold', color: '#0070c1' },
|
||||||
|
{
|
||||||
|
tag: [t.typeName, t.className, t.tagName, t.number, t.changed, t.annotation, t.self, t.namespace],
|
||||||
|
color: '#267f99',
|
||||||
|
},
|
||||||
|
{ tag: [t.function(t.variableName), t.function(t.propertyName)], color: '#795e26' },
|
||||||
|
{ tag: [t.number], color: '#098658' },
|
||||||
|
{ tag: [t.operator, t.punctuation, t.separator, t.url, t.escape, t.regexp], color: '#383a42' },
|
||||||
|
{ tag: [t.regexp], color: '#af00db' },
|
||||||
|
{ tag: [t.special(t.string), t.processingInstruction, t.string, t.inserted], color: '#a31515' },
|
||||||
|
{ tag: [t.angleBracket], color: '#383a42' },
|
||||||
|
{ tag: t.strong, fontWeight: 'bold' },
|
||||||
|
{ tag: t.emphasis, fontStyle: 'italic' },
|
||||||
|
{ tag: t.strikethrough, textDecoration: 'line-through' },
|
||||||
|
{ tag: [t.meta, t.comment], color: '#008000' },
|
||||||
|
{ tag: t.link, color: '#4078f2', textDecoration: 'underline' },
|
||||||
|
{ tag: t.invalid, color: '#e45649' },
|
||||||
|
],
|
||||||
|
});
|
||||||
2
packages/codemirror/themes/whitescreen.mjs
vendored
2
packages/codemirror/themes/whitescreen.mjs
vendored
@ -1,5 +1,5 @@
|
|||||||
import { tags as t } from '@lezer/highlight';
|
import { tags as t } from '@lezer/highlight';
|
||||||
import { createTheme } from '@uiw/codemirror-themes';
|
import { createTheme } from './theme-helper.mjs';
|
||||||
export const settings = {
|
export const settings = {
|
||||||
background: 'white',
|
background: 'white',
|
||||||
foreground: 'black', // whats that?
|
foreground: 'black', // whats that?
|
||||||
|
|||||||
34
packages/codemirror/themes/xcodeDark.mjs
vendored
Normal file
34
packages/codemirror/themes/xcodeDark.mjs
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
background: '#292A30',
|
||||||
|
lineBackground: '#292A3099',
|
||||||
|
foreground: '#CECFD0',
|
||||||
|
caret: '#fff',
|
||||||
|
selection: '#727377',
|
||||||
|
selectionMatch: '#727377',
|
||||||
|
lineHighlight: '#2F3239',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'dark',
|
||||||
|
settings: {
|
||||||
|
background: '#292A30',
|
||||||
|
foreground: '#CECFD0',
|
||||||
|
caret: '#fff',
|
||||||
|
selection: '#727377',
|
||||||
|
selectionMatch: '#727377',
|
||||||
|
lineHighlight: '#ffffff0f',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.comment, t.quote], color: '#7F8C98' },
|
||||||
|
{ tag: [t.keyword], color: '#FF7AB2', fontWeight: 'bold' },
|
||||||
|
{ tag: [t.string, t.meta], color: '#FF8170' },
|
||||||
|
{ tag: [t.typeName], color: '#DABAFF' },
|
||||||
|
{ tag: [t.definition(t.variableName)], color: '#6BDFFF' },
|
||||||
|
{ tag: [t.name], color: '#6BAA9F' },
|
||||||
|
{ tag: [t.variableName], color: '#ACF2E4' },
|
||||||
|
{ tag: [t.regexp, t.link], color: '#FF8170' },
|
||||||
|
],
|
||||||
|
});
|
||||||
38
packages/codemirror/themes/xcodeLight.mjs
vendored
Normal file
38
packages/codemirror/themes/xcodeLight.mjs
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
import { tags as t } from '@lezer/highlight';
|
||||||
|
import { createTheme } from './theme-helper.mjs';
|
||||||
|
|
||||||
|
export const settings = {
|
||||||
|
light: true,
|
||||||
|
background: '#fff',
|
||||||
|
lineBackground: '#ffffff99',
|
||||||
|
foreground: '#3D3D3D',
|
||||||
|
selection: '#BBDFFF',
|
||||||
|
selectionMatch: '#BBDFFF',
|
||||||
|
gutterBackground: '#fff',
|
||||||
|
gutterForeground: '#AFAFAF',
|
||||||
|
lineHighlight: '#EDF4FF',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default createTheme({
|
||||||
|
theme: 'light',
|
||||||
|
settings: {
|
||||||
|
background: '#fff',
|
||||||
|
foreground: '#3D3D3D',
|
||||||
|
selection: '#BBDFFF',
|
||||||
|
selectionMatch: '#BBDFFF',
|
||||||
|
gutterBackground: '#fff',
|
||||||
|
gutterForeground: '#AFAFAF',
|
||||||
|
lineHighlight: '#d5e6ff69',
|
||||||
|
},
|
||||||
|
styles: [
|
||||||
|
{ tag: [t.comment, t.quote], color: '#707F8D' },
|
||||||
|
{ tag: [t.typeName, t.typeOperator], color: '#aa0d91' },
|
||||||
|
{ tag: [t.keyword], color: '#aa0d91', fontWeight: 'bold' },
|
||||||
|
{ tag: [t.string, t.meta], color: '#D23423' },
|
||||||
|
{ tag: [t.name], color: '#032f62' },
|
||||||
|
{ tag: [t.typeName], color: '#522BB2' },
|
||||||
|
{ tag: [t.variableName], color: '#23575C' },
|
||||||
|
{ tag: [t.definition(t.variableName)], color: '#327A9E' },
|
||||||
|
{ tag: [t.regexp, t.link], color: '#0e0eff' },
|
||||||
|
],
|
||||||
|
});
|
||||||
@ -31,11 +31,11 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://strudel.cc",
|
"homepage": "https://strudel.cc",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fraction.js": "^4.3.7"
|
"fraction.js": "^5.2.1"
|
||||||
},
|
},
|
||||||
"gitHead": "0e26d4e741500f5bae35b023608f062a794905c2",
|
"gitHead": "0e26d4e741500f5bae35b023608f062a794905c2",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10",
|
"vite": "^6.0.11",
|
||||||
"vitest": "^2.1.3"
|
"vitest": "^3.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,6 +37,6 @@
|
|||||||
"@strudel/webaudio": "workspace:*"
|
"@strudel/webaudio": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,29 +1,29 @@
|
|||||||
{
|
{
|
||||||
"name": "@strudel/desktopbridge",
|
"name": "@strudel/desktopbridge",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "tools/shims for communicating between the JS and Tauri (Rust) sides of the Studel desktop app",
|
"description": "tools/shims for communicating between the JS and Tauri (Rust) sides of the Studel desktop app",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tidalcycles/strudel.git"
|
"url": "git+https://github.com/tidalcycles/strudel.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"tidalcycles",
|
"tidalcycles",
|
||||||
"strudel",
|
"strudel",
|
||||||
"pattern",
|
"pattern",
|
||||||
"livecoding",
|
"livecoding",
|
||||||
"algorave"
|
"algorave"
|
||||||
],
|
],
|
||||||
"author": "Jade Rowland <jaderowlanddev@gmail.com>",
|
"author": "Jade Rowland <jaderowlanddev@gmail.com>",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/tidalcycles/strudel/issues"
|
"url": "https://github.com/tidalcycles/strudel/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"@tauri-apps/api": "^1.5.3"
|
"@tauri-apps/api": "^2.2.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/tidalcycles/strudel#readme"
|
"homepage": "https://github.com/tidalcycles/strudel#readme"
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
import { invoke } from '@tauri-apps/api/tauri';
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
|
|
||||||
export const Invoke = invoke;
|
export const Invoke = invoke;
|
||||||
export const isTauri = () => window.__TAURI_IPC__ != null;
|
export const isTauri = () => window.__TAURI_IPC__ != null;
|
||||||
|
|||||||
@ -32,6 +32,6 @@
|
|||||||
"@strudel/core": "workspace:*"
|
"@strudel/core": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,10 +28,10 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tidalcycles/strudel",
|
"homepage": "https://github.com/tidalcycles/strudel",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"web-tree-sitter": "^0.20.8"
|
"web-tree-sitter": "^0.24.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tree-sitter-haskell": "^0.21.0",
|
"tree-sitter-haskell": "^0.23.1",
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,6 +39,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"pkg": "^5.8.1",
|
"pkg": "^5.8.1",
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,9 +31,9 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"@strudel/webaudio": "workspace:*",
|
"@strudel/webaudio": "workspace:*",
|
||||||
"webmidi": "^3.1.8"
|
"webmidi": "^3.1.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,8 +35,8 @@
|
|||||||
"@strudel/core": "workspace:*"
|
"@strudel/core": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"peggy": "^3.0.2",
|
"peggy": "^4.2.0",
|
||||||
"vite": "^5.0.10",
|
"vite": "^6.0.11",
|
||||||
"vitest": "^2.1.3"
|
"vitest": "^3.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,6 +33,6 @@
|
|||||||
"paho-mqtt": "^1.1.0"
|
"paho-mqtt": "^1.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,10 +37,10 @@
|
|||||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"osc-js": "^2.4.0"
|
"osc-js": "^2.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"pkg": "^5.8.1",
|
"pkg": "^5.8.1",
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,6 +34,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,8 +45,7 @@
|
|||||||
"@strudel/webaudio": "workspace:*"
|
"@strudel/webaudio": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-replace": "^5.0.5",
|
"@rollup/plugin-replace": "^6.0.2",
|
||||||
"rollup-plugin-visualizer": "^5.12.0",
|
"vite": "^6.0.11"
|
||||||
"vite": "^5.0.10"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import { dependencies } from './package.json';
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
// import { visualizer } from 'rollup-plugin-visualizer';
|
|
||||||
import replace from '@rollup/plugin-replace';
|
import replace from '@rollup/plugin-replace';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
|
|||||||
@ -32,6 +32,6 @@
|
|||||||
"@strudel/core": "workspace:*"
|
"@strudel/core": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,10 +32,10 @@
|
|||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"@strudel/webaudio": "workspace:*",
|
"@strudel/webaudio": "workspace:*",
|
||||||
"sfumato": "^0.1.2",
|
"sfumato": "^0.1.2",
|
||||||
"soundfont2": "^0.4.0"
|
"soundfont2": "^0.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"node-fetch": "^3.3.2",
|
"node-fetch": "^3.3.2",
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,9 +32,9 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nanostores": "^0.9.5"
|
"nanostores": "^0.11.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,6 @@
|
|||||||
"hs2js": "workspace:*"
|
"hs2js": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,12 +31,12 @@
|
|||||||
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
"homepage": "https://github.com/tidalcycles/strudel#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"@tonaljs/tonal": "^4.7.2",
|
"@tonaljs/tonal": "^4.10.0",
|
||||||
"chord-voicings": "^0.0.1",
|
"chord-voicings": "^0.0.1",
|
||||||
"webmidi": "^3.1.8"
|
"webmidi": "^3.1.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10",
|
"vite": "^6.0.11",
|
||||||
"vitest": "^2.1.3"
|
"vitest": "^3.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,12 +32,12 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"@strudel/mini": "workspace:*",
|
"@strudel/mini": "workspace:*",
|
||||||
"acorn": "^8.11.3",
|
"acorn": "^8.14.0",
|
||||||
"escodegen": "^2.1.0",
|
"escodegen": "^2.1.0",
|
||||||
"estree-walker": "^3.0.1"
|
"estree-walker": "^3.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10",
|
"vite": "^6.0.11",
|
||||||
"vitest": "^2.1.3"
|
"vitest": "^3.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
"@strudel/webaudio": "workspace:*"
|
"@strudel/webaudio": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-replace": "^5.0.5",
|
"@rollup/plugin-replace": "^6.0.2",
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,6 +38,6 @@
|
|||||||
"superdough": "workspace:*"
|
"superdough": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
"@strudel/core": "workspace:*"
|
"@strudel/core": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^5.0.10",
|
"vite": "^6.0.11",
|
||||||
"vitest": "^2.1.3"
|
"vitest": "^3.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10585
pnpm-lock.yaml
generated
10585
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -21,6 +21,7 @@ tauri = { version = "1.4.0", features = [ "dialog-all", "clipboard-write-text",
|
|||||||
midir = "0.9.1"
|
midir = "0.9.1"
|
||||||
tokio = { version = "1.29.0", features = ["full"] }
|
tokio = { version = "1.29.0", features = ["full"] }
|
||||||
rosc = "0.10.1"
|
rosc = "0.10.1"
|
||||||
|
tauri-plugin-clipboard-manager = "2"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
|
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"csv": "^6.3.6"
|
"csv": "^6.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
import react from '@astrojs/react';
|
import react from '@astrojs/react';
|
||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
|
|
||||||
import remarkToc from 'remark-toc';
|
import remarkToc from 'remark-toc';
|
||||||
import rehypeSlug from 'rehype-slug';
|
import rehypeSlug from 'rehype-slug';
|
||||||
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
||||||
@ -9,7 +8,6 @@ import rehypeUrls from 'rehype-urls';
|
|||||||
|
|
||||||
import tailwind from '@astrojs/tailwind';
|
import tailwind from '@astrojs/tailwind';
|
||||||
import AstroPWA from '@vite-pwa/astro';
|
import AstroPWA from '@vite-pwa/astro';
|
||||||
// import { visualizer } from 'rollup-plugin-visualizer';
|
|
||||||
|
|
||||||
const site = `https://strudel.cc/`; // root url without a path
|
const site = `https://strudel.cc/`; // root url without a path
|
||||||
const base = '/'; // base path of the strudel site
|
const base = '/'; // base path of the strudel site
|
||||||
@ -69,6 +67,7 @@ export default defineConfig({
|
|||||||
registerType: 'autoUpdate',
|
registerType: 'autoUpdate',
|
||||||
injectRegister: 'auto',
|
injectRegister: 'auto',
|
||||||
workbox: {
|
workbox: {
|
||||||
|
maximumFileSizeToCacheInBytes: 4194304, // 4MB
|
||||||
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,wav,mp3,ogg,ttf,woff2,TTF,otf}'],
|
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,wav,mp3,ogg,ttf,woff2,TTF,otf}'],
|
||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,25 +6,24 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev --host 0.0.0.0",
|
"dev": "astro dev --host 0.0.0.0",
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
"check": "astro check && tsc",
|
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview --port 3009 --host 0.0.0.0",
|
"preview": "astro preview --port 3009 --host 0.0.0.0",
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"postinstall": "cp node_modules/hs2js/dist/tree-sitter.wasm public && cp node_modules/hs2js/dist/tree-sitter-haskell.wasm public"
|
"postinstall": "cp node_modules/hs2js/dist/tree-sitter.wasm public && cp node_modules/hs2js/dist/tree-sitter-haskell.wasm public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@algolia/client-search": "^4.22.0",
|
"@algolia/client-search": "^5.20.0",
|
||||||
"@astro-community/astro-embed-youtube": "^0.4.4",
|
"@astro-community/astro-embed-youtube": "^0.5.6",
|
||||||
"@astrojs/mdx": "^2.0.3",
|
"@astrojs/mdx": "^4.0.7",
|
||||||
"@astrojs/react": "^3.0.9",
|
"@astrojs/react": "^4.1.6",
|
||||||
"@astrojs/rss": "^4.0.2",
|
"@astrojs/rss": "^4.0.11",
|
||||||
"@astrojs/tailwind": "^5.1.0",
|
"@astrojs/tailwind": "^5.1.5",
|
||||||
"@docsearch/css": "^3.5.2",
|
"@docsearch/css": "^3.8.3",
|
||||||
"@docsearch/react": "^3.5.2",
|
"@docsearch/react": "^3.8.3",
|
||||||
"@headlessui/react": "^1.7.17",
|
"@headlessui/react": "^2.2.0",
|
||||||
"@heroicons/react": "^2.1.1",
|
"@heroicons/react": "^2.2.0",
|
||||||
"@nanostores/persistent": "^0.9.1",
|
"@nanostores/persistent": "^0.10.2",
|
||||||
"@nanostores/react": "^0.7.1",
|
"@nanostores/react": "^0.8.4",
|
||||||
"@strudel/codemirror": "workspace:*",
|
"@strudel/codemirror": "workspace:*",
|
||||||
"@strudel/core": "workspace:*",
|
"@strudel/core": "workspace:*",
|
||||||
"@strudel/csound": "workspace:*",
|
"@strudel/csound": "workspace:*",
|
||||||
@ -37,40 +36,41 @@
|
|||||||
"@strudel/osc": "workspace:*",
|
"@strudel/osc": "workspace:*",
|
||||||
"@strudel/serial": "workspace:*",
|
"@strudel/serial": "workspace:*",
|
||||||
"@strudel/soundfonts": "workspace:*",
|
"@strudel/soundfonts": "workspace:*",
|
||||||
|
"@strudel/tidal": "workspace:*",
|
||||||
"@strudel/tonal": "workspace:*",
|
"@strudel/tonal": "workspace:*",
|
||||||
"@strudel/transpiler": "workspace:*",
|
"@strudel/transpiler": "workspace:*",
|
||||||
"@strudel/webaudio": "workspace:*",
|
"@strudel/webaudio": "workspace:*",
|
||||||
"@strudel/xen": "workspace:*",
|
"@strudel/xen": "workspace:*",
|
||||||
"@strudel/tidal": "workspace:*",
|
"@supabase/supabase-js": "^2.48.1",
|
||||||
"@supabase/supabase-js": "^2.39.1",
|
"@tailwindcss/forms": "^0.5.10",
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@tailwindcss/postcss": "^4.0.0",
|
||||||
"@tailwindcss/typography": "^0.5.10",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"@tauri-apps/api": "^1.5.3",
|
"@tauri-apps/api": "^2.2.0",
|
||||||
"@types/node": "^20.10.6",
|
"@tauri-apps/plugin-clipboard-manager": "^2.2.0",
|
||||||
"@types/react": "^18.2.46",
|
"@types/node": "^22.10.10",
|
||||||
"@types/react-dom": "^18.2.18",
|
"@types/react": "^19.0.8",
|
||||||
"astro": "^4.0.8",
|
"@types/react-dom": "^19.0.3",
|
||||||
|
"astro": "^5.1.9",
|
||||||
"claviature": "^0.1.0",
|
"claviature": "^0.1.0",
|
||||||
"date-fns": "^3.2.0",
|
"date-fns": "^4.1.0",
|
||||||
"hs2js": "0.0.8",
|
"hs2js": "0.1.0",
|
||||||
"nanoid": "^5.0.4",
|
"nanoid": "^5.0.9",
|
||||||
"nanostores": "^0.9.5",
|
"nanostores": "^0.11.3",
|
||||||
"react": "^18.2.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^19.0.0",
|
||||||
"react-hook-inview": "^4.5.0",
|
"react-hook-inview": "^4.5.1",
|
||||||
"react-lite-youtube-embed": "^2.4.0",
|
"react-lite-youtube-embed": "^2.4.0",
|
||||||
"rehype-autolink-headings": "^7.1.0",
|
"rehype-autolink-headings": "^7.1.0",
|
||||||
"rehype-slug": "^6.0.0",
|
"rehype-slug": "^6.0.0",
|
||||||
"rehype-urls": "^1.2.0",
|
"rehype-urls": "^1.2.0",
|
||||||
"remark-toc": "^9.0.0",
|
"remark-toc": "^9.0.0",
|
||||||
"tailwindcss": "^3.4.0",
|
"tailwindcss": "^3.4.17",
|
||||||
"worker-timers": "^7.1.4"
|
"worker-timers": "^8.0.13"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vite-pwa/astro": "^0.2.0",
|
"@vite-pwa/astro": "^0.5.0",
|
||||||
"html-escaper": "^3.0.3",
|
"html-escaper": "^3.0.3",
|
||||||
"sharp": "^0.33.1",
|
"sharp": "^0.33.5",
|
||||||
"vite-plugin-pwa": "^0.17.4",
|
"workbox-window": "^7.3.0"
|
||||||
"workbox-window": "^7.0.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,8 +13,9 @@ export default function Claviature({ options, onClick, onMouseDown, onMouseUp, o
|
|||||||
<svg {...svg.attributes}>
|
<svg {...svg.attributes}>
|
||||||
{svg.children.map((el, i) => {
|
{svg.children.map((el, i) => {
|
||||||
const TagName = el.name;
|
const TagName = el.name;
|
||||||
|
const { key, ...attributes } = el.attributes;
|
||||||
return (
|
return (
|
||||||
<TagName key={`${el.name}-${i}`} {...el.attributes}>
|
<TagName key={`${el.name}-${i}`} {...attributes}>
|
||||||
{el.value}
|
{el.value}
|
||||||
</TagName>
|
</TagName>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
// @ts-ignore
|
||||||
import { pwaInfo } from 'virtual:pwa-info';
|
import { pwaInfo } from 'virtual:pwa-info';
|
||||||
import '../styles/index.css';
|
import '../styles/index.css';
|
||||||
|
|
||||||
|
|||||||
2
website/src/env.d.ts
vendored
2
website/src/env.d.ts
vendored
@ -1,6 +1,4 @@
|
|||||||
/// <reference path="../.astro/types.d.ts" />
|
/// <reference path="../.astro/types.d.ts" />
|
||||||
/// <reference types="astro/client" />
|
/// <reference types="astro/client" />
|
||||||
/// <reference types="vite-plugin-pwa/info" />
|
|
||||||
/// <reference types="vite-plugin-pwa/client" />
|
|
||||||
|
|
||||||
declare module 'date-fns';
|
declare module 'date-fns';
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
// @ts-ignore
|
||||||
import { registerSW } from 'virtual:pwa-register';
|
import { registerSW } from 'virtual:pwa-register';
|
||||||
|
|
||||||
registerSW({
|
registerSW({
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { isTauri } from '../tauri.mjs';
|
|||||||
import './Repl.css';
|
import './Repl.css';
|
||||||
import { createClient } from '@supabase/supabase-js';
|
import { createClient } from '@supabase/supabase-js';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { writeText } from '@tauri-apps/api/clipboard';
|
import { writeText } from '@tauri-apps/plugin-clipboard-manager';
|
||||||
import { $featuredPatterns, loadDBPatterns } from '@src/user_pattern_utils.mjs';
|
import { $featuredPatterns, loadDBPatterns } from '@src/user_pattern_utils.mjs';
|
||||||
|
|
||||||
// Create a single supabase client for interacting with your database
|
// Create a single supabase client for interacting with your database
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { invoke } from '@tauri-apps/api/tauri';
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
|
|
||||||
export const Invoke = invoke;
|
export const Invoke = invoke;
|
||||||
export const isTauri = () => window.__TAURI_IPC__ != null;
|
export const isTauri = () => window.__TAURI_IPC__ != null;
|
||||||
|
|||||||
@ -5,9 +5,6 @@
|
|||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"jsxImportSource": "react",
|
"jsxImportSource": "react",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"types": [
|
|
||||||
"vite-plugin-pwa/client"
|
|
||||||
],
|
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@components/*": ["src/components/*"],
|
"@components/*": ["src/components/*"],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user