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 +- `