fix(05-02): ContentSlot→slot, image path, Shiki dual-theme CSS
This commit is contained in:
@@ -2,6 +2,24 @@
|
|||||||
@import "@nuxt/ui";
|
@import "@nuxt/ui";
|
||||||
@plugin "@tailwindcss/typography";
|
@plugin "@tailwindcss/typography";
|
||||||
|
|
||||||
|
/* Shiki dual-theme switching via .dark class (color mode cookie) */
|
||||||
|
.shiki,
|
||||||
|
.shiki span {
|
||||||
|
color: var(--shiki-light) !important;
|
||||||
|
background-color: var(--shiki-light-bg) !important;
|
||||||
|
font-style: var(--shiki-light-font-style) !important;
|
||||||
|
font-weight: var(--shiki-light-font-weight) !important;
|
||||||
|
text-decoration: var(--shiki-light-text-decoration) !important;
|
||||||
|
}
|
||||||
|
.dark .shiki,
|
||||||
|
.dark .shiki span {
|
||||||
|
color: var(--shiki-dark) !important;
|
||||||
|
background-color: var(--shiki-dark-bg) !important;
|
||||||
|
font-style: var(--shiki-dark-font-style) !important;
|
||||||
|
font-weight: var(--shiki-dark-font-weight) !important;
|
||||||
|
text-decoration: var(--shiki-dark-text-decoration) !important;
|
||||||
|
}
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
--color-brand-50: #f0faf0;
|
--color-brand-50: #f0faf0;
|
||||||
--color-brand-100: #dcf3dc;
|
--color-brand-100: #dcf3dc;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const colorMap = {
|
|||||||
class="my-4"
|
class="my-4"
|
||||||
>
|
>
|
||||||
<template #description>
|
<template #description>
|
||||||
<ContentSlot :use="$slots.default" unwrap="p" />
|
<slot />
|
||||||
</template>
|
</template>
|
||||||
</UAlert>
|
</UAlert>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ fun createPlugin(name: String): Plugin {
|
|||||||
|
|
||||||
## Optimized Image
|
## Optimized Image
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Table
|
## Table
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ fun createPlugin(name: String): Plugin {
|
|||||||
|
|
||||||
## Image optimisée
|
## Image optimisée
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Tableau
|
## Tableau
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user