@mcnivendev/design-system 1.0.0 → 1.0.1
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 +3 -5
- package/tailwind/components.css +1 -16
- package/tailwind/preset.js +2 -1
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcnivendev/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"main": "tailwind/preset.js",
|
|
9
|
-
"files": [
|
|
10
|
-
"tailwind/"
|
|
11
|
-
],
|
|
9
|
+
"files": ["tailwind/"],
|
|
12
10
|
"dependencies": {
|
|
13
|
-
"tailwindcss": "^
|
|
11
|
+
"tailwindcss": "^4.0.0"
|
|
14
12
|
}
|
|
15
13
|
}
|
package/tailwind/components.css
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/* tailwind/components.css */
|
|
2
|
-
|
|
3
2
|
@tailwind base;
|
|
4
3
|
@tailwind components;
|
|
5
4
|
@tailwind utilities;
|
|
6
5
|
|
|
7
6
|
@layer components {
|
|
8
|
-
/* Buttons */
|
|
9
7
|
.btn {
|
|
10
8
|
@apply inline-flex items-center justify-center font-medium transition rounded-md;
|
|
11
9
|
}
|
|
@@ -14,20 +12,7 @@
|
|
|
14
12
|
@apply bg-brand-primary text-white hover:bg-brand-primary/90;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
|
-
/* Cards */
|
|
18
15
|
.card {
|
|
19
16
|
@apply bg-white rounded-lg shadow-md p-6;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
/* Alerts */
|
|
23
|
-
.alert {
|
|
24
|
-
@apply p-4 rounded-md border-l-4;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.alert-info {
|
|
28
|
-
@apply border-brand-primary bg-brand-primary/10 text-brand-primary;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.alert-error {
|
|
32
|
-
@apply border-red-600 bg
|
|
33
|
-
}
|
|
18
|
+
}
|
package/tailwind/preset.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// tailwind/preset.js
|
|
2
|
-
const tokens = require('./tokens')
|
|
2
|
+
const tokens = require('./tokens.js') // Include .js extension
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
theme: {
|
|
@@ -11,4 +11,5 @@ module.exports = {
|
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
plugins: [],
|
|
14
|
+
tokens, // optional: export tokens for JS use
|
|
14
15
|
}
|