Skip to content

Commit

Permalink
fix: fix tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
everton-dgn committed Mar 13, 2024
1 parent ba409c6 commit 0b3da4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/theme/utilities/fontWeight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { fontWeights } from '../variables'
export const fontWeight = plugin(({ addUtilities }) => {
const fw: Record<string, { fontWeight: string }> = {}
Object.entries(fontWeights).forEach(([key, value]) => {
fw[`.fs-${key}`] = { fontWeight: `${value}` }
fw[`.fw-${key}`] = { fontWeight: `${value}` }
})
addUtilities(fw)
})
12 changes: 6 additions & 6 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ const config: Config = {
'./src/components/**/*.{js,ts,jsx,tsx}'
],
theme: {
screens,
colors,
zIndex,
borderRadius,
fontWeight: fontWeights,
fontSize: fontSizes,
extend: {
colors,
screens,
zIndex,
borderRadius,
fontWeight: fontWeights,
fontSize: fontSizes,
width: { ...defaultTheme.width, ...spacings },
height: { ...defaultTheme.height, ...spacings },
spacing: { ...defaultTheme.spacing, ...spacings },
Expand Down

0 comments on commit 0b3da4b

Please sign in to comment.