Skip to content

Commit

Permalink
chore: updates rating input to use more theme variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-boyd committed Apr 22, 2024
1 parent 4a748a7 commit aa12ee2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { FormKitKitchenSink } from "@formkit/vue";

<template>
<Suspense>
<FormKitKitchenSink :schemas="['rating']" />
<FormKitKitchenSink />
</Suspense>
</template>
11 changes: 8 additions & 3 deletions src/inputs/pro/rating.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export default {
inner: `
text-neutral-400
text-$colorTemperature-300
`,
itemsWrapper: `
relative
inline-flex
focus:border-neutral-400
focus:border-$accentColor-$baseColorShade
`,
onItemRow: `
h-full
Expand All @@ -23,15 +23,17 @@ export default {
text-yellow-400
`,
offItemWrapper: `
text-$colorTemperature-400
text-$colorTemperature-$borderShadeLightMode(0,300,500)
w-full
h-full
[&>*]:w-full
[&>*]:h-full
dark:text-$colorTemperature-$borderShadeDarkMode(0,400,600)
`,
ratingItem: `
relative
focus-within:outline
focus-within:outline-$accentColor-$baseColorShade
w-[1.5em]
h-[1.5em]
`,
Expand All @@ -51,4 +53,7 @@ export default {
h-[1.5em]
flex
`,
messages: `
mt-$spacing(-1)
`,
};

0 comments on commit aa12ee2

Please sign in to comment.