Skip to content

Commit 6802588

Browse files
committed
Prefix custom properties with tw-
1 parent 987bb20 commit 6802588

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const aspectRatio = plugin(
2121
{
2222
[baseSelectors]: {
2323
position: 'relative',
24-
paddingBottom: `calc(var(--aspect-h) / var(--aspect-w) * 100%)`,
24+
paddingBottom: `calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)`,
2525
},
2626
[childSelectors]: {
2727
position: 'absolute',
@@ -49,14 +49,14 @@ const aspectRatio = plugin(
4949
Object.entries(values).map(([key, value]) => {
5050
return {
5151
[`.${e(`aspect-w-${key}`)}`]: {
52-
'--aspect-w': value,
52+
'--tw-aspect-w': value,
5353
},
5454
}
5555
}),
5656
Object.entries(values).map(([key, value]) => {
5757
return {
5858
[`.${e(`aspect-h-${key}`)}`]: {
59-
'--aspect-h': value,
59+
'--tw-aspect-h': value,
6060
},
6161
}
6262
}),

0 commit comments

Comments
 (0)