Skip to content

Commit f847dc4

Browse files
committed
update to tailwind v4
1 parent f3241fc commit f847dc4

7 files changed

Lines changed: 110 additions & 120 deletions

File tree

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
"dependencies": {
1515
"@headlessui/vue": "^1.7.23",
16-
"@tailwindcss/vite": "^4.1.10",
17-
"tailwindcss": "^4.1.10",
16+
"@tailwindcss/vite": "^4.1.11",
17+
"tailwindcss": "^4.1.11",
1818
"vue": "^3.5.13",
1919
"vue-router": "^4.5.0"
2020
},

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ onMounted(async () => {
2222
</router-link>
2323
<div class="flex items-center gap-4 flex-col md:flex-row">
2424
<nav class="flex gap-7 gap-y-2 text-gray-200 roboto text-center flex-wrap justify-center relative md:pr-4 pb-2 md:pb-0
25-
after:bg-gray-400 after:absolute md:after:h-[80%] md:after:w-[1px] md:after:right-0 md:after:top-1/2 md:after:-translate-y-1/2
26-
after:h-[1px] after:w-[40px] after:top-full">
25+
after:bg-gray-400 after:absolute md:after:h-[80%] md:after:w-px md:after:right-0 md:after:top-1/2 md:after:-translate-y-1/2
26+
after:h-px after:w-[40px] after:top-full">
2727
<router-link class="hover:text-gray-100 text-nowrap" to="/">Recent Records</router-link>
2828
<router-link class="hover:text-gray-100 text-nowrap" to="/maps">Map Leaderboards</router-link>
2929
<router-link class="hover:text-gray-100 text-nowrap" to="/players">Player Lookup</router-link>

src/assets/base.css

Lines changed: 27 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
body {
2+
min-height: 100vh;
3+
color: var(--color-text);
4+
transition:
5+
color 0.5s,
6+
background-color 0.5s;
7+
line-height: 1.6;
8+
font-family:
9+
Inter,
10+
-apple-system,
11+
BlinkMacSystemFont,
12+
'Segoe UI',
13+
Roboto,
14+
Oxygen,
15+
Ubuntu,
16+
Cantarell,
17+
'Fira Sans',
18+
'Droid Sans',
19+
'Helvetica Neue',
20+
sans-serif;
21+
font-size: 15px;
22+
text-rendering: optimizeLegibility;
23+
-webkit-font-smoothing: antialiased;
24+
-moz-osx-font-smoothing: grayscale;
25+
}
26+
27+
@import 'tailwindcss';
428

529
/* color palette from <https://github.com/vuejs/theme> */
630
:root {
@@ -54,37 +78,3 @@
5478
}
5579
}
5680

57-
*,
58-
*::before,
59-
*::after {
60-
box-sizing: border-box;
61-
margin: 0;
62-
font-weight: normal;
63-
}
64-
65-
body {
66-
min-height: 100vh;
67-
color: var(--color-text);
68-
background: var(--color-background);
69-
transition:
70-
color 0.5s,
71-
background-color 0.5s;
72-
line-height: 1.6;
73-
font-family:
74-
Inter,
75-
-apple-system,
76-
BlinkMacSystemFont,
77-
'Segoe UI',
78-
Roboto,
79-
Oxygen,
80-
Ubuntu,
81-
Cantarell,
82-
'Fira Sans',
83-
'Droid Sans',
84-
'Helvetica Neue',
85-
sans-serif;
86-
font-size: 15px;
87-
text-rendering: optimizeLegibility;
88-
-webkit-font-smoothing: antialiased;
89-
-moz-osx-font-smoothing: grayscale;
90-
}

0 commit comments

Comments
 (0)