That doesn't solve the problem.
Rather you'd need autocomplete by feature. Like you want red text, your editor should show you a list of css classes that make the text red.
Or give you suggestions like "You are using color-red size-7 together 6 times. Would you like to introduce a semantic class?"
If such is not possible, people will use Tailwind etc.