@magnidev/theme 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- MIT License
1
+ # MIT License
2
2
 
3
3
  Copyright (c) 2025 Magni Developer
4
4
 
@@ -0,0 +1,150 @@
1
+ @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+
4
+ @custom-variant dark (&:is(.dark *));
5
+
6
+ @theme inline {
7
+ --color-background: var(--background);
8
+ --color-foreground: var(--foreground);
9
+ --color-sidebar-ring: var(--sidebar-ring);
10
+ --color-sidebar-border: var(--sidebar-border);
11
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
12
+ --color-sidebar-accent: var(--sidebar-accent);
13
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
14
+ --color-sidebar-primary: var(--sidebar-primary);
15
+ --color-sidebar-foreground: var(--sidebar-foreground);
16
+ --color-sidebar: var(--sidebar);
17
+ --color-chart-5: var(--chart-5);
18
+ --color-chart-4: var(--chart-4);
19
+ --color-chart-3: var(--chart-3);
20
+ --color-chart-2: var(--chart-2);
21
+ --color-chart-1: var(--chart-1);
22
+ --color-ring: var(--ring);
23
+ --color-input: var(--input);
24
+ --color-border: var(--border);
25
+ --color-destructive: var(--destructive);
26
+ --color-accent-foreground: var(--accent-foreground);
27
+ --color-accent: var(--accent);
28
+ --color-muted-foreground: var(--muted-foreground);
29
+ --color-muted: var(--muted);
30
+ --color-secondary-foreground: var(--secondary-foreground);
31
+ --color-secondary: var(--secondary);
32
+ --color-primary-foreground: var(--primary-foreground);
33
+ --color-primary: var(--primary);
34
+ --color-success: var(--success);
35
+ --color-success-foreground: var(--success-foreground);
36
+ --color-warning: var(--warning);
37
+ --color-warning-foreground: var(--warning-foreground);
38
+ --color-popover-foreground: var(--popover-foreground);
39
+ --color-popover: var(--popover);
40
+ --color-card-foreground: var(--card-foreground);
41
+ --color-card: var(--card);
42
+
43
+ --radius-sm: calc(var(--radius) - 4px);
44
+ --radius-md: calc(var(--radius) - 2px);
45
+ --radius-lg: var(--radius);
46
+ --radius-xl: calc(var(--radius) + 4px);
47
+ }
48
+
49
+ @layer base {
50
+ :root {
51
+ --radius: 0.625rem;
52
+ --background: oklch(1 0 0);
53
+ --foreground: oklch(0.145 0 0);
54
+ --card: oklch(0.9837 0 0);
55
+ --card-foreground: oklch(0.145 0 0);
56
+ --popover: var(--card);
57
+ --popover-foreground: var(--card-foreground);
58
+ --primary: oklch(0.5 0.1193 242.75);
59
+ --primary-foreground: oklch(1 0 0);
60
+ --secondary: oklch(0.145 0 0);
61
+ --secondary-foreground: oklch(1 0 0);
62
+ --success: oklch(0.51 0.1302 151.36);
63
+ --success-foreground: oklch(1 0 0);
64
+ --warning: oklch(0.56 0.1455 49);
65
+ --warning-foreground: oklch(1 0 0);
66
+ --muted: oklch(0.97 0 0);
67
+ --muted-foreground: oklch(0.556 0 0);
68
+ --accent: oklch(0.94 0 0);
69
+ --accent-foreground: oklch(0.205 0 0);
70
+ --destructive: oklch(0.45 0.1829 25.66 / 75%);
71
+ --border: oklch(87% 0 0);
72
+ --input: oklch(0.922 0 0);
73
+ --ring: var(--primary);
74
+ --chart-1: oklch(0.646 0.222 41.116);
75
+ --chart-2: oklch(0.6 0.118 184.704);
76
+ --chart-3: oklch(0.398 0.07 227.392);
77
+ --chart-4: oklch(0.828 0.189 84.429);
78
+ --chart-5: oklch(0.769 0.188 70.08);
79
+ --sidebar: oklch(0.985 0 0);
80
+ --sidebar-foreground: oklch(0.145 0 0);
81
+ --sidebar-primary: oklch(0.205 0 0);
82
+ --sidebar-primary-foreground: oklch(1 0 0);
83
+ --sidebar-accent: oklch(0.97 0 0);
84
+ --sidebar-accent-foreground: oklch(0.205 0 0);
85
+ --sidebar-border: oklch(0.922 0 0);
86
+ --sidebar-ring: oklch(0.708 0 0);
87
+ }
88
+
89
+ .dark {
90
+ --background: oklch(0.145 0 0);
91
+ --foreground: oklch(1 0 0);
92
+ --card: oklch(16.5% 0 0 / 90%);
93
+ --card-foreground: oklch(1 0 0);
94
+ --popover: var(--card);
95
+ --popover-foreground: var(--card-foreground);
96
+ --primary: oklch(0.5 0.1193 242.75 / 50%);
97
+ --primary-foreground: oklch(1 0 0);
98
+ --secondary: oklch(1 0 0);
99
+ --secondary-foreground: oklch(0.145 0 0);
100
+ --success: oklch(0.51 0.1302 151.36);
101
+ --success-foreground: oklch(1 0 0);
102
+ --warning: oklch(0.56 0.1455 49);
103
+ --warning-foreground: oklch(1 0 0);
104
+ --muted: oklch(0.269 0 0);
105
+ --muted-foreground: oklch(0.708 0 0);
106
+ --accent: oklch(0.269 0 0);
107
+ --accent-foreground: oklch(1 0 0);
108
+ --destructive: oklch(0.45 0.1829 25.66 / 75%);
109
+ --border: oklch(26.9% 0 0);
110
+ --input: oklch(1 0 0 / 15%);
111
+ --ring: var(--primary);
112
+ --chart-1: oklch(0.488 0.243 264.376);
113
+ --chart-2: oklch(0.696 0.17 162.48);
114
+ --chart-3: oklch(0.769 0.188 70.08);
115
+ --chart-4: oklch(0.627 0.265 303.9);
116
+ --chart-5: oklch(0.645 0.246 16.439);
117
+ --sidebar: oklch(0.205 0 0);
118
+ --sidebar-foreground: oklch(1 0 0);
119
+ --sidebar-primary: oklch(0.488 0.243 264.376);
120
+ --sidebar-primary-foreground: oklch(1 0 0);
121
+ --sidebar-accent: oklch(0.269 0 0);
122
+ --sidebar-accent-foreground: oklch(1 0 0);
123
+ --sidebar-border: oklch(1 0 0 / 10%);
124
+ --sidebar-ring: oklch(0.556 0 0);
125
+ }
126
+
127
+ * {
128
+ @apply border-border outline-ring/50 ring-primary;
129
+ }
130
+ *::selection {
131
+ @apply bg-primary text-primary-foreground;
132
+ }
133
+ body {
134
+ @apply bg-background text-foreground;
135
+ }
136
+
137
+ /* Scrollbar styles */
138
+ *::-webkit-scrollbar {
139
+ @apply w-[5px] h-[5px];
140
+ }
141
+ *::-webkit-scrollbar-track {
142
+ @apply bg-transparent rounded-full;
143
+ }
144
+ *::-webkit-scrollbar-thumb {
145
+ @apply bg-muted rounded-full;
146
+ }
147
+ *::-webkit-scrollbar-thumb:hover {
148
+ @apply bg-primary;
149
+ }
150
+ }
package/package.json CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "@magnidev/theme",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "license": "ISC",
5
5
  "description": "Theme for Magni Development.",
6
- "publisher": "fermeridamagni <Magni Developer>",
7
6
  "author": {
8
7
  "name": "fermeridamagni <Magni Developer>",
9
8
  "url": "https://www.magnideveloper.com"
10
9
  },
11
10
  "repository": {
12
- "url": "git+https://github.com/fermeridamagni/magnidev-priv.git",
11
+ "url": "git+https://github.com/magnidev/magnidev-monorepo.git",
13
12
  "type": "git",
14
13
  "directory": "packages/theme"
15
14
  },
16
15
  "keywords": [],
17
16
  "bugs": {
18
- "url": "https://github.com/fermeridamagni/magnidev/issues"
17
+ "url": "https://github.com/magnidev/magnidev-monorepo/issues"
19
18
  },
20
- "homepage": "https://github.com/fermeridamagni/magnidev/tree/main/packages/theme#readme",
19
+ "homepage": "https://magnideveloper.com/en/docs/developers/packages/theme/getting-started/introduction",
21
20
  "types": "",
22
21
  "exports": {
23
22
  ".": "./dist/index.js",
24
- "./tailwind.css": "./dist/styles.css"
23
+ "./tailwindcss": "./dist/tailwindcss/styles.css"
25
24
  },
26
25
  "main": "dist/index.js",
27
26
  "files": [
@@ -35,12 +34,15 @@
35
34
  "access": "public",
36
35
  "registry": "https://registry.npmjs.org/"
37
36
  },
37
+ "peerDependencies": {
38
+ "tailwindcss": "^4.1.8"
39
+ },
38
40
  "dependencies": {
39
- "tailwindcss": "^4.1.6",
40
- "tw-animate-css": "^1.2.9"
41
+ "tw-animate-css": "^1.3.3"
41
42
  },
42
43
  "devDependencies": {
43
- "typescript": "5.8.3"
44
+ "typescript": "5.8.3",
45
+ "@magnidev/typescript-config": "0.2.0"
44
46
  },
45
47
  "scripts": {
46
48
  "build": "tsc -p tsconfig.json"
package/CHANGELOG.md DELETED
@@ -1,16 +0,0 @@
1
- # Changelog
2
-
3
- ## @magnidev/theme@0.1.0
4
- ### Changes
5
- - feat(@magnidev/theme): Added Tailwind CSS theme (3ed0c599f852c866f16122d97b508237caf98b15)
6
-
7
-
8
- ## @magnidev/theme@0.2.0
9
- ### Changes
10
- - chore(release): bump @magnidev/theme@0.1.0 (c56d3b667e955964c1c8b1ca060dfd16d371e5c9)
11
-
12
-
13
- ## @magnidev/theme@0.2.1
14
- ### Changes
15
- - feat(@magnidev/theme): add initial theme configuration with empty color palette (9dd8a1cb2fd5a50ab539ee63fa130c74de29467e)
16
- - feat: initialize @magnidev/theme package with README, LICENSE, CHANGELOG, and TypeScript configuration (cd62c082aaac059975277b0a4c032e62902f94cc)
package/dist/styles.css DELETED
@@ -1,133 +0,0 @@
1
- @import "tailwindcss";
2
- @import "tw-animate-css";
3
-
4
- @theme inline {
5
- --color-background: var(--background);
6
- --color-foreground: var(--foreground);
7
- --color-sidebar-ring: var(--sidebar-ring);
8
- --color-sidebar-border: var(--sidebar-border);
9
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
10
- --color-sidebar-accent: var(--sidebar-accent);
11
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
12
- --color-sidebar-primary: var(--sidebar-primary);
13
- --color-sidebar-foreground: var(--sidebar-foreground);
14
- --color-sidebar: var(--sidebar);
15
- --color-chart-5: var(--chart-5);
16
- --color-chart-4: var(--chart-4);
17
- --color-chart-3: var(--chart-3);
18
- --color-chart-2: var(--chart-2);
19
- --color-chart-1: var(--chart-1);
20
- --color-ring: var(--ring);
21
- --color-input: var(--input);
22
- --color-border: var(--border);
23
- --color-destructive: var(--destructive);
24
- --color-accent-foreground: var(--accent-foreground);
25
- --color-accent: var(--accent);
26
- --color-muted-foreground: var(--muted-foreground);
27
- --color-muted: var(--muted);
28
- --color-secondary-foreground: var(--secondary-foreground);
29
- --color-secondary: var(--secondary);
30
- --color-primary-foreground: var(--primary-foreground);
31
- --color-primary: var(--primary);
32
- --color-popover-foreground: var(--popover-foreground);
33
- --color-popover: var(--popover);
34
- --color-card-foreground: var(--card-foreground);
35
- --color-card: var(--card);
36
- --radius-sm: calc(var(--radius) - 4px);
37
- --radius-md: calc(var(--radius) - 2px);
38
- --radius-lg: var(--radius);
39
- --radius-xl: calc(var(--radius) + 4px);
40
- }
41
-
42
- :root {
43
- --radius: 0.625rem;
44
- --background: oklch(1 0 0);
45
- --foreground: oklch(0.145 0 0);
46
- --card: oklch(1 0 0);
47
- --card-foreground: oklch(0.145 0 0);
48
- --popover: oklch(1 0 0);
49
- --popover-foreground: oklch(14.5% 0 0 / 90%);
50
- --primary: oklch(0.5 0.1193 242.75);
51
- --primary-foreground: oklch(1 0 0);
52
- --secondary: oklch(0.145 0 0);
53
- --secondary-foreground: oklch(1 0 0);
54
- --muted: oklch(0.97 0 0);
55
- --muted-foreground: oklch(0.556 0 0);
56
- --accent: oklch(0.97 0 0);
57
- --accent-foreground: oklch(0.205 0 0);
58
- --destructive: oklch(0.45 0.1829 25.66 / 75%);
59
- --border: oklch(87% 0 0);
60
- --input: oklch(0.922 0 0);
61
- --ring: oklch(0.5 0.1193 242.75);
62
- --chart-1: oklch(0.646 0.222 41.116);
63
- --chart-2: oklch(0.6 0.118 184.704);
64
- --chart-3: oklch(0.398 0.07 227.392);
65
- --chart-4: oklch(0.828 0.189 84.429);
66
- --chart-5: oklch(0.769 0.188 70.08);
67
- --sidebar: oklch(0.985 0 0);
68
- --sidebar-foreground: oklch(0.145 0 0);
69
- --sidebar-primary: oklch(0.205 0 0);
70
- --sidebar-primary-foreground: oklch(1 0 0);
71
- --sidebar-accent: oklch(0.97 0 0);
72
- --sidebar-accent-foreground: oklch(0.205 0 0);
73
- --sidebar-border: oklch(0.922 0 0);
74
- --sidebar-ring: oklch(0.708 0 0);
75
- }
76
-
77
- .dark {
78
- --background: oklch(0.145 0 0);
79
- --foreground: oklch(1 0 0);
80
- --card: oklch(16.5% 0 0 / 90%);
81
- --card-foreground: oklch(1 0 0);
82
- --popover: oklch(14.5% 0 0 / 90%);
83
- --popover-foreground: oklch(1 0 0);
84
- --primary: oklch(0.5 0.1193 242.75 / 50%);
85
- --primary-foreground: oklch(1 0 0);
86
- --secondary: oklch(1 0 0);
87
- --secondary-foreground: oklch(0.145 0 0);
88
- --muted: oklch(0.269 0 0);
89
- --muted-foreground: oklch(0.708 0 0);
90
- --accent: oklch(0.269 0 0);
91
- --accent-foreground: oklch(1 0 0);
92
- --destructive: oklch(0.45 0.1829 25.66 / 75%);
93
- --border: oklch(26.9% 0 0);
94
- --input: oklch(1 0 0 / 15%);
95
- --ring: oklch(0.5 0.1193 242.75 / 50%);
96
- --chart-1: oklch(0.488 0.243 264.376);
97
- --chart-2: oklch(0.696 0.17 162.48);
98
- --chart-3: oklch(0.769 0.188 70.08);
99
- --chart-4: oklch(0.627 0.265 303.9);
100
- --chart-5: oklch(0.645 0.246 16.439);
101
- --sidebar: oklch(0.205 0 0);
102
- --sidebar-foreground: oklch(1 0 0);
103
- --sidebar-primary: oklch(0.488 0.243 264.376);
104
- --sidebar-primary-foreground: oklch(1 0 0);
105
- --sidebar-accent: oklch(0.269 0 0);
106
- --sidebar-accent-foreground: oklch(1 0 0);
107
- --sidebar-border: oklch(1 0 0 / 10%);
108
- --sidebar-ring: oklch(0.556 0 0);
109
- }
110
-
111
- @layer base {
112
- * {
113
- @apply border-border outline-ring/50;
114
- }
115
- *::selection {
116
- @apply bg-primary text-primary-foreground;
117
- }
118
- *::-webkit-scrollbar {
119
- @apply w-[5px] h-[5px];
120
- }
121
- *::-webkit-scrollbar-track {
122
- @apply bg-transparent rounded-full;
123
- }
124
- *::-webkit-scrollbar-thumb {
125
- @apply bg-muted rounded-full;
126
- }
127
- *::-webkit-scrollbar-thumb:hover {
128
- @apply bg-primary;
129
- }
130
- body {
131
- @apply bg-background text-foreground;
132
- }
133
- }