Skip to content
← Back to blog
Android

Android colors.xml for designers (and devs who speak design)

Mobile still runs on XML resources for many teams. Your Figma purple needs to land in colors.xml without becoming three slightly different purples.

res/values/colors.xml is boring until a release ships wrong hex. Treat it like web tokens: one ramp, many aliases.

Generate from the same anchor as web

The Android colors.xml generator shares ramp logic with CSS and Tailwind exporters on ChromaXP — including OKLCH-based ramps clipped to sRGB HEX.

Night resources need planning

values-night overrides are not automatic magic. Pick dark surfaces first (see our dark mode palette guide), then map semantic names.