Skip to content

Commit

Permalink
Add scss module namespace to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusKjeldgaard committed Jan 23, 2023
1 parent 0234613 commit e4bb2e1
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
<div class="{{ selectedColor }}-shade">Shade</div>
</div>
<pre class="language-css">
@use '@kirbydesign/designsystem/scss/utils';

.color-sample-example {{ '{' }}
background-color: get-color('{{ selectedColor }}');
color: get-color('{{ selectedOnColor }}');
background-color: utils.get-color('{{ selectedColor }}');
color: utils.get-color('{{ selectedOnColor }}');
{{ '}' }}
.color-sample-tint {{ '{' }}
background-color: get-color('{{ selectedColor }}-tint');
background-color: utils.get-color('{{ selectedColor }}-tint');
{{ '}' }}
.color-sample-shade {{ '{' }}
background-color: get-color('{{ selectedColor }}-shade');
background-color: utils.get-color('{{ selectedColor }}-shade');
{{ '}' }}</pre
>
</div>
Expand Down

0 comments on commit e4bb2e1

Please sign in to comment.