Skip to content

Commit

Permalink
fix: support dual theme style
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 25, 2024
1 parent 142695b commit 6bb8143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vue/components/TokensRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ export const TokensRenderer = /* #__PURE__ */ defineComponent({
ref: refTransitionGroup,
tag: 'pre',
name: 'shiki-magic-move',
class: 'shiki-magic-move-container',
style: style.value,
class: 'shiki-magic-move-container shiki',
style: [style.value, props.tokens.rootStyle],

onAfterEnter,
onAfterLeave,
Expand All @@ -148,7 +148,7 @@ export const TokensRenderer = /* #__PURE__ */ defineComponent({
return h(
'span',
{
'style': { color: token.color },
'style': [{ color: token.color }, token.htmlStyle],
'class': 'shiki-magic-move-item',
'key': token.key,
// for debug
Expand Down

0 comments on commit 6bb8143

Please sign in to comment.