Skip to content

Instantly share code, notes, and snippets.

@matthova
Created May 31, 2021 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthova/ff4bc27d0b432f78fc7b0986e45e6249 to your computer and use it in GitHub Desktop.
Save matthova/ff4bc27d0b432f78fc7b0986e45e6249 to your computer and use it in GitHub Desktop.
Using vanilla-extract with remix
// 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