Skip to content

Commit aa12ee2

Browse files
committed
chore: updates rating input to use more theme variables
1 parent 4a748a7 commit aa12ee2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { FormKitKitchenSink } from "@formkit/vue";
44

55
<template>
66
<Suspense>
7-
<FormKitKitchenSink :schemas="['rating']" />
7+
<FormKitKitchenSink />
88
</Suspense>
99
</template>

src/inputs/pro/rating.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export default {
22
inner: `
3-
text-neutral-400
3+
text-$colorTemperature-300
44
`,
55
itemsWrapper: `
66
relative
77
inline-flex
8-
focus:border-neutral-400
8+
focus:border-$accentColor-$baseColorShade
99
`,
1010
onItemRow: `
1111
h-full
@@ -23,15 +23,17 @@ export default {
2323
text-yellow-400
2424
`,
2525
offItemWrapper: `
26-
text-$colorTemperature-400
26+
text-$colorTemperature-$borderShadeLightMode(0,300,500)
2727
w-full
2828
h-full
2929
[&>*]:w-full
3030
[&>*]:h-full
31+
dark:text-$colorTemperature-$borderShadeDarkMode(0,400,600)
3132
`,
3233
ratingItem: `
3334
relative
3435
focus-within:outline
36+
focus-within:outline-$accentColor-$baseColorShade
3537
w-[1.5em]
3638
h-[1.5em]
3739
`,
@@ -51,4 +53,7 @@ export default {
5153
h-[1.5em]
5254
flex
5355
`,
56+
messages: `
57+
mt-$spacing(-1)
58+
`,
5459
};

0 commit comments

Comments
 (0)