@saasmakers/ui 0.1.47 → 0.1.48
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 +3 -2
- package/uno.config.ts +191 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.48",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Reusable Nuxt UI components for SaaS Makers projects",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"app",
|
|
20
|
-
"nuxt.config.ts"
|
|
20
|
+
"nuxt.config.ts",
|
|
21
|
+
"uno.config.ts"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"dev": "nuxi dev",
|
package/uno.config.ts
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { defineConfig, presetWind3 } from 'unocss'
|
|
2
|
+
|
|
3
|
+
export const presets = [presetWind3()]
|
|
4
|
+
|
|
5
|
+
export const rules: Array<[string, Record<string, string>]> = [
|
|
6
|
+
[
|
|
7
|
+
'drag-none',
|
|
8
|
+
{
|
|
9
|
+
'-moz-user-drag': 'none',
|
|
10
|
+
'-ms-user-drag': 'none',
|
|
11
|
+
'-webkit-tap-highlight-color': 'transparent',
|
|
12
|
+
'-webkit-user-drag': 'none',
|
|
13
|
+
'user-drag': 'none',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
['flex-initial', { flex: '0 0 auto' }],
|
|
17
|
+
['safe-top', { 'padding-top': 'env(safe-area-inset-top)' }],
|
|
18
|
+
['safe-left', { 'padding-left': 'env(safe-area-inset-left)' }],
|
|
19
|
+
['safe-right', { 'padding-right': 'env(safe-area-inset-right)' }],
|
|
20
|
+
['safe-bottom', { 'padding-bottom': 'env(safe-area-inset-bottom)' }],
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
export const theme = {
|
|
24
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
25
|
+
container: {
|
|
26
|
+
center: true,
|
|
27
|
+
|
|
28
|
+
padding: {
|
|
29
|
+
sm: '1.5rem',
|
|
30
|
+
DEFAULT: '1rem',
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
maxWidth: {
|
|
34
|
+
'2xl': '1280px',
|
|
35
|
+
'DEFAULT': '100%',
|
|
36
|
+
'lg': '1024px',
|
|
37
|
+
'md': '768px',
|
|
38
|
+
'sm': '640px',
|
|
39
|
+
'xl': '1280px',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
/* eslint-enable perfectionist/sort-objects */
|
|
43
|
+
|
|
44
|
+
colors: {
|
|
45
|
+
black: '#000000',
|
|
46
|
+
current: 'currentColor',
|
|
47
|
+
transparent: 'transparent',
|
|
48
|
+
white: '#ffffff',
|
|
49
|
+
|
|
50
|
+
blue: {
|
|
51
|
+
100: '#ebf8ff',
|
|
52
|
+
200: '#bee3f8',
|
|
53
|
+
300: '#90cdf4',
|
|
54
|
+
400: '#63b3ed',
|
|
55
|
+
500: '#4299e1',
|
|
56
|
+
600: '#3182ce',
|
|
57
|
+
700: '#2b6cb0',
|
|
58
|
+
800: '#2c5282',
|
|
59
|
+
900: '#2a4365',
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
gray: {
|
|
63
|
+
100: '#f7fafc',
|
|
64
|
+
200: '#edf2f7',
|
|
65
|
+
300: '#e2e8f0',
|
|
66
|
+
400: '#cbd5e0',
|
|
67
|
+
500: '#a0aec0',
|
|
68
|
+
600: '#718096',
|
|
69
|
+
700: '#4a5568',
|
|
70
|
+
800: '#2d3748',
|
|
71
|
+
900: '#1a202c',
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
green: {
|
|
75
|
+
100: '#f0fff4',
|
|
76
|
+
200: '#c6f6d5',
|
|
77
|
+
300: '#9ae6b4',
|
|
78
|
+
400: '#68d391',
|
|
79
|
+
500: '#48bb78',
|
|
80
|
+
600: '#38a169',
|
|
81
|
+
700: '#2f855a',
|
|
82
|
+
800: '#276749',
|
|
83
|
+
900: '#22543d',
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
indigo: {
|
|
87
|
+
100: '#ebf4ff',
|
|
88
|
+
200: '#c3dafe',
|
|
89
|
+
300: '#a3bffa',
|
|
90
|
+
400: '#7f9cf5',
|
|
91
|
+
500: '#667eea',
|
|
92
|
+
600: '#5a67d8',
|
|
93
|
+
700: '#4c51bf',
|
|
94
|
+
800: '#434190',
|
|
95
|
+
900: '#3c366b',
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
orange: {
|
|
99
|
+
100: '#fffaf0',
|
|
100
|
+
200: '#feebc8',
|
|
101
|
+
300: '#fbd38d',
|
|
102
|
+
400: '#f6ad55',
|
|
103
|
+
500: '#ed8936',
|
|
104
|
+
600: '#dd6b20',
|
|
105
|
+
700: '#c05621',
|
|
106
|
+
800: '#9c4221',
|
|
107
|
+
900: '#7b341e',
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
pink: {
|
|
111
|
+
100: '#fff5f7',
|
|
112
|
+
200: '#fed7e2',
|
|
113
|
+
300: '#fbb6ce',
|
|
114
|
+
400: '#f687b3',
|
|
115
|
+
500: '#ed64a6',
|
|
116
|
+
600: '#d53f8c',
|
|
117
|
+
700: '#b83280',
|
|
118
|
+
800: '#97266d',
|
|
119
|
+
900: '#702459',
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
purple: {
|
|
123
|
+
100: '#faf5ff',
|
|
124
|
+
200: '#e9d8fd',
|
|
125
|
+
300: '#d6bcfa',
|
|
126
|
+
400: '#b794f4',
|
|
127
|
+
500: '#9f7aea',
|
|
128
|
+
600: '#805ad5',
|
|
129
|
+
700: '#6b46c1',
|
|
130
|
+
800: '#553c9a',
|
|
131
|
+
900: '#44337a',
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
red: {
|
|
135
|
+
100: '#fff5f5',
|
|
136
|
+
200: '#fed7d7',
|
|
137
|
+
300: '#feb2b2',
|
|
138
|
+
400: '#fc8181',
|
|
139
|
+
500: '#f56565',
|
|
140
|
+
600: '#e53e3e',
|
|
141
|
+
700: '#c53030',
|
|
142
|
+
800: '#9b2c2c',
|
|
143
|
+
900: '#742a2a',
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
teal: {
|
|
147
|
+
100: '#e6fffa',
|
|
148
|
+
200: '#b2f5ea',
|
|
149
|
+
300: '#81e6d9',
|
|
150
|
+
400: '#4fd1c5',
|
|
151
|
+
500: '#38b2ac',
|
|
152
|
+
600: '#319795',
|
|
153
|
+
700: '#2c7a7b',
|
|
154
|
+
800: '#285e61',
|
|
155
|
+
900: '#234e52',
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
yellow: {
|
|
159
|
+
100: '#fffff0',
|
|
160
|
+
200: '#fefcbf',
|
|
161
|
+
300: '#faf089',
|
|
162
|
+
400: '#f6e05e',
|
|
163
|
+
500: '#ecc94b',
|
|
164
|
+
600: '#d69e2e',
|
|
165
|
+
700: '#b7791f',
|
|
166
|
+
800: '#975a16',
|
|
167
|
+
900: '#744210',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
172
|
+
fontSize: {
|
|
173
|
+
'3xs': ['0.5rem', '0.875rem'],
|
|
174
|
+
'2xs': ['0.625rem', '1rem'],
|
|
175
|
+
'xs': ['0.75rem', '1.125rem'],
|
|
176
|
+
'sm': ['0.875rem', '1.25rem'],
|
|
177
|
+
'base': ['1rem', '1.5rem'],
|
|
178
|
+
'lg': ['1.125rem', '1.75rem'],
|
|
179
|
+
'xl': ['1.25rem', '2rem'],
|
|
180
|
+
'2xl': ['1.5rem', '2.25rem'],
|
|
181
|
+
'3xl': ['1.875rem', '2.5rem'],
|
|
182
|
+
'4xl': ['2.25rem', '3rem'],
|
|
183
|
+
},
|
|
184
|
+
/* eslint-enable perfectionist/sort-objects */
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export default defineConfig({
|
|
188
|
+
presets: [presetWind3()] as any,
|
|
189
|
+
rules,
|
|
190
|
+
theme,
|
|
191
|
+
})
|