docs: track project rules (AGENTS.md) + accent-swappable UI note

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
cesnimda
2026-07-01 00:33:19 +02:00
parent 94529df775
commit d38bcf766c
2 changed files with 74 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
\# Project Rules
\## Code Quality
\- Prefer readability over cleverness.
\- Keep methods under \~40 lines where practical.
\- Avoid duplicated logic.
\- Follow SOLID principles.
\- Keep files focused on a single responsibility.
\## Safety
\- Never commit secrets.
\- Never disable tests to make them pass.
\- Never remove functionality without explaining why.
\## Testing
Every change must include:
\- Unit tests where appropriate.
\- Integration tests for API changes.
\- Build verification.
\## Architecture
Prefer:
\- Dependency Injection
\- Composition over inheritance
\- Async APIs
\- Immutable models where practical
\## Documentation
Update documentation whenever public behaviour changes.
+6
View File
@@ -68,6 +68,12 @@ Defined once in `src/index.css`; Tailwind theme references them so `bg-backgroun
} }
``` ```
> **Accent is swappable by design.** The accent lives in exactly one token (`--primary`,
> plus its dark variant). Changing the brand color = editing those two lines. This also
> makes a **future user-facing accent picker** cheap: store a chosen hue on the user (or
> in `localStorage`) and write `--primary`/`--ring` at runtime. Decision (2026-06-30):
> ship with **Indigo `#5b5bf0`**; leave the picker as a documented future enhancement.
### Proposed palette (for sign-off) ### Proposed palette (for sign-off)
| Token | Light | Dark | Use | | Token | Light | Dark | Use |