@magnidev/theme 0.2.2 → 0.3.0

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@magnidev/theme",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "license": "ISC",
5
5
  "description": "Theme for Magni Development.",
6
6
  "author": {
7
- "name": "fermeridamagni <Magni Developer>",
8
- "url": "https://www.magnideveloper.com"
7
+ "name": "fermeridamagni <Magni Development>",
8
+ "url": "https://www.magni.dev"
9
9
  },
10
10
  "repository": {
11
11
  "url": "git+https://github.com/magnidev/magnidev-monorepo.git",
@@ -16,15 +16,12 @@
16
16
  "bugs": {
17
17
  "url": "https://github.com/magnidev/magnidev-monorepo/issues"
18
18
  },
19
- "homepage": "https://magnideveloper.com/en/docs/developers/packages/theme/getting-started/introduction",
20
- "types": "",
19
+ "homepage": "https://www.magni.dev/en/docs/developers/packages/theme/getting-started/introduction",
21
20
  "exports": {
22
- ".": "./dist/index.js",
23
- "./styles": "./dist/tailwindcss/styles.css"
21
+ "./tailwindcss": "./src/tailwindcss/styles.css"
24
22
  },
25
- "main": "dist/index.js",
26
23
  "files": [
27
- "dist",
24
+ "src/tailwindcss/styles.css",
28
25
  "README.md",
29
26
  "LICENSE",
30
27
  "CHANGELOG.md",
@@ -39,12 +36,5 @@
39
36
  },
40
37
  "dependencies": {
41
38
  "tw-animate-css": "^1.3.3"
42
- },
43
- "devDependencies": {
44
- "typescript": "5.8.3",
45
- "@magnidev/typescript-config": "0.2.0"
46
- },
47
- "scripts": {
48
- "build": "tsc -p tsconfig.json"
49
39
  }
50
40
  }
@@ -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/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export declare const theme: {
2
- colors: {};
3
- };
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.theme = void 0;
4
- exports.theme = {
5
- colors: {},
6
- };
7
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG;IACnB,MAAM,EAAE,EAAE;CACX,CAAC"}