Browse Source

update colors

AykutSarac 3 năm trước cách đây
mục cha
commit
32e793c9cd

+ 3 - 3
src/components/ErrorContainer/ErrorContainer.tsx

@@ -29,14 +29,14 @@ const StyledErrorExpand = styled.button<{ error: boolean }>`
   border-radius: 0;
   justify-content: space-between;
   align-items: center;
-  color: ${({ theme, error }) => (error ? theme.DANGER : theme.TEXT_POSITIVE)};
+  color: ${({ theme, error }) => (error ? theme.TEXT_DANGER : theme.TEXT_POSITIVE)};
   pointer-events: ${({ error }) => !error && "none"};
   background: ${({ theme }) => theme.BACKGROUND_SECONDARY};
   box-shadow: 0 1px 0px ${({ theme }) => theme.BACKGROUND_TERTIARY};
   cursor: pointer;
 
   &:hover {
-    color: ${({ theme }) => theme.DANGER};
+    color: ${({ theme }) => theme.TEXT_DANGER};
     box-shadow: none;
   }
 `;
@@ -51,7 +51,7 @@ const StyledTitle = styled.span`
 `;
 
 const StyledError = styled.pre`
-  color: ${({ theme }) => theme.DANGER};
+  color: ${({ theme }) => theme.TEXT_DANGER};
   border-bottom: 1px solid ${({ theme }) => theme.SILVER_DARK};
   font-size: 12px;
   padding: 12px;

+ 2 - 2
src/constants/theme.ts

@@ -9,13 +9,13 @@ const fixedColors = {
   BLACK_LIGHT: "#2F3136",
   BLACK_PRIMARY: "#36393f",
   DARK_SALMON: "#E9967A",
-  DANGER: "#db662e",
+  DANGER: "hsl(359,calc(var(--saturation-factor, 1)*66.7%),54.1%)",
   LIGHTGREEN: "#90EE90",
   SEAGREEN: "#3BA55D",
   ORANGE: "#FAA81A",
   SILVER: "#B9BBBE",
   PRIMARY: "#4D4D4D",
-  TEXT_DANGER: "hsl(359,calc(var(--saturation-factor, 1)*82%),73.9%)",
+  TEXT_DANGER: "#db662e",
 };
 
 export const darkTheme: DefaultTheme = {