sirjosev commited on
Commit
8bcdb6d
·
1 Parent(s): bddbdc8

feat: introduce dark theme with custom CSS variables and integrate border color into Tailwind configuration.

Browse files
Files changed (2) hide show
  1. app/globals.css +8 -4
  2. tailwind.config.ts +1 -0
app/globals.css CHANGED
@@ -13,7 +13,8 @@
13
  --popover: 240 10% 6%;
14
  --popover-foreground: 0 0% 98%;
15
 
16
- --primary: 263.4 70% 50.4%; /* Vivid Violet */
 
17
  --primary-foreground: 210 40% 98%;
18
 
19
  --secondary: 240 3.7% 15.9%;
@@ -31,15 +32,18 @@
31
  --border: 240 3.7% 15.9%;
32
  --input: 240 3.7% 15.9%;
33
  --ring: 240 4.9% 83.9%;
34
-
35
  --radius: 0.75rem;
36
  }
37
  }
38
 
39
  @layer base {
40
  * {
41
- @apply border-border;
 
 
42
  }
 
43
  body {
44
  @apply bg-background text-foreground;
45
  }
@@ -51,4 +55,4 @@
51
 
52
  .gradient-text {
53
  @apply bg-clip-text text-transparent bg-gradient-to-r from-indigo-400 via-purple-400 to-pink-400;
54
- }
 
13
  --popover: 240 10% 6%;
14
  --popover-foreground: 0 0% 98%;
15
 
16
+ --primary: 263.4 70% 50.4%;
17
+ /* Vivid Violet */
18
  --primary-foreground: 210 40% 98%;
19
 
20
  --secondary: 240 3.7% 15.9%;
 
32
  --border: 240 3.7% 15.9%;
33
  --input: 240 3.7% 15.9%;
34
  --ring: 240 4.9% 83.9%;
35
+
36
  --radius: 0.75rem;
37
  }
38
  }
39
 
40
  @layer base {
41
  * {
42
+ border-color: hsl(var(--border));
43
+ border-width: 1px;
44
+ /* defaulting border width */
45
  }
46
+
47
  body {
48
  @apply bg-background text-foreground;
49
  }
 
55
 
56
  .gradient-text {
57
  @apply bg-clip-text text-transparent bg-gradient-to-r from-indigo-400 via-purple-400 to-pink-400;
58
+ }
tailwind.config.ts CHANGED
@@ -29,6 +29,7 @@ const config: Config = {
29
  DEFAULT: "var(--card)",
30
  foreground: "var(--card-foreground)",
31
  },
 
32
  },
33
  borderRadius: {
34
  lg: "var(--radius)",
 
29
  DEFAULT: "var(--card)",
30
  foreground: "var(--card-foreground)",
31
  },
32
+ border: "hsl(var(--border))",
33
  },
34
  borderRadius: {
35
  lg: "var(--radius)",