@mcnivendev/design-system 1.0.1 → 1.0.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcnivendev/design-system",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,5 +1,5 @@
1
- // tailwind/tokens.js
2
- module.exports = {
1
+ // tailwind/index.js
2
+ const tokens = {
3
3
  colors: {
4
4
  brand: {
5
5
  primary: '#2563eb',
@@ -24,3 +24,16 @@ module.exports = {
24
24
  sans: ['Inter', 'system-ui', 'sans-serif'],
25
25
  },
26
26
  }
27
+
28
+ module.exports = {
29
+ theme: {
30
+ extend: {
31
+ colors: tokens.colors,
32
+ borderRadius: tokens.radius,
33
+ spacing: tokens.spacing,
34
+ fontFamily: tokens.fontFamily,
35
+ },
36
+ },
37
+ plugins: [],
38
+ tokens, // optional export
39
+ }
@@ -1,15 +0,0 @@
1
- // tailwind/preset.js
2
- const tokens = require('./tokens.js') // Include .js extension
3
-
4
- module.exports = {
5
- theme: {
6
- extend: {
7
- colors: tokens.colors,
8
- borderRadius: tokens.radius,
9
- spacing: tokens.spacing,
10
- fontFamily: tokens.fontFamily,
11
- },
12
- },
13
- plugins: [],
14
- tokens, // optional: export tokens for JS use
15
- }