parent
b2caaca1e2
commit
90e926b14b
|
|
@ -23,32 +23,32 @@ async function copyCode() {
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<pre class="max-h-[450px] overflow-x-auto rounded-lg border bg-zinc-950 !py-0 dark:bg-zinc-900">
|
<pre class="max-h-[450px] overflow-x-auto rounded-lg border bg-zinc-950 !py-0 dark:bg-zinc-900">
|
||||||
<code ref="codeRef" class="relative block rounded font-mono text-sm">
|
<code ref="codeRef" class="relative block rounded font-mono text-sm">
|
||||||
<span class="line">@layer base {</span>
|
<span class="line text-white">@layer base {</span>
|
||||||
<span class="line">:root {</span>
|
<span class="line text-white">:root {</span>
|
||||||
<span class="line"> --background: {{ activeTheme?.cssVars.light.background }};</span>
|
<span class="line text-white"> --background: {{ activeTheme?.cssVars.light.background }};</span>
|
||||||
<span class="line"> --foreground: {{ activeTheme?.cssVars.light.foreground }};</span>
|
<span class="line text-white"> --foreground: {{ activeTheme?.cssVars.light.foreground }};</span>
|
||||||
<template v-for="prefix in (['card', 'popover', 'primary', 'secondary', 'muted', 'accent', 'destructive'] as const)" :key="prefix">
|
<template v-for="prefix in (['card', 'popover', 'primary', 'secondary', 'muted', 'accent', 'destructive'] as const)" :key="prefix">
|
||||||
<span class="line">--{{ prefix }}: {{ activeTheme?.cssVars.light[prefix] }};</span>
|
<span class="line text-white">--{{ prefix }}: {{ activeTheme?.cssVars.light[prefix] }};</span>
|
||||||
<span class="line">--{{ prefix }}-foreground: {{ activeTheme?.cssVars.light[ `${prefix}-foreground`] }};</span>
|
<span class="line text-white">--{{ prefix }}-foreground: {{ activeTheme?.cssVars.light[ `${prefix}-foreground`] }};</span>
|
||||||
</template>
|
</template>
|
||||||
<span class="line"> --border:{{ activeTheme?.cssVars.light.border }};</span>
|
<span class="line text-white"> --border:{{ activeTheme?.cssVars.light.border }};</span>
|
||||||
<span class="line"> --input:{{ activeTheme?.cssVars.light.input }};</span>
|
<span class="line text-white"> --input:{{ activeTheme?.cssVars.light.input }};</span>
|
||||||
<span class="line"> --ring:{{ activeTheme?.cssVars.light.ring }};</span>
|
<span class="line text-white"> --ring:{{ activeTheme?.cssVars.light.ring }};</span>
|
||||||
<span class="line"> --radius: {{ config.radius }}rem;</span>
|
<span class="line text-white"> --radius: {{ config.radius }}rem;</span>
|
||||||
<span class="line">}</span>
|
<span class="line text-white">}</span>
|
||||||
<span class="line"> </span>
|
<span class="line text-white"> </span>
|
||||||
<span class="line">.dark {</span>
|
<span class="line text-white">.dark {</span>
|
||||||
<span class="line"> --background:{{ activeTheme?.cssVars.dark.background }};</span>
|
<span class="line text-white"> --background:{{ activeTheme?.cssVars.dark.background }};</span>
|
||||||
<span class="line"> --foreground:{{ activeTheme?.cssVars.dark.foreground }};</span>
|
<span class="line text-white"> --foreground:{{ activeTheme?.cssVars.dark.foreground }};</span>
|
||||||
<template v-for="prefix in (['card', 'popover', 'primary', 'secondary', 'muted', 'accent', 'destructive'] as const)" :key="prefix">
|
<template v-for="prefix in (['card', 'popover', 'primary', 'secondary', 'muted', 'accent', 'destructive'] as const)" :key="prefix">
|
||||||
<span class="line">--{{ prefix }}:{{ activeTheme?.cssVars.dark[ prefix] }};</span>
|
<span class="line text-white">--{{ prefix }}:{{ activeTheme?.cssVars.dark[ prefix] }};</span>
|
||||||
<span class="line">--{{ prefix }}-foreground:{{ activeTheme?.cssVars.dark[ `${prefix}-foreground`] }};</span>
|
<span class="line text-white">--{{ prefix }}-foreground:{{ activeTheme?.cssVars.dark[ `${prefix}-foreground`] }};</span>
|
||||||
</template>
|
</template>
|
||||||
<span class="line"> --border:{{ activeTheme?.cssVars.dark.border }};</span>
|
<span class="line text-white"> --border:{{ activeTheme?.cssVars.dark.border }};</span>
|
||||||
<span class="line"> --input:{{ activeTheme?.cssVars.dark.input }};</span>
|
<span class="line text-white"> --input:{{ activeTheme?.cssVars.dark.input }};</span>
|
||||||
<span class="line"> --ring:{{ activeTheme?.cssVars.dark.ring }};</span>
|
<span class="line text-white"> --ring:{{ activeTheme?.cssVars.dark.ring }};</span>
|
||||||
<span class="line">}</span>
|
<span class="line text-white">}</span>
|
||||||
<span class="line">}</span>
|
<span class="line text-white">}</span>
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
<Button size="sm" class="absolute right-4 top-4 bg-muted text-muted-foreground hover:bg-muted hover:text-muted-foreground" @click="copyCode">
|
<Button size="sm" class="absolute right-4 top-4 bg-muted text-muted-foreground hover:bg-muted hover:text-muted-foreground" @click="copyCode">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user