Skip to content

Commit

Permalink
Use Tailwind CDN direclty? (ueberdosis#3643)
Browse files Browse the repository at this point in the history
I realized that if I use Tailwind's CDN directly, you can have it react to dark mode directly.
  • Loading branch information
RicoTrevisan authored and aliasliao committed May 24, 2023
1 parent a45fa1c commit 6dba776
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions demos/src/Experiments/Tailwind/JS/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!-- load tailwind -->
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/typography/dist/typography.min.css" />
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>

<!-- provide element -->
<div class="element"></div>
Expand All @@ -17,7 +16,7 @@
],
editorProps: {
attributes: {
class: 'prose prose-sm sm:prose lg:prose-lg xl:prose-2xl m-5 focus:outline-none',
class: 'prose dark:prose-invert prose-sm sm:prose lg:prose-lg xl:prose-2xl m-5 focus:outline-none',
},
},
content: `
Expand Down

0 comments on commit 6dba776

Please sign in to comment.