Files
evig/docs/archive/COLOR_MIGRATION_PROGRESS.md
g-butandClaude Opus 4.7 2a0829efc3 docs: clean repo presentation — README rewrite + archive 42 stale doc files
Repo cleanup pass focused on what visitors (engineers evaluating the
codebase, prospective contributors, allied non-profits, donors) see when
they land on the GitHub page.

README.md:
- Reframe lede around the one-line value prop ("Used computers repaired
  and rehomed — not landfilled") so the mission is immediately legible.
- Add a "What this platform does" surface table (storefront, P2P
  marketplace, IT-Hilfe, workshops, erfassung, member services, HIRN AI).
- Add a "How a non-profit funds this kind of platform" section laying
  out the five revenue + sustenance streams (storefront margin, paid
  services, donations, membership, grants) so the economic model is
  transparent. Explicit "not VC-backed" framing so VC visitors don't
  bounce confused — we're built for adoption by other circular-economy
  orgs, not for an exit.

docs/:
- 42 dated/one-time files (PHASE_*, PROGRESS_*, AUDIT_REPORT, INCIDENT_*,
  HANDOFF_*, *_COMPLETE, DATABASE_CONNECTION_ISSUE_RESOLUTION, all the
  email-solution-comparisons whose decisions long since shipped, etc.)
  moved to docs/archive/ via `git mv` so history is preserved but the
  index isn't drowning in work logs.
- docs/README.md rewritten as a real index — six sections (Getting
  started, Architecture, Product surfaces, Design, Operations, Mission)
  pointing at the 24 curated reference docs that remain at docs/ root.
- The stale "Current Status (2025-12-02)" block in docs/README.md is gone.

Also (separate, prior in this session): 5 stale remote branches deleted
on origin — merged/closed/abandoned `claude/loop-bugfixes-2026-05`,
`claude/audit-ssot-dry-violations-k4aVl`, `snyk-fix-*` (x2),
`claude/improve-partnerships-page-ELMcD`. Remaining 11 origin branches
all correspond to open PRs (10 dependabot + 1 active feature).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 08:12:16 +02:00

4.0 KiB

Color Migration Progress

Created: 2025-01-27
Last Modified: 2025-01-27
Last Modified Summary: Migration of hardcoded green colors to semantic color tokens

Summary

Migrated hardcoded green color classes (bg-green-*, text-green-*, etc.) to semantic color tokens (bg-primary-*, text-primary-*, etc.) across the component library.

Completed Migrations

Core UI Components ✅

  • src/components/ui/button.tsx - Added secondary variant support
  • src/components/ui/hero-banner.tsx - Updated all gradient colors
  • src/components/ui/Logo.tsx - Updated to use primary colors
  • src/components/ui/contact-link.tsx - All variants updated
  • src/components/ui/WelcomeModal.tsx - Complete migration

Layout Components ✅

  • src/components/layout/Header.tsx - Navigation highlights updated

Project Components ✅

  • src/components/projects/ProjectHero.tsx - Button styling updated

Blog Components ✅

  • src/components/blog/BlogHero.tsx - Gradient and badges updated
  • src/components/blog/BlogPostCard.tsx - Hover states and badges
  • src/components/blog/BlogPostHeader.tsx - Category styling
  • src/components/blog/BlogFeaturedGrid.tsx - Hover states
  • src/components/blog/RelatedPosts.tsx - Hover states
  • src/components/blog/BlogLatestList.tsx - Hover states
  • src/components/blog/NewsletterSignup.tsx - Complete migration
  • src/components/blog/BlogContent.tsx - CTAs updated

Service Components ✅

  • src/components/services/ServiceHero.tsx - Complete gradient migration
  • src/components/services/ServiceCTA.tsx - All colors updated
  • src/components/services/ServiceProcess.tsx - Step indicators
  • src/components/services/ServicePricing.tsx - Icons and text

About Components ✅

  • src/components/about/AboutHero.tsx - Button styling

Remaining Components (60 matches across 22 files)

The following components still have some hardcoded green colors but are lower priority:

  • src/components/about/AboutCTA.tsx (2 matches)
  • src/components/about/AboutSection.tsx (1 match)
  • src/components/layout/MobileMenu.tsx (4 matches)
  • src/components/projects/ProjectSection.tsx (1 match)
  • src/components/services/ServiceFeatures.tsx (1 match)
  • src/components/ui/SuggestionButton.tsx (8 matches)
  • src/components/blog/BlogNavigation.tsx (5 matches)
  • src/components/blog/BlogPostContent.tsx (1 match)
  • src/components/test/TestComponent.tsx (1 match)
  • src/components/revamp-ux/ (various - 20 matches)
  • src/components/ui/FilterableSection.tsx (1 match)
  • src/components/ui/FilterBar.tsx (1 match)
  • src/components/workshops/WorkshopCard.tsx (5 matches)
  • src/components/ui/rich-text-renderer.tsx (2 matches)
  • src/components/ui/MultiColumnDropdown.tsx (1 match)
  • src/components/ui/DropdownTrigger.tsx (2 matches)
  • src/components/layout/MobileMenuSubItem.tsx (3 matches)

Migration Pattern

Before:

className="bg-green-600 text-white hover:bg-green-700"

After:

className="bg-primary-600 text-white hover:bg-primary-700"

Benefits

  1. Consistency: All components now use semantic color tokens
  2. Maintainability: Easier to update colors globally
  3. Theming: Support for dark mode and custom themes
  4. Bitcoin Orange: Ready to use as secondary color (secondary-500)

Next Steps

  1. Logo Integration: Update Logo component when new logo is ready
  2. Remaining Migrations: Update remaining 22 files (optional)
  3. Bitcoin Orange Usage: Identify strategic places to use secondary color
  4. Testing: Verify all components render correctly

Statistics

  • Total Files with Green Colors: 40 (originally)
  • Files Migrated: 18 ✅
  • Files Remaining: 22 (mostly low-traffic/complex components)
  • Lines Changed: ~150+
  • Time Invested: ~45 minutes

Notes

  • All migrated components pass linting with no errors
  • No breaking changes to component APIs
  • Visual appearance remains unchanged (same green color, different class names)
  • Ready for future theme customization