@shuriken-ui/tailwind 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,320 @@
1
+ 'use strict';
2
+
3
+ const colors = require('tailwindcss/colors');
4
+ const typography = require('@tailwindcss/typography');
5
+ const aspectRatio = require('@tailwindcss/aspect-ratio');
6
+ const plugin = require('tailwindcss/plugin');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
9
+
10
+ const colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
11
+ const typography__default = /*#__PURE__*/_interopDefaultCompat(typography);
12
+ const aspectRatio__default = /*#__PURE__*/_interopDefaultCompat(aspectRatio);
13
+ const plugin__default = /*#__PURE__*/_interopDefaultCompat(plugin);
14
+
15
+ const shurikenUIComponents = plugin__default.withOptions(
16
+ function(options = {}) {
17
+ return function({ addComponents }) {
18
+ addComponents({
19
+ ".placeload": {
20
+ position: "relative",
21
+ background: "linear-gradient( to right, rgb(0 0 0 / 7%) 8% ,rgb(0 0 0 / 15%) 18%, rgb(0 0 0 / 7%) 33%)",
22
+ backgroundSize: "1200px 104px"
23
+ },
24
+ ".dark .placeload": {
25
+ position: "relative",
26
+ background: "linear-gradient(to right, rgb(255 255 255 / 15%) 8%, rgb(255 255 255 / 24%) 18%, rgb(255 255 255 / 15%) 33%)",
27
+ backgroundSize: "1200px 104px"
28
+ }
29
+ });
30
+ addComponents({
31
+ ".nui-focus": {
32
+ "@apply outline-1 outline-dashed outline-offset-2": {},
33
+ "@apply outline-transparent": {},
34
+ "&:focus-within": {
35
+ "@apply outline-muted-300 dark:outline-muted-600": {},
36
+ "@apply outline-dashed ring-0": {}
37
+ },
38
+ "&:focus-visible": {
39
+ "@apply outline-2": {}
40
+ }
41
+ }
42
+ });
43
+ addComponents({
44
+ ".nui-mask": {
45
+ "mask-size": "contain",
46
+ "mask-repeat": "no-repeat",
47
+ "mask-position": "center"
48
+ },
49
+ ".nui-mask-hex": {
50
+ "mask-image": "url('data:image/svg+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Zz4=')"
54
+ },
55
+ ".nui-mask-deca": {
56
+ "mask-image": "url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkyIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOTYgMGw1OC43NzkgMTkuMDk4IDM2LjMyNyA1MHY2MS44MDRsLTM2LjMyNyA1MEw5NiAyMDBsLTU4Ljc3OS0xOS4wOTgtMzYuMzI3LTUwVjY5LjA5OGwzNi4zMjctNTB6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=')"
57
+ },
58
+ ".nui-mask-blob": {
59
+ "mask-image": "url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDBDMjAgMCAwIDIwIDAgMTAwczIwIDEwMCAxMDAgMTAwIDEwMC0yMCAxMDAtMTAwUzE4MCAwIDEwMCAweiIvPjwvc3ZnPg==')"
60
+ },
61
+ ".nui-mask-diamond": {
62
+ "mask-image": "url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDBsMTAwIDEwMC0xMDAgMTAwTDAgMTAweiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+')"
63
+ }
64
+ });
65
+ addComponents({
66
+ ".nui-text-white": {
67
+ "@apply text-white dark:text-black": {}
68
+ },
69
+ ".nui-text-50": {
70
+ "@apply text-muted-50 dark:text-muted-900": {}
71
+ },
72
+ ".nui-text-100": {
73
+ "@apply text-muted-100 dark:text-muted-900": {}
74
+ },
75
+ ".nui-text-200": {
76
+ "@apply text-muted-200 dark:text-muted-800": {}
77
+ },
78
+ ".nui-text-300": {
79
+ "@apply text-muted-300 dark:text-muted-700": {}
80
+ },
81
+ ".nui-text-400": {
82
+ "@apply text-muted-400 dark:text-muted-600": {}
83
+ },
84
+ ".nui-text-500": {
85
+ "@apply text-muted-500 dark:text-muted-500": {}
86
+ },
87
+ ".nui-text-600": {
88
+ "@apply text-muted-600 dark:text-muted-400": {}
89
+ },
90
+ ".nui-text-700": {
91
+ "@apply text-muted-700 dark:text-muted-300": {}
92
+ },
93
+ ".nui-text-800": {
94
+ "@apply text-muted-800 dark:text-muted-200": {}
95
+ },
96
+ ".nui-text-900": {
97
+ "@apply text-muted-900 dark:text-muted-100": {}
98
+ },
99
+ ".nui-text-black": {
100
+ "@apply text-black dark:text-white": {}
101
+ }
102
+ });
103
+ addComponents({
104
+ ".nui-bg-white": {
105
+ "@apply bg-white dark:bg-muted-900": {}
106
+ },
107
+ ".nui-bg-50": {
108
+ "@apply bg-muted-50 dark:bg-muted-900": {}
109
+ },
110
+ ".nui-bg-100": {
111
+ "@apply bg-muted-100 dark:bg-muted-900": {}
112
+ },
113
+ ".nui-bg-200": {
114
+ "@apply bg-muted-200 dark:bg-muted-800": {}
115
+ },
116
+ ".nui-bg-300": {
117
+ "@apply bg-muted-300 dark:bg-muted-700": {}
118
+ },
119
+ ".nui-bg-400": {
120
+ "@apply bg-muted-400 dark:bg-muted-600": {}
121
+ },
122
+ ".nui-bg-500": {
123
+ "@apply bg-muted-500 dark:bg-muted-500": {}
124
+ },
125
+ ".nui-bg-600": {
126
+ "@apply bg-muted-600 dark:bg-muted-400": {}
127
+ },
128
+ ".nui-bg-700": {
129
+ "@apply bg-muted-700 dark:bg-muted-300": {}
130
+ },
131
+ ".nui-bg-800": {
132
+ "@apply bg-muted-800 dark:bg-muted-200": {}
133
+ },
134
+ ".nui-bg-900": {
135
+ "@apply bg-muted-900 dark:bg-muted-100": {}
136
+ },
137
+ ".nui-bg-black": {
138
+ "@apply bg-muted-900 dark:bg-white": {}
139
+ }
140
+ });
141
+ addComponents({
142
+ ".nui-label": {
143
+ "@apply inline-block font-alt leading-none text-muted-400 dark:text-muted-400/80": {}
144
+ }
145
+ });
146
+ addComponents({
147
+ ".nui-dropdown-divider": {
148
+ "@apply my-2 block h-px w-full border-t border-muted-200 dark:border-muted-600": {}
149
+ }
150
+ });
151
+ addComponents({
152
+ ".nui-mark": {
153
+ "@apply bg-primary-100 text-primary-800 dark:bg-primary-800 dark:text-primary-200": {}
154
+ }
155
+ });
156
+ };
157
+ },
158
+ function(options) {
159
+ return {
160
+ theme: {
161
+ nui: {}
162
+ }
163
+ };
164
+ }
165
+ );
166
+
167
+ const sansSystemFont = [
168
+ "ui-sans-serif",
169
+ "system-ui",
170
+ "-apple-system",
171
+ "BlinkMacSystemFont",
172
+ '"Segoe UI"',
173
+ "Roboto",
174
+ '"Helvetica Neue"',
175
+ "Arial",
176
+ '"Noto Sans"',
177
+ "sans-serif",
178
+ '"Apple Color Emoji"',
179
+ '"Segoe UI Emoji"',
180
+ '"Segoe UI Symbol"',
181
+ '"Noto Color Emoji"'
182
+ ];
183
+ const monoSystemFont = [
184
+ "ui-monospace",
185
+ "SFMono-Regular",
186
+ "Menlo",
187
+ "Monaco",
188
+ "Consolas",
189
+ '"Liberation Mono"',
190
+ '"Courier New"',
191
+ "monospace"
192
+ ];
193
+ const shurikenUIPreset = {
194
+ darkMode: "class",
195
+ content: [],
196
+ plugins: [typography__default, aspectRatio__default, shurikenUIComponents],
197
+ theme: {
198
+ fontFamily: {
199
+ sans: sansSystemFont,
200
+ heading: sansSystemFont,
201
+ alt: sansSystemFont,
202
+ mono: monoSystemFont
203
+ },
204
+ extend: {
205
+ colors: {
206
+ muted: colors__default.slate,
207
+ primary: colors__default.violet,
208
+ info: colors__default.sky,
209
+ success: colors__default.teal,
210
+ warning: colors__default.amber,
211
+ danger: colors__default.rose
212
+ },
213
+ screens: {
214
+ xs: { max: "639px" },
215
+ lg: "1025px",
216
+ ptablet: {
217
+ raw: "(min-width: 768px) and (max-width: 1024px) and (orientation: portrait)"
218
+ },
219
+ ltablet: {
220
+ raw: "(min-width: 768px) and (max-width: 1024px) and (orientation: landscape)"
221
+ }
222
+ },
223
+ typography: ({ theme }) => ({
224
+ primary: {
225
+ css: {
226
+ "--tw-prose-links": theme("colors.primary.600"),
227
+ "--tw-prose-quote-borders": theme("colors.primary.600"),
228
+ "--tw-prose-invert-links": theme("colors.primary.500"),
229
+ "--tw-prose-invert-quote-borders": theme("colors.primary.500")
230
+ }
231
+ },
232
+ muted: {
233
+ css: {
234
+ "--tw-prose-body": theme("colors.muted.700"),
235
+ "--tw-prose-headings": theme("colors.muted.800"),
236
+ "--tw-prose-lead": theme("colors.muted.600"),
237
+ "--tw-prose-bold": theme("colors.muted.800"),
238
+ "--tw-prose-counters": theme("colors.muted.500"),
239
+ "--tw-prose-bullets": theme("colors.muted.300"),
240
+ "--tw-prose-hr": theme("colors.muted.200"),
241
+ "--tw-prose-quotes": theme("colors.muted.500"),
242
+ "--tw-prose-captions": theme("colors.muted.500"),
243
+ "--tw-prose-code": theme("colors.muted.800"),
244
+ "--tw-prose-pre-code": theme("colors.muted.800"),
245
+ "--tw-prose-pre-bg": theme("colors.muted.100"),
246
+ "--tw-prose-th-borders": theme("colors.muted.300"),
247
+ "--tw-prose-td-borders": theme("colors.muted.200"),
248
+ "--tw-prose-invert-body": theme("colors.muted.400"),
249
+ "--tw-prose-invert-headings": theme("colors.muted.100"),
250
+ "--tw-prose-invert-lead": theme("colors.muted.300"),
251
+ "--tw-prose-invert-bold": theme("colors.muted.300"),
252
+ "--tw-prose-invert-counters": theme("colors.muted.400"),
253
+ "--tw-prose-invert-bullets": theme("colors.muted.400"),
254
+ "--tw-prose-invert-hr": theme("colors.muted.800"),
255
+ "--tw-prose-invert-quotes": theme("colors.muted.200"),
256
+ "--tw-prose-invert-captions": theme("colors.muted.400"),
257
+ "--tw-prose-invert-code": theme("colors.muted.200"),
258
+ "--tw-prose-invert-pre-code": theme("colors.muted.200"),
259
+ "--tw-prose-invert-pre-bg": theme("colors.muted.800"),
260
+ "--tw-prose-invert-th-borders": theme("colors.muted.600"),
261
+ "--tw-prose-invert-td-borders": theme("colors.muted.700")
262
+ }
263
+ },
264
+ css: {
265
+ h1: {
266
+ fontWeight: 700
267
+ },
268
+ h2: {
269
+ fontWeight: 700
270
+ },
271
+ h3: {
272
+ fontWeight: 500
273
+ },
274
+ h4: {
275
+ fontWeight: 500
276
+ },
277
+ li: {
278
+ fontSize: "1.15rem",
279
+ padding: "0.35rem 0"
280
+ },
281
+ em: {
282
+ fontSize: "1.1rem",
283
+ lineHeight: 1
284
+ },
285
+ blockquote: {
286
+ fontSize: "1.1rem",
287
+ lineHeight: 1.4,
288
+ fontWeight: 500,
289
+ padding: "1.75rem"
290
+ },
291
+ pre: {
292
+ fontFamily: theme("fontFamily.mono")
293
+ },
294
+ code: {
295
+ fontFamily: theme("fontFamily.mono"),
296
+ padding: "0.35rem",
297
+ fontWeight: 600,
298
+ fontSize: "0.95rem !important"
299
+ }
300
+ }
301
+ }),
302
+ keyframes: {
303
+ indeterminate: {
304
+ "0%": { "margin-left": "-10%" },
305
+ "100%": { "margin-left": "100%" }
306
+ },
307
+ placeload: {
308
+ "0%": { "background-position": "-468px 0" },
309
+ "100%": { "background-position": "468px 0" }
310
+ }
311
+ },
312
+ animation: {
313
+ indeterminate: "indeterminate 1s cubic-bezier(0.4, 0, 0.2, 1) infinite",
314
+ placeload: "placeload 1s linear infinite forwards"
315
+ }
316
+ }
317
+ }
318
+ };
319
+
320
+ module.exports = shurikenUIPreset;
@@ -0,0 +1,222 @@
1
+ import * as tailwindcss_types_config from 'tailwindcss/types/config';
2
+ import { Config } from 'tailwindcss';
3
+ import _tailwindcss_typography__default from '@tailwindcss/typography';
4
+
5
+ declare const _default: {
6
+ darkMode: "class";
7
+ content: never[];
8
+ plugins: (typeof _tailwindcss_typography__default | {
9
+ handler: () => void;
10
+ } | {
11
+ (options: unknown): {
12
+ handler: tailwindcss_types_config.PluginCreator;
13
+ config?: Partial<Config> | undefined;
14
+ };
15
+ __isOptionsFunction: true;
16
+ })[];
17
+ theme: {
18
+ fontFamily: {
19
+ sans: string[];
20
+ heading: string[];
21
+ alt: string[];
22
+ mono: string[];
23
+ };
24
+ extend: {
25
+ colors: {
26
+ muted: {
27
+ '50': "#f8fafc";
28
+ '100': "#f1f5f9";
29
+ '200': "#e2e8f0";
30
+ '300': "#cbd5e1";
31
+ '400': "#94a3b8";
32
+ '500': "#64748b";
33
+ '600': "#475569";
34
+ '700': "#334155";
35
+ '800': "#1e293b";
36
+ '900': "#0f172a";
37
+ '950': "#020617";
38
+ };
39
+ primary: {
40
+ '50': "#f5f3ff";
41
+ '100': "#ede9fe";
42
+ '200': "#ddd6fe";
43
+ '300': "#c4b5fd";
44
+ '400': "#a78bfa";
45
+ '500': "#8b5cf6";
46
+ '600': "#7c3aed";
47
+ '700': "#6d28d9";
48
+ '800': "#5b21b6";
49
+ '900': "#4c1d95";
50
+ '950': "#2e1065";
51
+ };
52
+ info: {
53
+ '50': "#f0f9ff";
54
+ '100': "#e0f2fe";
55
+ '200': "#bae6fd";
56
+ '300': "#7dd3fc";
57
+ '400': "#38bdf8";
58
+ '500': "#0ea5e9";
59
+ '600': "#0284c7";
60
+ '700': "#0369a1";
61
+ '800': "#075985";
62
+ '900': "#0c4a6e";
63
+ '950': "#082f49";
64
+ };
65
+ success: {
66
+ '50': "#f0fdfa";
67
+ '100': "#ccfbf1";
68
+ '200': "#99f6e4";
69
+ '300': "#5eead4";
70
+ '400': "#2dd4bf";
71
+ '500': "#14b8a6";
72
+ '600': "#0d9488";
73
+ '700': "#0f766e";
74
+ '800': "#115e59";
75
+ '900': "#134e4a";
76
+ '950': "#042f2e";
77
+ };
78
+ warning: {
79
+ '50': "#fffbeb";
80
+ '100': "#fef3c7";
81
+ '200': "#fde68a";
82
+ '300': "#fcd34d";
83
+ '400': "#fbbf24";
84
+ '500': "#f59e0b";
85
+ '600': "#d97706";
86
+ '700': "#b45309";
87
+ '800': "#92400e";
88
+ '900': "#78350f";
89
+ '950': "#451a03";
90
+ };
91
+ danger: {
92
+ '50': "#fff1f2";
93
+ '100': "#ffe4e6";
94
+ '200': "#fecdd3";
95
+ '300': "#fda4af";
96
+ '400': "#fb7185";
97
+ '500': "#f43f5e";
98
+ '600': "#e11d48";
99
+ '700': "#be123c";
100
+ '800': "#9f1239";
101
+ '900': "#881337";
102
+ '950': "#4c0519";
103
+ };
104
+ };
105
+ screens: {
106
+ xs: {
107
+ max: string;
108
+ };
109
+ lg: string;
110
+ ptablet: {
111
+ raw: string;
112
+ };
113
+ ltablet: {
114
+ raw: string;
115
+ };
116
+ };
117
+ typography: ({ theme }: any) => {
118
+ primary: {
119
+ css: {
120
+ '--tw-prose-links': any;
121
+ '--tw-prose-quote-borders': any;
122
+ '--tw-prose-invert-links': any;
123
+ '--tw-prose-invert-quote-borders': any;
124
+ };
125
+ };
126
+ muted: {
127
+ css: {
128
+ '--tw-prose-body': any;
129
+ '--tw-prose-headings': any;
130
+ '--tw-prose-lead': any;
131
+ '--tw-prose-bold': any;
132
+ '--tw-prose-counters': any;
133
+ '--tw-prose-bullets': any;
134
+ '--tw-prose-hr': any;
135
+ '--tw-prose-quotes': any;
136
+ '--tw-prose-captions': any;
137
+ '--tw-prose-code': any;
138
+ '--tw-prose-pre-code': any;
139
+ '--tw-prose-pre-bg': any;
140
+ '--tw-prose-th-borders': any;
141
+ '--tw-prose-td-borders': any;
142
+ '--tw-prose-invert-body': any;
143
+ '--tw-prose-invert-headings': any;
144
+ '--tw-prose-invert-lead': any;
145
+ '--tw-prose-invert-bold': any;
146
+ '--tw-prose-invert-counters': any;
147
+ '--tw-prose-invert-bullets': any;
148
+ '--tw-prose-invert-hr': any;
149
+ '--tw-prose-invert-quotes': any;
150
+ '--tw-prose-invert-captions': any;
151
+ '--tw-prose-invert-code': any;
152
+ '--tw-prose-invert-pre-code': any;
153
+ '--tw-prose-invert-pre-bg': any;
154
+ '--tw-prose-invert-th-borders': any;
155
+ '--tw-prose-invert-td-borders': any;
156
+ };
157
+ };
158
+ css: {
159
+ h1: {
160
+ fontWeight: number;
161
+ };
162
+ h2: {
163
+ fontWeight: number;
164
+ };
165
+ h3: {
166
+ fontWeight: number;
167
+ };
168
+ h4: {
169
+ fontWeight: number;
170
+ };
171
+ li: {
172
+ fontSize: string;
173
+ padding: string;
174
+ };
175
+ em: {
176
+ fontSize: string;
177
+ lineHeight: number;
178
+ };
179
+ blockquote: {
180
+ fontSize: string;
181
+ lineHeight: number;
182
+ fontWeight: number;
183
+ padding: string;
184
+ };
185
+ pre: {
186
+ fontFamily: any;
187
+ };
188
+ code: {
189
+ fontFamily: any;
190
+ padding: string;
191
+ fontWeight: number;
192
+ fontSize: string;
193
+ };
194
+ };
195
+ };
196
+ keyframes: {
197
+ indeterminate: {
198
+ '0%': {
199
+ 'margin-left': string;
200
+ };
201
+ '100%': {
202
+ 'margin-left': string;
203
+ };
204
+ };
205
+ placeload: {
206
+ '0%': {
207
+ 'background-position': string;
208
+ };
209
+ '100%': {
210
+ 'background-position': string;
211
+ };
212
+ };
213
+ };
214
+ animation: {
215
+ indeterminate: string;
216
+ placeload: string;
217
+ };
218
+ };
219
+ };
220
+ };
221
+
222
+ export { _default as default };