diff --git a/AGENTS.md b/AGENTS.md index b167ab1..b344c33 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -60,6 +60,15 @@ Before implementing new features, check: --- +## Development Environment + +This project runs in a **devcontainer** with the following services always available: + +- **PostgreSQL** is available at `localhost:5432`. The `DATABASE_URL` environment variable is pre-set (e.g., `postgresql://transparency:devpassword@localhost:5432/transparency_dev`). Do not attempt to install or start PostgreSQL — it is already running. +- **Playwright Chromium** must be installed before running E2E tests: `npx playwright install chromium` + +--- + ## When in Doubt 1. Search the codebase for similar patterns diff --git a/src/components/campaigns/PublicCampaignPage.tsx b/src/components/campaigns/PublicCampaignPage.tsx index 768d559..16d063c 100644 --- a/src/components/campaigns/PublicCampaignPage.tsx +++ b/src/components/campaigns/PublicCampaignPage.tsx @@ -68,7 +68,9 @@ export function PublicCampaignPage({ ? `${window.location.origin}/org/${organizationSlug}/donate/${campaign.id}` : `/org/${organizationSlug}/donate/${campaign.id}`; - const accentColor = primaryColor || '#16a34a'; + // Default green-700 (#15803d) passes WCAG AA contrast (4.79:1) with white text; + // green-600 (#16a34a) only achieves 3.14:1 which fails the 4.5:1 threshold. + const accentColor = primaryColor || '#15803d'; return (