Skip to content

Commit d315924

Browse files
author
joachimzeelmaekers
committed
chore: bump tailwind, fix eslint
1 parent 1e55ef1 commit d315924

File tree

4 files changed

+386
-279
lines changed

4 files changed

+386
-279
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
"@emotion/styled": "^11.13.0",
1515
"@octokit/graphql": "^4.8.0",
1616
"@tailwindcss/forms": "^0.5.10",
17-
"@tailwindcss/line-clamp": "^0.2.2",
1817
"@tailwindcss/typography": "^0.5.16",
1918
"@types/gtag.js": "^0.0.4",
2019
"autoprefixer": "^10.4.21",
2120
"better-react-mathjax": "^2.0.1",
2221
"date-fns": "^2.30.0",
2322
"next": "^14.2.30",
24-
"postcss": "^8.1.10",
23+
"postcss": "^8.5.6",
2524
"react": "^18.3.1",
2625
"react-dom": "^18.3.1",
2726
"react-ga4": "^2.1.0",
@@ -32,7 +31,7 @@
3231
"react-use": "^17.6.0",
3332
"recharts": "2.0.0-beta.8",
3433
"remark-gfm": "^1.0.0",
35-
"tailwindcss": "^2.2.19"
34+
"tailwindcss": "^3.4.17"
3635
},
3736
"devDependencies": {
3837
"@datacamp/eslint-config": "^4.1.0",

pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function HomePage({ packageCount }: { packageCount?: number }) {
8787
);
8888
}
8989

90-
export const getServerSideProps: GetServerSideProps = async (_context) => {
90+
export const getServerSideProps: GetServerSideProps = async () => {
9191
let packageCount;
9292
try {
9393
const response = await fetch(

tailwind.config.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/* eslint-disable global-require */
22
module.exports = {
3-
darkMode: 'class',
4-
plugins: [
5-
require('@tailwindcss/forms'),
6-
require('@tailwindcss/typography'),
7-
require('@tailwindcss/line-clamp'),
3+
content: [
4+
'./components/**/*.{js,ts,jsx,tsx}',
5+
'./pages/**/*.{js,ts,jsx,tsx}',
86
],
9-
purge: ['./components/**/*.{js,ts,jsx,tsx}', './pages/**/*.{js,ts,jsx,tsx}'],
7+
darkMode: 'class',
8+
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
109
theme: {
1110
extend: {
1211
colors: {
@@ -28,6 +27,17 @@ module.exports = {
2827
'dc-yellow': '#FCCE0D',
2928
},
3029
},
30+
fontWeight: {
31+
black: '900',
32+
bold: '700',
33+
extrabold: '800',
34+
extralight: '200',
35+
light: '300',
36+
medium: '500',
37+
normal: '400',
38+
semibold: '600',
39+
thin: '100',
40+
},
3141
},
3242
variants: {
3343
extend: {

0 commit comments

Comments
 (0)