@causw/tokens 0.0.1 → 0.0.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.
@@ -0,0 +1,123 @@
1
+ // src/colors.ts
2
+ var colors = {
3
+ primary: {
4
+ 50: "#e3f2fd",
5
+ 100: "#bbdefb",
6
+ 200: "#90caf9",
7
+ 300: "#64b5f6",
8
+ 400: "#42a5f5",
9
+ 500: "#2196f3",
10
+ 600: "#1e88e5",
11
+ 700: "#1976d2",
12
+ 800: "#1565c0",
13
+ 900: "#0d47a1"
14
+ },
15
+ gray: {
16
+ 50: "#fafafa",
17
+ 100: "#f5f5f5",
18
+ 200: "#eeeeee",
19
+ 300: "#e0e0e0",
20
+ 400: "#bdbdbd",
21
+ 500: "#9e9e9e",
22
+ 600: "#757575",
23
+ 700: "#616161",
24
+ 800: "#424242",
25
+ 900: "#212121"
26
+ },
27
+ success: {
28
+ main: "#4caf50",
29
+ light: "#81c784",
30
+ dark: "#388e3c"
31
+ },
32
+ error: {
33
+ main: "#f44336",
34
+ light: "#e57373",
35
+ dark: "#d32f2f"
36
+ },
37
+ warning: {
38
+ main: "#ff9800",
39
+ light: "#ffb74d",
40
+ dark: "#f57c00"
41
+ },
42
+ info: {
43
+ main: "#2196f3",
44
+ light: "#64b5f6",
45
+ dark: "#1976d2"
46
+ }
47
+ };
48
+
49
+ // src/spacing.ts
50
+ var spacing = {
51
+ 0: "0",
52
+ 1: "0.25rem",
53
+ // 4px
54
+ 2: "0.5rem",
55
+ // 8px
56
+ 3: "0.75rem",
57
+ // 12px
58
+ 4: "1rem",
59
+ // 16px
60
+ 5: "1.25rem",
61
+ // 20px
62
+ 6: "1.5rem",
63
+ // 24px
64
+ 8: "2rem",
65
+ // 32px
66
+ 10: "2.5rem",
67
+ // 40px
68
+ 12: "3rem",
69
+ // 48px
70
+ 16: "4rem",
71
+ // 64px
72
+ 20: "5rem",
73
+ // 80px
74
+ 24: "6rem"
75
+ // 96px
76
+ };
77
+
78
+ // src/typography.ts
79
+ var typography = {
80
+ fontFamily: {
81
+ base: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
82
+ mono: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'
83
+ },
84
+ fontSize: {
85
+ xs: "0.75rem",
86
+ // 12px
87
+ sm: "0.875rem",
88
+ // 14px
89
+ base: "1rem",
90
+ // 16px
91
+ lg: "1.125rem",
92
+ // 18px
93
+ xl: "1.25rem",
94
+ // 20px
95
+ "2xl": "1.5rem",
96
+ // 24px
97
+ "3xl": "1.875rem",
98
+ // 30px
99
+ "4xl": "2.25rem",
100
+ // 36px
101
+ "5xl": "3rem"
102
+ // 48px
103
+ },
104
+ fontWeight: {
105
+ normal: 400,
106
+ medium: 500,
107
+ semibold: 600,
108
+ bold: 700
109
+ },
110
+ lineHeight: {
111
+ none: 1,
112
+ tight: 1.25,
113
+ normal: 1.5,
114
+ relaxed: 1.75,
115
+ loose: 2
116
+ }
117
+ };
118
+
119
+ export {
120
+ colors,
121
+ spacing,
122
+ typography
123
+ };
@@ -0,0 +1,63 @@
1
+ import {
2
+ colors,
3
+ spacing,
4
+ typography
5
+ } from "./chunk-DKDWC554.mjs";
6
+
7
+ // src/tailwind-preset.ts
8
+ var fontWeight = Object.fromEntries(
9
+ Object.entries(typography.fontWeight).map(([key, value]) => [
10
+ key,
11
+ String(value)
12
+ ])
13
+ );
14
+ var lineHeight = Object.fromEntries(
15
+ Object.entries(typography.lineHeight).map(([key, value]) => [
16
+ key,
17
+ String(value)
18
+ ])
19
+ );
20
+ var caswPreset = {
21
+ theme: {
22
+ extend: {
23
+ colors: {
24
+ primary: colors.primary,
25
+ gray: colors.gray,
26
+ success: {
27
+ DEFAULT: colors.success.main,
28
+ light: colors.success.light,
29
+ dark: colors.success.dark
30
+ },
31
+ error: {
32
+ DEFAULT: colors.error.main,
33
+ light: colors.error.light,
34
+ dark: colors.error.dark
35
+ },
36
+ warning: {
37
+ DEFAULT: colors.warning.main,
38
+ light: colors.warning.light,
39
+ dark: colors.warning.dark
40
+ },
41
+ info: {
42
+ DEFAULT: colors.info.main,
43
+ light: colors.info.light,
44
+ dark: colors.info.dark
45
+ }
46
+ },
47
+ spacing,
48
+ fontFamily: {
49
+ sans: typography.fontFamily.base,
50
+ mono: typography.fontFamily.mono
51
+ },
52
+ fontSize: typography.fontSize,
53
+ fontWeight,
54
+ lineHeight
55
+ }
56
+ }
57
+ };
58
+ var tailwind_preset_default = caswPreset;
59
+
60
+ export {
61
+ caswPreset,
62
+ tailwind_preset_default
63
+ };
package/dist/index.mjs CHANGED
@@ -1,120 +1,8 @@
1
- // src/colors.ts
2
- var colors = {
3
- primary: {
4
- 50: "#e3f2fd",
5
- 100: "#bbdefb",
6
- 200: "#90caf9",
7
- 300: "#64b5f6",
8
- 400: "#42a5f5",
9
- 500: "#2196f3",
10
- 600: "#1e88e5",
11
- 700: "#1976d2",
12
- 800: "#1565c0",
13
- 900: "#0d47a1"
14
- },
15
- gray: {
16
- 50: "#fafafa",
17
- 100: "#f5f5f5",
18
- 200: "#eeeeee",
19
- 300: "#e0e0e0",
20
- 400: "#bdbdbd",
21
- 500: "#9e9e9e",
22
- 600: "#757575",
23
- 700: "#616161",
24
- 800: "#424242",
25
- 900: "#212121"
26
- },
27
- success: {
28
- main: "#4caf50",
29
- light: "#81c784",
30
- dark: "#388e3c"
31
- },
32
- error: {
33
- main: "#f44336",
34
- light: "#e57373",
35
- dark: "#d32f2f"
36
- },
37
- warning: {
38
- main: "#ff9800",
39
- light: "#ffb74d",
40
- dark: "#f57c00"
41
- },
42
- info: {
43
- main: "#2196f3",
44
- light: "#64b5f6",
45
- dark: "#1976d2"
46
- }
47
- };
48
-
49
- // src/spacing.ts
50
- var spacing = {
51
- 0: "0",
52
- 1: "0.25rem",
53
- // 4px
54
- 2: "0.5rem",
55
- // 8px
56
- 3: "0.75rem",
57
- // 12px
58
- 4: "1rem",
59
- // 16px
60
- 5: "1.25rem",
61
- // 20px
62
- 6: "1.5rem",
63
- // 24px
64
- 8: "2rem",
65
- // 32px
66
- 10: "2.5rem",
67
- // 40px
68
- 12: "3rem",
69
- // 48px
70
- 16: "4rem",
71
- // 64px
72
- 20: "5rem",
73
- // 80px
74
- 24: "6rem"
75
- // 96px
76
- };
77
-
78
- // src/typography.ts
79
- var typography = {
80
- fontFamily: {
81
- base: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
82
- mono: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'
83
- },
84
- fontSize: {
85
- xs: "0.75rem",
86
- // 12px
87
- sm: "0.875rem",
88
- // 14px
89
- base: "1rem",
90
- // 16px
91
- lg: "1.125rem",
92
- // 18px
93
- xl: "1.25rem",
94
- // 20px
95
- "2xl": "1.5rem",
96
- // 24px
97
- "3xl": "1.875rem",
98
- // 30px
99
- "4xl": "2.25rem",
100
- // 36px
101
- "5xl": "3rem"
102
- // 48px
103
- },
104
- fontWeight: {
105
- normal: 400,
106
- medium: 500,
107
- semibold: 600,
108
- bold: 700
109
- },
110
- lineHeight: {
111
- none: 1,
112
- tight: 1.25,
113
- normal: 1.5,
114
- relaxed: 1.75,
115
- loose: 2
116
- }
117
- };
1
+ import {
2
+ colors,
3
+ spacing,
4
+ typography
5
+ } from "./chunk-DKDWC554.mjs";
118
6
  export {
119
7
  colors,
120
8
  spacing,
@@ -0,0 +1,19 @@
1
+ import { Config } from 'tailwindcss';
2
+
3
+ /**
4
+ * CAUSW Design System Tailwind CSS Preset
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * // tailwind.config.ts
9
+ * import { caswPreset } from '@causw/tokens/tailwind-preset';
10
+ *
11
+ * export default {
12
+ * presets: [caswPreset],
13
+ * content: ['./src/**\/*.{js,ts,jsx,tsx}'],
14
+ * } satisfies Config;
15
+ * ```
16
+ */
17
+ declare const caswPreset: Partial<Config>;
18
+
19
+ export { caswPreset, caswPreset as default };
@@ -0,0 +1,19 @@
1
+ import { Config } from 'tailwindcss';
2
+
3
+ /**
4
+ * CAUSW Design System Tailwind CSS Preset
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * // tailwind.config.ts
9
+ * import { caswPreset } from '@causw/tokens/tailwind-preset';
10
+ *
11
+ * export default {
12
+ * presets: [caswPreset],
13
+ * content: ['./src/**\/*.{js,ts,jsx,tsx}'],
14
+ * } satisfies Config;
15
+ * ```
16
+ */
17
+ declare const caswPreset: Partial<Config>;
18
+
19
+ export { caswPreset, caswPreset as default };
@@ -0,0 +1,201 @@
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 tailwind_preset_exports = {};
22
+ __export(tailwind_preset_exports, {
23
+ caswPreset: () => caswPreset,
24
+ default: () => tailwind_preset_default
25
+ });
26
+ module.exports = __toCommonJS(tailwind_preset_exports);
27
+
28
+ // src/colors.ts
29
+ var colors = {
30
+ primary: {
31
+ 50: "#e3f2fd",
32
+ 100: "#bbdefb",
33
+ 200: "#90caf9",
34
+ 300: "#64b5f6",
35
+ 400: "#42a5f5",
36
+ 500: "#2196f3",
37
+ 600: "#1e88e5",
38
+ 700: "#1976d2",
39
+ 800: "#1565c0",
40
+ 900: "#0d47a1"
41
+ },
42
+ gray: {
43
+ 50: "#fafafa",
44
+ 100: "#f5f5f5",
45
+ 200: "#eeeeee",
46
+ 300: "#e0e0e0",
47
+ 400: "#bdbdbd",
48
+ 500: "#9e9e9e",
49
+ 600: "#757575",
50
+ 700: "#616161",
51
+ 800: "#424242",
52
+ 900: "#212121"
53
+ },
54
+ success: {
55
+ main: "#4caf50",
56
+ light: "#81c784",
57
+ dark: "#388e3c"
58
+ },
59
+ error: {
60
+ main: "#f44336",
61
+ light: "#e57373",
62
+ dark: "#d32f2f"
63
+ },
64
+ warning: {
65
+ main: "#ff9800",
66
+ light: "#ffb74d",
67
+ dark: "#f57c00"
68
+ },
69
+ info: {
70
+ main: "#2196f3",
71
+ light: "#64b5f6",
72
+ dark: "#1976d2"
73
+ }
74
+ };
75
+
76
+ // src/spacing.ts
77
+ var spacing = {
78
+ 0: "0",
79
+ 1: "0.25rem",
80
+ // 4px
81
+ 2: "0.5rem",
82
+ // 8px
83
+ 3: "0.75rem",
84
+ // 12px
85
+ 4: "1rem",
86
+ // 16px
87
+ 5: "1.25rem",
88
+ // 20px
89
+ 6: "1.5rem",
90
+ // 24px
91
+ 8: "2rem",
92
+ // 32px
93
+ 10: "2.5rem",
94
+ // 40px
95
+ 12: "3rem",
96
+ // 48px
97
+ 16: "4rem",
98
+ // 64px
99
+ 20: "5rem",
100
+ // 80px
101
+ 24: "6rem"
102
+ // 96px
103
+ };
104
+
105
+ // src/typography.ts
106
+ var typography = {
107
+ fontFamily: {
108
+ base: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
109
+ mono: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'
110
+ },
111
+ fontSize: {
112
+ xs: "0.75rem",
113
+ // 12px
114
+ sm: "0.875rem",
115
+ // 14px
116
+ base: "1rem",
117
+ // 16px
118
+ lg: "1.125rem",
119
+ // 18px
120
+ xl: "1.25rem",
121
+ // 20px
122
+ "2xl": "1.5rem",
123
+ // 24px
124
+ "3xl": "1.875rem",
125
+ // 30px
126
+ "4xl": "2.25rem",
127
+ // 36px
128
+ "5xl": "3rem"
129
+ // 48px
130
+ },
131
+ fontWeight: {
132
+ normal: 400,
133
+ medium: 500,
134
+ semibold: 600,
135
+ bold: 700
136
+ },
137
+ lineHeight: {
138
+ none: 1,
139
+ tight: 1.25,
140
+ normal: 1.5,
141
+ relaxed: 1.75,
142
+ loose: 2
143
+ }
144
+ };
145
+
146
+ // src/tailwind-preset.ts
147
+ var fontWeight = Object.fromEntries(
148
+ Object.entries(typography.fontWeight).map(([key, value]) => [
149
+ key,
150
+ String(value)
151
+ ])
152
+ );
153
+ var lineHeight = Object.fromEntries(
154
+ Object.entries(typography.lineHeight).map(([key, value]) => [
155
+ key,
156
+ String(value)
157
+ ])
158
+ );
159
+ var caswPreset = {
160
+ theme: {
161
+ extend: {
162
+ colors: {
163
+ primary: colors.primary,
164
+ gray: colors.gray,
165
+ success: {
166
+ DEFAULT: colors.success.main,
167
+ light: colors.success.light,
168
+ dark: colors.success.dark
169
+ },
170
+ error: {
171
+ DEFAULT: colors.error.main,
172
+ light: colors.error.light,
173
+ dark: colors.error.dark
174
+ },
175
+ warning: {
176
+ DEFAULT: colors.warning.main,
177
+ light: colors.warning.light,
178
+ dark: colors.warning.dark
179
+ },
180
+ info: {
181
+ DEFAULT: colors.info.main,
182
+ light: colors.info.light,
183
+ dark: colors.info.dark
184
+ }
185
+ },
186
+ spacing,
187
+ fontFamily: {
188
+ sans: typography.fontFamily.base,
189
+ mono: typography.fontFamily.mono
190
+ },
191
+ fontSize: typography.fontSize,
192
+ fontWeight,
193
+ lineHeight
194
+ }
195
+ }
196
+ };
197
+ var tailwind_preset_default = caswPreset;
198
+ // Annotate the CommonJS export names for ESM import in node:
199
+ 0 && (module.exports = {
200
+ caswPreset
201
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ caswPreset,
3
+ tailwind_preset_default
4
+ } from "./chunk-MOGDUGGD.mjs";
5
+ import "./chunk-DKDWC554.mjs";
6
+ export {
7
+ caswPreset,
8
+ tailwind_preset_default as default
9
+ };
@@ -0,0 +1,23 @@
1
+ import { Config } from 'tailwindcss';
2
+
3
+ /**
4
+ * CAUSW Design System Tailwind CSS Configuration
5
+ *
6
+ * 이 파일은 `@config` 지시자와 함께 사용할 수 있는 완전한 Tailwind config입니다.
7
+ *
8
+ * @example CSS에서 사용
9
+ * ```css
10
+ * @import 'tailwindcss';
11
+ * @config '@causw/tokens/tailwind.config';
12
+ * ```
13
+ *
14
+ * @example JS/TS config에서 사용
15
+ * ```ts
16
+ * // tailwind.config.ts
17
+ * import caswConfig from '@causw/tokens/tailwind.config';
18
+ * export default caswConfig;
19
+ * ```
20
+ */
21
+ declare const caswConfig: Config;
22
+
23
+ export { caswConfig, caswConfig as default };
@@ -0,0 +1,23 @@
1
+ import { Config } from 'tailwindcss';
2
+
3
+ /**
4
+ * CAUSW Design System Tailwind CSS Configuration
5
+ *
6
+ * 이 파일은 `@config` 지시자와 함께 사용할 수 있는 완전한 Tailwind config입니다.
7
+ *
8
+ * @example CSS에서 사용
9
+ * ```css
10
+ * @import 'tailwindcss';
11
+ * @config '@causw/tokens/tailwind.config';
12
+ * ```
13
+ *
14
+ * @example JS/TS config에서 사용
15
+ * ```ts
16
+ * // tailwind.config.ts
17
+ * import caswConfig from '@causw/tokens/tailwind.config';
18
+ * export default caswConfig;
19
+ * ```
20
+ */
21
+ declare const caswConfig: Config;
22
+
23
+ export { caswConfig, caswConfig as default };
@@ -0,0 +1,208 @@
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.config.ts
21
+ var tailwind_config_exports = {};
22
+ __export(tailwind_config_exports, {
23
+ caswConfig: () => caswConfig,
24
+ default: () => tailwind_config_default
25
+ });
26
+ module.exports = __toCommonJS(tailwind_config_exports);
27
+
28
+ // src/colors.ts
29
+ var colors = {
30
+ primary: {
31
+ 50: "#e3f2fd",
32
+ 100: "#bbdefb",
33
+ 200: "#90caf9",
34
+ 300: "#64b5f6",
35
+ 400: "#42a5f5",
36
+ 500: "#2196f3",
37
+ 600: "#1e88e5",
38
+ 700: "#1976d2",
39
+ 800: "#1565c0",
40
+ 900: "#0d47a1"
41
+ },
42
+ gray: {
43
+ 50: "#fafafa",
44
+ 100: "#f5f5f5",
45
+ 200: "#eeeeee",
46
+ 300: "#e0e0e0",
47
+ 400: "#bdbdbd",
48
+ 500: "#9e9e9e",
49
+ 600: "#757575",
50
+ 700: "#616161",
51
+ 800: "#424242",
52
+ 900: "#212121"
53
+ },
54
+ success: {
55
+ main: "#4caf50",
56
+ light: "#81c784",
57
+ dark: "#388e3c"
58
+ },
59
+ error: {
60
+ main: "#f44336",
61
+ light: "#e57373",
62
+ dark: "#d32f2f"
63
+ },
64
+ warning: {
65
+ main: "#ff9800",
66
+ light: "#ffb74d",
67
+ dark: "#f57c00"
68
+ },
69
+ info: {
70
+ main: "#2196f3",
71
+ light: "#64b5f6",
72
+ dark: "#1976d2"
73
+ }
74
+ };
75
+
76
+ // src/spacing.ts
77
+ var spacing = {
78
+ 0: "0",
79
+ 1: "0.25rem",
80
+ // 4px
81
+ 2: "0.5rem",
82
+ // 8px
83
+ 3: "0.75rem",
84
+ // 12px
85
+ 4: "1rem",
86
+ // 16px
87
+ 5: "1.25rem",
88
+ // 20px
89
+ 6: "1.5rem",
90
+ // 24px
91
+ 8: "2rem",
92
+ // 32px
93
+ 10: "2.5rem",
94
+ // 40px
95
+ 12: "3rem",
96
+ // 48px
97
+ 16: "4rem",
98
+ // 64px
99
+ 20: "5rem",
100
+ // 80px
101
+ 24: "6rem"
102
+ // 96px
103
+ };
104
+
105
+ // src/typography.ts
106
+ var typography = {
107
+ fontFamily: {
108
+ base: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
109
+ mono: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'
110
+ },
111
+ fontSize: {
112
+ xs: "0.75rem",
113
+ // 12px
114
+ sm: "0.875rem",
115
+ // 14px
116
+ base: "1rem",
117
+ // 16px
118
+ lg: "1.125rem",
119
+ // 18px
120
+ xl: "1.25rem",
121
+ // 20px
122
+ "2xl": "1.5rem",
123
+ // 24px
124
+ "3xl": "1.875rem",
125
+ // 30px
126
+ "4xl": "2.25rem",
127
+ // 36px
128
+ "5xl": "3rem"
129
+ // 48px
130
+ },
131
+ fontWeight: {
132
+ normal: 400,
133
+ medium: 500,
134
+ semibold: 600,
135
+ bold: 700
136
+ },
137
+ lineHeight: {
138
+ none: 1,
139
+ tight: 1.25,
140
+ normal: 1.5,
141
+ relaxed: 1.75,
142
+ loose: 2
143
+ }
144
+ };
145
+
146
+ // src/tailwind-preset.ts
147
+ var fontWeight = Object.fromEntries(
148
+ Object.entries(typography.fontWeight).map(([key, value]) => [
149
+ key,
150
+ String(value)
151
+ ])
152
+ );
153
+ var lineHeight = Object.fromEntries(
154
+ Object.entries(typography.lineHeight).map(([key, value]) => [
155
+ key,
156
+ String(value)
157
+ ])
158
+ );
159
+ var caswPreset = {
160
+ theme: {
161
+ extend: {
162
+ colors: {
163
+ primary: colors.primary,
164
+ gray: colors.gray,
165
+ success: {
166
+ DEFAULT: colors.success.main,
167
+ light: colors.success.light,
168
+ dark: colors.success.dark
169
+ },
170
+ error: {
171
+ DEFAULT: colors.error.main,
172
+ light: colors.error.light,
173
+ dark: colors.error.dark
174
+ },
175
+ warning: {
176
+ DEFAULT: colors.warning.main,
177
+ light: colors.warning.light,
178
+ dark: colors.warning.dark
179
+ },
180
+ info: {
181
+ DEFAULT: colors.info.main,
182
+ light: colors.info.light,
183
+ dark: colors.info.dark
184
+ }
185
+ },
186
+ spacing,
187
+ fontFamily: {
188
+ sans: typography.fontFamily.base,
189
+ mono: typography.fontFamily.mono
190
+ },
191
+ fontSize: typography.fontSize,
192
+ fontWeight,
193
+ lineHeight
194
+ }
195
+ }
196
+ };
197
+
198
+ // src/tailwind.config.ts
199
+ var caswConfig = {
200
+ content: [],
201
+ // 사용처에서 오버라이드 필요
202
+ presets: [caswPreset]
203
+ };
204
+ var tailwind_config_default = caswConfig;
205
+ // Annotate the CommonJS export names for ESM import in node:
206
+ 0 && (module.exports = {
207
+ caswConfig
208
+ });
@@ -0,0 +1,16 @@
1
+ import {
2
+ caswPreset
3
+ } from "./chunk-MOGDUGGD.mjs";
4
+ import "./chunk-DKDWC554.mjs";
5
+
6
+ // src/tailwind.config.ts
7
+ var caswConfig = {
8
+ content: [],
9
+ // 사용처에서 오버라이드 필요
10
+ presets: [caswPreset]
11
+ };
12
+ var tailwind_config_default = caswConfig;
13
+ export {
14
+ caswConfig,
15
+ tailwind_config_default as default
16
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@causw/tokens",
3
- "version": "0.0.1",
4
- "description": "Design tokens for CAUSW Design System",
3
+ "version": "0.0.3",
4
+ "description": "Design tokens for CAUSW Design System - CAU Software Community Service",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -10,22 +10,39 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.mjs",
12
12
  "require": "./dist/index.js"
13
+ },
14
+ "./tailwind-preset": {
15
+ "types": "./dist/tailwind-preset.d.ts",
16
+ "import": "./dist/tailwind-preset.mjs",
17
+ "require": "./dist/tailwind-preset.js"
18
+ },
19
+ "./tailwind.config": {
20
+ "types": "./dist/tailwind.config.d.ts",
21
+ "import": "./dist/tailwind.config.mjs",
22
+ "require": "./dist/tailwind.config.js"
13
23
  }
14
24
  },
15
25
  "files": [
16
26
  "dist"
17
27
  ],
18
28
  "devDependencies": {
29
+ "tailwindcss": "^4.1.17",
19
30
  "tsup": "^8.0.0",
20
31
  "typescript": "^5.3.0"
21
32
  },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/CAUCSE/CAUSW-frontend-design-system",
36
+ "directory": "packages/tokens"
37
+ },
22
38
  "publishConfig": {
23
- "access": "public"
39
+ "access": "public",
40
+ "provenance": true
24
41
  },
25
42
  "scripts": {
26
- "build": "tsup src/index.ts --format cjs,esm --dts",
27
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
28
- "lint": "eslint src --ext .ts",
43
+ "build": "tsup src/index.ts src/tailwind-preset.ts src/tailwind.config.ts --format cjs,esm --dts",
44
+ "dev": "tsup src/index.ts src/tailwind-preset.ts src/tailwind.config.ts --format cjs,esm --dts --watch",
45
+ "lint": "eslint src",
29
46
  "test": "echo \"No tests yet\""
30
47
  }
31
48
  }