✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
update default styles
AykutSarac5281ef8a9901
diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsxindex b977993c..8a794728 100644--- a/src/components/Button/index.tsx+++ b/src/components/Button/index.tsx@@ -25,6 +25,11 @@ const StyledButton = styled.button<{ status: keyof typeof ButtonType }>`padding: 8px 16px;min-width: 60px;+ :disabled {+ cursor: not-allowed;+ opacity: 0.5;+ }+@media only screen and (max-width: 768px) {font-size: 18px;}diff --git a/src/components/CustomNode/styles.tsx b/src/components/CustomNode/styles.tsxindex 850bd982..8125413d 100644--- a/src/components/CustomNode/styles.tsx+++ b/src/components/CustomNode/styles.tsx@@ -43,7 +43,7 @@ export const StyledKey = styled.span<{objectKey?: boolean;parent?: boolean;}>`- font-weight: bold;+ font-weight: 500;color: ${({ theme, objectKey, parent }) =>parent ? theme.NODE_KEY : objectKey ? "#5c87ff" : theme.TEXT_POSITIVE};`;diff --git a/src/components/Loading/index.tsx b/src/components/Loading/index.tsxindex bd3d7ec5..6e209e91 100644--- a/src/components/Loading/index.tsx+++ b/src/components/Loading/index.tsx@@ -19,7 +19,7 @@ const StyledLoading = styled.div``;const StyledLogo = styled.h2`- font-weight: 700;+ font-weight: 600;font-size: 56px;pointer-events: none;margin-bottom: 10px;diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsxindex b87c1ac4..9da3dcc4 100644--- a/src/components/Navbar/index.tsx+++ b/src/components/Navbar/index.tsx@@ -22,7 +22,7 @@ const StyledLogo = styled.div`font-weight: 600;font-size: 20px;cursor: pointer;- font-weight: 700;+ font-weight: 600;color: ${({ theme }) => theme.FULL_WHITE};`;diff --git a/src/components/Tooltip/index.tsx b/src/components/Tooltip/index.tsxindex 33fd4d34..cd2019f4 100644--- a/src/components/Tooltip/index.tsx+++ b/src/components/Tooltip/index.tsx@@ -25,7 +25,7 @@ const StyledTooltip = styled.div<{ visible: boolean }>`white-space: nowrap;font-size: 16px;user-select: none;- font-weight: 600;+ font-weight: 500;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);diff --git a/src/constants/globalStyle.ts b/src/constants/globalStyle.tsindex aec86d02..3e38c296 100644--- a/src/constants/globalStyle.ts+++ b/src/constants/globalStyle.ts@@ -11,7 +11,7 @@ const GlobalStyle = createGlobalStyle`font-weight: 400;font-size: 16px;}-+a {text-decoration: none;color: unset;diff --git a/src/constants/theme.ts b/src/constants/theme.tsindex 3080205b..23a48397 100644--- a/src/constants/theme.ts+++ b/src/constants/theme.ts@@ -32,6 +32,7 @@ export const darkTheme: DefaultTheme = {BACKGROUND_SECONDARY: "#2f3136",BACKGROUND_PRIMARY: "#36393f",BACKGROUND_MODIFIER_ACCENT: "rgba(79,84,92,0.48)",+ MODAL_BACKGROUND: "#36393E",TEXT_NORMAL: "#dcddde",TEXT_POSITIVE: "hsl(139,calc(var(--saturation-factor, 1)*51.6%),52.2%)",} as const;@@ -50,6 +51,7 @@ export const lightTheme: DefaultTheme = {BACKGROUND_SECONDARY: "#f2f3f5",BACKGROUND_PRIMARY: "#FFFFFF",BACKGROUND_MODIFIER_ACCENT: "rgba(106,116,128,0.24)",+ MODAL_BACKGROUND: "#FFFFFF",TEXT_NORMAL: "#2e3338",TEXT_POSITIVE: "#008736",} as const;diff --git a/src/containers/Incompatible/index.tsx b/src/containers/Incompatible/index.tsxindex c097d9b3..6a972330 100644--- a/src/containers/Incompatible/index.tsx+++ b/src/containers/Incompatible/index.tsx@@ -25,7 +25,7 @@ export const StyledIncompatible = styled.div`&::before {content: "Uh, oh!";- font-weight: 700;+ font-weight: 600;font-size: 60px;opacity: 0.6;}diff --git a/src/pages/404.tsx b/src/pages/404.tsxindex 178d588f..98f08374 100644--- a/src/pages/404.tsx+++ b/src/pages/404.tsx@@ -17,7 +17,7 @@ const StyledNotFound = styled.div`const StyledMessage = styled.h4`color: ${({ theme }) => theme.FULL_WHITE};font-size: 25px;- font-weight: 700;+ font-weight: 600;margin: 10px 0;`;diff --git a/src/pages/_document.tsx b/src/pages/_document.tsxindex 96b60cd9..2f419402 100644--- a/src/pages/_document.tsx+++ b/src/pages/_document.tsx@@ -52,7 +52,7 @@ class MyDocument extends Document {crossOrigin="anonymous"/><link- href="https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;600;700&family=PT+Sans:wght@400;500;700&family=Roboto+Mono:wght@500&display=swap"+ href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Roboto+Mono:wght@500&family=Catamaran:wght@400;500;600&display=swap"rel="stylesheet"/></Head>diff --git a/src/typings/styled.d.ts b/src/typings/styled.d.tsindex 946b8f0f..5aff8b45 100644--- a/src/typings/styled.d.ts+++ b/src/typings/styled.d.ts@@ -35,6 +35,7 @@ declare module "styled-components" {BACKGROUND_SECONDARY: string;BACKGROUND_PRIMARY: string;BACKGROUND_MODIFIER_ACCENT: string;+ MODAL_BACKGROUND: string;TEXT_NORMAL: string;TEXT_POSITIVE: string;TEXT_DANGER: string;