File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/@tailwindcss-upgrade/src/template Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 19
19
` ,
20
20
'src/index.html' : html `
21
21
<h1 > 🤠👋</ h1>
22
- <div class= "!flex sm:!block" > </div>
22
+ <div class= "!flex sm:!block bg-gradient-to-t " > </div>
23
23
` ,
24
24
'src/input.css' : css `
25
25
@tailwind base;
35
35
'src/index.html' ,
36
36
html `
37
37
<h1> 🤠👋</ h1>
38
- <div class= "flex! sm:block!" > </ div>
38
+ <div class= "flex! sm:block! bg-linear-to-t " > </ div>
39
39
` ,
40
40
)
41
41
Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ import path from 'node:path'
3
3
import type { Candidate } from '../../../tailwindcss/src/candidate'
4
4
import type { DesignSystem } from '../../../tailwindcss/src/design-system'
5
5
import { extractCandidates , printCandidate , replaceCandidateInContent } from './candidates'
6
+ import { bgGradient } from './codemods/bg-gradient'
6
7
import { migrateImportant } from './codemods/migrate-important'
7
8
8
9
export type Migration = ( candidate : Candidate ) => Candidate | null
9
10
10
11
export default async function migrateContents (
11
12
designSystem : DesignSystem ,
12
13
contents : string ,
13
- migrations : Migration [ ] = [ migrateImportant ] ,
14
+ migrations : Migration [ ] = [ migrateImportant , bgGradient ] ,
14
15
) : Promise < string > {
15
16
let candidates = await extractCandidates ( designSystem , contents )
16
17
You can’t perform that action at this time.
0 commit comments