Skip to content

Commit 470dc24

Browse files
committed
Use PostCSS to replace OKLCH with RGB for better browser support
1 parent 0a143aa commit 470dc24

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@codemirror/lang-markdown": "latest",
5252
"@codemirror/language": "latest",
5353
"@codemirror/state": "latest",
54+
"@csstools/postcss-oklab-function": "^4.0.11",
5455
"@eslint/js": "^9.30.1",
5556
"@headlessui/react": "^2.2.4",
5657
"@headlessui/tailwindcss": "^0.2.2",
@@ -73,6 +74,7 @@
7374
"husky": "^9.1.7",
7475
"jsdom": "^26.1.0",
7576
"lint-staged": "^16.1.4",
77+
"postcss": "^8.5.6",
7678
"prettier": "3.6.2",
7779
"react": "^19.1.0",
7880
"react-docgen-typescript": "^2.4.0",

pnpm-lock.yaml

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

postcss.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import postcss from "postcss";
2+
import postcssOKLabFunction from "@csstools/postcss-oklab-function";
3+
4+
export default postcss([postcssOKLabFunction()]);

0 commit comments

Comments
 (0)