Skip to content

Commit e2cf6b0

Browse files
committed
fix(color): typo VanBackgroundImage
1 parent 44304a9 commit e2cf6b0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { default as ElColors } from './el-colors'
22
export { default as NaiveColors } from './naive-colors'
33
export { default as VanColors } from './van-colors'
4-
export { default as VanBackground } from './van-background'
4+
export { default as VanBackgroundImage } from './van-background-image'
55
export type * from './types'

packages/tailwindcss-color-preset/src/colors/van-background.ts renamed to packages/tailwindcss-color-preset/src/colors/van-background-image.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const VanBackground = {
1+
const VanBackgroundImage = {
22
'van-gradient-red': 'linear-gradient(to right, #ff6034, #ee0a24)',
33
'van-gradient-orange': 'linear-gradient(to right, #ffd01e, #ff8917)',
44
}
55

6-
export default VanBackground
6+
export default VanBackgroundImage

packages/tailwindcss-color-preset/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Config } from 'tailwindcss'
33
import {
44
ElColors,
55
NaiveColors,
6-
VanBackground,
6+
VanBackgroundImage,
77
VanColors,
88
} from './colors'
99
import type { Option } from './colors/types'
@@ -19,8 +19,8 @@ export default (opt?: Option): Config => {
1919
...(opt?.vant ?? VANT ? VanColors : {}),
2020
}
2121

22-
const backgroundImage = typeof opt === 'boolean' ? (opt ? { ...VanBackground } : {}) : {
23-
...(opt?.vant ?? VANT ? VanBackground : {}),
22+
const backgroundImage = typeof opt === 'boolean' ? (opt ? { ...VanBackgroundImage } : {}) : {
23+
...(opt?.vant ?? VANT ? VanBackgroundImage : {}),
2424
}
2525

2626
return {

0 commit comments

Comments
 (0)