Skip to content

Commit 00bdba3

Browse files
committed
refactor(styles): extract error color
1 parent 33222fb commit 00bdba3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sfxcode/formkit-primevue",
3-
"version": "1.3.5",
3+
"version": "1.4.0",
44
"type": "module",
55
"license": "MIT",
66
"repository": "https://github.com/sfxcode/formkit-primevue",

public/sass/formkit-primevue.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
:root {
2+
--formkit-error-color: #ef9a9a;
3+
}
4+
15
.formkit-form > .formkit-messages {
26
margin: 4px;
37
.formkit-message {
@@ -18,7 +22,7 @@
1822
.formkit-message {
1923
padding: 0;
2024
margin: 0;
21-
color: #ef9a9a;
25+
color: var(--formkit-error-color);
2226
list-style: none;
2327
font-size: 0.8rem;
2428
}
@@ -95,7 +99,7 @@
9599
.formkit-message {
96100
padding: 0;
97101
margin: 0;
98-
color: #ef9a9a;
102+
color: var(--formkit-error-color);
99103
list-style: none;
100104
font-size: 0.8rem;
101105
}

0 commit comments

Comments
 (0)