Welcome to Matcha — a minimal Astro blog theme blending Material 3 Expressive motion with an OKLCH hue-driven palette.
Highlights
- Single-file configuration in
src/site.config.tswith separated TypeScript definitions insrc/types/config.ts. - OKLCH Hue Theming: Change
theme.hueto a single number (e.g.137for Uji Matcha,255for Indigo,25for Terracotta) and both the site and Giscus comment themes update together. - Material 3 Expressive Motion: Variable font hover morphing (
Roboto Flex&Fraunces), spring-based shape transitions, radial dark-mode ripples, and staggered 4-band route curtains. - Command Palette (
⌘K): Instant keyboard search across posts, tags, pages, and quick actions.
Expressive Typography Components
Matcha ships four reusable variable-font components under src/components/expressive/. Hover over each element below to feel the spring-driven axis morphing:
Craft expressive writing with Matcha.
Use ExpressiveHighlight inline to softly call out key phrases without breaking reading rhythm.
import ExpressiveFlex from "@/components/expressive/ExpressiveFlex.astro";
import ExpressiveItalic from "@/components/expressive/ExpressiveItalic.astro";
import ExpressiveBadge from "@/components/expressive/ExpressiveBadge.astro";
import ExpressiveHighlight from "@/components/expressive/ExpressiveHighlight.astro";
<ExpressiveFlex>Craft</ExpressiveFlex>
<ExpressiveItalic>expressive</ExpressiveItalic>
<ExpressiveBadge>Matcha</ExpressiveBadge>
<ExpressiveHighlight>inline highlight</ExpressiveHighlight>
Inline Navigation Components
Embed rich link cards directly inside MDX articles using NavigationTile (for any route or external URL) and ArticleNavigationTile (automatically pulls title and excerpt from another blog post by postId):
import NavigationTile from "@/components/inlines/NavigationTile.astro";
import ArticleNavigationTile from "@/components/inlines/ArticleNavigationTile.astro";
<NavigationTile
title="Explore Matcha"
subtitle="Browse all top-level pages and social links in one place."
href="/explore"
leadingIcon="mdi:compass-outline"
/>
<ArticleNavigationTile postId="markdown-style-guide" />
Quick Configuration
Open src/site.config.ts and customize your site metadata, author profile, navigation, and palette:
export const siteConfig = defineSiteConfig({
site: {
title: "Matcha",
description: "Just share something interesting.",
lang: "zh-CN",
dateLocale: "zh-CN",
},
theme: {
defaultTheme: "system",
hue: 137,
},
});
Making It Yours
Every page in src/pages/ is plain Astro or MDX. Feel free to edit src/pages/index.astro, src/pages/about.mdx, or add new routes and register them in siteConfig.navigation.routes.