# Accessing CSS Variables in Python Scripts

**URL:** <https://forum.inductiveautomation.com/t/accessing-css-variables-in-python-scripts/97956>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 30, 2024, 2:36pm UTC](https://forum.inductiveautomation.com/t/accessing-css-variables-in-python-scripts/97956 "2024-10-30T14:36:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [October 30, 2024, 3:06pm UTC](https://forum.inductiveautomation.com/t/accessing-css-variables-in-python-scripts/97956/2 "2024-10-30T15:06:00Z")

</div>

Notice that a CSS variable like `--neutral-10` does not have a single hex color assigned to it, you would need to know which theme as well.

I'm not aware of a way to look it up in scripting.  
[Add transparency to built in theme color - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/add-transparency-to-built-in-theme-color/65594/3)

---

_[View the full topic](https://forum.inductiveautomation.com/t/accessing-css-variables-in-python-scripts/97956)._
