@collaflow/design 0.1.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/LICENSE +201 -0
- package/dist/css/base.css +15 -0
- package/dist/css/variables.css +29 -0
- package/dist/index.cjs +191 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +261 -0
- package/dist/index.d.ts +261 -0
- package/dist/index.js +157 -0
- package/dist/index.js.map +1 -0
- package/dist/tailwind/preset.cjs +157 -0
- package/dist/tailwind/preset.cjs.map +1 -0
- package/dist/tailwind/preset.d.cts +5 -0
- package/dist/tailwind/preset.d.ts +5 -0
- package/dist/tailwind/preset.js +130 -0
- package/dist/tailwind/preset.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/tailwind/preset.ts
|
|
21
|
+
var preset_exports = {};
|
|
22
|
+
__export(preset_exports, {
|
|
23
|
+
collaflowPreset: () => collaflowPreset
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(preset_exports);
|
|
26
|
+
|
|
27
|
+
// src/tokens/colors.ts
|
|
28
|
+
var colors = {
|
|
29
|
+
light: {
|
|
30
|
+
background: {
|
|
31
|
+
primary: "#F7F7F5",
|
|
32
|
+
secondary: "#FFFFFF",
|
|
33
|
+
tertiary: "#F6F5F4"
|
|
34
|
+
},
|
|
35
|
+
text: {
|
|
36
|
+
primary: "#1F1F1F",
|
|
37
|
+
secondary: "#6B6B6B",
|
|
38
|
+
disabled: "#9B9B9B"
|
|
39
|
+
},
|
|
40
|
+
border: {
|
|
41
|
+
default: "#E5E5E5",
|
|
42
|
+
strong: "#D3D3D3"
|
|
43
|
+
},
|
|
44
|
+
accent: {
|
|
45
|
+
blue: "#2383E2",
|
|
46
|
+
green: "#0F7B6C",
|
|
47
|
+
orange: "#DFAB01",
|
|
48
|
+
red: "#E03E3E"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
dark: {
|
|
52
|
+
background: {
|
|
53
|
+
primary: "#191919",
|
|
54
|
+
secondary: "#202020",
|
|
55
|
+
tertiary: "#2A2A2A"
|
|
56
|
+
},
|
|
57
|
+
text: {
|
|
58
|
+
primary: "#E8E8E8",
|
|
59
|
+
secondary: "#9B9B9B",
|
|
60
|
+
disabled: "#6B6B6B"
|
|
61
|
+
},
|
|
62
|
+
border: {
|
|
63
|
+
default: "#333333",
|
|
64
|
+
strong: "#444444"
|
|
65
|
+
},
|
|
66
|
+
accent: {
|
|
67
|
+
blue: "#4A9EFF",
|
|
68
|
+
green: "#2A9D99",
|
|
69
|
+
orange: "#E5B73B",
|
|
70
|
+
red: "#FF5C5C"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// src/tokens/typography.ts
|
|
76
|
+
var typography = {
|
|
77
|
+
fontFamily: {
|
|
78
|
+
sans: ["Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "sans-serif"],
|
|
79
|
+
mono: ["SFMono-Regular", "Menlo", "Consolas", "monospace"]
|
|
80
|
+
},
|
|
81
|
+
fontSize: {
|
|
82
|
+
xs: "12px",
|
|
83
|
+
sm: "14px",
|
|
84
|
+
base: "16px",
|
|
85
|
+
lg: "20px",
|
|
86
|
+
xl: "24px",
|
|
87
|
+
"2xl": "32px",
|
|
88
|
+
"3xl": "48px"
|
|
89
|
+
},
|
|
90
|
+
fontWeight: {
|
|
91
|
+
normal: "400",
|
|
92
|
+
medium: "500",
|
|
93
|
+
semibold: "600",
|
|
94
|
+
bold: "700"
|
|
95
|
+
},
|
|
96
|
+
lineHeight: {
|
|
97
|
+
tight: 1.25,
|
|
98
|
+
normal: 1.5,
|
|
99
|
+
relaxed: 1.75
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// src/tokens/spacing.ts
|
|
104
|
+
var spacing = {
|
|
105
|
+
0: "0px",
|
|
106
|
+
1: "4px",
|
|
107
|
+
2: "8px",
|
|
108
|
+
3: "12px",
|
|
109
|
+
4: "16px",
|
|
110
|
+
6: "24px",
|
|
111
|
+
8: "32px",
|
|
112
|
+
12: "48px",
|
|
113
|
+
16: "64px"
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// src/tokens/radius.ts
|
|
117
|
+
var radius = {
|
|
118
|
+
none: "0px",
|
|
119
|
+
sm: "4px",
|
|
120
|
+
md: "8px",
|
|
121
|
+
lg: "12px",
|
|
122
|
+
full: "9999px"
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// src/tokens/shadow.ts
|
|
126
|
+
var shadow = {
|
|
127
|
+
card: "0 1px 3px rgba(0,0,0,0.1)",
|
|
128
|
+
popover: "0 4px 12px rgba(0,0,0,0.15)",
|
|
129
|
+
modal: "0 8px 24px rgba(0,0,0,0.2)"
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
// src/tailwind/preset.ts
|
|
133
|
+
var collaflowPreset = {
|
|
134
|
+
darkMode: ["class"],
|
|
135
|
+
theme: {
|
|
136
|
+
extend: {
|
|
137
|
+
colors: {
|
|
138
|
+
background: colors.light.background,
|
|
139
|
+
foreground: colors.light.text.primary,
|
|
140
|
+
muted: colors.light.text.secondary,
|
|
141
|
+
border: colors.light.border,
|
|
142
|
+
accent: colors.light.accent
|
|
143
|
+
},
|
|
144
|
+
fontFamily: typography.fontFamily,
|
|
145
|
+
fontSize: typography.fontSize,
|
|
146
|
+
fontWeight: typography.fontWeight,
|
|
147
|
+
spacing,
|
|
148
|
+
borderRadius: radius,
|
|
149
|
+
boxShadow: shadow
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
154
|
+
0 && (module.exports = {
|
|
155
|
+
collaflowPreset
|
|
156
|
+
});
|
|
157
|
+
//# sourceMappingURL=preset.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tailwind/preset.ts","../../src/tokens/colors.ts","../../src/tokens/typography.ts","../../src/tokens/spacing.ts","../../src/tokens/radius.ts","../../src/tokens/shadow.ts"],"sourcesContent":["import { colors, typography, spacing, radius, shadow } from '../tokens';\nimport type { Config } from 'tailwindcss';\n\nexport const collaflowPreset: Partial<Config> = {\n darkMode: ['class'],\n theme: {\n extend: {\n colors: {\n background: colors.light.background,\n foreground: colors.light.text.primary,\n muted: colors.light.text.secondary,\n border: colors.light.border,\n accent: colors.light.accent,\n },\n fontFamily: typography.fontFamily,\n fontSize: typography.fontSize,\n fontWeight: typography.fontWeight,\n spacing,\n borderRadius: radius,\n boxShadow: shadow,\n },\n },\n};\n","export const colors = {\n light: {\n background: {\n primary: '#F7F7F5',\n secondary: '#FFFFFF',\n tertiary: '#F6F5F4',\n },\n text: {\n primary: '#1F1F1F',\n secondary: '#6B6B6B',\n disabled: '#9B9B9B',\n },\n border: {\n default: '#E5E5E5',\n strong: '#D3D3D3',\n },\n accent: {\n blue: '#2383E2',\n green: '#0F7B6C',\n orange: '#DFAB01',\n red: '#E03E3E',\n },\n },\n dark: {\n background: {\n primary: '#191919',\n secondary: '#202020',\n tertiary: '#2A2A2A',\n },\n text: {\n primary: '#E8E8E8',\n secondary: '#9B9B9B',\n disabled: '#6B6B6B',\n },\n border: {\n default: '#333333',\n strong: '#444444',\n },\n accent: {\n blue: '#4A9EFF',\n green: '#2A9D99',\n orange: '#E5B73B',\n red: '#FF5C5C',\n },\n },\n};\n\nexport type Colors = typeof colors;\n","export const typography = {\n fontFamily: {\n sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'sans-serif'],\n mono: ['SFMono-Regular', 'Menlo', 'Consolas', 'monospace'],\n },\n fontSize: {\n xs: '12px',\n sm: '14px',\n base: '16px',\n lg: '20px',\n xl: '24px',\n '2xl': '32px',\n '3xl': '48px',\n },\n fontWeight: {\n normal: '400',\n medium: '500',\n semibold: '600',\n bold: '700',\n },\n lineHeight: {\n tight: 1.25,\n normal: 1.5,\n relaxed: 1.75,\n },\n};\n\nexport type Typography = typeof typography;\n","export const spacing = {\n 0: '0px',\n 1: '4px',\n 2: '8px',\n 3: '12px',\n 4: '16px',\n 6: '24px',\n 8: '32px',\n 12: '48px',\n 16: '64px',\n};\n\nexport type Spacing = typeof spacing;\n","export const radius = {\n none: '0px',\n sm: '4px',\n md: '8px',\n lg: '12px',\n full: '9999px',\n};\n\nexport type Radius = typeof radius;\n","export const shadow = {\n card: '0 1px 3px rgba(0,0,0,0.1)',\n popover: '0 4px 12px rgba(0,0,0,0.15)',\n modal: '0 8px 24px rgba(0,0,0,0.2)',\n};\n\nexport type Shadow = typeof shadow;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,SAAS;AAAA,EACpB,OAAO;AAAA,IACL,YAAY;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,M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AI;AAAA,EACJ,IAAI;AACN;;;ACVO,IAAM,SAAS;AAAA,EACpB,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AACR;;;ACNO,IAAM,SAAS;AAAA,EACpB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AACT;;;ALDO,IAAM,kBAAmC;AAAA,EAC9C,UAAU,CAAC,OAAO;AAAA,EAClB,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,QAAQ;AAAA,QACN,YAAY,OAAO,MAAM;AAAA,QACzB,YAAY,OAAO,MAAM,KAAK;AAAA,QAC9B,OAAO,OAAO,MAAM,KAAK;AAAA,QACzB,QAAQ,OAAO,MAAM;AAAA,QACrB,QAAQ,OAAO,MAAM;AAAA,MACvB;AAAA,MACA,YAAY,WAAW;AAAA,MACvB,UAAU,WAAW;AAAA,MACrB,YAAY,WAAW;AAAA,MACvB;AAAA,MACA,cAAc;AAAA,MACd,WAAW;AAAA,IACb;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// src/tokens/colors.ts
|
|
2
|
+
var colors = {
|
|
3
|
+
light: {
|
|
4
|
+
background: {
|
|
5
|
+
primary: "#F7F7F5",
|
|
6
|
+
secondary: "#FFFFFF",
|
|
7
|
+
tertiary: "#F6F5F4"
|
|
8
|
+
},
|
|
9
|
+
text: {
|
|
10
|
+
primary: "#1F1F1F",
|
|
11
|
+
secondary: "#6B6B6B",
|
|
12
|
+
disabled: "#9B9B9B"
|
|
13
|
+
},
|
|
14
|
+
border: {
|
|
15
|
+
default: "#E5E5E5",
|
|
16
|
+
strong: "#D3D3D3"
|
|
17
|
+
},
|
|
18
|
+
accent: {
|
|
19
|
+
blue: "#2383E2",
|
|
20
|
+
green: "#0F7B6C",
|
|
21
|
+
orange: "#DFAB01",
|
|
22
|
+
red: "#E03E3E"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
dark: {
|
|
26
|
+
background: {
|
|
27
|
+
primary: "#191919",
|
|
28
|
+
secondary: "#202020",
|
|
29
|
+
tertiary: "#2A2A2A"
|
|
30
|
+
},
|
|
31
|
+
text: {
|
|
32
|
+
primary: "#E8E8E8",
|
|
33
|
+
secondary: "#9B9B9B",
|
|
34
|
+
disabled: "#6B6B6B"
|
|
35
|
+
},
|
|
36
|
+
border: {
|
|
37
|
+
default: "#333333",
|
|
38
|
+
strong: "#444444"
|
|
39
|
+
},
|
|
40
|
+
accent: {
|
|
41
|
+
blue: "#4A9EFF",
|
|
42
|
+
green: "#2A9D99",
|
|
43
|
+
orange: "#E5B73B",
|
|
44
|
+
red: "#FF5C5C"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// src/tokens/typography.ts
|
|
50
|
+
var typography = {
|
|
51
|
+
fontFamily: {
|
|
52
|
+
sans: ["Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "sans-serif"],
|
|
53
|
+
mono: ["SFMono-Regular", "Menlo", "Consolas", "monospace"]
|
|
54
|
+
},
|
|
55
|
+
fontSize: {
|
|
56
|
+
xs: "12px",
|
|
57
|
+
sm: "14px",
|
|
58
|
+
base: "16px",
|
|
59
|
+
lg: "20px",
|
|
60
|
+
xl: "24px",
|
|
61
|
+
"2xl": "32px",
|
|
62
|
+
"3xl": "48px"
|
|
63
|
+
},
|
|
64
|
+
fontWeight: {
|
|
65
|
+
normal: "400",
|
|
66
|
+
medium: "500",
|
|
67
|
+
semibold: "600",
|
|
68
|
+
bold: "700"
|
|
69
|
+
},
|
|
70
|
+
lineHeight: {
|
|
71
|
+
tight: 1.25,
|
|
72
|
+
normal: 1.5,
|
|
73
|
+
relaxed: 1.75
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// src/tokens/spacing.ts
|
|
78
|
+
var spacing = {
|
|
79
|
+
0: "0px",
|
|
80
|
+
1: "4px",
|
|
81
|
+
2: "8px",
|
|
82
|
+
3: "12px",
|
|
83
|
+
4: "16px",
|
|
84
|
+
6: "24px",
|
|
85
|
+
8: "32px",
|
|
86
|
+
12: "48px",
|
|
87
|
+
16: "64px"
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// src/tokens/radius.ts
|
|
91
|
+
var radius = {
|
|
92
|
+
none: "0px",
|
|
93
|
+
sm: "4px",
|
|
94
|
+
md: "8px",
|
|
95
|
+
lg: "12px",
|
|
96
|
+
full: "9999px"
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// src/tokens/shadow.ts
|
|
100
|
+
var shadow = {
|
|
101
|
+
card: "0 1px 3px rgba(0,0,0,0.1)",
|
|
102
|
+
popover: "0 4px 12px rgba(0,0,0,0.15)",
|
|
103
|
+
modal: "0 8px 24px rgba(0,0,0,0.2)"
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
// src/tailwind/preset.ts
|
|
107
|
+
var collaflowPreset = {
|
|
108
|
+
darkMode: ["class"],
|
|
109
|
+
theme: {
|
|
110
|
+
extend: {
|
|
111
|
+
colors: {
|
|
112
|
+
background: colors.light.background,
|
|
113
|
+
foreground: colors.light.text.primary,
|
|
114
|
+
muted: colors.light.text.secondary,
|
|
115
|
+
border: colors.light.border,
|
|
116
|
+
accent: colors.light.accent
|
|
117
|
+
},
|
|
118
|
+
fontFamily: typography.fontFamily,
|
|
119
|
+
fontSize: typography.fontSize,
|
|
120
|
+
fontWeight: typography.fontWeight,
|
|
121
|
+
spacing,
|
|
122
|
+
borderRadius: radius,
|
|
123
|
+
boxShadow: shadow
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
export {
|
|
128
|
+
collaflowPreset
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=preset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tokens/colors.ts","../../src/tokens/typography.ts","../../src/tokens/spacing.ts","../../src/tokens/radius.ts","../../src/tokens/shadow.ts","../../src/tailwind/preset.ts"],"sourcesContent":["export const colors = {\n light: {\n background: {\n primary: '#F7F7F5',\n secondary: '#FFFFFF',\n tertiary: '#F6F5F4',\n },\n text: {\n primary: '#1F1F1F',\n secondary: '#6B6B6B',\n disabled: '#9B9B9B',\n },\n border: {\n default: '#E5E5E5',\n strong: '#D3D3D3',\n },\n accent: {\n blue: '#2383E2',\n green: '#0F7B6C',\n orange: '#DFAB01',\n red: '#E03E3E',\n },\n },\n dark: {\n background: {\n primary: '#191919',\n secondary: '#202020',\n tertiary: '#2A2A2A',\n },\n text: {\n primary: '#E8E8E8',\n secondary: '#9B9B9B',\n disabled: '#6B6B6B',\n },\n border: {\n default: '#333333',\n strong: '#444444',\n },\n accent: {\n blue: '#4A9EFF',\n green: '#2A9D99',\n orange: '#E5B73B',\n red: '#FF5C5C',\n },\n },\n};\n\nexport type Colors = typeof colors;\n","export const typography = {\n fontFamily: {\n sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'sans-serif'],\n mono: ['SFMono-Regular', 'Menlo', 'Consolas', 'monospace'],\n },\n fontSize: {\n xs: '12px',\n sm: '14px',\n base: '16px',\n lg: '20px',\n xl: '24px',\n '2xl': '32px',\n '3xl': '48px',\n },\n fontWeight: {\n normal: '400',\n medium: '500',\n semibold: '600',\n bold: '700',\n },\n lineHeight: {\n tight: 1.25,\n normal: 1.5,\n relaxed: 1.75,\n },\n};\n\nexport type Typography = typeof typography;\n","export const spacing = {\n 0: '0px',\n 1: '4px',\n 2: '8px',\n 3: '12px',\n 4: '16px',\n 6: '24px',\n 8: '32px',\n 12: '48px',\n 16: '64px',\n};\n\nexport type Spacing = typeof spacing;\n","export const radius = {\n none: '0px',\n sm: '4px',\n md: '8px',\n lg: '12px',\n full: '9999px',\n};\n\nexport type Radius = typeof radius;\n","export const shadow = {\n card: '0 1px 3px rgba(0,0,0,0.1)',\n popover: '0 4px 12px rgba(0,0,0,0.15)',\n modal: '0 8px 24px rgba(0,0,0,0.2)',\n};\n\nexport type Shadow = typeof shadow;\n","import { colors, typography, spacing, radius, shadow } from '../tokens';\nimport type { Config } from 'tailwindcss';\n\nexport const collaflowPreset: Partial<Config> = {\n darkMode: ['class'],\n theme: {\n extend: {\n colors: {\n background: colors.light.background,\n foreground: colors.light.text.primary,\n muted: colors.light.text.secondary,\n border: colors.light.border,\n accent: colors.light.accent,\n },\n fontFamily: typography.fontFamily,\n fontSize: typography.fontSize,\n fontWeight: typography.fontWeight,\n spacing,\n borderRadius: radius,\n boxShadow: shadow,\n },\n },\n};\n"],"mappings":";AAAO,IAAM,SAAS;AAAA,EACpB,OAAO;AAAA,IACL,YAAY;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,IACP;AAAA,EACF;AAAA,EACA,MAAM;AAAA,IACJ,YAAY;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,WAAW;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,IACP;AAAA,EACF;AACF;;;AC7CO,IAAM,aAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,SAAS,iBAAiB,sBAAsB,YAAY,YAAY;AAAA,IAC/E,MAAM,CAAC,kBAAkB,SAAS,YAAY,WAA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ow/design",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared design tokens and theme system for CollaFlow",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./tailwind": {
|
|
17
|
+
"types": "./dist/tailwind/preset.d.ts",
|
|
18
|
+
"import": "./dist/tailwind/preset.js",
|
|
19
|
+
"require": "./dist/tailwind/preset.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./css/variables.css": "./dist/css/variables.css",
|
|
22
|
+
"./css/base.css": "./dist/css/base.css"
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/index.cjs",
|
|
25
|
+
"module": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^20.17.6",
|
|
32
|
+
"rimraf": "^5.0.10",
|
|
33
|
+
"tailwindcss": "^3.4.17",
|
|
34
|
+
"tsup": "^8.3.5",
|
|
35
|
+
"typescript": "^5.6.3",
|
|
36
|
+
"vitest": "^2.1.8"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"dev": "tsup --watch",
|
|
40
|
+
"build": "tsup && node -e \"require('fs').cpSync('./src/css', './dist/css', { recursive: true, force: true })\"",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:watch": "vitest",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
44
|
+
"lint": "echo 'lint: skipped until eslint is configured'",
|
|
45
|
+
"clean": "rimraf dist"
|
|
46
|
+
}
|
|
47
|
+
}
|