Created
May 31, 2021 18:13
-
-
Save matthova/ff4bc27d0b432f78fc7b0986e45e6249 to your computer and use it in GitHub Desktop.
Using vanilla-extract with remix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/utils/poc.css.ts | |
import { style } from "@vanilla-extract/css"; | |
export const poc = style({ | |
display: "flex", | |
}); | |
// app/routes/index.tsx | |
... | |
import * as styles from "../utils/mvp.css"; | |
export let links: LinksFunction = () => { | |
return [ | |
{ rel: "stylesheet", href: "hmmm-how-do-i-get-this-hashed-url" }, | |
]; | |
}; | |
export default function Index() { | |
return ( | |
<div className={styles.poc}> | |
Hello World | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment