#!/bin/bash # Array of files to update files=( "src/app/(dashboard)/admin/users/page.tsx" "src/app/(dashboard)/admin/integrations/page.tsx" "src/app/(dashboard)/admin/settings/page.tsx" "src/app/(dashboard)/admin/activity-log/page.tsx" "src/app/(dashboard)/planning/budgets/page.tsx" "src/app/(dashboard)/planning/forecasting/page.tsx" "src/app/(dashboard)/planning/cash-forecast/page.tsx" "src/app/(dashboard)/planning/fpa/page.tsx" "src/app/(dashboard)/planning/projects/page.tsx" "src/app/(dashboard)/compliance/tax/page.tsx" "src/app/(dashboard)/compliance/tax-reporting/page.tsx" "src/app/(dashboard)/compliance/reporting/page.tsx" "src/app/(dashboard)/compliance/leases/page.tsx" "src/app/(dashboard)/compliance/report-builder/page.tsx" "src/app/(dashboard)/equity/cap-table/page.tsx" ) # Color mappings declare -a replacements=( 's/text-slate-900/text-[#F0F0F3]/g' 's/text-slate-800/text-[#F0F0F3]/g' 's/text-slate-700/text-[#8B8B9E]/g' 's/text-slate-600/text-[#8B8B9E]/g' 's/text-slate-500/text-[#5A5A6E]/g' 's/text-slate-400/text-[#5A5A6E]/g' 's/text-gray-900/text-[#F0F0F3]/g' 's/text-gray-800/text-[#F0F0F3]/g' 's/text-gray-700/text-[#8B8B9E]/g' 's/text-gray-600/text-[#8B8B9E]/g' 's/text-gray-500/text-[#5A5A6E]/g' 's/text-gray-400/text-[#5A5A6E]/g' 's/bg-white/bg-[#1A1A1F]/g' 's/bg-slate-50/bg-[#111114]/g' 's/bg-slate-100/bg-[#1A1A1F]/g' 's/bg-slate-200/bg-[#222228]/g' 's/bg-gray-50/bg-[#111114]/g' 's/bg-gray-100/bg-[#1A1A1F]/g' 's/border-slate-200/border-[#2A2A32]/g' 's/border-slate-100/border-[#2A2A32]/g' 's/border-slate-300/border-[#3A3A45]/g' 's/border-gray-200/border-[#2A2A32]/g' 's/border-gray-300/border-[#3A3A45]/g' 's/divide-slate-200/divide-[#2A2A32]/g' 's/divide-slate-100/divide-[#2A2A32]/g' 's/divide-gray-200/divide-[#2A2A32]/g' 's/hover:bg-slate-50/hover:bg-[#222228]/g' 's/hover:bg-slate-100/hover:bg-[#222228]/g' 's/hover:bg-slate-200/hover:bg-[#2A2A32]/g' 's/hover:bg-gray-50/hover:bg-[#222228]/g' 's/hover:bg-gray-100/hover:bg-[#222228]/g' 's/placeholder-slate-400/placeholder-[#5A5A6E]/g' 's/placeholder-gray-400/placeholder-[#5A5A6E]/g' ) for file in "${files[@]}"; do if [ -f "$file" ]; then echo "Processing $file..." for replacement in "${replacements[@]}"; do sed -i "$replacement" "$file" done else echo "File not found: $file" fi done echo "Done!"