Skip to content

Commit 663c5eb

Browse files
Fix repository issues: lint script and Tailwind config
Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
1 parent 401768b commit 663c5eb

3 files changed

Lines changed: 159 additions & 67 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev --turbopack",
77
"build": "next build --turbopack",
88
"start": "next start",
9-
"lint": "eslint"
9+
"lint": "eslint . --ext .ts,.tsx,.js,.jsx --fix"
1010
},
1111
"dependencies": {
1212
"@radix-ui/colors": "^3.0.0",

tailwind.config.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import type { Config } from "tailwindcss";
2+
3+
const config: Config = {
4+
content: [
5+
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
6+
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
7+
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
8+
],
9+
theme: {
10+
extend: {
11+
colors: {
12+
background: "var(--background)",
13+
foreground: "var(--foreground)",
14+
card: {
15+
DEFAULT: "var(--card)",
16+
foreground: "var(--card-foreground)",
17+
},
18+
popover: {
19+
DEFAULT: "var(--popover)",
20+
foreground: "var(--popover-foreground)",
21+
},
22+
primary: {
23+
DEFAULT: "var(--primary)",
24+
foreground: "var(--primary-foreground)",
25+
},
26+
secondary: {
27+
DEFAULT: "var(--secondary)",
28+
foreground: "var(--secondary-foreground)",
29+
},
30+
muted: {
31+
DEFAULT: "var(--muted)",
32+
foreground: "var(--muted-foreground)",
33+
},
34+
accent: {
35+
DEFAULT: "var(--accent)",
36+
foreground: "var(--accent-foreground)",
37+
},
38+
destructive: {
39+
DEFAULT: "var(--destructive)",
40+
foreground: "var(--destructive-foreground)",
41+
},
42+
success: {
43+
DEFAULT: "var(--success)",
44+
foreground: "var(--success-foreground)",
45+
},
46+
warning: {
47+
DEFAULT: "var(--warning)",
48+
foreground: "var(--warning-foreground)",
49+
},
50+
border: "var(--border)",
51+
input: "var(--input)",
52+
ring: "var(--ring)",
53+
},
54+
borderRadius: {
55+
lg: "var(--radius)",
56+
md: "calc(var(--radius) - 2px)",
57+
sm: "calc(var(--radius) - 4px)",
58+
},
59+
fontFamily: {
60+
sans: ["var(--font-geist-sans)", "ui-sans-serif", "system-ui"],
61+
mono: ["var(--font-geist-mono)", "ui-monospace", "Monaco"],
62+
},
63+
},
64+
},
65+
plugins: [],
66+
};
67+
68+
export default config;

0 commit comments

Comments
 (0)