Skip to content

Commit 1949376

Browse files
committed
feat: add status variables for colors
1 parent 4b7ff58 commit 1949376

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

src/styles/globals.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
--surface-border-secondary: var(--surface-text-disabled);
2323
--surface-border-inverted: var(--surface-text-invert);
2424
--surface-border-brand: #DBEAFE;
25+
--status-success-text: #16A34A;
26+
--status-success-border: #86EFAC;
27+
--status-success-bg: #F0FDF4;
28+
--status-warning-text: #7C2D12;
29+
--status-warning-border: #FEF3C7;
30+
--status-warning-bg: #FEFCE8;
31+
--status-danger-text: #DC2626;
32+
--status-danger-border: #F87171;
33+
--status-danger-bg: #FEF2F2;
2534
}
2635

2736

@@ -74,7 +83,7 @@ body {
7483
}
7584

7685
.nav-item {
77-
@apply font-normal ml-2 opacity-70 hover:opacity-100;
86+
@apply font-normal ml-2 hover:opacity-70;
7887
}
7988
.nav-item a {
8089
@apply align-text-top;
@@ -121,10 +130,7 @@ body {
121130
}
122131

123132
.message-bubble {
124-
@apply w-72 p-6 rounded-3.5xl rounded-bl-none relative text-base border border-black border-opacity-5;
125-
126-
background: #fefce8;
127-
color: #713f12;
133+
@apply w-72 p-6 rounded-3.5xl rounded-bl-none relative text-base border bg-status-warning-bg border-status-warning-border text-status-warning-text;
128134
}
129135

130136
@media only screen and (min-width: 992px) {

tailwind.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,23 @@ module.exports = {
5858
brand: "var(--surface-border-brand)",
5959
},
6060
},
61+
status: {
62+
success: {
63+
text: "var(--status-success-text)",
64+
border: "var(--status-success-border)",
65+
bg: "var(--status-success-bg)",
66+
},
67+
warning: {
68+
text: "var(--status-warning-text)",
69+
border: "var(--status-warning-border)",
70+
bg: "var(--status-warning-bg)",
71+
},
72+
danger: {
73+
text: "var(--status-danger-text)",
74+
border: "var(--status-danger-border)",
75+
bg: "var(--status-danger-bg)",
76+
},
77+
},
6178
},
6279
spacing: {
6380
3.75: "0.9375rem",

0 commit comments

Comments
 (0)