summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/with-tailwindcss/src/pages/index.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/with-tailwindcss/src/pages/index.astro b/examples/with-tailwindcss/src/pages/index.astro
index 74c3b2e62..6a5ca8f96 100644
--- a/examples/with-tailwindcss/src/pages/index.astro
+++ b/examples/with-tailwindcss/src/pages/index.astro
@@ -1,6 +1,8 @@
---
// Component Imports
import Button from '../components/Button.astro';
+// Imports the global styles to be inlined in the <head>
+import styles from '../styles/global.css';
// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
@@ -11,9 +13,7 @@ import Button from '../components/Button.astro';
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<title>Astro + TailwindCSS</title>
- <style global>
- @import "../styles/global.css";
- </style>
+ <style set:html={styles}></style>
</head>
<body>