summaryrefslogtreecommitdiff
path: root/themes/modern-dark-catppuccin/layout.html
diff options
context:
space:
mode:
authorHimanshu Sardana <himanshusardana2005@gmail.com>2026-03-26 21:50:29 +0000
committerHimanshu Sardana <himanshusardana2005@gmail.com>2026-03-26 21:50:29 +0000
commit580b7553fcac8bc5924d24e71487bdabb9595220 (patch)
tree9227e797cef3e8f14e66a06b45f1bcc732295072 /themes/modern-dark-catppuccin/layout.html
parent7b9f087d818b723a7f23c11d434867c369f3b63f (diff)
feat: add catppuccin theme
Diffstat (limited to 'themes/modern-dark-catppuccin/layout.html')
-rw-r--r--themes/modern-dark-catppuccin/layout.html418
1 files changed, 418 insertions, 0 deletions
diff --git a/themes/modern-dark-catppuccin/layout.html b/themes/modern-dark-catppuccin/layout.html
new file mode 100644
index 0000000..660f6ed
--- /dev/null
+++ b/themes/modern-dark-catppuccin/layout.html
@@ -0,0 +1,418 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="description" content="{{ .Title }}" />
+ <title>{{ .Title }}</title>
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@300;400;500&family=Syne:wght@400;600;700;800&display=swap"
+ rel="stylesheet"
+ />
+ <link
+ href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism-okaidia.css"
+ rel="stylesheet"
+ />
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js"></script>
+ <style>
+ :root {
+ --crust: #11111b;
+ --mantle: #181825;
+ --base: #1e1e2e;
+ --surface-0: #313244;
+ --surface-1: #45475a;
+ --overlay-0: #6c7086;
+ --overlay-1: #7f849c;
+ --subtext-0: #a6adc8;
+ --text-full: #cdd6f4;
+ --mauve: #cba6f7;
+ --peach: #fab387;
+ --yellow: #f9e2af;
+ --green: #a6e3a1;
+ --teal: #94e2d5;
+ --sky: #89dceb;
+ --sapphire: #74c7ec;
+ --blue: #89b4fa;
+ --lavender: #b4befe;
+ --bg: var(--base);
+ --surface: var(--mantle);
+ --border: var(--surface-0);
+ --text: var(--text-full);
+ --text-dim: var(--overlay-1);
+ --text-muted: var(--overlay-0);
+ --accent: var(--sapphire);
+ --accent-2: var(--blue);
+ --accent-dim: rgba(116, 199, 236, 0.1);
+ --serif: "Instrument Serif", Georgia, serif;
+ --sans: "Syne", system-ui, sans-serif;
+ --mono: "DM Mono", ui-monospace, monospace;
+ --radius: 4px;
+ --max-w: 720px;
+ }
+
+ *,
+ *::before,
+ *::after {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ }
+ html {
+ scroll-behavior: smooth;
+ }
+
+ body {
+ margin: 0;
+ padding: 4rem 2rem 6rem;
+ background-color: var(--base);
+ background-image:
+ radial-gradient(
+ ellipse 80% 50% at 50% -20%,
+ rgba(203, 166, 247, 0.07) 0%,
+ transparent 60%
+ ),
+ url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cba6f7' fill-opacity='0.018'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/g%3E%3C/svg%3E");
+ color: var(--text-full);
+ font-family: var(--serif);
+ line-height: 1.8;
+ font-size: 19px;
+ -webkit-font-smoothing: antialiased;
+ }
+
+ body > * {
+ max-width: var(--max-w);
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+ h1, h2, h3, h4 {
+ font-family: var(--sans);
+ font-weight: 700;
+ line-height: 1.15;
+ letter-spacing: -0.02em;
+ scroll-margin-top: 1.5rem;
+ }
+
+ h1 {
+ font-size: clamp(2.2rem, 5vw, 3rem);
+ font-weight: 800;
+ margin-bottom: 1.2rem;
+ background: linear-gradient(
+ 135deg,
+ var(--text-full) 30%,
+ var(--mauve) 65%,
+ var(--lavender) 100%
+ );
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+ }
+
+ h2 {
+ font-size: 1.5rem;
+ margin-top: 3.5rem;
+ padding-top: 2rem;
+ border-top: 1px solid var(--surface-0);
+ color: var(--teal);
+ }
+
+ h3 {
+ font-size: 1.15rem;
+ font-weight: 600;
+ margin-top: 2.2rem;
+ color: var(--yellow);
+ }
+
+ p {
+ margin: 1.4rem 0;
+ color: var(--subtext-0);
+ }
+
+ a {
+ color: var(--sky);
+ text-decoration: none;
+ border-bottom: 1px solid var(--surface-0);
+ }
+
+ a:hover {
+ color: var(--blue);
+ border-bottom-color: var(--accent);
+ }
+
+ ul, ol {
+ margin: 1.4rem 0;
+ padding-left: 0;
+ list-style: none;
+ }
+
+ ul li, ol li {
+ position: relative;
+ padding-left: 1.5rem;
+ margin: 0.55rem 0;
+ color: var(--subtext-0);
+ }
+
+ ul li::before {
+ content: "–";
+ position: absolute;
+ left: 0;
+ color: var(--green);
+ font-family: var(--mono);
+ }
+
+ code {
+ font-family: var(--mono);
+ font-size: 0.83rem;
+ background: var(--surface-0);
+ color: var(--peach);
+ padding: 0.18rem 0.4rem;
+ border-radius: var(--radius);
+ border: 1px solid var(--surface-0);
+ word-break: break-word;
+ }
+
+ pre {
+ background: var(--mantle);
+ border: 1px solid var(--surface-0);
+ border-left: 2px solid var(--accent);
+ padding: 1.4rem 1.6rem;
+ overflow-x: auto;
+ border-radius: var(--radius);
+ margin: 2rem 0;
+ }
+
+ pre code {
+ background: none;
+ border: none;
+ padding: 0;
+ color: var(--subtext-0);
+ font-size: 0.87rem;
+ line-height: 1.65;
+ }
+
+ blockquote {
+ margin: 2.5rem 0;
+ padding: 1.5rem 1.8rem;
+ background: var(--mantle);
+ border-left: 2px solid var(--mauve);
+ border-radius: 0 var(--radius) var(--radius) 0;
+ }
+
+ blockquote p {
+ margin: 0;
+ font-style: italic;
+ font-size: 1.1rem;
+ color: var(--subtext-0);
+ }
+
+ img {
+ max-width: 100%;
+ height: auto;
+ display: block;
+ border-radius: var(--radius);
+ border: 1px solid var(--surface-0);
+ margin: 2rem auto;
+ }
+
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ margin: 2rem 0;
+ font-size: 0.9rem;
+ font-family: var(--mono);
+ background: var(--mantle);
+ border-radius: var(--radius);
+ overflow: hidden;
+ border: 1px solid var(--surface-0);
+ }
+
+ thead {
+ background: var(--crust);
+ }
+
+ th {
+ text-align: left;
+ padding: 0.75rem 1rem;
+ font-size: 0.7rem;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: var(--blue);
+ border-bottom: 1px solid var(--surface-0);
+ font-weight: 500;
+ }
+
+ td {
+ padding: 0.65rem 1rem;
+ color: var(--subtext-0);
+ }
+
+ hr {
+ border: none;
+ margin: 3.5rem auto;
+ height: 1px;
+ background: linear-gradient(90deg, transparent, var(--surface-0) 20%, var(--surface-0) 80%, transparent);
+ }
+
+ .toc-wrap {
+ margin: 2.5rem 0;
+ }
+
+ .toc {
+ background: var(--mantle);
+ border: 1px solid var(--surface-0);
+ border-left: 2px solid var(--mauve);
+ border-radius: 3px;
+ padding: 1rem 1.2rem;
+ }
+
+ .toc-title {
+ font-size: 0.8rem;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: var(--mauve);
+ margin: 0 0 0.8rem;
+ display: block;
+ }
+
+ .toc ul {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ }
+
+ .toc li {
+ padding: 0.2rem 0;
+ margin: 0;
+ }
+
+ .toc li::before {
+ display: none;
+ }
+
+ .toc a {
+ font-size: 0.85rem;
+ color: var(--overlay-1);
+ text-decoration: none;
+ border: none;
+ }
+
+ .toc a:hover {
+ color: var(--accent);
+ border: none;
+ }
+
+ nav {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 1.2rem 0 3rem;
+ border-bottom: 1px solid var(--surface-0);
+ margin-bottom: 3.5rem;
+ }
+
+ nav .logo {
+ font-family: var(--sans);
+ font-weight: 800;
+ font-size: 1.1rem;
+ letter-spacing: -0.02em;
+ color: var(--text-full);
+ border: none;
+ }
+
+ nav .logo span {
+ color: var(--mauve);
+ }
+
+ nav ul {
+ display: flex;
+ gap: 2rem;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ nav ul li::before {
+ display: none;
+ }
+
+ nav a {
+ font-family: var(--mono);
+ font-size: 0.72rem;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--overlay-1);
+ border: none;
+ }
+
+ nav a:hover {
+ color: var(--accent);
+ }
+
+ footer {
+ margin-top: 5rem;
+ padding-top: 2rem;
+ border-top: 1px solid var(--surface-0);
+ font-family: var(--mono);
+ font-size: 0.72rem;
+ letter-spacing: 0.05em;
+ color: var(--overlay-0);
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ @media (max-width: 700px) {
+ body {
+ padding: 2rem 1.2rem 4rem;
+ font-size: 17px;
+ }
+ nav {
+ flex-wrap: wrap;
+ gap: 1rem;
+ }
+ footer {
+ flex-direction: column;
+ text-align: center;
+ }
+ }
+ </style>
+ </head>
+ <body>
+ <nav>
+ <a href="/" class="logo">Kite<span>.</span></a>
+ <ul>
+ <li><a href="/">Home</a></li>
+ </ul>
+ </nav>
+
+ <main>
+ <header class="article-header">
+ <h1 class="article-h1">{{ .Title }}</h1>
+ </header>
+
+ {{ if .TOC }}
+ <div class="toc-wrap">
+ <details class="toc" open>
+ <summary class="toc-title">Contents</summary>
+ <ul>
+ {{ range .TOC }}
+ <li>
+ <a href="#{{ .ID }}">{{ .Text }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </details>
+ </div>
+ {{ end }}
+
+ <article class="prose">{{ .Content }}</article>
+ </main>
+
+ <footer>
+ <span>&copy; {{ .Year }} Kite</span>
+ </footer>
+ </body>
+</html> \ No newline at end of file