You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
4
+
5
+
**Goal:** Refactor the visual theme so light mode uses light surfaces consistently, dark mode uses dark surfaces consistently, and hero/section styling follows semantic classes.
6
+
7
+
**Architecture:** Centralize the palette and section semantics in `src/styles/global.css`, then switch high-signal layouts to `section-hero`, `section-tint`, and `section-inverse`. Keep old styling behavior out of content sections so theme changes happen through a small set of reusable primitives.
8
+
9
+
**Tech Stack:** Astro, Tailwind utilities, global CSS custom properties
10
+
11
+
---
12
+
13
+
### Task 1: Add semantic section primitives
14
+
15
+
**Files:**
16
+
- Modify: `src/styles/global.css`
17
+
18
+
-[ ] Define light-mode and dark-mode surface tokens for `primary`, `card`, `tint`, `hero`, `inverse`, and code surfaces.
19
+
-[ ] Add semantic section classes for `section-default`, `section-tint`, `section-hero`, and `section-inverse`.
20
+
-[ ] Tighten typography tokens for display headings, prose contrast, and card surfaces.
21
+
22
+
### Task 2: Move shared layout pieces to semantic sections
23
+
24
+
**Files:**
25
+
- Modify: `src/components/Footer.astro`
26
+
- Modify: `src/pages/index.astro`
27
+
- Modify: `src/pages/en/index.astro`
28
+
29
+
-[ ] Keep the footer as the primary `section-inverse` surface.
30
+
-[ ] Change the homepage emphasis strip from a dark block to a tinted block.
31
+
-[ ] Keep the rest of the homepage hierarchy aligned with the new section semantics.
32
+
33
+
### Task 3: Migrate page hero sections
34
+
35
+
**Files:**
36
+
- Modify: `src/pages/**/*.astro`
37
+
38
+
-[ ] Replace hero uses of the old `section-dark` class with `section-hero`.
39
+
-[ ] Leave content sections on default or tinted surfaces.
40
+
-[ ] Verify that hero text utilities still inherit the right local CSS variables.
41
+
42
+
### Task 4: Verify
43
+
44
+
**Files:**
45
+
- Modify: none
46
+
47
+
-[ ] Run `npm run build`.
48
+
-[ ] Review the homepage, intro page, and one syntax page in both light and dark mode.
49
+
-[ ] Confirm no large dark sections remain in light mode outside explicitly inverse areas.
0 commit comments