From a8717733ba16711f517132cfd6a485a0fb21cb7f Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 6 Jan 2026 16:37:21 -0800 Subject: [PATCH] docs: add README and CLAUDE.md, use Pico dropdown for image picker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - README: API docs, usage example, dev tool instructions - CLAUDE.md: architecture notes on Hono JSX, Pico CSS, implementation details - Image picker now uses Pico's
dropdown pattern 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 148 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 78 +++++++++++++++++++++++++ src/dev/app.tsx | 96 ++++++++++++++----------------- 3 files changed, 267 insertions(+), 55 deletions(-) create mode 100644 CLAUDE.md create mode 100644 README.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..fd317df --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,148 @@ +# tiny-sprites + +See [README.md](./README.md) for the API and usage documentation. + +## Architecture + +### Hono JSX (not React) + +This project uses Hono's JSX implementation, not React. Key differences: + +- **Server-side**: `hono/jsx` for the Sprite component (renders to HTML strings) +- **Client-side**: `hono/jsx/dom` for the dev tool UI (renders to DOM) +- **No hooks**: The Sprite component is pure server-side JSX with zero client JavaScript. No `useState`, no `useEffect`. The dev tool uses vanilla JS with a simple mutable `state` object and manual DOM updates via `render()` calls. + +### Dev Tool Styling + +The dev tool uses [Pico CSS](https://picocss.com) for styling: + +- Classless styling - semantic HTML gets styled automatically +- `