From 0fa301434b0683a8eedac5e8c7fff1f1ab0f7560 Mon Sep 17 00:00:00 2001 From: Yossi Saadi Date: Thu, 16 May 2024 09:57:51 +0300 Subject: [PATCH] feat(withLiveEdit): align theme - have the same theme as playground --- packages/core/package.json | 2 +- .../decorators/withLiveEdit/withLiveEdit.tsx | 4 +- yarn.lock | 49 ++++++++++++++----- 3 files changed, 40 insertions(+), 15 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 14be64e85d..13f7af36c8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -187,7 +187,7 @@ "@typescript-eslint/eslint-plugin": "^5.36.1", "@typescript-eslint/parser": "^5.36.1", "@uiw/codemirror-extensions-langs": "^4.21.25", - "@uiw/codemirror-theme-vscode": "^4.21.25", + "@uiw/codemirror-theme-github": "^4.21.25", "@uiw/react-codemirror": "^4.21.25", "acorn": "^8.7.1", "autoprefixer": "^10.4.0", diff --git a/packages/core/src/storybook/decorators/withLiveEdit/withLiveEdit.tsx b/packages/core/src/storybook/decorators/withLiveEdit/withLiveEdit.tsx index 2ca8c9fa7c..639c36513e 100644 --- a/packages/core/src/storybook/decorators/withLiveEdit/withLiveEdit.tsx +++ b/packages/core/src/storybook/decorators/withLiveEdit/withLiveEdit.tsx @@ -1,6 +1,6 @@ import { Decorator, StoryContext } from "@storybook/react"; import { useMemo } from "react"; -import { vscodeDark } from "@uiw/codemirror-theme-vscode"; +import { githubDark } from "@uiw/codemirror-theme-github"; import { langs } from "@uiw/codemirror-extensions-langs"; import { createPortal } from "react-dom"; import LiveEditor from "../../components/live-editor/LiveEditor"; @@ -40,7 +40,7 @@ const withLiveEdit: Decorator = (Story, context: StoryContext) => {