Pinned 2026 toolchains (Go 1.26, Rust 1.98/edition 2024, Python 3.14 + uv, Node 24, Zig 0.16, NixOS 26.05), postgres 18 / mongo 8, lockfiles built from, non-root runtimes, .dockerignore, per-project LICENSE, READMEs with the git.devai.io clone line, checkout@v7 CI. Security fixes in the legacy Rust APIs (any-password login, self-assigned admin, hard-coded JWT secret), JWT alg/exp/sub enforcement across the blog series, safe markdown links in the frontends, and many smaller bugs — every project was built, run and exercised end to end. Adds scripts/publish.sh + a CI publish job that splits every folder into its own repo at git.devai.io/templates/<folder>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01128fhuZbgivaSJvtMf4s1G
87 lines
3.7 KiB
CSS
87 lines
3.7 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--bg: #ffffff;
|
|
--fg: #18181b;
|
|
--soft: #52525b;
|
|
--muted: #71717a;
|
|
--line: #e4e4e7;
|
|
--code: #f4f4f5;
|
|
--accent: #7c3aed;
|
|
--danger: #ef4444;
|
|
font-family: system-ui, sans-serif;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #09090b;
|
|
--fg: #f4f4f5;
|
|
--soft: #a1a1aa;
|
|
--line: #27272a;
|
|
--code: #18181b;
|
|
--accent: #a78bfa;
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
|
|
button { font: inherit; cursor: pointer; }
|
|
|
|
header { border-bottom: 1px solid var(--line); }
|
|
.bar, main { max-width: 42rem; margin: 0 auto; padding: 1.25rem 1.5rem; }
|
|
.bar { display: flex; align-items: center; justify-content: space-between; }
|
|
.brand { color: inherit; font-weight: 600; text-decoration: none; }
|
|
nav { display: flex; gap: 1rem; font-size: 0.875rem; }
|
|
nav a, nav button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; }
|
|
nav a:hover, nav button:hover { color: var(--fg); }
|
|
main { padding-block: 2.5rem; }
|
|
|
|
h1 { margin: 0.25rem 0 0; font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; }
|
|
time { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
|
|
.muted { color: var(--muted); font-size: 0.875rem; }
|
|
.error { color: var(--danger); font-size: 0.875rem; }
|
|
.muted:empty, .error:empty { display: none; }
|
|
|
|
.posts { list-style: none; margin: 0; padding: 0; }
|
|
.posts li + li { margin-top: 2.5rem; }
|
|
.posts h2 { margin: 0.25rem 0 0; font-size: 1.25rem; font-weight: 600; }
|
|
.posts h2 a { color: inherit; text-decoration: none; }
|
|
.posts h2 a:hover { color: var(--accent); }
|
|
.posts p { margin: 0.5rem 0 0; color: var(--soft); font-size: 0.875rem; line-height: 1.6; }
|
|
|
|
.actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.875rem; }
|
|
.actions a { color: var(--accent); }
|
|
.actions button { color: var(--danger); background: none; border: 0; padding: 0; }
|
|
|
|
.prose { margin-top: 1.5rem; color: var(--soft); line-height: 1.7; }
|
|
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 2rem 0 0.75rem; color: var(--fg); font-weight: 600; }
|
|
.prose h1 { font-size: 1.5rem; }
|
|
.prose h2 { font-size: 1.25rem; }
|
|
.prose h3 { font-size: 1.125rem; }
|
|
.prose h4 { font-size: 1rem; }
|
|
.prose a { color: var(--accent); text-underline-offset: 2px; }
|
|
.prose ul { padding-left: 1.5rem; }
|
|
.prose blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--muted); font-style: italic; }
|
|
.prose pre { padding: 1rem; overflow-x: auto; background: var(--code); border: 1px solid var(--line); border-radius: 0.5rem; }
|
|
.prose code { font-family: ui-monospace, monospace; font-size: 0.875em; }
|
|
.prose :not(pre) > code { padding: 0.1rem 0.35rem; background: var(--code); border-radius: 0.25rem; }
|
|
|
|
.narrow { max-width: 24rem; margin: 0 auto; }
|
|
form { display: grid; gap: 1rem; margin-top: 1.5rem; }
|
|
input:not([type="checkbox"]), textarea {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
font-size: 0.875rem;
|
|
border: 1px solid var(--line);
|
|
border-radius: 0.5rem;
|
|
}
|
|
textarea { font-family: ui-monospace, monospace; resize: vertical; }
|
|
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
|
|
.row { display: flex; align-items: center; justify-content: space-between; }
|
|
.toggle { display: flex; align-items: center; gap: 0.5rem; color: var(--soft); font-size: 0.875rem; cursor: pointer; }
|
|
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--accent); }
|
|
.primary { padding: 0.5rem 1rem; color: #fff; background: #7c3aed; border: 0; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; }
|
|
.primary:hover { background: #8b5cf6; }
|
|
.primary:disabled { opacity: 0.5; }
|