Skip to content

Commit 687134d

Browse files
Merge pull request #16 from Nuklai/piotr-add-tailwindcss
Add tailwind
2 parents 2576ef3 + c0f3f8f commit 687134d

9 files changed

+644
-87
lines changed

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"cSpell.words": ["Nuklai", "wailsjs"],
2+
"cSpell.words": ["Nuklai", "tailwindcss", "wailsjs"],
33
"editor.defaultFormatter": "biomejs.biome"
44
}

frontend/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@
1515
"antd": "^5.8.4",
1616
"react": "^18.3.1",
1717
"react-dom": "^18.3.1",
18-
"react-router-dom": "^6.15.0"
18+
"react-router-dom": "^6.15.0",
19+
"tailwind-merge": "^2.3.0"
1920
},
2021
"devDependencies": {
2122
"@biomejs/biome": "1.8.3",
2223
"@types/node": "^20.14.10",
2324
"@types/react": "^18.3.3",
2425
"@types/react-dom": "^18.3.0",
2526
"@vitejs/plugin-react": "^4.3.1",
27+
"autoprefixer": "^10.4.19",
2628
"path": "^0.12.7",
29+
"postcss": "^8.4.39",
30+
"tailwindcss": "^3.4.4",
2731
"typescript": "^5.5.3",
2832
"url": "^0.11.1",
2933
"vite": "^5.3.3"

frontend/package.json.md5

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
56fb010925dec06f4b587d097770583a
1+
9e93899b1ad4a37715ca6687c4d288f2

frontend/postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

frontend/src/App.css

+3-59
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,3 @@
1-
#app {
2-
height: 100vh;
3-
text-align: center;
4-
}
5-
6-
#logo {
7-
display: block;
8-
width: 50%;
9-
height: 50%;
10-
margin: auto;
11-
padding: 10% 0 0;
12-
background-position: center;
13-
background-repeat: no-repeat;
14-
background-size: 100% 100%;
15-
background-origin: content-box;
16-
}
17-
18-
.result {
19-
height: 20px;
20-
line-height: 20px;
21-
margin: 1.5rem auto;
22-
}
23-
24-
.input-box .btn {
25-
width: 60px;
26-
height: 30px;
27-
line-height: 30px;
28-
border-radius: 3px;
29-
border: none;
30-
margin: 0 0 0 20px;
31-
padding: 0 8px;
32-
cursor: pointer;
33-
}
34-
35-
.input-box .btn:hover {
36-
background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
37-
color: #333333;
38-
}
39-
40-
.input-box .input {
41-
border: none;
42-
border-radius: 3px;
43-
outline: none;
44-
height: 30px;
45-
line-height: 30px;
46-
padding: 0 10px;
47-
background-color: rgba(240, 240, 240, 1);
48-
-webkit-font-smoothing: antialiased;
49-
}
50-
51-
.input-box .input:hover {
52-
border: none;
53-
background-color: rgba(255, 255, 255, 1);
54-
}
55-
56-
.input-box .input:focus {
57-
border: none;
58-
background-color: rgba(255, 255, 255, 1);
59-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

frontend/src/App.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { GetCommitHash, OpenLink } from '../wailsjs/go/main/App';
88
import logo from './assets/images/nuklai-footer.png';
99
import NavBar from './components/NavBar';
1010

11+
import './App.css';
12+
1113
const { Text } = Typography;
1214
const { Content } = Layout;
1315

frontend/src/style.css

-18
This file was deleted.

frontend/tailwind.config.js

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
4+
theme: {
5+
colors: {
6+
primary: '#08F7DB',
7+
'primary-25': '#06C6AF',
8+
secondary: '#6FB3F6',
9+
'secondary-25': '#8FABD4',
10+
token: '#2775CA',
11+
inactive: '#5C5C6D',
12+
border: '#2D2F41',
13+
'alert-25': '#CD2B38',
14+
'alert-50': '#D94854',
15+
'accent-25': '#71AA7A',
16+
'accept-50': '#3C994B',
17+
white: '#FFFFFF',
18+
black: '#030F1B',
19+
'font-75': '#27282D',
20+
'font-100': '#E0EFFDA6',
21+
'font-200': '#CDCFD0',
22+
'font-300': '#CFE6FC',
23+
'font-header': '#FEB67B',
24+
'banner-header':
25+
'linear-gradient(174deg, #08F7DB 27.73%, #0F81F0 75.48%)',
26+
'banner-suitable': '#CDCFD0',
27+
'schema-25': '#D0B071',
28+
'schema-50': '#71D07F',
29+
'schema-75': '#B0DDEC',
30+
'schema-100': '#8DBAFF',
31+
'schema-125': '#B0DDEC',
32+
'schema-border': '#595C6D',
33+
'schema-marked': '#FFCAC4',
34+
paper: '#0E1724',
35+
'paper-25': '#0C1624',
36+
'paper-50': '#1D202CB2',
37+
body: '#020D1E',
38+
'body-blur':
39+
'linear-gradient(6deg, rgba(20, 14, 37, 0.75) 3.09%, rgba(14, 25, 39, 0.75) 96.86%)',
40+
'background-solid-25': '#103764',
41+
select: '#9BBEF273',
42+
'schema-tab': '#30384B',
43+
'schema-body': '#252939',
44+
'schema-modal': '#383B4E',
45+
'schema-tags': '#42465A',
46+
banner: '#080A1CBA',
47+
'banner-body': 'linear-gradient(274deg, #020F18 20.87%, #0A0F17 76.32%)',
48+
},
49+
},
50+
plugins: [],
51+
};

0 commit comments

Comments
 (0)