Skip to content

Commit 090671b

Browse files
committed
Switch from Bulma to Tailwind
1 parent a76a014 commit 090671b

File tree

10 files changed

+731
-2026
lines changed

10 files changed

+731
-2026
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
run: yarn install --frozen-lockfile
2828
- name: Check formatting
2929
run: yarn run format:check
30-
- name: Lint the code
31-
run: yarn run lint
30+
# - name: Lint the code
31+
# run: yarn run lint
3232
- name: Export the website
3333
run: yarn run export
3434
- name: Run Lighthouse

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.md
2+
.next/
3+
build/

global.css

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
@layer base {
6+
html {
7+
@apply font-sans text-gray-700;
8+
}
9+
10+
h1 {
11+
@apply text-4xl font-bold;
12+
}
13+
14+
*:not(#rendered) > h2 {
15+
@apply text-3xl font-bold mb-6 text-center;
16+
}
17+
18+
h3 {
19+
@apply text-2xl font-bold mb-4;
20+
}
21+
22+
p {
23+
@apply mt-3;
24+
}
25+
26+
#rendered ul {
27+
@apply list-disc;
28+
}
29+
30+
#rendered ol {
31+
@apply list-decimal;
32+
}
33+
34+
code {
35+
@apply bg-gray-100 p-1 rounded-md;
36+
}
37+
38+
a {
39+
@apply text-blue-600;
40+
}
41+
42+
a:hover {
43+
@apply underline;
44+
}
45+
}
46+
47+
a.anchorjs-link:hover {
48+
@apply no-underline;
49+
}
50+
51+
#template h2 > a.anchorjs-link,
52+
#faq h2 > a.anchorjs-link {
53+
@apply text-blue-400;
54+
}

index.css

-156
This file was deleted.

package.json

+5-11
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
"dev": "yarn install && next dev",
77
"build": "next build",
88
"export": "next build && next export -o build",
9-
"format": "prettier --write package.json public/*.js index.css",
10-
"format:check": "prettier --list-different package.json public/*.js index.css",
11-
"lint": "yarn run lint:css",
12-
"lint:css": "stylelint ./**/*.css *.css"
9+
"format": "prettier --write \"./**/*.{json,js,jsx,ts,tsx}\"",
10+
"format:check": "prettier --list-different package.json \"./**/*.{json,js,jsx,ts,tsx}\""
1311
},
1412
"repository": "https://github.com/dguo/make-a-readme",
1513
"author": "Danny Guo",
@@ -19,7 +17,6 @@
1917
"@fortawesome/fontawesome-svg-core": "1.2.35",
2018
"@fortawesome/free-solid-svg-icons": "5.15.3",
2119
"@fortawesome/react-fontawesome": "0.1.14",
22-
"bulma": "0.7.2",
2320
"github-markdown-css": "4.0.0",
2421
"highlight.js": "11.0.1",
2522
"react": "17.0.2",
@@ -29,19 +26,16 @@
2926
},
3027
"devDependencies": {
3128
"@types/react": "17.0.11",
32-
"htmlhint": "0.15.1",
29+
"autoprefixer": "10.2.6",
3330
"next": "11.0.1",
31+
"postcss": "8.3.5",
3432
"prettier": "2.3.2",
35-
"stylelint": "13.13.1",
36-
"stylelint-config-recommended": "5.0.0",
33+
"tailwindcss": "2.2.4",
3734
"typescript": "4.3.4"
3835
},
3936
"prettier": {
4037
"bracketSpacing": false,
4138
"tabWidth": 4,
4239
"trailingComma": "none"
43-
},
44-
"stylelint": {
45-
"extends": "stylelint-config-recommended"
4640
}
4741
}

pages/_app.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import "bulma/css/bulma.min.css";
1+
import "../global.css";
22
import "github-markdown-css/github-markdown.css";
33
import "highlight.js/styles/a11y-light.css";
44

@@ -7,8 +7,6 @@ import {config} from "@fortawesome/fontawesome-svg-core";
77
// Skip adding the CSS automatically since it's being imported above
88
config.autoAddCss = false;
99

10-
import "../index.css";
11-
1210
export default function App({Component, pageProps}) {
1311
return <Component {...pageProps} />;
1412
}

0 commit comments

Comments
 (0)