{"id":51204739,"url":"https://github.com/kpab/astro-keel","last_synced_at":"2026-06-28T02:33:19.371Z","repository":{"id":367642061,"uuid":"1281661212","full_name":"kpab/astro-keel","owner":"kpab","description":"Astro Keel — a minimal, neutral, and modern portfolio and blog theme for Astro 7, with a one-line accent color, dark mode, tags, RSS, and Shiki dual themes.","archived":false,"fork":false,"pushed_at":"2026-06-28T00:33:11.000Z","size":6075,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-28T02:33:17.905Z","etag":null,"topics":["astro","astro-blog","astro-theme","blog","dark-mode","mdx","minimal","portfolio","rss","theme","typescript"],"latest_commit_sha":null,"homepage":"https://kpab.github.io/astro-keel/","language":"Astro","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kpab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-26T19:37:00.000Z","updated_at":"2026-06-28T00:33:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kpab/astro-keel","commit_stats":null,"previous_names":["kpab/astro-keel"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kpab/astro-keel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpab%2Fastro-keel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpab%2Fastro-keel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpab%2Fastro-keel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpab%2Fastro-keel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpab","download_url":"https://codeload.github.com/kpab/astro-keel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpab%2Fastro-keel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34875357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","astro-blog","astro-theme","blog","dark-mode","mdx","minimal","portfolio","rss","theme","typescript"],"created_at":"2026-06-28T02:33:17.071Z","updated_at":"2026-06-28T02:33:19.366Z","avatar_url":"https://github.com/kpab.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# ⌁ Astro Keel\n\n**A minimal, neutral, and modern portfolio + blog theme for Astro.**\n\nA calm neutral base, a single configurable accent color, generous whitespace, and clean editorial typography — built on Astro 7 with Content Collections, tags, an RSS feed, and first-class dark mode.\n\n\u003cbr /\u003e\n\n[![Live demo](https://img.shields.io/badge/Live_demo-↗-1a1a1a?style=for-the-badge)](https://kpab.github.io/astro-keel/)\n\n\u003cbr /\u003e\n\n[![Deploy](https://img.shields.io/github/actions/workflow/status/kpab/astro-keel/deploy.yml?branch=main\u0026style=flat-square\u0026label=deploy)](https://github.com/kpab/astro-keel/actions/workflows/deploy.yml)\n[![License](https://img.shields.io/github/license/kpab/astro-keel?style=flat-square\u0026color=1a1a1a)](./LICENSE)\n[![Stars](https://img.shields.io/github/stars/kpab/astro-keel?style=flat-square\u0026color=1a1a1a)](https://github.com/kpab/astro-keel/stargazers)\n\u003cbr /\u003e\n[![Astro](https://img.shields.io/badge/Astro-7-BC52EE?style=flat-square\u0026logo=astro\u0026logoColor=white)](https://astro.build)\n[![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=flat-square\u0026logo=typescript\u0026logoColor=white)](https://www.typescriptlang.org)\n[![Node.js](https://img.shields.io/badge/Node.js-22+-339933?style=flat-square\u0026logo=nodedotjs\u0026logoColor=white)](https://nodejs.org)\n[![MDX](https://img.shields.io/badge/MDX-1B1F24?style=flat-square\u0026logo=mdx\u0026logoColor=white)](https://mdxjs.com)\n\n\u003c/div\u003e\n\n\u003e **Keel** — the structural backbone of a ship. The name reflects the design intent: stripped of ornament, all structure and spine.\n\n## Features\n\n- **Portfolio + blog** — dedicated `works` and `blog` content collections with individual pages.\n- **One-line accent color** — retune the whole theme by changing a single CSS variable (`--color-accent`).\n- **Light + dark mode** — respects `prefers-color-scheme` and remembers a manual toggle (no flash on load).\n- **Self-hosted type** — Fraunces (display), Public Sans (body), and JetBrains Mono (code) via `@fontsource`, no external font CDN.\n- **Tags** — per-tag archive pages at `/blog/tags/[tag]`.\n- **RSS feed** — generated at `/rss.xml` with `@astrojs/rss`.\n- **Syntax highlighting** — Shiki dual themes (light/dark) wired to the active color scheme.\n- **SEO-ready** — canonical URLs, Open Graph, Twitter cards, and a sitemap out of the box.\n- **Responsive \u0026 accessible** — fluid type, hairline structure, visible focus rings.\n- **One-click deploy** — bundled GitHub Pages workflow; or ship the static `dist/` to Cloudflare Pages, Vercel, Netlify, or any static host.\n\n## Tech stack\n\nAstro 7 · TypeScript · Content Collections (Content Layer API) · MDX · `@astrojs/sitemap` · `@astrojs/rss` · Shiki. Requires **Node.js 22+**.\n\n## Quick start\n\n```sh\nnpm install\nnpm run dev      # start the dev server at http://localhost:4321\nnpm run build    # build the static site to ./dist\nnpm run preview  # preview the production build\n```\n\n## Configuration\n\nSet your deployed URL in `astro.config.mjs` — it powers canonical links, the sitemap, and RSS:\n\n```js\nexport default defineConfig({\n  site: 'https://your-domain.com',\n  // ...\n});\n```\n\n### Base path\n\nInternal links and assets are routed through a `withBase()` helper (`src/lib/url.ts`), so the theme works whether it's served from a domain root or a subpath. Serving from a subpath — like a GitHub Pages **project site** at `https://\u003cuser\u003e.github.io/\u003crepo\u003e/` — just needs `site` + `base`:\n\n```js\nexport default defineConfig({\n  site: 'https://\u003cuser\u003e.github.io',\n  base: '/\u003crepo\u003e',\n});\n```\n\nFor a custom domain or a `\u003cuser\u003e.github.io` **root site**, omit `base` (or set it to `'/'`).\n\n## Customization\n\n### Accent color\n\nChange one line in `src/styles/global.css`. Hover and soft variants derive automatically:\n\n```css\n:root {\n  --color-accent: oklch(0.54 0.14 35); /* ← your brand color */\n}\n```\n\n### Fonts\n\nFont families are CSS variables (`--font-display`, `--font-body`, `--font-mono`) in `src/styles/global.css`. Swap a face by installing another `@fontsource` package, importing it in `src/layouts/BaseLayout.astro`, and updating the variable.\n\n### Dark mode\n\nNeutral palettes for both schemes live in `src/styles/global.css` under `:root`, `[data-theme='light']`, and `[data-theme='dark']`. The toggle in the header persists the choice to `localStorage`.\n\n## Authoring content\n\nAdd Markdown/MDX files under `src/content/`:\n\n- `src/content/works/*.md` — portfolio entries\n- `src/content/blog/*.md` — blog posts\n\n### Works frontmatter\n\n```yaml\n---\ntitle: Project name\ndescription: One-line summary.\ntech: [\"Astro\", \"TypeScript\"]\nlink: https://example.com        # optional — live link\nrepo: https://github.com/...     # optional — source\nthumbnail: ./cover.png           # optional — relative image\norder: 1                         # optional — manual sort\npublishDate: 2026-06-01\n---\n```\n\n### Blog frontmatter\n\n```yaml\n---\ntitle: Post title\npublishDate: 2026-06-01\ndescription: One-line summary for listings, SEO, and RSS.\ntags: [\"design\", \"astro\"]\ndraft: false                     # true hides it from build output\nheroImage: ./hero.png            # optional — relative image\n---\n```\n\n## Project structure\n\n```\nsrc/\n  content/           # works/ and blog/ Markdown \u0026 MDX entries\n  content.config.ts  # collection schemas (Content Layer API)\n  layouts/           # BaseLayout (head, nav, theme toggle)\n  pages/             # routes: /, /about, /works, /blog, tags, rss.xml\n  styles/            # global.css design tokens\nastro.config.mjs     # site URL, integrations, Shiki config\n```\n\n## Deployment\n\n### GitHub Pages\n\nA workflow at `.github/workflows/deploy.yml` builds the site and publishes it on every push to `main`.\n\n1. Set `site` and `base` in `astro.config.mjs` to match your repository (see [Base path](#base-path)).\n2. In the repository, go to **Settings → Pages** and set **Source** to **GitHub Actions**.\n3. Push to `main` (or run the workflow manually from the **Actions** tab). Your site goes live at `https://\u003cuser\u003e.github.io/\u003crepo\u003e/`.\n\n### Other static hosts\n\n`npm run build` emits a static `dist/` that deploys as-is to Cloudflare Pages, Vercel, Netlify, or any static host. Drop `base` from `astro.config.mjs` when serving from a domain root.\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpab%2Fastro-keel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpab%2Fastro-keel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpab%2Fastro-keel/lists"}