@shuriken-ui/tailwind 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,294 @@
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 shurikenUIPreset = {
168
+ darkMode: "class",
169
+ content: [],
170
+ plugins: [typography__default, aspectRatio__default, shurikenUIComponents],
171
+ theme: {
172
+ fontFamily: {
173
+ sans: ["Roboto Flex", "sans-serif"],
174
+ heading: ["Inter", "sans-serif"],
175
+ alt: ["Karla", "sans-serif"],
176
+ mono: ["ui-monospace", "monospace"]
177
+ },
178
+ extend: {
179
+ colors: {
180
+ muted: colors__default.slate,
181
+ primary: colors__default.violet,
182
+ info: colors__default.sky,
183
+ success: colors__default.teal,
184
+ warning: colors__default.amber,
185
+ danger: colors__default.rose
186
+ },
187
+ screens: {
188
+ xs: { max: "639px" },
189
+ lg: "1025px",
190
+ ptablet: {
191
+ raw: "(min-width: 768px) and (max-width: 1024px) and (orientation: portrait)"
192
+ },
193
+ ltablet: {
194
+ raw: "(min-width: 768px) and (max-width: 1024px) and (orientation: landscape)"
195
+ }
196
+ },
197
+ typography: ({ theme }) => ({
198
+ primary: {
199
+ css: {
200
+ "--tw-prose-links": theme("colors.primary.600"),
201
+ "--tw-prose-quote-borders": theme("colors.primary.600"),
202
+ "--tw-prose-invert-links": theme("colors.primary.500"),
203
+ "--tw-prose-invert-quote-borders": theme("colors.primary.500")
204
+ }
205
+ },
206
+ muted: {
207
+ css: {
208
+ "--tw-prose-body": theme("colors.muted.700"),
209
+ "--tw-prose-headings": theme("colors.muted.800"),
210
+ "--tw-prose-lead": theme("colors.muted.600"),
211
+ "--tw-prose-bold": theme("colors.muted.800"),
212
+ "--tw-prose-counters": theme("colors.muted.500"),
213
+ "--tw-prose-bullets": theme("colors.muted.300"),
214
+ "--tw-prose-hr": theme("colors.muted.200"),
215
+ "--tw-prose-quotes": theme("colors.muted.500"),
216
+ "--tw-prose-captions": theme("colors.muted.500"),
217
+ "--tw-prose-code": theme("colors.muted.800"),
218
+ "--tw-prose-pre-code": theme("colors.muted.800"),
219
+ "--tw-prose-pre-bg": theme("colors.muted.100"),
220
+ "--tw-prose-th-borders": theme("colors.muted.300"),
221
+ "--tw-prose-td-borders": theme("colors.muted.200"),
222
+ "--tw-prose-invert-body": theme("colors.muted.400"),
223
+ "--tw-prose-invert-headings": theme("colors.muted.100"),
224
+ "--tw-prose-invert-lead": theme("colors.muted.300"),
225
+ "--tw-prose-invert-bold": theme("colors.muted.300"),
226
+ "--tw-prose-invert-counters": theme("colors.muted.400"),
227
+ "--tw-prose-invert-bullets": theme("colors.muted.400"),
228
+ "--tw-prose-invert-hr": theme("colors.muted.800"),
229
+ "--tw-prose-invert-quotes": theme("colors.muted.200"),
230
+ "--tw-prose-invert-captions": theme("colors.muted.400"),
231
+ "--tw-prose-invert-code": theme("colors.muted.200"),
232
+ "--tw-prose-invert-pre-code": theme("colors.muted.200"),
233
+ "--tw-prose-invert-pre-bg": theme("colors.muted.800"),
234
+ "--tw-prose-invert-th-borders": theme("colors.muted.600"),
235
+ "--tw-prose-invert-td-borders": theme("colors.muted.700")
236
+ }
237
+ },
238
+ css: {
239
+ h1: {
240
+ fontWeight: 700
241
+ },
242
+ h2: {
243
+ fontWeight: 700
244
+ },
245
+ h3: {
246
+ fontWeight: 500
247
+ },
248
+ h4: {
249
+ fontWeight: 500
250
+ },
251
+ li: {
252
+ fontSize: "1.15rem",
253
+ padding: "0.35rem 0"
254
+ },
255
+ em: {
256
+ fontSize: "1.1rem",
257
+ lineHeight: 1
258
+ },
259
+ blockquote: {
260
+ fontSize: "1.1rem",
261
+ lineHeight: 1.4,
262
+ fontWeight: 500,
263
+ padding: "1.75rem"
264
+ },
265
+ pre: {
266
+ fontFamily: theme("fontFamily.mono")
267
+ },
268
+ code: {
269
+ fontFamily: theme("fontFamily.mono"),
270
+ padding: "0.35rem",
271
+ fontWeight: 600,
272
+ fontSize: "0.95rem !important"
273
+ }
274
+ }
275
+ }),
276
+ keyframes: {
277
+ indeterminate: {
278
+ "0%": { "margin-left": "-10%" },
279
+ "100%": { "margin-left": "100%" }
280
+ },
281
+ placeload: {
282
+ "0%": { "background-position": "-468px 0" },
283
+ "100%": { "background-position": "468px 0" }
284
+ }
285
+ },
286
+ animation: {
287
+ indeterminate: "indeterminate 1s cubic-bezier(0.4, 0, 0.2, 1) infinite",
288
+ placeload: "placeload 1s linear infinite forwards"
289
+ }
290
+ }
291
+ }
292
+ };
293
+
294
+ 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, string];
20
+ heading: [string, string];
21
+ alt: [string, string];
22
+ mono: [string, 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 };