mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
importing and inlining global.css with set:html (#2601)
This commit is contained in:
parent
c496ac8dad
commit
934d9750cf
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
// Component Imports
|
// Component Imports
|
||||||
import Button from '../components/Button.astro';
|
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:
|
// Full Astro Component Syntax:
|
||||||
// https://docs.astro.build/core-concepts/astro-components/
|
// https://docs.astro.build/core-concepts/astro-components/
|
||||||
|
@ -11,9 +13,7 @@ import Button from '../components/Button.astro';
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
<title>Astro + TailwindCSS</title>
|
<title>Astro + TailwindCSS</title>
|
||||||
<style global>
|
<style set:html={styles}></style>
|
||||||
@import "../styles/global.css";
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Add table
Reference in a new issue