Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Jul 19, 2024
1 parent fe16dc2 commit 270de9f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/varlet-ui/docs/atomicCssSupport.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,12 @@ export default {
</template>
```

We also support the HSL variables, which makes the transparency of adjusting the color easier.

```html
<!-- playground-ignore -->
<template>
<div class="bg-hsl-primary/50 text-hsl-text/70">hello</div>
</template>
```

9 changes: 9 additions & 0 deletions packages/varlet-ui/docs/atomicCssSupport.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,12 @@ export default {
</template>
```

我们同时也支持了 hsl 变量,这使得调整颜色的透明度变得更加容易。

```html
<!-- playground-ignore -->
<template>
<div class="bg-hsl-primary/50 text-hsl-text/70">hello</div>
</template>
```

0 comments on commit 270de9f

Please sign in to comment.