@vuelor/picker 0.3.1 → 0.4.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/README.md +33 -11
- package/dist/index.js +363 -363
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,32 +56,54 @@ const color = ref(null)
|
|
|
56
56
|
</template>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
##
|
|
59
|
+
## For TailwindCSS 4
|
|
60
|
+
|
|
61
|
+
Update the `index.css` file:
|
|
62
|
+
|
|
63
|
+
```css
|
|
64
|
+
@import "tailwindcss";
|
|
65
|
+
@source "../../node_modules/@vuelor/picker";
|
|
66
|
+
|
|
67
|
+
@theme {
|
|
68
|
+
--color-vuelor-primary: #0d99ff;
|
|
69
|
+
--color-vuelor-surface: #ffffff;
|
|
70
|
+
--color-vuelor-border: #e6e6e6;
|
|
71
|
+
--color-vuelor-input: #f5f5f5;
|
|
72
|
+
|
|
73
|
+
--shadow-vuelor-card: 0 2px 5px 0 #00000026, 0 10px 16px 0 #0000001f, 0 0 .5px 0 #0000001f;
|
|
74
|
+
--shadow-vuelor-thumb: 0px 0px .5px #0000002e, 0px 3px 8px #0000001a, 0px 1px 3px #0000001a;
|
|
75
|
+
--shadow-vuelor-inner: inset 0 0 0 1px #0000001a;
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## For TailwindCSS 3
|
|
80
|
+
|
|
81
|
+
Update the `tailwind.config.js` file:
|
|
60
82
|
|
|
61
83
|
```js
|
|
62
84
|
export default {
|
|
85
|
+
content: [
|
|
86
|
+
'./src/**/*.{vue,js,ts}',
|
|
87
|
+
'./node_modules/@vuelor/picker/dist/index.js'
|
|
88
|
+
],
|
|
63
89
|
theme: {
|
|
64
90
|
extend: {
|
|
91
|
+
colors: {
|
|
92
|
+
'vuelor-primary': '#0d99ff',
|
|
93
|
+
'vuelor-surface': '#ffffff',
|
|
94
|
+
'vuelor-border': '#e6e6e6',
|
|
95
|
+
'vuelor-input': '#f5f5f5',
|
|
96
|
+
},
|
|
65
97
|
boxShadow: {
|
|
66
98
|
'vuelor-card': '0 2px 5px 0 #00000026, 0 10px 16px 0 #0000001f, 0 0 .5px 0 #0000001f',
|
|
67
99
|
'vuelor-thumb': '0px 0px .5px #0000002e, 0px 3px 8px #0000001a, 0px 1px 3px #0000001a',
|
|
68
100
|
'vuelor-inner': 'inset 0 0 0 1px #0000001a'
|
|
69
101
|
}
|
|
70
102
|
},
|
|
71
|
-
dropShadow: {
|
|
72
|
-
'vuelor-thumb': ['0px 0px .5px #00000054', '0px 1px 3px #00000026']
|
|
73
|
-
}
|
|
74
103
|
}
|
|
75
104
|
}
|
|
76
105
|
```
|
|
77
106
|
|
|
78
|
-
## Update CSS file to include external tailwind source
|
|
79
|
-
|
|
80
|
-
```css
|
|
81
|
-
@import "tailwindcss";
|
|
82
|
-
@source "../node_modules/@vuelor/picker";
|
|
83
|
-
```
|
|
84
|
-
|
|
85
107
|
## For non-tailwind projects
|
|
86
108
|
|
|
87
109
|
Import CSS styles and add `styling="vanillacss"` property.
|