<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/theme",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "theme"
}
-->

# theme

Sets the color scheme for an element.

## Overview

Setting the `theme` attribute changes the font color for text. Badge colors are also
affected if the color is changed using CSS. The background image is not affected
by the `theme` attribute. Templates default to `light` unless otherwise specified.
`theme` can be used with all templates. The following templates default to `dark`:

- [productTemplate](/documentation/TVML/producttemplate)
- [productBundleTemplate](/documentation/TVML/productbundletemplate)

### Values for theme

- `dark`: The theme is set to dark.
- `light`: The theme is set to light.

### Elements that Use theme

The `theme` attribute can be used with any element.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)