Skip to content

Commit 5ab982e

Browse files
committed
change colors to match tailwind2 color palate
1 parent 98cb0fe commit 5ab982e

File tree

20 files changed

+51
-35
lines changed

20 files changed

+51
-35
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apk add git
1111
RUN cd ui/ && \
1212
npm install && \
1313
export NODE_ENV=production && \
14+
npm install tailwindcss postcss autoprefixer && \
1415
npx tailwindcss build -o src/index.css -c src/tailwind.config.js && \
1516
npm run build && \
1617
mv build/ gitconvex-ui/ && \

ui/src/Components/DashBoard/Compare/BranchCompareComponent/BranchCommitLogChanges.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function BranchCommitLogChanges(props) {
5959
commitLogs.map((commit) => {
6060
return (
6161
<div
62-
className="my-4 border-b p-3 border border-gray-400 shadow-md rounded"
62+
className="my-4 border-b p-3 border border-gray-200 shadow-md rounded"
6363
key={commit.date}
6464
>
6565
<div className="flex items-center gap-10 text-xl font-sans font-semibold text-gray-800 border-b">

ui/src/Components/DashBoard/Compare/CommitCompareComponent/CommitCompareComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function CommitCompareComponent(props) {
141141
<div className="font-sans font-semibold text-xl border-b border-dashed">
142142
Commit to Compare
143143
</div>
144-
<div className="text-xl font-sans font-semibold p-3 rounded-lg shadow text-gray-600 border-orange-400 border-2 border-dashed">
144+
<div className="text-xl font-sans font-semibold p-3 rounded-lg shadow text-gray-600 border-yellow-300 border-2 border-dashed">
145145
{compareCommit.substring(0, 7)}
146146
</div>
147147
<div

ui/src/Components/DashBoard/Compare/CommitCompareComponent/CommitLogCardComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function CommitLogCardComponent(props) {
3535
<div className="shadow border rounded text-sm p-2 bg-indigo-100 font-mono font-semibold text-indigo-800">
3636
#{item.hash.substring(0, 7)}
3737
</div>
38-
<div className="my-2 shadow border rounded text-sm p-2 bg-orange-100 font-sans font-semibold">
38+
<div className="my-2 shadow border rounded text-sm p-2 bg-yellow-50 font-sans font-semibold">
3939
{relativeCommitTimeCalculator(item.commitTime)}
4040
</div>
4141
</div>

ui/src/Components/DashBoard/DashboardPaneComponents/LeftPane.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function LeftPane(props) {
1717
icon: (
1818
<FontAwesomeIcon
1919
icon={["far", "folder"]}
20-
className="text-3xl text-gray-600"
20+
className="text-3xl text-gray-500"
2121
></FontAwesomeIcon>
2222
),
2323
label: "Repositories",
@@ -27,7 +27,7 @@ export default function LeftPane(props) {
2727
icon: (
2828
<FontAwesomeIcon
2929
icon={["fas", "object-group"]}
30-
className="text-3xl text-gray-600"
30+
className="text-3xl text-gray-500"
3131
></FontAwesomeIcon>
3232
),
3333
label: "Compare",
@@ -37,7 +37,7 @@ export default function LeftPane(props) {
3737
icon: (
3838
<FontAwesomeIcon
3939
icon={["fas", "cog"]}
40-
className="text-3xl text-gray-600"
40+
className="text-3xl text-gray-500"
4141
></FontAwesomeIcon>
4242
),
4343
label: "Settings",
@@ -47,7 +47,7 @@ export default function LeftPane(props) {
4747
icon: (
4848
<FontAwesomeIcon
4949
icon={["far", "question-circle"]}
50-
className="text-3xl text-gray-600"
50+
className="text-3xl text-gray-500"
5151
></FontAwesomeIcon>
5252
),
5353
label: "Help",
@@ -75,7 +75,7 @@ export default function LeftPane(props) {
7575
<NavLink
7676
to={`${entry.link}`}
7777
exact
78-
activeClassName="bg-gray-300"
78+
activeClassName="bg-gray-200"
7979
className="menu--link xl:justify-between lg:justify-between md:justify-center sm:justify-center justify-center xl:my-0 lg:my-0 md:my-6 sm:my-6 my-6"
8080
key={entry.label}
8181
>

ui/src/Components/DashBoard/Help/Help.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function Help() {
5757
label: "Gitconvex react project",
5858
link: "https://github.com/neel1996/gitconvex-ui",
5959
icon: ["fab", "react"],
60-
color: ["bg-blue-500"],
60+
color: ["bg-blue-400"],
6161
ind: "",
6262
},
6363
{
@@ -250,7 +250,7 @@ export default function Help() {
250250
<div className="text-xl text-gray-800 text-left">
251251
New update v{availableUpdate} available.
252252
</div>
253-
<div className="p-4 rounded-lg my-2 text-lg font-sans text-center bg-pink-600 text-white">
253+
<div className="p-4 rounded-lg my-2 text-lg font-sans text-center bg-pink-500 text-white">
254254
<a
255255
href={`https://github.com/neel1996/gitconvex/releases/tag/${availableUpdate}`}
256256
target="_blank"
@@ -265,7 +265,7 @@ export default function Help() {
265265
) : null}
266266

267267
<div
268-
className="bg-indigo-500 shadow-lg w-20 h-20 rounded-full text-center cursor-pointer hover:bg-indigo-400 border-8 border-indigo-200"
268+
className="bg-indigo-400 shadow-lg w-20 h-20 rounded-full text-center cursor-pointer hover:bg-indigo-300 border-8 border-indigo-200"
269269
onClick={() => {
270270
checkUpdateHandler();
271271
}}

ui/src/Components/DashBoard/Repository/GitComponents/GitDiffViewComponent.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default function GitDiffViewComponent() {
119119
changedFiles.map((entry) => {
120120
if (entry && entry.split(",")[0] === "M") {
121121
let fileEntry = entry.split(",")[1];
122-
const styleSelector = " bg-indigo-100 border-b border-indigo-400";
122+
const styleSelector = " bg-indigo-100 border-b border-indigo-300";
123123
return (
124124
<div
125125
className={`p-2 text-sm break-words hover:bg-indigo-100 cursor-pointer ${
@@ -262,10 +262,10 @@ export default function GitDiffViewComponent() {
262262
if (line[0] && line[0] === "+") {
263263
return (
264264
<div
265-
className="git-diff--codeview--change bg-green-200"
265+
className="git-diff--codeview--change bg-green-100"
266266
key={`${line}-${uuidv4()}`}
267267
>
268-
<div className="git-diff--codeview--linenumber border-green-500 text-green-500">
268+
<div className="git-diff--codeview--linenumber border-green-400 text-green-500">
269269
{++lineCounter}
270270
</div>
271271
<pre className="w-5/6 mx-2">
@@ -284,10 +284,10 @@ export default function GitDiffViewComponent() {
284284
} else if (line[0] && line[0] === "-") {
285285
return (
286286
<div
287-
className="git-diff--codeview--change bg-red-200"
287+
className="git-diff--codeview--change bg-red-100"
288288
key={`${line}-${uuidv4()}`}
289289
>
290-
<div className="git-diff--codeview--linenumber border-red-500 text-red-500">
290+
<div className="git-diff--codeview--linenumber border-red-400 text-red-400">
291291
-
292292
</div>
293293
<pre className="w-5/6 mx-2">

ui/src/Components/DashBoard/Repository/GitComponents/GitOperation/CommitComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default function CommitComponent(props) {
119119
</div>
120120
<div className="text-xl my-4">Commit Message</div>
121121
{commitMessageWarning ? (
122-
<div className="font-sans font-semibold italic p-2 border-b border-dotted border-orange-500 text-yellow-600">
122+
<div className="font-sans font-semibold italic p-2 border-b border-dotted border-yellow-400 text-yellow-600">
123123
<span role="img" aria-label="suggestion">
124124
💡
125125
</span>

ui/src/Components/DashBoard/Repository/GitComponents/GitOperation/GitOperationComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default function GitOperationComponent(props) {
160160
let statusPill = (status) => {
161161
if (status === "M") {
162162
return (
163-
<div className="git-ops--file--status text-yellow-700 border-yellow-500 ">
163+
<div className="git-ops--file--status text-yellow-400 border-yellow-400 ">
164164
Modified
165165
</div>
166166
);

ui/src/Components/DashBoard/Repository/GitComponents/GitTrackedComponent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default function GitTrackedComponent(props) {
129129
var styleSelector = "p-1 ";
130130
switch (flag) {
131131
case "M":
132-
styleSelector += "text-yellow-900 bg-yellow-200";
132+
styleSelector += "text-yellow-900 bg-yellow-100";
133133
modifiedArtifacts.push(
134134
<div className="git-tracked--changes" key={name}>
135135
<div className={`${styleSelector} w-11/12 break-all`}>
@@ -247,9 +247,9 @@ export default function GitTrackedComponent(props) {
247247
let styleSelector = "git-tracked--menu-default ";
248248
if (item === topMenuItemState) {
249249
styleSelector +=
250-
"bg-blue-100 text-blue-800 border-b border-blue-700";
250+
"bg-blue-100 text-blue-700 border-b border-blue-600";
251251
} else {
252-
styleSelector += "bg-blue-600 text-white";
252+
styleSelector += "bg-blue-500 text-white";
253253
}
254254
return (
255255
<div

0 commit comments

Comments
 (0)