Vite processes imported .css files as plain CSS, not Svelte styles. :global() is a Svelte-specific directive that only works inside component <style> tags. In standalone .css files it gets mangled into invalid :is(:global(...)) selectors. Since Vite-imported CSS is already global by nature, removing :global() wrappers produces correct output.
20 lines
724 B
HTML
20 lines
724 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="text-scale" content="scale" />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<title>English Style Converter</title>
|
|
%sveltekit.head%
|
|
</head>
|
|
<body data-sveltekit-preload-data="hover">
|
|
<div style="display: contents">%sveltekit.body%</div>
|
|
</body>
|
|
</html>
|