Skip to content

Commit 5c49ceb

Browse files
Card: default theme to auto and regenerate gallery
Flip the action's `theme` default from `dark` to `auto` so a single SVG adapts to the viewer's `prefers-color-scheme` instead of always rendering heavy on light-mode READMEs. Re-render all 10 example SVGs through the same renderer in auto mode so the gallery stops shipping dark-only cards. Tighten the main README's card intro so it reads as part of the doc rather than a "New:" banner. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 02d3a6e commit 5c49ceb

14 files changed

Lines changed: 19 additions & 21 deletions

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@
1717

1818
---
1919

20-
## :sparkles: New: CodeFlow Card — auto-updating repo stats SVG
20+
## CodeFlow Card
2121

22-
A one-line GitHub Action that drops a self-updating card on your README, recomputed on every merge by the same analyzer as the web app. Five styles, accent presets, opt-in PR receipts, and a privacy mode for public repos.
22+
A GitHub Action that drops an auto-updating SVG card on your README, recomputed on every merge by the same analyzer as the web app. Five styles, accent presets, opt-in PR receipts, and a privacy mode for public repos. The card adapts to the viewer's light/dark theme automatically.
2323

2424
<p align="center">
25-
<img src="./card/examples/compact.svg" alt="compact style" width="100%" />
26-
<img src="./card/examples/hero.svg" alt="hero style" width="100%" />
25+
<img src="./card/examples/compact.svg" alt="CodeFlow card — compact style" width="100%" />
2726
</p>
2827

29-
[**See all 10 style variants and full setup**](#card-style-gallery)
28+
See [card/](./card/) for setup, or jump to the [style gallery](#card-style-gallery) below.
3029

3130
---
3231

@@ -85,7 +84,7 @@ Color files by commit frequency to see which parts of your codebase are most act
8584
Paste a PR URL to see exactly which files it affects and calculate the blast radius of proposed changes.
8685

8786
### CodeFlow Card (GitHub Action)
88-
Auto-updating SVG card on your README — health grade, scale, fragility, hidden costs — recomputed every merge. Optional thermal-receipt PR comments. See [card/](./card/).
87+
Health grade, scale, fragility, and hidden costs as a self-updating SVG on your README — recomputed every merge, with optional thermal-receipt PR comments. See [card/](./card/).
8988

9089
### Markdown & Wiki-Link Graph
9190
Point CodeFlow at an Obsidian vault or any markdown directory to see notes as a connected graph. Both `[[wiki-links]]` and `[text](./relative.md)` links become edges; each note is a `note`-layer node (distinct color) with a `dependencies[]` array in the JSON export.

card/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- uses: braedonsaunders/codeflow/card@v1
2929
with:
30-
theme: dark
3130
receipts: false # set true to post merged-PR comments
3231
```
3332
@@ -45,7 +44,7 @@ The Action commits the rendered SVG to `.github/codeflow-card.svg` (overwriting
4544
|---|---|---|
4645
| `output` | `.github/codeflow-card.svg` | Path to write the card SVG. |
4746
| `state` | `.github/codeflow-card.json` | Path to the JSON history file (sparklines, deltas). |
48-
| `theme` | `dark` | `dark` \| `light` \| `auto`. `auto` emits a single SVG that adapts to the viewer's system theme via `prefers-color-scheme`. |
47+
| `theme` | `auto` | `dark` \| `light` \| `auto`. `auto` emits a single SVG that adapts to the viewer's system theme via `prefers-color-scheme`, so one card looks native on both light and dark READMEs. |
4948
| `accent` | _(none)_ | Preset (`purple` / `teal` / `cyan` / `green` / `pink` / `blue` / `amber` / `red`) or any CSS color (e.g. `#ff6b6b`). |
5049
| `style` | `compact` | `compact` \| `row` \| `minimal` \| `hero` \| `detailed`. |
5150
| `panels` | _(per-style default)_ | `detailed`-only. Comma-separated: `grade`, `scale`, `languages`, `composition`, `top-folders`, `fragility`, `hidden-costs`. |

card/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ inputs:
1414
required: false
1515
default: '.github/codeflow-card.json'
1616
theme:
17-
description: 'Card theme: dark | light | auto. `auto` produces a single SVG that adapts to the viewer''s system theme via `prefers-color-scheme` — one card looks native on light and dark READMEs.'
17+
description: 'Card theme: dark | light | auto. `auto` (default) produces a single SVG that adapts to the viewer''s system theme via `prefers-color-scheme` — one card looks native on light and dark READMEs.'
1818
required: false
19-
default: 'dark'
19+
default: 'auto'
2020
accent:
2121
description: 'Accent color. Either a preset (purple|teal|cyan|green|pink|blue|amber|red) or any CSS color (e.g. #ff6b6b).'
2222
required: false

card/examples/compact-pink.svg

Lines changed: 1 addition & 1 deletion
Loading

card/examples/compact-private.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)