Welcome to the world of Karyna Evren, where imagination meets precision. As a passionate 3D designer with a keen eye for detail and a love for creating captivating visuals, I transform ideas into immersive digital experiences. Whether it's architectural renderings, product visualizations, or intricate 3D models, my work is a reflection of both artistry and technical expertise. Explore my portfolio to discover the projects that push the boundaries of design and bring concepts to life in stunning three-dimensional form.
Fri Jul 07
A family heirloom, believed to be lost for generations, resurfaces and triggers a dangerous quest for the last surviving member of the family to reclaim it.
Written by: Charlotte Parker
TIt uses TextMate grammar to tokenize strings, and colors the tokens with VS Code themes. In short, Shiki generates HTML that looks exactly like your code in VS Code, and it works great in your static website generator.
// Example JavaScript
const shiki = require("shiki");
shiki
.getHighlighter({
theme: "nord",
})
.then((highlighter) => {
console.log(
highlighter.codeToHtml(`console.log('shiki');`, {
lang: "js",
})
);
});
// <pre class="shiki" style="background-color: #2e3440"><code>
// <!-- Highlighted Code -->
// </code></pre>
const fs = require("fs");
const markdown = require("markdown-it");
const shiki = require("shiki");
shiki
.getHighlighter({
theme: "nord",
})
.then((highlighter) => {
const md = markdown({
html: true,
highlight: (code, lang) => {
return highlighter.codeToHtml(code, { lang });
},
});
const html = md.render(fs.readFileSync("index.md", "utf-8"));
const out = `
<title>Shiki</title>
<link rel="stylesheet" href="style.css">
${html}
<script src="index.js"></script>
`;
fs.writeFileSync("index.html", out);
console.log("done");
});
import { tokenColors } from "./custom-theme.json";
// https://astro.build/config
// VS Code Theme is:
export default defineConfig({
markdown: {
shikiConfig: {
theme: {
name: "custom",
type: "dark",
settings: tokenColors,
},
wrap: true,
skipInline: false,
drafts: false,
},
},
});