Files
NomadArch/tasks/done/041-tailwind-theme-hooks.md
Gemini AI 157449a9ad restore: recover deleted documentation, CI/CD, and infrastructure files
Restored from origin/main (b4663fb):
- .github/ workflows and issue templates
- .gitignore (proper exclusions)
- .opencode/agent/web_developer.md
- AGENTS.md, BUILD.md, PROGRESS.md
- dev-docs/ (9 architecture/implementation docs)
- docs/screenshots/ (4 UI screenshots)
- images/ (CodeNomad icons)
- package-lock.json (dependency lockfile)
- tasks/ (25+ project task files)

Also restored original source files that were modified:
- packages/ui/src/App.tsx
- packages/ui/src/lib/logger.ts
- packages/ui/src/stores/instances.ts
- packages/server/src/server/routes/workspaces.ts
- packages/server/src/workspaces/manager.ts
- packages/server/src/workspaces/runtime.ts
- packages/server/package.json

Kept new additions:
- Install-*.bat/.sh (enhanced installers)
- Launch-*.bat/.sh (new launchers)
- README.md (SEO optimized with GLM 4.7)
2025-12-23 13:03:48 +04:00

36 lines
1.3 KiB
Markdown

# Task 041 - Tailwind Theme Hooks
## Goal
Establish the base Tailwind configuration needed for theming work without changing current visuals.
## Prerequisites
- Installed project dependencies (`npm install`).
- Ability to run the renderer locally (`npm run dev`).
## Acceptance Criteria
- [ ] `tailwind.config.js` uses `darkMode: ["class", '[data-theme="dark"]']`.
- [ ] `theme.extend` contains empty objects for upcoming tokens: `colors`, `spacing`, `fontSize`, `borderRadius`, and `boxShadow`.
- [ ] No other configuration changes are introduced.
- [ ] App builds and renders exactly as before (no visual diffs expected).
## Steps
1. Update `tailwind.config.js` with the new `darkMode` array value.
2. Add empty extension objects for `colors`, `spacing`, `fontSize`, `borderRadius`, and `boxShadow` under `theme.extend`.
3. Double-check that all other keys remain untouched.
4. Save the file.
## Testing Checklist
- [ ] Run `npm run dev` and ensure the renderer starts successfully.
- [ ] Smoke test the UI in light and dark mode to confirm no visual regressions.
## Dependencies
- None.
## Estimated Time
0.25 hours
## Notes
- Create a branch (e.g., `feature/task-041-tailwind-theme-hooks`).
- Commit message suggestion: `chore: prep tailwind for theming`.
- Include before/after screenshots only if an unexpected visual change occurs.