From 6eb342c0d30eebe50e127a54038b2df6dc64b4e5 Mon Sep 17 00:00:00 2001 From: Himanshu Sardana Date: Wed, 25 Mar 2026 00:34:32 +0000 Subject: feat: add new theme structure --- themes/modern-dark.css | 523 ----------------------------- themes/modern-dark/home.html | 450 +++++++++++++++++++++++++ themes/modern-dark/layout.html | 523 +++++++++++++++++++++++++++++ themes/modern-light.css | 705 ---------------------------------------- themes/modern-light/home.html | 362 +++++++++++++++++++++ themes/modern-light/layout.html | 242 ++++++++++++++ themes/modern-light/style.css | 705 ++++++++++++++++++++++++++++++++++++++++ 7 files changed, 2282 insertions(+), 1228 deletions(-) delete mode 100644 themes/modern-dark.css create mode 100644 themes/modern-dark/home.html create mode 100644 themes/modern-dark/layout.html delete mode 100644 themes/modern-light.css create mode 100644 themes/modern-light/home.html create mode 100644 themes/modern-light/layout.html create mode 100644 themes/modern-light/style.css (limited to 'themes') diff --git a/themes/modern-dark.css b/themes/modern-dark.css deleted file mode 100644 index 645652d..0000000 --- a/themes/modern-dark.css +++ /dev/null @@ -1,523 +0,0 @@ -@import url("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"); - -/* ─── Design Tokens ─────────────────────────────────────── */ -:root { - --bg: #0a0a0b; - --surface: #111113; - --surface-2: #18181c; - --border: #232328; - --border-soft: rgba(255, 255, 255, 0.06); - --text: #e8e8e4; - --text-dim: #7a7a80; - --text-muted: #3e3e46; - --accent: #c8f23a; /* electric lime – sharp single accent */ - --accent-dim: rgba(200, 242, 58, 0.12); - --accent-glow: rgba(200, 242, 58, 0.08); - --serif: "Instrument Serif", Georgia, serif; - --sans: "Syne", system-ui, sans-serif; - --mono: "DM Mono", ui-monospace, monospace; - --radius: 4px; - --max-w: 720px; - --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1); -} - -/* ─── Reset & Base ──────────────────────────────────────── */ -*, -*::before, -*::after { - box-sizing: border-box; -} - -html { - scroll-behavior: smooth; -} - -body { - margin: 0; - padding: 4rem 2rem 6rem; - background-color: var(--bg); - background-image: - radial-gradient( - ellipse 80% 50% at 50% -20%, - rgba(200, 242, 58, 0.05) 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='%23ffffff' fill-opacity='0.015'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/g%3E%3C/svg%3E"); - color: var(--text); - font-family: var(--serif); - line-height: 1.8; - font-size: 19px; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; -} - -body > * { - max-width: var(--max-w); - margin-left: auto; - margin-right: auto; -} - -/* ─── Headings ──────────────────────────────────────────── */ -h1, -h2, -h3, -h4 { - font-family: var(--sans); - font-weight: 700; - line-height: 1.15; - letter-spacing: -0.02em; - scroll-margin-top: 1.5rem; - color: #f0f0ec; -} - -h1 { - font-size: clamp(2.2rem, 5vw, 3rem); - font-weight: 800; - margin-bottom: 1.2rem; - /* Subtle accent underline on the first line */ - background: linear-gradient(135deg, #f0f0ec 60%, var(--accent) 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(--border); - color: var(--text); -} - -h3 { - font-size: 1.15rem; - font-weight: 600; - margin-top: 2.2rem; - color: var(--text); -} - -/* ─── Paragraphs ────────────────────────────────────────── */ -p { - margin: 1.4rem 0; - color: #c8c8c4; - font-size: 1.2rem; -} - -/* Drop cap for first paragraph after h1 */ -h1 + p::first-letter { - font-family: var(--serif); - font-size: 3.6rem; - font-style: italic; - float: left; - line-height: 0.82; - margin: 0.08em 0.1em 0 0; - color: var(--accent); -} - -/* ─── Article Meta / Byline ─────────────────────────────── */ -.meta, -time, -.byline { - display: block; - font-family: var(--mono); - font-size: 0.75rem; - letter-spacing: 0.08em; - text-transform: uppercase; - color: var(--text-dim); - margin-bottom: 2.5rem; -} - -/* ─── Links ─────────────────────────────────────────────── */ -a { - color: var(--text); - text-decoration: none; - border-bottom: 1px solid var(--border); - transition: - color var(--transition), - border-color var(--transition); -} - -a:hover { - color: var(--accent); - border-bottom-color: var(--accent); -} - -/* ─── Lists ─────────────────────────────────────────────── */ -ul, -ol { - margin: 1.4rem 0 1.4rem 0; - padding-left: 0; - list-style: none; -} - -ul li, -ol li { - position: relative; - padding-left: 1.5rem; - margin: 0.55rem 0; - color: #c8c8c4; -} - -ul li::before { - content: "–"; - position: absolute; - left: 0; - color: var(--accent); - font-family: var(--mono); -} - -ol { - counter-reset: ol-counter; -} - -ol li { - counter-increment: ol-counter; -} - -ol li::before { - content: counter(ol-counter, decimal-leading-zero); - position: absolute; - left: 0; - font-family: var(--mono); - font-size: 0.72rem; - color: var(--text-dim); - top: 0.22em; -} - -/* ─── Horizontal Rule ───────────────────────────────────── */ -hr { - border: none; - margin: 3.5rem auto; - height: 1px; - background: linear-gradient( - 90deg, - transparent, - var(--border) 20%, - var(--border) 80%, - transparent - ); - position: relative; -} - -hr::after { - content: "✦"; - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - font-size: 0.65rem; - color: var(--text-muted); - background: var(--bg); - padding: 0 0.5rem; -} - -/* ─── Blockquote ────────────────────────────────────────── */ -blockquote { - margin: 2.5rem 0; - padding: 1.5rem 1.8rem; - background: var(--surface); - border-left: 2px solid var(--accent); - border-radius: 0 var(--radius) var(--radius) 0; - position: relative; -} - -blockquote p { - margin: 0; - font-style: italic; - font-size: 1.1rem; - color: #d8d8d4; -} - -blockquote cite { - display: block; - margin-top: 0.8rem; - font-family: var(--mono); - font-size: 0.72rem; - letter-spacing: 0.06em; - color: var(--text-dim); - font-style: normal; -} - -/* ─── Tables ────────────────────────────────────────────── */ -table { - width: 100%; - border-collapse: collapse; - margin: 2rem 0; - font-size: 0.9rem; - font-family: var(--mono); - background: var(--surface); - border-radius: var(--radius); - overflow: hidden; - border: 1px solid var(--border); -} - -thead { - background: var(--surface-2); -} - -th { - text-align: left; - padding: 0.75rem 1rem; - font-size: 0.7rem; - letter-spacing: 0.1em; - text-transform: uppercase; - color: var(--text-dim); - border-bottom: 1px solid var(--border); - font-weight: 500; -} - -td { - padding: 0.65rem 1rem; - border-bottom: 1px solid var(--border-soft); - color: #c0c0bc; -} - -tr:last-child td { - border-bottom: none; -} - -tr:hover td { - background: var(--border-soft); -} - -/* ─── Inline Code ───────────────────────────────────────── */ -code { - font-family: var(--mono); - font-size: 0.83rem; - background: var(--surface-2); - color: var(--accent); - padding: 0.18rem 0.4rem; - border-radius: var(--radius); - border: 1px solid var(--border); - word-break: break-word; -} - -/* ─── Code Blocks ───────────────────────────────────────── */ -pre { - background: var(--surface); - border: 1px solid var(--border); - border-left: 2px solid var(--accent); - padding: 1.4rem 1.6rem; - overflow-x: auto; - border-radius: var(--radius); - margin: 2rem 0; - position: relative; -} - -pre::before { - content: attr(data-lang); - position: absolute; - top: 0.6rem; - right: 0.8rem; - font-family: var(--mono); - font-size: 0.65rem; - letter-spacing: 0.1em; - text-transform: uppercase; - color: var(--text-muted); -} - -pre code { - background: none; - border: none; - padding: 0; - color: #d0d0cc; - font-size: 0.87rem; - line-height: 1.65; -} - -/* ─── Images ────────────────────────────────────────────── */ -img { - max-width: 100%; - height: auto; - display: block; - border-radius: var(--radius); - border: 1px solid var(--border); - margin: 2rem auto; -} - -figure { - margin: 2.5rem 0; -} - -figcaption { - font-family: var(--mono); - font-size: 0.72rem; - color: var(--text-dim); - text-align: center; - margin-top: 0.75rem; - letter-spacing: 0.04em; -} - -/* ─── Footnotes / Aside ─────────────────────────────────── */ -aside, -.note, -.callout { - background: var(--accent-dim); - border: 1px solid rgba(200, 242, 58, 0.2); - border-radius: var(--radius); - padding: 1rem 1.2rem; - margin: 2rem 0; - font-size: 0.88rem; - color: #c0c0bc; -} - -aside strong, -.callout strong { - color: var(--accent); - font-family: var(--mono); - font-size: 0.7rem; - letter-spacing: 0.1em; - text-transform: uppercase; - display: block; - margin-left: 3px; - margin-bottom: 0.4rem; -} - -/* ─── Navigation ───────────────────────────────────────── */ -nav { - display: flex; - align-items: center; - justify-content: space-between; - padding: 1.2rem 0 3rem; - border-bottom: 1px solid var(--border); - margin-bottom: 3.5rem; -} - -nav .logo { - font-family: var(--sans); - font-weight: 800; - font-size: 1.1rem; - letter-spacing: -0.02em; - color: var(--text); - border-bottom: none; -} - -nav .logo span { - color: var(--accent); -} - -nav ul { - display: flex; - gap: 2rem; - margin: 0; - padding: 0; - list-style: none; -} - -nav ul li { - padding: 0; - margin: 0; -} - -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(--text-dim); - border-bottom: none; - transition: color var(--transition); -} - -nav a:hover { - color: var(--accent); - border-bottom: none; -} - -/* ─── Footer ───────────────────────────────────────────── */ -footer { - margin-top: 5rem; - padding-top: 2rem; - border-top: 1px solid var(--border); - font-family: var(--mono); - font-size: 0.72rem; - letter-spacing: 0.05em; - color: var(--text-muted); - display: flex; - justify-content: space-between; - align-items: center; - flex-wrap: wrap; - gap: 1rem; -} - -/* ─── Reading Progress Bar ─────────────────────────────── */ -.progress-bar { - position: fixed; - top: 0; - left: 0; - height: 2px; - background: var(--accent); - z-index: 999; - transform-origin: left; - width: 0%; - box-shadow: 0 0 8px var(--accent-glow); - transition: width 0.1s linear; -} - -/* ─── Selection ────────────────────────────────────────── */ -::selection { - background: rgba(200, 242, 58, 0.2); - color: var(--text); -} - -/* ─── Scrollbar ────────────────────────────────────────── */ -::-webkit-scrollbar { - width: 6px; - height: 6px; -} - -::-webkit-scrollbar-track { - background: var(--bg); -} -::-webkit-scrollbar-thumb { - background: var(--border); - border-radius: 3px; -} -::-webkit-scrollbar-thumb:hover { - background: var(--text-muted); -} - -/* ─── Abbr ─────────────────────────────────────────────── */ -abbr[title] { - border-bottom: 1px dotted var(--text-dim); - cursor: help; - text-decoration: none; -} - -/* ─── Responsive ───────────────────────────────────────── */ -@media (max-width: 700px) { - body { - padding: 2rem 1.2rem 4rem; - font-size: 17px; - } - - h1 { - font-size: 2rem; - } - h2 { - font-size: 1.35rem; - } - - nav ul { - gap: 1.2rem; - } - nav { - flex-wrap: wrap; - gap: 1rem; - } - footer { - flex-direction: column; - text-align: center; - } -} - -/* ─── Focus Accessibility ──────────────────────────────── */ -:focus-visible { - outline: 2px solid var(--accent); - outline-offset: 3px; - border-radius: var(--radius); -} diff --git a/themes/modern-dark/home.html b/themes/modern-dark/home.html new file mode 100644 index 0000000..2ff565a --- /dev/null +++ b/themes/modern-dark/home.html @@ -0,0 +1,450 @@ + + + + + + {{ .SiteTitle }} + + + + + + +
+ + +
+

{{ .AuthorName }}

+

{{ .AuthorRole }}

+

{{ .AuthorBio }}

+
+ +
+
+ Writing + +
+ + {{ if .Posts }} + + {{ else }} +

No posts yet.

+ {{ end }} +
+ +
+ © {{ .Year }} {{ .AuthorName }} + Built with kite +
+
+ + diff --git a/themes/modern-dark/layout.html b/themes/modern-dark/layout.html new file mode 100644 index 0000000..c3f351c --- /dev/null +++ b/themes/modern-dark/layout.html @@ -0,0 +1,523 @@ + + + + + + + {{ .Title }} + + + + + + + + + +
+ + +

{{ .Title }}

+ {{ .Content }} +
+ + + + diff --git a/themes/modern-light.css b/themes/modern-light.css deleted file mode 100644 index 73e6d44..0000000 --- a/themes/modern-light.css +++ /dev/null @@ -1,705 +0,0 @@ -@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Epilogue:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap"); - -:root { - --bg: #fafaf8; - --bg-subtle: #f4f4f1; - --surface: #ffffff; - --border: #e8e8e3; - --border-soft: rgba(0, 0, 0, 0.06); - --text: #1a1a18; - --text-dim: #6b6b66; - --text-muted: #b0b0aa; - --accent: #1a1a18; - --accent-warm: #c85a2a; - --serif: "Lora", Georgia, serif; - --sans: "Epilogue", system-ui, sans-serif; - --mono: "IBM Plex Mono", ui-monospace, monospace; - --radius: 3px; - --max-w: 680px; - --transition: 140ms ease; -} - -/* ─── Reset ──────────────────────────────────────────────── */ -*, -*::before, -*::after { - box-sizing: border-box; -} -html { - scroll-behavior: smooth; -} - -/* ─── Body ───────────────────────────────────────────────── */ -body { - margin: 0; - padding: 0; - background: var(--bg); - color: var(--text); - font-family: var(--serif); - line-height: 1.82; - font-size: 19px; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; -} - -/* ─── Layout containers ──────────────────────────────────── */ -/* Direct body children (blog-style layout) */ -body > * { - max-width: var(--max-w); - margin-left: auto; - margin-right: auto; - padding-left: 2rem; - padding-right: 2rem; -} - -/* main.article: self-contained page wrapper */ -main.article { - max-width: var(--max-w); - margin-left: auto; - margin-right: auto; - padding: 3.5rem 2rem 6rem; -} - -/* Progress bar must span full width */ -.progress-bar { - position: fixed; - top: 0; - left: 0; - height: 1px; - background: var(--text); - z-index: 999; - width: 0%; - transition: width 0.1s linear; - /* override the body > * rule */ - max-width: 100vw !important; - padding: 0 !important; -} - -/* ─── Navigation ─────────────────────────────────────────── */ -nav { - display: flex; - align-items: center; - justify-content: space-between; - padding-top: 1.4rem; - padding-bottom: 1.4rem; - border-bottom: 1px solid var(--border); - margin-bottom: 3.5rem; - flex-wrap: wrap; - gap: 0.8rem; -} - -/* nav inside main.article: remove inherited x-padding */ -main.article nav { - padding-left: 0; - padding-right: 0; - max-width: none; - margin-left: 0; - margin-right: 0; -} - -nav .logo { - font-family: var(--sans); - font-weight: 800; - font-size: 1rem; - letter-spacing: -0.02em; - color: var(--text); - text-decoration: none; -} - -nav ul { - display: flex; - gap: 2rem; - margin: 0; - padding: 0; - list-style: none; -} - -nav ul li { - padding: 0; - margin: 0; -} -nav ul li::before { - display: none; -} - -nav a { - font-family: var(--mono); - font-size: 0.7rem; - letter-spacing: 0.07em; - text-transform: uppercase; - color: var(--text-muted); - text-decoration: none; - transition: color var(--transition); -} - -nav a:hover { - color: var(--text); -} - -/* ─── Page header (name + tagline) ──────────────────────── */ -.site-header { - padding-bottom: 2.5rem; - border-bottom: 1px solid var(--border); - margin-bottom: 3rem; -} - -.site-header h1 { - font-size: clamp(2rem, 5vw, 2.6rem); - font-weight: 800; - margin: 0 0 0.35rem; - letter-spacing: -0.03em; - line-height: 1.08; -} - -.site-header .role { - font-family: var(--mono); - font-size: 0.72rem; - letter-spacing: 0.09em; - text-transform: uppercase; - color: var(--text-muted); - margin: 0 0 1.1rem; -} - -.site-header .intro { - font-size: 1.02rem; - color: var(--text-dim); - line-height: 1.78; - margin: 0; - max-width: 500px; -} - -/* ─── Section label ──────────────────────────────────────── */ -.section-label { - font-family: var(--mono); - font-size: 0.67rem; - letter-spacing: 0.1em; - text-transform: uppercase; - color: var(--text-muted); - margin: 0 0 1.4rem; - display: flex; - align-items: center; - gap: 0.7rem; -} - -.section-label::after { - content: ""; - flex: 1; - height: 1px; - background: var(--border); -} - -/* ─── Headings ───────────────────────────────────────────── */ -h1, -h2, -h3, -h4 { - font-family: var(--sans); - font-weight: 700; - line-height: 1.18; - letter-spacing: -0.025em; - scroll-margin-top: 1.5rem; - color: var(--text); -} - -h1 { - font-size: clamp(2rem, 5vw, 2.75rem); - font-weight: 800; - margin-top: 0; - margin-bottom: 0.6rem; -} - -h2 { - font-size: 1.1rem; - font-weight: 700; - margin-top: 2.8rem; - margin-bottom: 0.35rem; -} - -h3 { - font-size: 0.95rem; - font-weight: 600; - margin-top: 1.8rem; - margin-bottom: 0.2rem; -} - -/* ─── Paragraphs ─────────────────────────────────────────── */ -p { - margin: 1rem 0; - color: #2c2c28; - font-size: 0.96rem; - line-height: 1.82; -} - -h1 + p, -header + article > p:first-child { - font-size: 1.05rem; - color: #3a3a36; - line-height: 1.85; -} - -/* ─── Article Meta ───────────────────────────────────────── */ -.meta, -time, -.byline { - display: block; - font-family: var(--mono); - font-size: 0.72rem; - letter-spacing: 0.07em; - text-transform: uppercase; - color: var(--text-muted); - margin-bottom: 2.8rem; -} - -/* ─── Links ──────────────────────────────────────────────── */ -a { - color: inherit; - text-decoration-line: underline; - text-decoration-color: var(--border); - text-underline-offset: 3px; - text-decoration-thickness: 1px; - transition: - text-decoration-color var(--transition), - color var(--transition); -} - -a:hover { - text-decoration-color: var(--text); -} - -/* ─── Project cards ──────────────────────────────────────── */ -.project { - padding: 1.1rem 0; - border-bottom: 1px solid var(--border); -} - -.project:last-of-type { - border-bottom: none; -} - -.project h3 { - margin: 0 0 0.25rem; - font-size: 0.93rem; - font-weight: 600; -} - -.project p { - margin: 0 0 0.5rem; - color: var(--text-dim); - font-size: 0.87rem; - line-height: 1.65; -} - -.project-meta { - display: flex; - gap: 0.45rem; - flex-wrap: wrap; - align-items: center; - margin-top: 0.5rem; -} - -.pill { - display: inline-block; - font-family: var(--mono); - font-size: 0.61rem; - letter-spacing: 0.06em; - text-transform: uppercase; - padding: 0.16rem 0.5rem; - background: var(--bg-subtle); - border: 1px solid var(--border); - border-radius: 100px; - color: var(--text-muted); - text-decoration: none; -} - -.project-link { - font-family: var(--mono); - font-size: 0.67rem; - letter-spacing: 0.05em; - color: var(--text-dim); - text-decoration: none; - border-bottom: 1px solid var(--border); - padding-bottom: 1px; - transition: - color var(--transition), - border-color var(--transition); - margin-left: auto; - white-space: nowrap; -} - -.project-link:hover { - color: var(--accent-warm); - border-color: var(--accent-warm); - text-decoration: none; - text-decoration-color: transparent; -} - -/* ─── Lists ──────────────────────────────────────────────── */ -ul, -ol { - margin: 1rem 0; - padding-left: 0; - list-style: none; -} - -ul li, -ol li { - position: relative; - padding-left: 1.4rem; - margin: 0.4rem 0; - color: #2c2c28; - font-size: 0.96rem; -} - -ul li::before { - content: "—"; - position: absolute; - left: 0; - color: var(--text-muted); - font-family: var(--sans); - font-weight: 400; -} - -ol { - counter-reset: ol-counter; -} -ol li { - counter-increment: ol-counter; -} - -ol li::before { - content: counter(ol-counter); - position: absolute; - left: 0; - font-family: var(--mono); - font-size: 0.7rem; - color: var(--text-muted); - top: 0.3em; -} - -/* ─── Horizontal Rule ────────────────────────────────────── */ -hr { - border: none; - margin: 2.8rem auto; - width: 3rem; - height: 1px; - background: var(--text); - opacity: 0.15; -} - -/* ─── Blockquote ─────────────────────────────────────────── */ -blockquote { - margin: 2.5rem 0; - padding: 0 0 0 1.6rem; - border-left: 2px solid var(--text); -} - -blockquote p { - margin: 0; - font-style: italic; - font-size: 1.05rem; - line-height: 1.72; - color: #3a3a36; -} - -blockquote cite { - display: block; - margin-top: 0.8rem; - font-family: var(--mono); - font-size: 0.7rem; - letter-spacing: 0.05em; - color: var(--text-muted); - font-style: normal; -} - -/* ─── Tables ─────────────────────────────────────────────── */ -table { - width: 100%; - border-collapse: collapse; - margin: 2rem 0; - font-size: 0.88rem; - font-family: var(--mono); -} - -thead tr { - border-bottom: 2px solid var(--text); -} - -th { - text-align: left; - padding: 0.5rem 0.8rem 0.6rem 0; - font-size: 0.68rem; - letter-spacing: 0.09em; - text-transform: uppercase; - color: var(--text-dim); - font-weight: 500; -} - -td { - padding: 0.55rem 0.8rem 0.55rem 0; - border-bottom: 1px solid var(--border); - color: #2c2c28; - vertical-align: top; -} - -tr:last-child td { - border-bottom: none; -} - -/* ─── Inline Code ────────────────────────────────────────── */ -code { - font-family: var(--mono); - font-size: 0.82rem; - background: var(--bg-subtle); - padding: 0.18rem 0.38rem; - border-radius: var(--radius); - border: 1px solid var(--border); - color: var(--accent-warm); - word-break: break-word; -} - -/* ─── Code Blocks ────────────────────────────────────────── */ -pre { - background: var(--bg-subtle); - border: 1px solid var(--border); - padding: 1.3rem 1.5rem; - overflow-x: auto; - border-radius: var(--radius); - margin: 1.8rem 0; - position: relative; -} - -pre::before { - content: attr(data-lang); - position: absolute; - top: 0.6rem; - right: 0.8rem; - font-family: var(--mono); - font-size: 0.62rem; - letter-spacing: 0.1em; - text-transform: uppercase; - color: var(--text-muted); -} - -pre code { - background: none; - border: none; - padding: 0; - color: #2c2c28; - font-size: 0.85rem; - line-height: 1.7; -} - -/* ─── Prism.js overrides ─────────────────────────────────── */ -pre[class*="language-"], -code[class*="language-"] { - font-family: var(--mono) !important; - font-size: 0.85rem !important; - background: var(--bg-subtle) !important; - color: #2c2c28 !important; - text-shadow: none !important; -} - -pre[class*="language-"] { - border: 1px solid var(--border) !important; - border-radius: var(--radius) !important; - padding: 1.3rem 1.5rem !important; - margin: 1.8rem 0 !important; - box-shadow: none !important; -} - -.token.comment, -.token.prolog, -.token.doctype, -.token.cdata { - color: var(--text-muted); - font-style: italic; -} -.token.keyword { - color: var(--text); - font-weight: 600; -} -.token.string { - color: var(--accent-warm); -} -.token.function { - color: #2c2c28; - font-style: italic; -} -.token.number, -.token.boolean { - color: var(--text-dim); -} -.token.operator, -.token.punctuation { - color: var(--text-muted); -} -.token.class-name, -.token.builtin { - color: var(--text); - font-weight: 600; -} -.token.property { - color: var(--text-dim); -} - -/* ─── Images ─────────────────────────────────────────────── */ -img { - max-width: 100%; - height: auto; - display: block; - margin: 2.5rem auto; - border-radius: var(--radius); -} - -figure { - margin: 2.5rem 0; -} - -figcaption { - font-family: var(--mono); - font-size: 0.7rem; - color: var(--text-muted); - text-align: center; - margin-top: 0.65rem; - letter-spacing: 0.04em; -} - -/* ─── Aside / Callout ────────────────────────────────────── */ -aside, -.note, -.callout { - background: var(--bg-subtle); - border: 1px solid var(--border); - border-radius: var(--radius); - padding: 1rem 1.2rem; - margin: 1.8rem 0; - font-size: 0.9rem; - color: var(--text-dim); -} - -aside strong, -.callout strong { - font-family: var(--mono); - font-size: 0.67rem; - letter-spacing: 0.09em; - text-transform: uppercase; - color: var(--text); - display: block; - margin-bottom: 0.35rem; -} - -/* ─── Tags ───────────────────────────────────────────────── */ -.tag { - display: inline-block; - font-family: var(--mono); - font-size: 0.65rem; - letter-spacing: 0.08em; - text-transform: uppercase; - padding: 0.22rem 0.55rem; - border: 1px solid var(--border); - border-radius: 2px; - color: var(--text-dim); - margin-right: 0.35rem; - text-decoration: none; - transition: all var(--transition); -} - -.tag:hover { - background: var(--text); - color: var(--bg); - border-color: var(--text); -} - -/* ─── Footer ─────────────────────────────────────────────── */ -footer { - margin-top: 5rem; - padding-top: 2rem; - border-top: 1px solid var(--border); - font-family: var(--mono); - font-size: 0.7rem; - letter-spacing: 0.04em; - color: var(--text-muted); - display: flex; - justify-content: space-between; - align-items: center; - flex-wrap: wrap; - gap: 1rem; -} - -main.article footer { - padding-left: 0; - padding-right: 0; - max-width: none; -} - -/* ─── Selection ──────────────────────────────────────────── */ -::selection { - background: #e8e8c8; - color: var(--text); -} - -/* ─── Scrollbar ──────────────────────────────────────────── */ -::-webkit-scrollbar { - width: 5px; - height: 5px; -} -::-webkit-scrollbar-track { - background: var(--bg); -} -::-webkit-scrollbar-thumb { - background: var(--border); - border-radius: 3px; -} -::-webkit-scrollbar-thumb:hover { - background: var(--text-muted); -} - -/* ─── Abbr ───────────────────────────────────────────────── */ -abbr[title] { - border-bottom: 1px dotted var(--text-muted); - cursor: help; - text-decoration: none; -} - -/* ─── Responsive ─────────────────────────────────────────── */ -@media (max-width: 700px) { - main.article { - padding: 2rem 1.3rem 4rem; - font-size: 17px; - } - body > * { - padding-left: 1.3rem; - padding-right: 1.3rem; - } - h1 { - font-size: 1.85rem; - } - h2 { - font-size: 1rem; - } - nav ul { - gap: 1.2rem; - } - nav { - flex-wrap: wrap; - gap: 0.8rem; - } - footer { - flex-direction: column; - text-align: center; - } - .project-meta { - flex-direction: column; - align-items: flex-start; - } - .project-link { - margin-left: 0; - } -} - -/* ─── Focus Accessibility ────────────────────────────────── */ -:focus-visible { - outline: 2px solid var(--text); - outline-offset: 3px; - border-radius: var(--radius); -} diff --git a/themes/modern-light/home.html b/themes/modern-light/home.html new file mode 100644 index 0000000..0e963fe --- /dev/null +++ b/themes/modern-light/home.html @@ -0,0 +1,362 @@ + + + + + + {{ .SiteTitle }} + + + + + + +
+ + +
+

{{ .AuthorName }}

+

{{ .AuthorRole }}

+

{{ .AuthorBio }}

+
+ +
+
+ Writing + +
+ + {{ if .Posts }} + + {{ else }} +

No posts yet.

+ {{ end }} +
+ +
+ © {{ .Year }} {{ .AuthorName }} + Built with kite +
+
+ + diff --git a/themes/modern-light/layout.html b/themes/modern-light/layout.html new file mode 100644 index 0000000..97bdb4b --- /dev/null +++ b/themes/modern-light/layout.html @@ -0,0 +1,242 @@ + + + + + + + {{ .Title }} + + + + + + + + + +
+ + +

{{ .Title }}

+ {{ .Content }} +
+ + + + diff --git a/themes/modern-light/style.css b/themes/modern-light/style.css new file mode 100644 index 0000000..73e6d44 --- /dev/null +++ b/themes/modern-light/style.css @@ -0,0 +1,705 @@ +@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Epilogue:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap"); + +:root { + --bg: #fafaf8; + --bg-subtle: #f4f4f1; + --surface: #ffffff; + --border: #e8e8e3; + --border-soft: rgba(0, 0, 0, 0.06); + --text: #1a1a18; + --text-dim: #6b6b66; + --text-muted: #b0b0aa; + --accent: #1a1a18; + --accent-warm: #c85a2a; + --serif: "Lora", Georgia, serif; + --sans: "Epilogue", system-ui, sans-serif; + --mono: "IBM Plex Mono", ui-monospace, monospace; + --radius: 3px; + --max-w: 680px; + --transition: 140ms ease; +} + +/* ─── Reset ──────────────────────────────────────────────── */ +*, +*::before, +*::after { + box-sizing: border-box; +} +html { + scroll-behavior: smooth; +} + +/* ─── Body ───────────────────────────────────────────────── */ +body { + margin: 0; + padding: 0; + background: var(--bg); + color: var(--text); + font-family: var(--serif); + line-height: 1.82; + font-size: 19px; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; +} + +/* ─── Layout containers ──────────────────────────────────── */ +/* Direct body children (blog-style layout) */ +body > * { + max-width: var(--max-w); + margin-left: auto; + margin-right: auto; + padding-left: 2rem; + padding-right: 2rem; +} + +/* main.article: self-contained page wrapper */ +main.article { + max-width: var(--max-w); + margin-left: auto; + margin-right: auto; + padding: 3.5rem 2rem 6rem; +} + +/* Progress bar must span full width */ +.progress-bar { + position: fixed; + top: 0; + left: 0; + height: 1px; + background: var(--text); + z-index: 999; + width: 0%; + transition: width 0.1s linear; + /* override the body > * rule */ + max-width: 100vw !important; + padding: 0 !important; +} + +/* ─── Navigation ─────────────────────────────────────────── */ +nav { + display: flex; + align-items: center; + justify-content: space-between; + padding-top: 1.4rem; + padding-bottom: 1.4rem; + border-bottom: 1px solid var(--border); + margin-bottom: 3.5rem; + flex-wrap: wrap; + gap: 0.8rem; +} + +/* nav inside main.article: remove inherited x-padding */ +main.article nav { + padding-left: 0; + padding-right: 0; + max-width: none; + margin-left: 0; + margin-right: 0; +} + +nav .logo { + font-family: var(--sans); + font-weight: 800; + font-size: 1rem; + letter-spacing: -0.02em; + color: var(--text); + text-decoration: none; +} + +nav ul { + display: flex; + gap: 2rem; + margin: 0; + padding: 0; + list-style: none; +} + +nav ul li { + padding: 0; + margin: 0; +} +nav ul li::before { + display: none; +} + +nav a { + font-family: var(--mono); + font-size: 0.7rem; + letter-spacing: 0.07em; + text-transform: uppercase; + color: var(--text-muted); + text-decoration: none; + transition: color var(--transition); +} + +nav a:hover { + color: var(--text); +} + +/* ─── Page header (name + tagline) ──────────────────────── */ +.site-header { + padding-bottom: 2.5rem; + border-bottom: 1px solid var(--border); + margin-bottom: 3rem; +} + +.site-header h1 { + font-size: clamp(2rem, 5vw, 2.6rem); + font-weight: 800; + margin: 0 0 0.35rem; + letter-spacing: -0.03em; + line-height: 1.08; +} + +.site-header .role { + font-family: var(--mono); + font-size: 0.72rem; + letter-spacing: 0.09em; + text-transform: uppercase; + color: var(--text-muted); + margin: 0 0 1.1rem; +} + +.site-header .intro { + font-size: 1.02rem; + color: var(--text-dim); + line-height: 1.78; + margin: 0; + max-width: 500px; +} + +/* ─── Section label ──────────────────────────────────────── */ +.section-label { + font-family: var(--mono); + font-size: 0.67rem; + letter-spacing: 0.1em; + text-transform: uppercase; + color: var(--text-muted); + margin: 0 0 1.4rem; + display: flex; + align-items: center; + gap: 0.7rem; +} + +.section-label::after { + content: ""; + flex: 1; + height: 1px; + background: var(--border); +} + +/* ─── Headings ───────────────────────────────────────────── */ +h1, +h2, +h3, +h4 { + font-family: var(--sans); + font-weight: 700; + line-height: 1.18; + letter-spacing: -0.025em; + scroll-margin-top: 1.5rem; + color: var(--text); +} + +h1 { + font-size: clamp(2rem, 5vw, 2.75rem); + font-weight: 800; + margin-top: 0; + margin-bottom: 0.6rem; +} + +h2 { + font-size: 1.1rem; + font-weight: 700; + margin-top: 2.8rem; + margin-bottom: 0.35rem; +} + +h3 { + font-size: 0.95rem; + font-weight: 600; + margin-top: 1.8rem; + margin-bottom: 0.2rem; +} + +/* ─── Paragraphs ─────────────────────────────────────────── */ +p { + margin: 1rem 0; + color: #2c2c28; + font-size: 0.96rem; + line-height: 1.82; +} + +h1 + p, +header + article > p:first-child { + font-size: 1.05rem; + color: #3a3a36; + line-height: 1.85; +} + +/* ─── Article Meta ───────────────────────────────────────── */ +.meta, +time, +.byline { + display: block; + font-family: var(--mono); + font-size: 0.72rem; + letter-spacing: 0.07em; + text-transform: uppercase; + color: var(--text-muted); + margin-bottom: 2.8rem; +} + +/* ─── Links ──────────────────────────────────────────────── */ +a { + color: inherit; + text-decoration-line: underline; + text-decoration-color: var(--border); + text-underline-offset: 3px; + text-decoration-thickness: 1px; + transition: + text-decoration-color var(--transition), + color var(--transition); +} + +a:hover { + text-decoration-color: var(--text); +} + +/* ─── Project cards ──────────────────────────────────────── */ +.project { + padding: 1.1rem 0; + border-bottom: 1px solid var(--border); +} + +.project:last-of-type { + border-bottom: none; +} + +.project h3 { + margin: 0 0 0.25rem; + font-size: 0.93rem; + font-weight: 600; +} + +.project p { + margin: 0 0 0.5rem; + color: var(--text-dim); + font-size: 0.87rem; + line-height: 1.65; +} + +.project-meta { + display: flex; + gap: 0.45rem; + flex-wrap: wrap; + align-items: center; + margin-top: 0.5rem; +} + +.pill { + display: inline-block; + font-family: var(--mono); + font-size: 0.61rem; + letter-spacing: 0.06em; + text-transform: uppercase; + padding: 0.16rem 0.5rem; + background: var(--bg-subtle); + border: 1px solid var(--border); + border-radius: 100px; + color: var(--text-muted); + text-decoration: none; +} + +.project-link { + font-family: var(--mono); + font-size: 0.67rem; + letter-spacing: 0.05em; + color: var(--text-dim); + text-decoration: none; + border-bottom: 1px solid var(--border); + padding-bottom: 1px; + transition: + color var(--transition), + border-color var(--transition); + margin-left: auto; + white-space: nowrap; +} + +.project-link:hover { + color: var(--accent-warm); + border-color: var(--accent-warm); + text-decoration: none; + text-decoration-color: transparent; +} + +/* ─── Lists ──────────────────────────────────────────────── */ +ul, +ol { + margin: 1rem 0; + padding-left: 0; + list-style: none; +} + +ul li, +ol li { + position: relative; + padding-left: 1.4rem; + margin: 0.4rem 0; + color: #2c2c28; + font-size: 0.96rem; +} + +ul li::before { + content: "—"; + position: absolute; + left: 0; + color: var(--text-muted); + font-family: var(--sans); + font-weight: 400; +} + +ol { + counter-reset: ol-counter; +} +ol li { + counter-increment: ol-counter; +} + +ol li::before { + content: counter(ol-counter); + position: absolute; + left: 0; + font-family: var(--mono); + font-size: 0.7rem; + color: var(--text-muted); + top: 0.3em; +} + +/* ─── Horizontal Rule ────────────────────────────────────── */ +hr { + border: none; + margin: 2.8rem auto; + width: 3rem; + height: 1px; + background: var(--text); + opacity: 0.15; +} + +/* ─── Blockquote ─────────────────────────────────────────── */ +blockquote { + margin: 2.5rem 0; + padding: 0 0 0 1.6rem; + border-left: 2px solid var(--text); +} + +blockquote p { + margin: 0; + font-style: italic; + font-size: 1.05rem; + line-height: 1.72; + color: #3a3a36; +} + +blockquote cite { + display: block; + margin-top: 0.8rem; + font-family: var(--mono); + font-size: 0.7rem; + letter-spacing: 0.05em; + color: var(--text-muted); + font-style: normal; +} + +/* ─── Tables ─────────────────────────────────────────────── */ +table { + width: 100%; + border-collapse: collapse; + margin: 2rem 0; + font-size: 0.88rem; + font-family: var(--mono); +} + +thead tr { + border-bottom: 2px solid var(--text); +} + +th { + text-align: left; + padding: 0.5rem 0.8rem 0.6rem 0; + font-size: 0.68rem; + letter-spacing: 0.09em; + text-transform: uppercase; + color: var(--text-dim); + font-weight: 500; +} + +td { + padding: 0.55rem 0.8rem 0.55rem 0; + border-bottom: 1px solid var(--border); + color: #2c2c28; + vertical-align: top; +} + +tr:last-child td { + border-bottom: none; +} + +/* ─── Inline Code ────────────────────────────────────────── */ +code { + font-family: var(--mono); + font-size: 0.82rem; + background: var(--bg-subtle); + padding: 0.18rem 0.38rem; + border-radius: var(--radius); + border: 1px solid var(--border); + color: var(--accent-warm); + word-break: break-word; +} + +/* ─── Code Blocks ────────────────────────────────────────── */ +pre { + background: var(--bg-subtle); + border: 1px solid var(--border); + padding: 1.3rem 1.5rem; + overflow-x: auto; + border-radius: var(--radius); + margin: 1.8rem 0; + position: relative; +} + +pre::before { + content: attr(data-lang); + position: absolute; + top: 0.6rem; + right: 0.8rem; + font-family: var(--mono); + font-size: 0.62rem; + letter-spacing: 0.1em; + text-transform: uppercase; + color: var(--text-muted); +} + +pre code { + background: none; + border: none; + padding: 0; + color: #2c2c28; + font-size: 0.85rem; + line-height: 1.7; +} + +/* ─── Prism.js overrides ─────────────────────────────────── */ +pre[class*="language-"], +code[class*="language-"] { + font-family: var(--mono) !important; + font-size: 0.85rem !important; + background: var(--bg-subtle) !important; + color: #2c2c28 !important; + text-shadow: none !important; +} + +pre[class*="language-"] { + border: 1px solid var(--border) !important; + border-radius: var(--radius) !important; + padding: 1.3rem 1.5rem !important; + margin: 1.8rem 0 !important; + box-shadow: none !important; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: var(--text-muted); + font-style: italic; +} +.token.keyword { + color: var(--text); + font-weight: 600; +} +.token.string { + color: var(--accent-warm); +} +.token.function { + color: #2c2c28; + font-style: italic; +} +.token.number, +.token.boolean { + color: var(--text-dim); +} +.token.operator, +.token.punctuation { + color: var(--text-muted); +} +.token.class-name, +.token.builtin { + color: var(--text); + font-weight: 600; +} +.token.property { + color: var(--text-dim); +} + +/* ─── Images ─────────────────────────────────────────────── */ +img { + max-width: 100%; + height: auto; + display: block; + margin: 2.5rem auto; + border-radius: var(--radius); +} + +figure { + margin: 2.5rem 0; +} + +figcaption { + font-family: var(--mono); + font-size: 0.7rem; + color: var(--text-muted); + text-align: center; + margin-top: 0.65rem; + letter-spacing: 0.04em; +} + +/* ─── Aside / Callout ────────────────────────────────────── */ +aside, +.note, +.callout { + background: var(--bg-subtle); + border: 1px solid var(--border); + border-radius: var(--radius); + padding: 1rem 1.2rem; + margin: 1.8rem 0; + font-size: 0.9rem; + color: var(--text-dim); +} + +aside strong, +.callout strong { + font-family: var(--mono); + font-size: 0.67rem; + letter-spacing: 0.09em; + text-transform: uppercase; + color: var(--text); + display: block; + margin-bottom: 0.35rem; +} + +/* ─── Tags ───────────────────────────────────────────────── */ +.tag { + display: inline-block; + font-family: var(--mono); + font-size: 0.65rem; + letter-spacing: 0.08em; + text-transform: uppercase; + padding: 0.22rem 0.55rem; + border: 1px solid var(--border); + border-radius: 2px; + color: var(--text-dim); + margin-right: 0.35rem; + text-decoration: none; + transition: all var(--transition); +} + +.tag:hover { + background: var(--text); + color: var(--bg); + border-color: var(--text); +} + +/* ─── Footer ─────────────────────────────────────────────── */ +footer { + margin-top: 5rem; + padding-top: 2rem; + border-top: 1px solid var(--border); + font-family: var(--mono); + font-size: 0.7rem; + letter-spacing: 0.04em; + color: var(--text-muted); + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: 1rem; +} + +main.article footer { + padding-left: 0; + padding-right: 0; + max-width: none; +} + +/* ─── Selection ──────────────────────────────────────────── */ +::selection { + background: #e8e8c8; + color: var(--text); +} + +/* ─── Scrollbar ──────────────────────────────────────────── */ +::-webkit-scrollbar { + width: 5px; + height: 5px; +} +::-webkit-scrollbar-track { + background: var(--bg); +} +::-webkit-scrollbar-thumb { + background: var(--border); + border-radius: 3px; +} +::-webkit-scrollbar-thumb:hover { + background: var(--text-muted); +} + +/* ─── Abbr ───────────────────────────────────────────────── */ +abbr[title] { + border-bottom: 1px dotted var(--text-muted); + cursor: help; + text-decoration: none; +} + +/* ─── Responsive ─────────────────────────────────────────── */ +@media (max-width: 700px) { + main.article { + padding: 2rem 1.3rem 4rem; + font-size: 17px; + } + body > * { + padding-left: 1.3rem; + padding-right: 1.3rem; + } + h1 { + font-size: 1.85rem; + } + h2 { + font-size: 1rem; + } + nav ul { + gap: 1.2rem; + } + nav { + flex-wrap: wrap; + gap: 0.8rem; + } + footer { + flex-direction: column; + text-align: center; + } + .project-meta { + flex-direction: column; + align-items: flex-start; + } + .project-link { + margin-left: 0; + } +} + +/* ─── Focus Accessibility ────────────────────────────────── */ +:focus-visible { + outline: 2px solid var(--text); + outline-offset: 3px; + border-radius: var(--radius); +} -- cgit v1.3.1