Skip to content

Commit

Permalink
docs: use shiki-transformer-color-highlight (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac authored Sep 18, 2024
1 parent 2c3032e commit d3317d8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/app/mdc.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from '@nuxtjs/mdc/config'
import { transformerColorHighlight } from 'shiki-transformer-color-highlight'

export default defineConfig({
shiki: {
transformers: [
transformerColorHighlight()
]
}
})
2 changes: 1 addition & 1 deletion docs/content/1.getting-started/3.theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Tailwind CSS v4 takes a CSS-first configuration approach, you now customize your
--color-green-700: #007F45;
--color-green-800: #016538;
--color-green-900: #0A5331;
--color-green-950: #052e16;
--color-green-950: #052E16;
}
```

Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"nuxt-component-meta": "^0.8.2",
"nuxt-og-image": "^3.0.2",
"prettier": "^3.3.3",
"shiki-transformer-color-highlight": "^0.0.0",
"ufo": "^1.5.4",
"valibot": "^0.42.0",
"yup": "^1.4.0",
Expand Down
17 changes: 17 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3317d8

Please sign in to comment.