-
-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fix broken svelte-scoped examples (#2788)
- Loading branch information
Showing
4 changed files
with
31 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
<script lang="ts"> | ||
import { marked } from "marked"; | ||
marked.use({ | ||
mangle: false, | ||
headerIds: false | ||
}); | ||
</script> | ||
|
||
<div | ||
class="text-base prose prose-purple md:prose-orange dark:prose-invert max-w-full text-left mt-10 p-3 md:p-5 shadow-lg border rounded" | ||
class="text-base prose prose-purple md:prose-orange dark:prose-invert max-w-full text-left mt-10 p-3 md:p-5 shadow-lg border rounded" | ||
> | ||
{@html marked.parse(`# Svelte Scoped Uno with SvelteKit | ||
This project has the following **example usages**: | ||
- dark mode | ||
- \`.logo\` shortcut | ||
- preflights | ||
- safelist | ||
- styles reset | ||
- parent dependent classes | ||
- children affecting classes | ||
- nested component styles (passed down through class prop) | ||
- Conditional \`class:\` syntax, including shorthand | ||
- --at-apply | ||
- This \`.prose\` block is from \`presetTypography()\`. Place the \`prose\` class into your safelist to make it work (as that class must be in the global stylesheet). Color classes like \`prose-purple\` are fine to use as you would any other utility class. You can put it in the safelist to have it in the global styles or leave it alone to have it be added just to the component(s) where used. | ||
`)} | ||
<h1>Svelte Scoped Uno with SvelteKit</h1> | ||
|
||
<p>This project has the following <b>example usages</b>:</p> | ||
|
||
<ul> | ||
<li>dark mode</li> | ||
<li><code>.logo</code> shortcut</li> | ||
<li>preflights</li> | ||
<li>safelist</li> | ||
<li>styles reset</li> | ||
<li>parent dependent classes</li> | ||
<li>children affecting classes</li> | ||
<li>nested component styles (passed down through class prop)</li> | ||
<li>Conditional <code>class:</code> syntax, including shorthand</li> | ||
<li>--at-apply</li> | ||
<li> | ||
This <code>.prose</code> block is from <code>presetTypography()</code>. Place the <code>prose</code> | ||
class into your safelist to make it work (as that class must be in the | ||
global stylesheet). Color classes like <code>prose-purple</code> are fine to use as | ||
you would any other utility class. You can put it in the safelist to have | ||
it in the global styles or leave it alone to have it be added just to the | ||
component(s) where used. | ||
</li> | ||
</ul> | ||
</div> |