Skip to content

Commit 64b6200

Browse files
committed
Cambiado los colores a variables para no tener nada hardcoded
1 parent 93ee272 commit 64b6200

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

src/app/genericComponents/DepartmentInfoCard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
BodyTextMedium,
77
MobileBreakpoint,
88
Primary100,
9+
QuestionBoxBackgroundColor,
910
SpacingS,
1011
SpacingXS,
1112
TitleS,
@@ -56,7 +57,7 @@ const Answer = styled.p<{ isVisible: boolean }>`
5657

5758
const QuestionBox = styled.div`
5859
border-radius: ${SpacingS};
59-
background-color: #304697;
60+
background-color: ${QuestionBoxBackgroundColor};
6061
padding: ${SpacingS};
6162
cursor: pointer;
6263

src/app/genericComponents/General.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import styled from "styled-components";
22
import {
3+
BackgroundAccent,
34
BodyText,
45
BodyTextMedium,
56
MaxElement,
@@ -35,7 +36,7 @@ export const TransparentBackground = styled.div`
3536
`;
3637

3738
export const Background = styled(TransparentBackground)`
38-
background: #1d1e3b;
39+
background: ${BackgroundAccent};
3940
`;
4041

4142
export const CardWithBorder = styled.div`

src/app/genericComponents/tokens.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export const Neutral300: string = "#88A7B7";
3636
export const Neutral200: string = "#EAF7FF";
3737
export const Neutral100: string = "#F9FDFF";
3838

39-
export const BackgroundAccent: string = "#1f2424";
39+
export const BackgroundAccent: string = "#1d1e3b";
40+
export const QuestionBoxBackgroundColor: string = "#304697";
4041

4142
// Responsive breakpoints
4243
export const MobilePixels: number = 640;

src/app/globals.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
:root {
2+
--body-color: #1c1e3b;
3+
--webkit-tap-highlight-color: rgba(255, 255, 255, 0.5);
4+
--embla-button-disabled-color: rgb(255, 255, 255);
5+
}
6+
17
* {
28
box-sizing: border-box;
39
padding: 0;
@@ -9,7 +15,7 @@ html,
915
body {
1016
max-width: 100vw;
1117
overflow-x: hidden; /* Prevents horizontal scrollbar */
12-
background-color: #1c1e3b;
18+
background-color: var(--body-color);
1319
}
1420

1521
.embla {
@@ -58,7 +64,7 @@ body {
5864
align-items: center;
5965
}
6066
.embla__button {
61-
-webkit-tap-highlight-color: rgba(255, 255, 255, 0.5);
67+
-webkit-tap-highlight-color: var(--webkit-tap-highlight-color);
6268
-webkit-appearance: none;
6369
appearance: none;
6470
background-color: transparent;
@@ -79,7 +85,7 @@ body {
7985
justify-content: center;
8086
}
8187
.embla__button:disabled {
82-
color: rgb(255, 255, 255);
88+
color: var(--embla-button-disabled-color);
8389
}
8490
.embla__button__svg {
8591
width: 35%;

0 commit comments

Comments
 (0)