Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbes7878 committed May 3, 2021
1 parent 24957db commit cbc3c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/developers/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ You may need to also import font-faces, specifically, if using our house themes:

## CSS variables

You can use inline CSS variables to use JavaScript values in your styles:
You can use inline [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) to use JavaScript values in your styles:

```svelte
<script>
let color = '#ff3e00';
</script>
<div style="--theme-color: {color}">
<div style="--theme-color: {color};">
<p>the color is set using a CSS variable</p>
</div>
Expand Down

0 comments on commit cbc3c0c

Please sign in to comment.