argyleink / open-props

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

Missing "./postcss/buttons" export in "open-props" package #283

Closed Crisfole closed 2 years ago

Crisfole commented 2 years ago

This is pretty readily repeatable by installing open-props with NPM (or PNPM, or YARN, or whatever you want). Then create the following file named app.postcss:

@import "open-props/postcss/style";
@import "open-props/postcss/normalize";
@import "open-props/postcss/buttons";

When trying to compile it (I'm consuming it from Svelte Kit, using their post css adapter), it will inform you that Missing "./postcss/buttons" export in "open-props" package. Which is true, the package.json doesn't define any postcss/* exports apart from style and normalize:

image

Even trying to directly import the file I care about fails:

@import "open-props/postcss/style";
@import "open-props/postcss/normalize";
@import "open-props/src/extra/buttons.css";

With: Missing "./src/extra/buttons.css" export in "open-props" package

argyleink commented 2 years ago

lemme add those missing exports then!