Product Updates

DatoCMS changelog for new features and general improvements
Content Delivery API

cssRgb string for color fields now available in CDA

To make integrating with your front-end easier, we decided to have the CDA returning a handy string containing the rgb() functional notation of a color field, expressed with the current standard syntax.

As an example, the following query:

{
leaf {
color {
cssRgb
}
}
}

Returns a string containing three space-separated values, representing respectively values for red, green, and blue. Optionally, it may also include a slash / followed by a fourth value, representing alpha.

{
"data": {
"leaf": {
"color": {
"cssRgb": "rgb(213 185 185 / .43)"
}
}
}
}
Start using DatoCMS today
According to Gartner 89% of companies plan to compete primarily on the basis of customer experience this year. Don't get caught unprepared.
  • No credit card
  • Easy setup
Subscribe to our newsletter! 📥
One update per month. All the latest news and sneak peeks directly in your inbox.
support@datocms.com ©2026 Dato srl, all rights reserved P.IVA 06969620480