User Profile
diff --git a/scripts/samples.js b/scripts/samples.mjs
similarity index 96%
rename from scripts/samples.js
rename to scripts/samples.mjs
index c4f7235..9bcd109 100644
--- a/scripts/samples.js
+++ b/scripts/samples.mjs
@@ -1,4 +1,4 @@
-const fs = require("fs");
+import { readFileSync, writeFileSync } from "fs";
const data = {
components: [
@@ -242,13 +242,13 @@ const data = {
function main() {
data.components.forEach((meta) => {
- const code = fs.readFileSync(meta.src, "utf8");
+ const code = readFileSync(meta.src, "utf8");
const componentCode = {
code,
};
- fs.writeFileSync(
+ writeFileSync(
meta.destination,
`export const componentCode = ${JSON.stringify(componentCode, null, 2)};`
);
@@ -259,7 +259,7 @@ function main() {
data.hooks.map((hookMeta) => {
const hooks = [];
hookMeta.collection.forEach((meta) => {
- const code = fs.readFileSync(meta.src, "utf8");
+ const code = readFileSync(meta.src, "utf8");
hooks.push({
name: meta.name,
@@ -270,7 +270,7 @@ function main() {
console.log(meta.src);
});
- fs.writeFileSync(
+ writeFileSync(
hookMeta.destination,
`export const componentHooks = ${JSON.stringify(hooks, null, 2)};`
);
@@ -279,7 +279,7 @@ function main() {
data.routers.map((routerMeta) => {
const routers = [];
routerMeta.collection.forEach((meta) => {
- const code = fs.readFileSync(meta.src, "utf8");
+ const code = readFileSync(meta.src, "utf8");
routers.push({
name: meta.name,
@@ -290,7 +290,7 @@ function main() {
console.log(meta.src);
});
- fs.writeFileSync(
+ writeFileSync(
routerMeta.destination,
`export const componentRoutes = ${JSON.stringify(routers, null, 2)};`
);
@@ -299,7 +299,7 @@ function main() {
data.helpers.map((helperMeta) => {
const helpers = [];
helperMeta.collection.forEach((meta) => {
- const code = fs.readFileSync(meta.src, "utf8");
+ const code = readFileSync(meta.src, "utf8");
helpers.push({
name: meta.name,
@@ -310,7 +310,7 @@ function main() {
console.log(meta.src);
});
- fs.writeFileSync(
+ writeFileSync(
helperMeta.destination,
`export const helpers = ${JSON.stringify(helpers, null, 2)};`
);
diff --git a/tailwind.config.ts b/tailwind.config.ts
deleted file mode 100644
index 63b952c..0000000
--- a/tailwind.config.ts
+++ /dev/null
@@ -1,80 +0,0 @@
-import type { Config } from "tailwindcss";
-
-const config = {
- darkMode: ["class"],
- content: [
- "./pages/**/*.{ts,tsx}",
- "./components/**/*.{ts,tsx}",
- "./app/**/*.{ts,tsx}",
- "./src/**/*.{ts,tsx}",
- "./registry/**/*.{ts,tsx}",
- ],
- prefix: "",
- theme: {
- container: {
- center: true,
- padding: "2rem",
- screens: {
- "2xl": "1400px",
- },
- },
- extend: {
- colors: {
- border: "hsl(var(--border))",
- input: "hsl(var(--input))",
- ring: "hsl(var(--ring))",
- background: "hsl(var(--background))",
- foreground: "hsl(var(--foreground))",
- primary: {
- DEFAULT: "hsl(var(--primary))",
- foreground: "hsl(var(--primary-foreground))",
- },
- secondary: {
- DEFAULT: "hsl(var(--secondary))",
- foreground: "hsl(var(--secondary-foreground))",
- },
- destructive: {
- DEFAULT: "hsl(var(--destructive))",
- foreground: "hsl(var(--destructive-foreground))",
- },
- muted: {
- DEFAULT: "hsl(var(--muted))",
- foreground: "hsl(var(--muted-foreground))",
- },
- accent: {
- DEFAULT: "hsl(var(--accent))",
- foreground: "hsl(var(--accent-foreground))",
- },
- popover: {
- DEFAULT: "hsl(var(--popover))",
- foreground: "hsl(var(--popover-foreground))",
- },
- card: {
- DEFAULT: "hsl(var(--card))",
- foreground: "hsl(var(--card-foreground))",
- },
- },
- borderRadius: {
- lg: "var(--radius)",
- md: "calc(var(--radius) - 2px)",
- sm: "calc(var(--radius) - 4px)",
- },
- keyframes: {
- "accordion-down": {
- from: { height: "0" },
- to: { height: "var(--radix-accordion-content-height)" },
- },
- "accordion-up": {
- from: { height: "var(--radix-accordion-content-height)" },
- to: { height: "0" },
- },
- },
- animation: {
- "accordion-down": "accordion-down 0.2s ease-out",
- "accordion-up": "accordion-up 0.2s ease-out",
- },
- },
- },
-} satisfies Config;
-
-export default config;