jedmund-svelte/docs
Justin Edmund 45e3556663 feat(admin): complete Task 7 Phase 1 - styling & theming foundation
Implemented a three-layer theming architecture to standardize admin component
styling and prepare for future dark mode support.

**Architecture:**
- Layer 1: Base colors ($gray-80, $red-60) in variables.scss
- Layer 2: Semantic SCSS variables ($input-bg, $error-bg) in variables.scss
- Layer 3: CSS custom properties (--input-bg, --error-bg) in themes.scss

**New semantic variables (~30 added):**
- Inputs & forms (bg, hover, focus, text, border states)
- State messages (error, success, warning with bg/text/border)
- Empty states (text, heading colors)
- Cards, dropdowns, popovers, modals (bg, border, shadow)

**New reusable components:**
- EmptyState.svelte - Supports icon and action snippets
- ErrorMessage.svelte - Supports dismissible errors

**Pages refactored:**
- /admin/projects - Uses EmptyState and ErrorMessage (~30 lines removed)
- /admin/posts - Uses EmptyState and ErrorMessage with icon (~30 lines removed)

**Benefits:**
- 60+ lines of duplicate styles removed (just 2 pages)
- Future dark mode = remap CSS variables in themes.scss only
- Guaranteed visual consistency for errors and empty states
- $unit-based spacing system enforced

**Remaining work (Phase 2):**
- Replace hardcoded colors in ~40 files
- Fix hardcoded spacing in ~20 files
- Expand EmptyState/ErrorMessage to remaining pages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-08 21:28:28 -07:00
..
admin-modernization-plan.md feat(admin): complete Task 7 Phase 1 - styling & theming foundation 2025-10-08 21:28:28 -07:00
autosave-completion-guide.md docs: update autosave completion guide with new API 2025-10-07 16:16:32 -07:00
cloudinary-management.md feat: add Cloudinary audit functionality 2025-06-16 16:56:05 +01:00
task-3-project-form-refactor-plan.md docs: mark Task 3 project form refactor as complete 2025-10-08 00:37:49 -07:00
task-4-list-filters-completion.md docs: mark Task 4 list filtering utilities as complete 2025-10-08 01:06:38 -07:00
task-5-dropdown-primitives-completion.md feat(admin): complete Task 5 dropdown primitives (Option A) 2025-10-08 19:47:09 -07:00
task-6-autosave-store-plan.md feat(admin): add prime() and auto-idle to autosave controller 2025-10-07 07:54:49 -07:00
task-7-styling-harmonization-completion.md feat(admin): complete Task 7 Phase 1 - styling & theming foundation 2025-10-08 21:28:28 -07:00
task-7-styling-harmonization-plan.md feat(admin): complete Task 7 Phase 1 - styling & theming foundation 2025-10-08 21:28:28 -07:00