-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81ae830
commit 4411fb8
Showing
4 changed files
with
51 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {extendTailwindMerge} from "tailwind-merge" | ||
|
||
// Creates an array containing type-# classes from 0 to 1 | ||
const typeClasses = Array.from({length: 10}, (_, i) => `type-${i}`) | ||
// Creates an array containing text-# classes from 11 to 30 | ||
const textClasses = Array.from({length: 20}, (_, i) => `text-${i + 11}`) | ||
|
||
const typographyClasses = [...textClasses, ...typeClasses] | ||
|
||
const twMerge = extendTailwindMerge({ | ||
extend: { | ||
classGroups: { | ||
"font-size": typographyClasses, | ||
}, | ||
}, | ||
}) | ||
|
||
export default twMerge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters