Skip to content

Commit 7b3a86f

Browse files
authored
Migrate to Tailwind.css (#55)
* Migrate from emotion to tailwind * Consistency and bug fixes * Fix some styling issues * Update snapshots * Upgrade pnpm in CI
1 parent f08bab3 commit 7b3a86f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1707
-2250
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: pnpm/action-setup@v2
1212
with:
13-
version: 7
13+
version: 8
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 18

next.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
export default {
33
reactStrictMode: true,
4-
compiler: {
5-
emotion: true,
6-
},
74
redirects() {
85
return [
96
{

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "next-kaihao.dev",
2+
"name": "kaihao.dev",
33
"type": "module",
44
"private": true,
55
"engines": {
66
"node": ">=18",
7-
"pnpm": ">=3"
7+
"pnpm": ">=8"
88
},
99
"scripts": {
1010
"dev": "HOST=http://127.0.0.1:3000 next dev",
@@ -17,13 +17,10 @@
1717
"generate-rss": "NODE_ENV=production tsx src/internals/generateRSS.ts"
1818
},
1919
"dependencies": {
20-
"@emotion/react": "^11.10.6",
21-
"@emotion/styled": "^11.10.6",
2220
"@vercel/og": "^0.2.0",
21+
"classnames": "^2.3.2",
2322
"esbuild": "^0.17.10",
24-
"focus-visible": "^5.2.0",
2523
"image-size": "^1.0.2",
26-
"modern-normalize": "^1.1.0",
2724
"next": "13.2.1",
2825
"polished": "^4.2.2",
2926
"prism-themes": "^1.9.0",
@@ -45,13 +42,15 @@
4542
"@types/rss": "^0.0.30",
4643
"@types/sharp": "^0.31.1",
4744
"@types/unist": "^2.0.6",
45+
"autoprefixer": "^10.4.14",
4846
"eslint": "8.35.0",
4947
"eslint-config-next": "13.2.1",
5048
"grapheme-splitter": "^1.0.4",
5149
"loader-utils": "^3.2.1",
5250
"lodash.truncate": "^4.4.2",
5351
"mdast-util-mdx": "^2.0.1",
5452
"mdx-bundler": "^9.2.1",
53+
"postcss": "^8.4.27",
5554
"prettier": "2.8.4",
5655
"prismjs": "^1.29.0",
5756
"remark-codesandbox": "^0.10.1",
@@ -60,6 +59,7 @@
6059
"remark-mdx-images": "^2.0.0",
6160
"rss": "^1.2.2",
6261
"string-width": "^5.1.2",
62+
"tailwindcss": "^3.3.3",
6363
"tsx": "^3.12.3",
6464
"typescript": "4.9.5",
6565
"unist-util-visit": "4.1.2"

0 commit comments

Comments
 (0)