Skip to content

Commit

Permalink
feat: color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskang committed Sep 6, 2023
1 parent 2c11f10 commit 5a3cb31
Show file tree
Hide file tree
Showing 50 changed files with 753 additions and 649 deletions.
8 changes: 4 additions & 4 deletions docs/.vitepress/theme/CodePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ defineExpose({ dark, showCode })
<div
class="flex justify-end gap-2 border-b bg-slate-100 p-2 dark:border-slate-500/50 dark:bg-slate-700/50"
>
<!-- <TSwitch v-model:checked="dark">
<!-- <ZSwitch v-model:checked="dark">
<template #on><MoonIcon class="text-gray-900" /></template>
<template #off><SunIcon /></template>
</TSwitch> -->
<TSwitch :checked="showCode" @update:checked="v => (showCode = v)">
</ZSwitch> -->
<ZSwitch :checked="showCode" @update:checked="v => (showCode = v)">
<template #on><CodeBracketIcon /></template>
<template #off><CodeBracketIcon /></template>
</TSwitch>
</ZSwitch>
</div>
<div class="relative overflow-hidden">
<div
Expand Down
22 changes: 18 additions & 4 deletions docs/.vitepress/theme/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ export default defineComponent({
</a>

<div class="relative ml-auto hidden items-center lg:flex">
<nav class="text-sm font-semibold leading-6 text-slate-700 dark:text-slate-200" translate="no">
<nav
class="text-sm font-semibold leading-6 text-slate-700 dark:text-slate-200"
translate="no"
>
<ul class="flex space-x-8">
<li>
<a href="/components/button" class="hover:text-primary-500 dark:hover:text-primary-400">
<a
href="/components/button"
class="hover:text-primary-500 dark:hover:text-primary-400"
>
Components
</a>
</li>
Expand Down Expand Up @@ -81,7 +87,13 @@ export default defineComponent({
<Button square variant="link">
{{
icon: () => (
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 24 24">
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="none"
viewBox="0 0 24 24"
>
<path
d="M5 6h14M5 12h14M5 18h14"
fill="none"
Expand All @@ -99,7 +111,9 @@ export default defineComponent({
>
<span class="sr-only">Navigation</span>
</button>
<Breadcrumb items={[{ title: () => <HomeIcon /> }, { title: 'sdfs' }, { title: 'asdfasdf' }]} />
<Breadcrumb
items={[{ title: () => <HomeIcon /> }, { title: 'sdfs' }, { title: 'asdfasdf' }]}
/>
</div>
</div>
<div class="overflow-hidden">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/breadcrumb.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
const home = () => <HomeIcon class="h-3 w-3" />
</script>
<template>
<TBreadcrumb :items="[{ title: home }, { title: 'sdfs' }, { title: 'asdfasdf' }]"></TBreadcrumb>
<ZBreadcrumb :items="[{ title: home }, { title: 'sdfs' }, { title: 'asdfasdf' }]"></ZBreadcrumb>
</template>
```
Loading

0 comments on commit 5a3cb31

Please sign in to comment.