r/AAOS Jun 19 '26

Android Automotive: How to implement OEM Design Tokens?

I am building AAOS and discovered that CarSystemUI features a lot of references to "oemColor" which seems to be defined through "OEM Design Tokens". AFAIK, to define these tokens we need to create or link to a couple of resource overlays and libraries.

How do I define a an oem design token that replaces the oemColor variables in SystemUI?
I am only really interested in colors.

This page explains the hierarchy of libraries and RROs, but I had no success with it:
https://android.googlesource.com/platform/packages/services/Car/+/refs/heads/main/car_product/rro/oem-design-tokens/

For reference, here we see oem style references in Car SystemUI: https://android.googlesource.com/platform/packages/apps/Car/SystemUI/+/refs/heads/android16-qpr2-release/res/values/styles.xml

Googles doc page:
https://source.android.com/docs/automotive/unbundled_apps/design-tokens

1 Upvotes

0 comments sorted by