You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those of not using PostCSS is there a way to get the shadow styles without also pulling in those media styles? I'm currently just trying to opt-in one prop file at a time.
The text was updated successfully, but these errors were encountered:
thescientist13
changed the title
alternative for shadow styles without dependency on media styles (e.g. custom media queries)
alternative for shadows props without dependency on media props (e.g. custom media queries)
Dec 15, 2024
thescientist13
changed the title
alternative for shadows props without dependency on media props (e.g. custom media queries)
alternative for shadows props without dependency on media props (e.g. custom media queries / PostCSS)
Dec 15, 2024
looks like youre using the PostCSS files in your import: @import "../../node_modules/open-props/src/props.shadows.css";. this path you shared is specifically to the PostCSS file, which as an author would mean you're going to run PostCSS on them.
if you're not using PostCSS, you can import the files that have already been processed by PostCSS (which are the default exports). instead use @import "open-props/shadows"; or @import "../../node_modules/open-props/shadows.min.css"; as these import paths grab the processed files.
I noticed that the file for shadows props depends on the media props file. However, the website states that these media props can only be used with a PostCSS plugin.
https://open-props.style/#media-queries
For those of not using PostCSS is there a way to get the shadow styles without also pulling in those media styles? I'm currently just trying to opt-in one prop file at a time.
Thanks in advance!
The text was updated successfully, but these errors were encountered: