Skip to content

Commit ab289c8

Browse files
committed
docs: update colors doc
1 parent e629ede commit ab289c8

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.vitepress/theme/css/vars.css

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/content/overview/color.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ links and other interactive elements. `accentColor` is specified directly on the
3030
</template>
3131
```
3232

33-
### Available accent colors
33+
### Available colors
3434

3535
There is a range of accent colors to choose from:
3636

@@ -41,3 +41,20 @@ There is a range of accent colors to choose from:
4141
<div class="text-xs text-gray-10">{{ color }}</div>
4242
</div>
4343
</div>
44+
45+
### Color scales
46+
47+
Each accent is a 12-step scale that includes a solid and a transparent variant of each color.
48+
For example, here’s the `indigo` color scale:
49+
50+
<div class="grid grid-cols-12 gap-2">
51+
<div v-for="i in 12" :key="i" class="flex flex-col gap-1">
52+
<div class="h-8" :style="{backgroundColor: `var(--indigo-${i})`, borderRadius: 'var(--radius-1)'}">
53+
</div>
54+
<div class="transparent-grid" style="border-radius: var(--radius-1)">
55+
<div class="h-8" :style="{backgroundColor: `var(--indigo-a${i})`, borderRadius: 'var(--radius-1)'}">
56+
</div>
57+
</div>
58+
<div class="text-sm text-center text-gray-10">{{i}}</div>
59+
</div>
60+
</div>

docs/examples/iconify/Overview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2+
import { Icon } from '@iconify/vue'
23
import {
3-
Icon,
44
Button,
55
DialogRoot,
66
DialogTrigger,

0 commit comments

Comments
 (0)