Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
}

:root {
overscroll-behavior-y: none;

--ui-container: 91.5rem;

--ui-primary: var(--ui-color-neutral-900);
Expand Down
12 changes: 11 additions & 1 deletion app/components/landing/LandingHeroDemo.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script setup lang="ts">
import shiki from '@comark/nuxt/plugins/shiki'
import githubLight from '@shikijs/themes/github-light'
import githubDark from '@shikijs/themes/github-dark'

const props = defineProps<{
/** Markdown source: shown highlighted in the source tab, rendered live in the output tab. */
Expand All @@ -8,7 +10,15 @@ const props = defineProps<{
playground?: string
}>()

const plugins = [shiki()]
const plugins = [
shiki({
themes: {
light: githubLight,
dark: githubDark
},
registerDefaultThemes: false
})
]

// Four-backtick fence so fenced code blocks inside the demo source don't close it early.
const sourceAsCode = computed(() => ['````md', props.source, '````'].join('\n'))
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@octokit/webhooks-methods": "^6.0.0",
"@opentelemetry/api": "^1.9.1",
"@resvg/resvg-js": "^2.6.2",
"@shikijs/themes": "^4.3.1",
"@vercel/analytics": "^2.0.1",
"@vercel/functions": "^3.7.6",
"@vercel/otel": "^2.1.3",
Expand Down
Loading