import re

with open("resources/js/components/POSSystem.tsx", "r", encoding="utf-8") as f:
    content = f.read()

# Remove all dark mode background and text classes
content = re.sub(r'dark:bg-[a-zA-Z0-9/-]+', '', content)
content = re.sub(r'dark:text-[a-zA-Z0-9/-]+', '', content)

# Change grey/slate texts to black
content = re.sub(r'text-slate-800', 'text-black', content)
content = re.sub(r'text-slate-700', 'text-black', content)
content = re.sub(r'text-slate-600', 'text-black', content)
content = re.sub(r'text-slate-500', 'text-black', content)
content = re.sub(r'text-slate-400', 'text-black', content)
content = re.sub(r'text-slate-300', 'text-black', content)

with open("resources/js/components/POSSystem.tsx", "w", encoding="utf-8") as f:
    f.write(content)
