Skip to content

Commit

Permalink
Merge pull request #95 from Blazity/color-fix
Browse files Browse the repository at this point in the history
fix: quote color tweak
  • Loading branch information
Max-Mogilski committed Nov 10, 2023
2 parents 28d9e37 + f389a15 commit 41b22e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/StockDisplay/StockQuote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function StockQuote({ quote }: { quote: Quote }) {
return (
<div className="flex items-center justify-center gap-4 border-r-2 border-slate-100 px-10 text-sm">
<span className="whitespace-nowrap font-medium">{quote.name}</span>
<span className={cn("flex items-center gap-1", isNegative ? "text-red-800" : "text-green-800")}>
<span className={cn("flex items-center gap-1", isNegative ? "text-custom-red" : "text-custom-green")}>
{!isNegative && "+"}
{quote.change.toFixed(2)}%
{isNegative ? <MoveDown className="mt-0.5 h-3 w-3" /> : <MoveUp className="mt-0.5 h-3 w-3" />}
Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ module.exports = {
300: "#808080",
},
dim: "#D9D9D9",
green: "#55FF0080",
green: "#37A600",
red: "#D90000",
},
},
fontFamily: {
Expand Down

0 comments on commit 41b22e8

Please sign in to comment.