If you're using polished for deriving hover, border or muted shades from a single brand colour, color-mix(), oklch() and relative colour syntax covers that case.
- You have
- polished
Keep it if any of these apply (5)
- You need the computed colour value as a string in JavaScript, for a canvas fill, a chart library or an email template. CSS colours only resolve in the browser at paint time.
- You need contrast-ratio calculation or WCAG checking, which these functions do not provide.
- You need colour-blindness simulation, palette generation or interpolation across more than two stops.
- You are generating colours at build time in Node rather than in the browser.
- You rely on the relative colour syntax shown above, oklch(from ...). color-mix() and oklch() are Baseline widely available, but reading channels off an existing colour is newer, so check it before shipping.