Skip to content

Commit dd4f1c6

Browse files
ArtFlagclaude
andcommitted
style: visual refresh with semantic tokens and UI polish
- Introduce semantic CSS variables (--color-primary, --bg-page, --text-base, etc.) replacing opaque --color1..6 naming - Warm up light mode background from cold gray to off-white (#f0eeea) - Add Inter + Lora fonts; tighten heading sizes and letter-spacing - Navbar shadow, active sidebar indicator, ingredient list accent border - Improved dark mode contrast: brighter text, fixed table-of-contents color - Search modal: dark mode bg hierarchy, themed input/placeholder colors - Transparent scrollbar track in both modes - Exclude autogenerated category pages from search index - Add CLAUDE.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4780851 commit dd4f1c6

4 files changed

Lines changed: 270 additions & 132 deletions

File tree

CLAUDE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Commands
6+
7+
```bash
8+
yarn install # Install dependencies
9+
yarn start # Dev server with live reload
10+
yarn build # Generate static site into build/
11+
yarn serve # Serve the built site locally
12+
yarn typecheck # Run TypeScript type checking
13+
```
14+
15+
## Architecture
16+
17+
This is a [Docusaurus](https://docusaurus.io/) site that serves as a personal recipe book, deployed to GitHub Pages.
18+
19+
- `docs/` — All recipe content as Markdown/MDX files, organized into category folders (`sweet/`, `savoury/`, `pastry/`, `cocktails/`)
20+
- `sidebars.ts` — Defines the sidebar navigation structure; new category directories must be registered here
21+
- `src/components/` — Custom React components used inside MDX files (e.g., `<BakingStep />`, `<Percent />`)
22+
- `src/css/` — Custom CSS
23+
- `docusaurus.config.ts` — Site-wide configuration including plugins and theme
24+
- Search is provided by `@cmfcmf/docusaurus-search-local` (local, no Algolia key needed in dev)
25+
26+
## Recipe Content Conventions
27+
28+
Each recipe file must have frontmatter with `title` and `tags`. Tags must include at least one for the **country of origin** and one for the **dish type**.
29+
30+
```md
31+
---
32+
title: My Recipe
33+
tags: ["french", "biscuits"]
34+
---
35+
```
36+
37+
Ingredients follow the format `ingredient name: quantity (unit)` as a bullet list.
38+
39+
Steps use numbered lists with `1.` only (never increment the number manually).
40+
41+
Numbered list items can include custom MDX components like `<BakingStep />`.

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const config: Config = {
179179
{
180180
// see https://github.com/cmfcmf/docusaurus-search-local?tab=readme-ov-file#usage
181181
indexDocs: true,
182-
indexDocSidebarParentCategories: 999,
182+
indexDocSidebarParentCategories: 0,
183183
includeParentCategoriesInPageTitle: false,
184184
indexBlog: false,
185185
indexPages: false,

0 commit comments

Comments
 (0)