Skip to content

Commit a68c22c

Browse files
committed
feat: add tailwindcss
1 parent f62c9bb commit a68c22c

File tree

8 files changed

+17
-15
lines changed

8 files changed

+17
-15
lines changed

.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"plugins": ["prettier-plugin-tailwindcss"],
23
"trailingComma": "es5",
34
"tabWidth": 2,
45
"semi": true,

bun.lockb

14.6 KB
Binary file not shown.

index.css

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
.ac-footer {
2-
display: flex;
3-
align-items: center;
4-
gap: 0.5rem;
5-
}
6-
7-
.ac-item-images {
8-
display: flex;
9-
margin-top: 0.5rem;
10-
}
1+
@import "tailwindcss";
112

123
.ac-splitter {
134
margin-top: 2rem;
145
margin-bottom: 2rem;
15-
border-top-width: 3px;
6+
border-top-width: 2px;
167
}

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
"react-dom": "^19.0.0"
1515
},
1616
"devDependencies": {
17+
"@tailwindcss/postcss": "^4.0.0-beta.6",
1718
"@types/node": "22.10.1",
1819
"prettier": "^3.4.2",
20+
"prettier-plugin-tailwindcss": "^0.6.9",
21+
"tailwindcss": "^4.0.0-beta.6",
1922
"typescript": "^5.7.2"
2023
}
2124
}

pages/_meta.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
export default {
22
index: 'Home',
33
radio: 'AC Radio',
4-
scoreboard: 'AC Scoreboard',
4+
scoreboard: {
5+
title: (
6+
<div className="flex justify-between w-full gap-2">
7+
<span>AC Scoreboard</span>
8+
<span className="bg-green-600 text-white px-1 py-0.5 rounded font-semibold text-xs self-center">NEW</span>
9+
</div>
10+
),
11+
},
512
documents: 'AC Documents',
613
gifts: 'AC Gifts',
714
link_tebex: {

pages/documents/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Make sure to create items called `paper`, `document` and `crumpled_paper` in you
2525
You can change the used item names in `ac_documents/editable/config.lua`.
2626
You can use the following images or make your own.
2727

28-
<div className="ac-item-images">
28+
<div className="flex mt-2">
2929
<Image src="/images/items/paper.png" alt="paper" width={100} height={100} quality={100} />
3030
<Image src="/images/items/document.png" alt="document" width={100} height={100} quality={100} />
3131
<Image src="/images/items/crumpled_paper.png" alt="crumpled_paper" width={100} height={100} quality={100} />

pages/gifts/install.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ setContainerProperties('empty_gift', {
5353
For more detailed steps, visit the official [Creating items](https://overextended.dev/ox_inventory/Guides/creatingItems) guide.
5454

5555
### Images
56-
<div className="ac-item-images">
56+
<div className="flex mt-2">
5757
<Image src="/images/items/empty_gift.png" alt="empty_gift" width={100} height={100} quality={100} />
5858
<Image src="/images/items/gift.png" alt="gift" width={100} height={100} quality={100} />
5959
<Image src="/images/items/opened_gift.png" alt="opened_gift" width={100} height={100} quality={100} />

theme.config.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const config: DocsThemeConfig = {
3030
docsRepositoryBase: 'https://github.com/acscripts/docs/tree/main',
3131
feedback: { content: null },
3232
footer: {
33-
<div className="ac-footer">
3433
content: (
34+
<div className="flex items-center gap-2">
3535
<span>© {new Date().getFullYear()}</span>
3636
<Image src="/logo.svg" alt="logo" width={24} height={24} />
3737
<span>AC Scripts</span>

0 commit comments

Comments
 (0)