Skip to content

Commit 6f5b1f2

Browse files
authored
feat(Frontend V2): Add global colors (#98)
1 parent f064862 commit 6f5b1f2

14 files changed

Lines changed: 52 additions & 43 deletions

frontend/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ body {
5151
display: flex;
5252
flex-direction: column;
5353
height: 100%;
54-
background-color: #f4f4f0;
54+
background-color: var(--color-background);
5555
}
5656
5757
.header {

frontend/src/assets/base.css

Whitespace-only changes.

frontend/src/assets/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ body {
22
font-family: "DM Sans", sans-serif;
33
font-optical-sizing: auto;
44
}
5+
6+
:root {
7+
--color-primary: #5294fd;
8+
--color-secondary: #dcebfe;
9+
--color-success: #b8fd9f;
10+
--color-danger: #ff6b6b;
11+
--color-background: #f4f4f0;
12+
}

frontend/src/components/StepWizard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const goToStep = (index) => {
8787
}
8888
8989
.step.active {
90-
background-color: #ffdb58;
90+
background-color: var(--color-primary);
9191
}
9292
9393
.step.completed {
@@ -123,7 +123,7 @@ const goToStep = (index) => {
123123
padding: 0.5rem 1rem;
124124
border: 2px solid black;
125125
border-radius: 4px;
126-
background-color: #f4f4f0;
126+
background-color: var(--color-background);
127127
box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
128128
transition:
129129
transform 0.1s ease-in-out,

frontend/src/components/modal/AddFieldModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const saveField = () => {
115115
border-radius: 4px;
116116
padding: 0.5rem;
117117
box-shadow: 3px 3px 0px black;
118-
background-color: #f4f4f0;
118+
background-color: var(--color-background);
119119
transition:
120120
transform 0.1s ease-in-out,
121121
box-shadow 0.1s ease-in-out;
@@ -141,7 +141,7 @@ const saveField = () => {
141141
border: 2px solid black;
142142
border-radius: 4px;
143143
font-weight: bold;
144-
background-color: #2fff2f;
144+
background-color: var(--color-success);
145145
box-shadow: 3px 3px 0px black;
146146
transition:
147147
transform 0.1s ease-in-out,

frontend/src/components/modal/AddRelationModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const saveSelect = () => {
113113
border-radius: 4px;
114114
padding: 0.5rem;
115115
box-shadow: 3px 3px 0px black;
116-
background-color: #f4f4f0;
116+
background-color: var(--color-background);
117117
transition:
118118
transform 0.1s ease-in-out,
119119
box-shadow 0.1s ease-in-out;
@@ -139,7 +139,7 @@ const saveSelect = () => {
139139
border: 2px solid black;
140140
border-radius: 4px;
141141
font-weight: bold;
142-
background-color: #2fff2f;
142+
background-color: var(--color-success);
143143
box-shadow: 3px 3px 0px black;
144144
transition:
145145
transform 0.1s ease-in-out,

frontend/src/components/modal/EditFieldModal.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ const deleteField = () => {
8686
flex-direction: column;
8787
gap: 1rem;
8888
padding: 1rem;
89-
background-color: #ffdb58;
9089
}
9190
9291
.input-container {
@@ -133,7 +132,7 @@ const deleteField = () => {
133132
padding: 0.5rem 1rem;
134133
border: 2px solid black;
135134
border-radius: 4px;
136-
background-color: #ff6b6b;
135+
background-color: var(--color-danger);
137136
box-shadow: 3px 3px 0px black;
138137
transition:
139138
transform 0.1s ease-in-out,
@@ -151,7 +150,7 @@ const deleteField = () => {
151150
padding: 0.5rem 1rem;
152151
border: 2px solid black;
153152
border-radius: 4px;
154-
background-color: #2fff2f;
153+
background-color: var(--color-success);
155154
box-shadow: 3px 3px 0px black;
156155
transition:
157156
transform 0.1s ease-in-out,

frontend/src/components/modal/EditRelationModal.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const deleteRelation = () => {
135135
border-radius: 4px;
136136
padding: 0.5rem;
137137
box-shadow: 3px 3px 0px black;
138-
background-color: #f4f4f0;
138+
background-color: var(--color-background);
139139
transition:
140140
transform 0.1s ease-in-out,
141141
box-shadow 0.1s ease-in-out;
@@ -161,7 +161,7 @@ const deleteRelation = () => {
161161
border: 2px solid black;
162162
border-radius: 4px;
163163
font-weight: bold;
164-
background-color: #2fff2f;
164+
background-color: var(--color-success);
165165
box-shadow: 3px 3px 0px black;
166166
transition:
167167
transform 0.1s ease-in-out,
@@ -180,7 +180,7 @@ const deleteRelation = () => {
180180
border: 2px solid black;
181181
border-radius: 4px;
182182
font-weight: bold;
183-
background-color: #ff6b6b;
183+
background-color: var(--color-danger);
184184
box-shadow: 3px 3px 0px black;
185185
transition:
186186
transform 0.1s ease-in-out,

frontend/src/components/modal/GlobalModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ function close() {
6868
margin: 0 1rem;
6969
display: flex;
7070
flex-direction: column;
71+
background-color: var(--color-secondary);
7172
}
7273
7374
.modal-header {
7475
display: flex;
7576
justify-content: space-between;
7677
align-items: center;
77-
background-color: #ffdb58;
7878
padding: 0.75rem 1rem;
7979
}
8080
@@ -96,7 +96,7 @@ function close() {
9696
}
9797
9898
.modal-body {
99-
background-color: #ffdb58;
10099
overflow: hidden;
100+
background-color: var(--color-secondary);
101101
}
102102
</style>

frontend/src/components/modal/RenameNodeModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const rename = () => {
6161
border: 2px solid black;
6262
border-radius: 4px;
6363
padding: 0.5rem;
64-
background-color: #f4f4f0;
64+
background-color: var(--color-background);
6565
box-shadow: 3px 3px 0 black;
6666
transition:
6767
transform 0.1s ease-in-out,
@@ -80,7 +80,7 @@ const rename = () => {
8080
border: 2px solid black;
8181
border-radius: 4px;
8282
font-weight: bold;
83-
background-color: #2fff2f;
83+
background-color: var(--color-success);
8484
box-shadow: 3px 3px 0 black;
8585
transition:
8686
transform 0.1s ease-in-out,

0 commit comments

Comments
 (0)