Merge branch 'main' of https://github.com/lucide-icons/lucide into docs-vitepress

This commit is contained in:
Eric Fennis
2023-05-13 00:08:15 +02:00
165 changed files with 1753 additions and 132 deletions
+4 -1
View File
@@ -30,7 +30,10 @@ export default eventHandler((event) => {
const svg = Buffer.from(
// We can't use jsx here, is not supported here by nitro.
renderToString(createElement(SvgPreview, {src, showGrid: true}, children))
renderToString(createElement(SvgPreview, {src, showGrid: true}, children)).replace(
/>/,
'><style>@media screen and (prefers-color-scheme: dark) { svg { stroke: #fff } }</style>'
)
).toString('utf8');
defaultContentType(event, 'image/svg+xml')