diff --git a/.changeset/friendly-fishes-sing.md b/.changeset/friendly-fishes-sing.md new file mode 100644 index 000000000..9da10e6bf --- /dev/null +++ b/.changeset/friendly-fishes-sing.md @@ -0,0 +1,5 @@ +--- +'astro': minor +--- + +Implement Inline Stylesheets RFC as experimental diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index b8d7338f6..f45893821 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -1036,6 +1036,26 @@ export interface AstroUserConfig { */ assets?: boolean; + /** + * @docs + * @name experimental.inlineStylesheets + * @type {('always' | 'auto' | 'never')} + * @default `never` + * @description + * Control whether styles are sent to the browser in a separate css file or inlined into +

\ No newline at end of file diff --git a/packages/astro/test/fixtures/content/src/components/LayoutProp.astro b/packages/astro/test/fixtures/content/src/components/LayoutProp.astro index df7493c3e..a2954162a 100644 --- a/packages/astro/test/fixtures/content/src/components/LayoutProp.astro +++ b/packages/astro/test/fixtures/content/src/components/LayoutProp.astro @@ -1,6 +1,6 @@ --- import { CollectionEntry, getCollection } from 'astro:content'; - +import H3 from './H3.astro' // Test for recursive `getCollection()` calls const blog = await getCollection('blog'); @@ -23,6 +23,7 @@ const {

{title}

+

H3 inserted in the layout