argyleink / open-props

CSS custom properties to help accelerate adaptive and consistent design.
https://open-props.style
MIT License
4.52k stars 184 forks source link

Exporting `./supports.min.css` #464

Closed SalahAdDin closed 5 months ago

SalahAdDin commented 5 months ago

The file is listed on the docs page, but when importing it, node is unable to find it.

stackblitz[bot] commented 5 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

argyleink commented 5 months ago

node can find it if you don't use the exports aliases, if you instead point the full path to the file in node_modules

'open-props/src/props.supports.css'

the reason it's not listed in the exports of package.json is because it's generally shunned to target specific browsers and I don't want to promote the authoring of specific code. i am ok supporting folks who need it, but not promoting it. so that's why it's there but not made as easy as the rest of the imports.