We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987bb20 commit 6802588Copy full SHA for 6802588
src/index.js
@@ -21,7 +21,7 @@ const aspectRatio = plugin(
21
{
22
[baseSelectors]: {
23
position: 'relative',
24
- paddingBottom: `calc(var(--aspect-h) / var(--aspect-w) * 100%)`,
+ paddingBottom: `calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)`,
25
},
26
[childSelectors]: {
27
position: 'absolute',
@@ -49,14 +49,14 @@ const aspectRatio = plugin(
49
Object.entries(values).map(([key, value]) => {
50
return {
51
[`.${e(`aspect-w-${key}`)}`]: {
52
- '--aspect-w': value,
+ '--tw-aspect-w': value,
53
54
}
55
}),
56
57
58
[`.${e(`aspect-h-${key}`)}`]: {
59
- '--aspect-h': value,
+ '--tw-aspect-h': value,
60
61
62
0 commit comments