Skip to content

Commit

Permalink
fix(frontend): theme error
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Sep 28, 2024
1 parent 1d88252 commit c661318
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/frontend-embed/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

import tinycolor from 'tinycolor2';
import lightTheme from '@@/themes/l-stella-r2.json5';
import darkTheme from '@@/themes/d-stella-r2.json5';
import lightTheme from '@@/themes/_light.json5';
import darkTheme from '@@/themes/_dark.json5';
import type { BundledTheme } from 'shiki/themes';

export type Theme = {
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/theme-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ import tinycolor from 'tinycolor2';
import { v4 as uuid } from 'uuid';
import JSON5 from 'json5';

import lightTheme from '@@/themes/l-stella-r2.json5';
import darkTheme from '@@/themes/d-stella-r2.json5';
import lightTheme from '@@/themes/_light.json5';
import darkTheme from '@@/themes/_dark.json5';
import MkButton from '@/components/MkButton.vue';
import MkCodeEditor from '@/components/MkCodeEditor.vue';
import MkTextarea from '@/components/MkTextarea.vue';
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/scripts/code-highlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { createHighlighterCore, loadWasm } from 'shiki/core';
import darkPlus from 'shiki/themes/dark-plus.mjs';
import { bundledThemesInfo } from 'shiki/themes';
import { bundledLanguagesInfo } from 'shiki/langs';
import lightTheme from '@@/themes/l-stella-r2.json5';
import darkTheme from '@@/themes/d-stella-r2.json5';
import lightTheme from '@@/themes/_light.json5';
import darkTheme from '@@/themes/_dark.json5';
import { unique } from './array.js';
import { deepClone } from './clone.js';
import { deepMerge } from './merge.js';
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/scripts/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import { ref } from 'vue';
import tinycolor from 'tinycolor2';
import lightTheme from '@@/themes/l-stella-r2.json5';
import darkTheme from '@@/themes/d-stella-r2.json5';
import lightTheme from '@@/themes/_light.json5';
import darkTheme from '@@/themes/_dark.json5';
import { deepClone } from './clone.js';
import type { BundledTheme } from 'shiki/themes';
import { globalEvents } from '@/events.js';
Expand Down

1 comment on commit c661318

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

Please sign in to comment.