Prepare your local environment. Subframe generates React code written in Typescript and styled with Tailwind CSS. We work with any framework that uses React and Typescript.
1{
2 "compilerOptions": {
3 "paths": {
4 "@/subframe/*": ["./src/subframe/*"]
5 }
6 }
7}
8
1module.exports = {
2 presets: [require("./src/subframe/tailwind.config.js")],
3
4 content: [
5 "./src/subframe/**/*.{js,ts,jsx,tsx}",
6 // ...rest of your content source paths
7 ],
8}
9
1<head>
2 <link rel="preconnect" href="https://fonts.googleapis.com"/>
3 <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous"/>
4 <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet"/>
5</head>