Skip to content

Commit

Permalink
fix(tailwindcss): theme function returns undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
knokmki612 committed Mar 15, 2022
1 parent f3b90ff commit 9536428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/tailwindcss/boxedTab.js
Expand Up @@ -36,14 +36,14 @@ module.exports = plugin.withOptions(
"border-radius": `${theme("borderRadius.md")} ${theme(
"borderRadius.md"
)} 0 0`,
padding: `${theme("spacing['rel1.5']")} ${theme("spacing.rel5")}`,
padding: `${theme("spacing[rel1.5]")} ${theme("spacing.rel5")}`,
"&[aria-selected=true]": {
border: `1px solid ${theme("colors.gray.300")}`,
"background-color": `${theme("colors.white")}`,
"border-bottom-color": "transparent",
position: "relative",
paddingTop: theme("spacing.rel2"),
paddingBottom: theme("spacing['rel1.5']"),
paddingBottom: theme("spacing[rel1.5]"),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss/lib/buttonStyle.js
Expand Up @@ -3,7 +3,7 @@ module.exports = (theme) => ({
appearance: "none",
borderRadius: theme("borderRadius.md"),
display: "inline-block",
padding: `${theme("spacing['rel2.5']")} ${theme("spacing.rel5")}`,
padding: `${theme("spacing[rel2.5]")} ${theme("spacing.rel5")}`,
textDecoration: "none !important",
},
disabled: {
Expand Down

0 comments on commit 9536428

Please sign in to comment.