Skip to content

Commit 6583742

Browse files
committed
use postcss-nested instead of postcss-preset-env
1 parent 224bc33 commit 6583742

File tree

4 files changed

+58
-337
lines changed

4 files changed

+58
-337
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"dependencies": {
1111
"@tailwindcss/typography": "^0.2.0",
1212
"@tailwindcss/ui": "^0.6.2",
13+
"autoprefixer": "^10.0.1",
1314
"fontsource-noto-sans-jp": "^3.0.9",
1415
"fontsource-noto-serif-jp": "^3.0.3",
1516
"fontsource-roboto-mono": "^3.0.3",
@@ -41,7 +42,7 @@
4142
"lodash": "^4.17.20",
4243
"postcss": "^8.1.2",
4344
"postcss-import": "^13.0.0",
44-
"postcss-preset-env": "^6.7.0",
45+
"postcss-nested": "^5.0.1",
4546
"preact": "^10.5.5",
4647
"preact-render-to-string": "^5.1.11",
4748
"react": "^16.14.0",

postcss.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = () => ({
22
plugins: [
33
require("postcss-import"),
44
require("tailwindcss"),
5-
require("postcss-preset-env")({ stage: 1 }),
5+
require("postcss-nested"),
6+
require("autoprefixer")
67
],
78
})

tailwind.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ module.exports = {
4949
},
5050
},
5151
extend: {
52+
fontSize: {
53+
xxs: ['0.5rem', '1rem'],
54+
},
5255
spacing: {
5356
72: "18rem",
5457
80: "20rem",
@@ -124,6 +127,10 @@ module.exports = {
124127
MsTextCombineHorizontal: 'all',
125128
textCombineUpright: 'all',
126129
},
130+
'.outline': {
131+
WebkitTextStroke: '1px black',
132+
WebkitTextFillColor: 'white',
133+
},
127134
}
128135
addUtilities(newUtilities)
129136
addComponents({

0 commit comments

Comments
 (0)