This repository was archived by the owner on Feb 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-22
lines changed Expand file tree Collapse file tree 3 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -4,22 +4,21 @@ module.exports = ({
44 variants = { } ,
55 indents = { } ,
66 textShadows = { } ,
7- } = { } ) =>
8- ( { e, addUtilities } ) => {
9- addUtilities (
10- {
11- '.ellipsis' : { textOverflow : 'ellipsis' } ,
12- '.hyphens' : { hyphens : 'auto' } ,
13- ...Object . assign (
14- { } ,
15- ..._ . map ( indents , ( value , name ) => ( {
16- [ `.indent-${ e ( name ) } ` ] : { textIndent : value } ,
17- } ) ) ,
18- ..._ . map ( textShadows , ( value , name ) => ( {
19- [ `.text-shadow${ e ( name === 'default' ? '' : `-${ name } ` ) } ` ] : { textShadow : value } ,
20- } ) ) ,
21- ) ,
22- } ,
23- variants ,
24- ) ;
25- } ;
7+ } = { } ) => ( { e, addUtilities } ) => {
8+ addUtilities (
9+ {
10+ '.ellipsis' : { textOverflow : 'ellipsis' } ,
11+ '.hyphens' : { hyphens : 'auto' } ,
12+ ...Object . assign (
13+ { } ,
14+ ..._ . map ( indents , ( value , name ) => ( {
15+ [ `.${ e ( `indent-${ name } ` ) } ` ] : { textIndent : value } ,
16+ } ) ) ,
17+ ..._ . map ( textShadows , ( value , name ) => ( {
18+ [ `.${ e ( `text-shadow${ name === 'default' ? '' : `-${ name } ` } ` ) } ` ] : { textShadow : value } ,
19+ } ) ) ,
20+ ) ,
21+ } ,
22+ variants ,
23+ ) ;
24+ } ;
Original file line number Diff line number Diff line change 11{
22 "name" : " tailwindcss-typography" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Tailwind CSS plugin to generate typography utilities" ,
55 "author" :
" Benoît Rouleau <[email protected] >" ,
66 "license" : " ISC" ,
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ plugin({
1313 } ,
1414} ) ( {
1515 e : value => value ,
16- addUtilities : ( utilities , variants ) => {
16+ addUtilities : ( utilities ) => {
1717 generatedUtilities = utilities ;
1818 } ,
1919} ) ;
2020
21- console . log ( " generatedUtilities" , generatedUtilities ) ;
21+ console . log ( ' generatedUtilities' , generatedUtilities ) ;
You can’t perform that action at this time.
0 commit comments