Skip to content

Commit

Permalink
fix: extra font size to tailwind merge
Browse files Browse the repository at this point in the history
  • Loading branch information
amritk committed May 1, 2024
1 parent 4cd5d4d commit e1b89d8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
3 changes: 1 addition & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@
"@scalar/oas-utils": "workspace:*",
"@storybook/test": "^8.0.8",
"@vueuse/core": "^10.9.0",
"class-variance-authority": "^0.7.0",
"cva": "1.0.0-beta.1",
"nanoid": "^5.0.1",
"prismjs": "^1.29.0",
"tailwind-merge": "^2.0.0"
"tailwind-merge": "^2.3.0"
},
"devDependencies": {
"@rise8/tailwind-pixel-perfect-preset": "^1.0.1",
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/cva.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { prefix } from '../postcss.config'
const tw = extendTailwindMerge<typeof prefix>({
extend: {
classGroups: {
'font-size': ['text-xxs'],
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
[prefix]: [prefix],
},
Expand Down
32 changes: 15 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1b89d8

Please sign in to comment.