Skip to content

Commit 6ec9b8c

Browse files
author
Cem Yılmaz
committed
fix namespacing for from/to/via
1 parent 6585415 commit 6ec9b8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ export const functionalPlugins = new Map<string, FunctionalPlugin[]>([
116116
]],
117117
["from", [
118118
{scaleKey: "gradientColorStops", ns: 'gradientStopsFrom', class: ['--tw-gradient-from', '--tw-gradient-from-position'], type: 'color'},
119-
{scaleKey: "gradientColorStopPositions", ns: 'gradientColorFromStops', class: ['--tw-gradient-from', '--tw-gradient-from-position'], type: 'percentage'},
119+
{scaleKey: "gradientColorStopPositions", ns: 'gradientStopsFromPosition', class: ['--tw-gradient-from', '--tw-gradient-from-position'], type: 'percentage'},
120120
]],
121121
["to", [
122122
{scaleKey: "gradientColorStops", ns: 'gradientStopsTo', class: ['--tw-gradient-to', '--tw-gradient-to-position'], type: 'color'},
123-
{scaleKey: "gradientColorStopPositions", ns: 'gradientColorToStops', class: ['--tw-gradient-from', '--tw-gradient-from-position'], type: 'percentage'},
123+
{scaleKey: "gradientColorStopPositions", ns: 'gradientStopsToPosition', class: ['--tw-gradient-from', '--tw-gradient-from-position'], type: 'percentage'},
124124
]],
125125
["via", [
126126
{scaleKey: "gradientColorStops", ns: 'gradientStopsVia', class: ['--tw-gradient-from'], type: 'color'},
127-
{scaleKey: "gradientColorStopPositions", ns: 'gradientColorViaStops', class: ['--tw-gradient-from', '--tw-gradient-from-position'], type: 'percentage'},
127+
{scaleKey: "gradientColorStopPositions", ns: 'gradientStopsViaPositions', class: ['--tw-gradient-from', '--tw-gradient-from-position'], type: 'percentage'},
128128
]],
129129
["fill", [
130130
{scaleKey: "fill", ns: 'fillColor', class: ['fill'], type: 'color'},

0 commit comments

Comments
 (0)