Skip to content

Commit 2a072b4

Browse files
Upgrade tailwind (#364)
1 parent 6264066 commit 2a072b4

File tree

10 files changed

+680
-215
lines changed

10 files changed

+680
-215
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"@playwright/test": "1.49.1",
4747
"@swc/core": "1.3.90",
4848
"@swc/jest": "0.2.29",
49+
"@tailwindcss/cli": "4.0.17",
50+
"@tailwindcss/postcss": "4.1.3",
51+
"@tailwindcss/vite": "4.1.11",
4952
"@testing-library/jest-dom": "6.1.3",
5053
"@testing-library/react": "14.0.0",
5154
"@testing-library/user-event": "14.5.1",
@@ -78,7 +81,7 @@
7881
"mochawesome-report-generator": "6.2.0",
7982
"postcss": "8.4.30",
8083
"prettier": "3.0.3",
81-
"tailwindcss": "3.3.3",
84+
"tailwindcss": "4.0.15",
8285
"ts-jest": "29.1.1",
8386
"ts-node": "10.9.2",
8487
"typescript": "5.2.2",

postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
plugins: {
3-
tailwindcss: {},
3+
'@tailwindcss/postcss': {},
44
autoprefixer: {}
55
}
66
};

src/components/Button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Button = ({
1616
disabled = false,
1717
type = 'button',
1818
id,
19-
className = 'inline-block rounded-lg px-3 py-2 text-center hover:no-underline my-0 bg-blue-600 text-white hover:bg-blue-700 mr-0 disabled:bg-gray-200 disabled:text-black disabled:cursor-not-allowed',
19+
className = 'inline-block rounded-lg px-3 py-2 text-center hover:no-underline my-0 bg-blue-600 text-white hover:bg-blue-700 mr-0 disabled:bg-gray-200 disabled:!text-black disabled:cursor-not-allowed',
2020
...otherProps
2121
}: ButtonType) => {
2222
return (

src/initConfig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import './styles/globals.css';
1+
import './styles/tailwind.css';
2+
import './styles/style.css';
23

34
import { walletConnectV2ProjectId } from 'config';
45
import { EnvironmentsEnum, InitAppType } from './lib';

src/pages/Dashboard/widgets/PingPongAbi/PingPongAbi.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const PingPongAbi = () => {
6868
onClick={onSendPingTransaction}
6969
data-testid='btnPingAbi'
7070
data-cy='transactionBtn'
71-
className='inline-block rounded-lg px-3 py-2 text-center hover:no-underline my-0 bg-blue-600 text-white hover:bg-blue-700 mr-0 disabled:bg-gray-200 disabled:text-black disabled:cursor-not-allowed'
71+
className='inline-block rounded-lg px-3 py-2 text-center hover:no-underline my-0 bg-blue-600 text-white hover:bg-blue-700 mr-0 disabled:bg-gray-200 disabled:!text-black disabled:cursor-not-allowed'
7272
>
7373
<FontAwesomeIcon icon={faArrowUp} className='mr-1' />
7474
Ping
@@ -79,7 +79,7 @@ export const PingPongAbi = () => {
7979
data-testid='btnPongAbi'
8080
data-cy='transactionBtn'
8181
onClick={onSendPongTransaction}
82-
className='inline-block rounded-lg px-3 py-2 text-center hover:no-underline my-0 bg-blue-600 text-white hover:bg-blue-700 mr-0 disabled:bg-gray-200 disabled:text-black disabled:cursor-not-allowed'
82+
className='inline-block rounded-lg px-3 py-2 text-center hover:no-underline my-0 bg-blue-600 text-white hover:bg-blue-700 mr-0 disabled:bg-gray-200 disabled:!text-black disabled:cursor-not-allowed'
8383
>
8484
<FontAwesomeIcon icon={faArrowDown} className='mr-1' />
8585
Pong
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
22

3-
@tailwind base;
4-
@tailwind components;
5-
@tailwind utilities;
3+
* {
4+
font-family: 'Inter', sans-serif;
5+
}

src/styles/tailwind.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import 'tailwindcss';
2+
3+
@theme {
4+
--background-image-mvx-white: url('../multiversx-white.svg');
5+
}

tailwind.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export default defineConfig({
2828
globals: { Buffer: true, global: true, process: true }
2929
})
3030
],
31+
css: {
32+
postcss: './postcss.config.js'
33+
},
3134
build: {
3235
outDir: 'build'
3336
},

0 commit comments

Comments
 (0)