diff --git a/docs/theming/css-variables.md b/docs/theming/css-variables.md index 5a806cf54a8..1d1c67ddfe1 100644 --- a/docs/theming/css-variables.md +++ b/docs/theming/css-variables.md @@ -84,7 +84,7 @@ The value of a CSS variable can be read in JavaScript using [getPropertyValue()] ```js const el = document.querySelector('.fancy-button'); -const color = el.style.getPropertyValue('--charcoal'); +const color = el.style.getPropertyValue('--background'); ``` ## Ionic Variables