Skip to content

Commit

Permalink
strudel theme
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Dec 31, 2024
1 parent ee18bb1 commit 286ed44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { flashField, evalKeymap, remoteEvalFlash } from "@flok-editor/cm-eval";
import { UndoManager } from "yjs";
import { highlightExtension } from "@strudel/codemirror";
import { StrudelSession, editorViews } from "./strudel";
import { kabelsalatTheme } from "./theme";
import { strudelTheme } from "./theme";

import "./style.css";

Expand Down Expand Up @@ -45,7 +45,7 @@ const createEditor = (doc) => {
doc: doc.content,
extensions: [
basicSetup,
kabelsalatTheme,
strudelTheme,
flokBasicSetup(doc),
javascript(),
EditorView.lineWrapping,
Expand Down
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ body {
}

:root {
--foreground: #ffffff80;
--foreground: white;
}

.editor {
Expand Down
8 changes: 4 additions & 4 deletions src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import { HighlightStyle } from "@codemirror/language";
import { syntaxHighlighting } from "@codemirror/language";

let colors = {
teal600: "#0d9488",
teal600: "#c084fc", // text
teal400: "#2dd4bf",
amber: "#d97706",
violet400: "#a78bfa",
violet300: "#c4b5fd",
indigo300: "#a5b4fc",
indigo400: "#818cf8",
fuchsia400: "#e879f9",
fuchsia300: "#f0abfc",
fuchsia300: "#78716c", // brackets
fuchsia200: "#f5d0fe",
whitish: "#ddd",
whitish: "#d9f99d", // text
stone400: "#a8a29e",
stone500: "#78716c",
};
Expand Down Expand Up @@ -61,4 +61,4 @@ const highlightStyle = HighlightStyle.define([
{ tag: tags.comment, color: colors.stone500, fontStyle: "italic" },
]);

export let kabelsalatTheme = [theme, syntaxHighlighting(highlightStyle)];
export let strudelTheme = [theme, syntaxHighlighting(highlightStyle)];

0 comments on commit 286ed44

Please sign in to comment.