Skip to content

Commit

Permalink
Prefix custom properties with tw-
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Nov 17, 2020
1 parent 987bb20 commit 6802588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const aspectRatio = plugin(
{
[baseSelectors]: {
position: 'relative',
paddingBottom: `calc(var(--aspect-h) / var(--aspect-w) * 100%)`,
paddingBottom: `calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%)`,
},
[childSelectors]: {
position: 'absolute',
Expand Down Expand Up @@ -49,14 +49,14 @@ const aspectRatio = plugin(
Object.entries(values).map(([key, value]) => {
return {
[`.${e(`aspect-w-${key}`)}`]: {
'--aspect-w': value,
'--tw-aspect-w': value,
},
}
}),
Object.entries(values).map(([key, value]) => {
return {
[`.${e(`aspect-h-${key}`)}`]: {
'--aspect-h': value,
'--tw-aspect-h': value,
},
}
}),
Expand Down

0 comments on commit 6802588

Please sign in to comment.