docs: use shiki-transformer-color-highlight (#2215)

This commit is contained in:
Benjamin Canac
2024-09-18 10:54:59 +02:00
committed by GitHub
parent 2c3032e363
commit d3317d828e
4 changed files with 29 additions and 1 deletions

10
docs/app/mdc.config.ts Normal file
View File

@@ -0,0 +1,10 @@
import { defineConfig } from '@nuxtjs/mdc/config'
import { transformerColorHighlight } from 'shiki-transformer-color-highlight'
export default defineConfig({
shiki: {
transformers: [
transformerColorHighlight()
]
}
})

View File

@@ -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;
}
```

View File

@@ -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",