vx-vue 1.2.0 → 1.3.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 +25 -28
- package/dist/style.css +1 -0
- package/dist/vxvue.es.js +595 -548
- package/dist/vxvue.umd.js +1 -1
- package/package.json +17 -18
- package/dist/vx-vue.css +0 -1
package/README.md
CHANGED
|
@@ -5,40 +5,21 @@ VxVue provides a handful of reusable Vue components styled with Tailwind CSS. Al
|
|
|
5
5
|
|
|
6
6
|
## Requirements
|
|
7
7
|
* Vue.js 3.5+
|
|
8
|
-
* Tailwind CSS
|
|
8
|
+
* Tailwind CSS 4+
|
|
9
9
|
|
|
10
|
+
## Setup
|
|
10
11
|
The official Tailwind CSS forms plugin is used to provide basic styling of the form components using the class strategy which allows the styling of non-form elements consistently.
|
|
11
12
|
An easy to configure color theming is applied. `vxvue` and `vxvue-alt` are used as the two colors scales. Since Tailwind won't observe classes in imported components tailwind.config.js should also list the node package in the content array.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'./node_modules/vx-vue/**/*.js',
|
|
16
|
-
...
|
|
17
|
-
],
|
|
18
|
-
theme: {
|
|
19
|
-
extend: {
|
|
20
|
-
colors: {
|
|
21
|
-
'vxvue': {
|
|
22
|
-
DEFAULT: ...,
|
|
23
|
-
'50': ...,
|
|
24
|
-
...
|
|
25
|
-
'900': ...
|
|
26
|
-
},
|
|
27
|
-
'vxvue-alt': {
|
|
28
|
-
...
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
13
|
+
|
|
14
|
+
```css
|
|
15
|
+
@source '<path-to-node_modules>/vx-vue/**/*.js'
|
|
34
16
|
```
|
|
35
|
-
To use the few scoped styles along with your CSS add
|
|
36
17
|
|
|
37
|
-
|
|
18
|
+
Import the few scoped styles along with your CSS add to your main.js or index.js file.
|
|
19
|
+
|
|
20
|
+
```js
|
|
38
21
|
import 'vx-vue/vx-vue.css'
|
|
39
22
|
```
|
|
40
|
-
to your main.js or index.js file.
|
|
41
|
-
|
|
42
23
|
The components use an extra color palette. Used library specific colors are
|
|
43
24
|
|
|
44
25
|
```
|
|
@@ -61,4 +42,20 @@ The components use an extra color palette. Used library specific colors are
|
|
|
61
42
|
|
|
62
43
|
*-success
|
|
63
44
|
*-success-700
|
|
64
|
-
```
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Style them in your projects main CSS file with
|
|
48
|
+
|
|
49
|
+
```css
|
|
50
|
+
@theme {
|
|
51
|
+
--color-vxvue-50: ...;
|
|
52
|
+
--color-vxvue-100: ...;
|
|
53
|
+
...
|
|
54
|
+
--color-vxvue: ...;
|
|
55
|
+
|
|
56
|
+
--color-vxvue-alt-50: ...;
|
|
57
|
+
--color-vxvue-alt-100: ...;
|
|
58
|
+
...
|
|
59
|
+
--color-vxvue-alt: -...;
|
|
60
|
+
```
|
|
61
|
+
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */button.success[data-v-9f360713]{background-color:var(--color-success,rgb(var(--success-color)));color:var(--color-white,#fff)}@media (hover:hover){button.success[data-v-9f360713]:hover{background-color:var(--color-success-700,rgb(var(--success-color-700)))}}button.success[data-v-9f360713]:focus{--tw-ring-color:var(--color-success,rgb(var(--success-color)))}button.error[data-v-9f360713]{background-color:var(--color-error,rgb(var(--error-color)));color:var(--color-error-50,rgb(var(--error-color-50)))}@media (hover:hover){button.error[data-v-9f360713]:hover{background-color:var(--color-error-600,rgb(var(--error-color-600)))}}button.error[data-v-9f360713]:focus{--tw-ring-color:var(--color-error-600,rgb(var(--error-color-600)))}button[data-v-9f360713]:disabled{background-color:var(--color-slate-300,oklch(.869 .022 252.894));color:var(--color-slate-800,oklch(.279 .041 260.031))}@media (hover:hover){button[data-v-9f360713]:disabled:hover{background-color:var(--color-slate-300,oklch(.869 .022 252.894))}}button[data-v-9f360713]:disabled:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|