-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using static CSS in Fresh #492
Comments
Hope it helps: #476 (comment) |
Working example to save some comment trawling: Put your stylesheet (eg // routes/_app.tsx
/** @jsx h */
/** @jsxFrag Fragment */
import { Fragment, h } from "preact";
import { Head, asset } from "$fresh/runtime.ts";
import { AppProps } from "$fresh/server.ts";
export default function App(props: AppProps) {
return (
<>
<Head>
<link href={asset('/mystyles.css')} rel="stylesheet"/>
</Head>
<props.Component />
</>
);
} I couldn't find any docs for |
Yes, |
Closing as this seems resolved. |
Hi there!
I am building a website for my classless CSS style, Subreply CSS.
As such, I wanted to use the CSS to style the website, but I can't find any way to use them in Fresh. Is there any way to import a static CSS file into Fresh?
The text was updated successfully, but these errors were encountered: