# Refereren aan Discourse-themavarianten in een aangepaste themacomponent?

**URL:** https://meta.discourse.org/t/referencing-discourse-theme-color-variables-in-custom-theme-component/358352
**Category:** Support
**Tags:** css
**Created:** [21 maart 2025 om 15:42 UTC](https://meta.discourse.org/t/referencing-discourse-theme-color-variables-in-custom-theme-component/358352 "2025-03-21T15:42:10Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [21 maart 2025 om 15:42 UTC](https://meta.discourse.org/t/referencing-discourse-theme-color-variables-in-custom-theme-component/358352/1 "2025-03-21T15:42:10Z")

</div>

Is it possible to access Discourse theme color variables in my own theme component?

I’m trying to use variables like `--secondary` in my CSS and it doesn’t seem to be working.

---

_[View the full topic](https://meta.discourse.org/t/referencing-discourse-theme-color-variables-in-custom-theme-component/358352)._
