Skip to content

Commit bada1e7

Browse files
committed
mostly working!
1 parent 6d48f2d commit bada1e7

4 files changed

Lines changed: 154 additions & 343 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
- [ ] Make it generate more consistent apps by only importing from a component library like shadcn
2828
- [x] Partially working
2929
- [x] Need to figure out a way to use the @
30-
- [ ] Need to import all the CSS stuff (main CSS file + tailwind css file)
30+
- [x] Need to import all the CSS stuff (main CSS file + tailwind css file)
3131
- [ ] Need to add in all the shadcn components
3232
- [ ] Look into a way to export the app or deploy it in a single click – try two things
3333
- [ ] The codesandbox way where I put the link in another way like the react docs, then I can infer the link and have people go check it out

app/page.tsx

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,7 @@ import {
2121
import { AnimatePresence, motion } from "framer-motion";
2222
import { FormEvent, useEffect, useState } from "react";
2323
import LoadingDots from "../components/loading-dots";
24-
import {
25-
button,
26-
card,
27-
fullStyles,
28-
input,
29-
label,
30-
tailwindConfig,
31-
tsconfig,
32-
utils,
33-
} from "@/utils/Shadcn";
24+
import { button, card, input, label, utils } from "@/utils/Shadcn";
3425

3526
export default function Home() {
3627
let [status, setStatus] = useState<
@@ -387,26 +378,24 @@ export default function Home() {
387378
}}
388379
files={{
389380
"App.tsx": generatedCode,
390-
"styles.css": fullStyles,
391-
"tailwind.config.ts": tailwindConfig,
392-
"tsconfig.json": tsconfig,
393381
"/lib/utils.ts": utils,
394382
"/components/ui/button.tsx": button,
395383
"/components/ui/card.tsx": card,
396384
"/components/ui/label.tsx": label,
397385
"/components/ui/input.tsx": input,
398386
"/public/index.html": `<!DOCTYPE html>
399-
<html lang="en">
400-
<head>
401-
<meta charset="UTF-8">
402-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
403-
<title>Document</title>
404-
<script src="https://cdn.tailwindcss.com"></script>
405-
</head>
406-
<body>
407-
<div id="root"></div>
408-
</body>
409-
</html>`,
387+
<html lang="en">
388+
<head>
389+
<meta charset="UTF-8">
390+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
391+
<title>Document</title>
392+
<script src="https://cdn.tailwindcss.com"></script>
393+
</head>
394+
<body>
395+
<div id="root"></div>
396+
</body>
397+
</html>
398+
`,
410399
}}
411400
template="react-ts"
412401
customSetup={{

package-lock.json

Lines changed: 120 additions & 120 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)