From e60e8545a176d8fc12b1b784c8675004ba4cfc0c Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Mon, 26 Jul 2021 21:39:39 +0530 Subject: [PATCH] refactor(ui): better color schemes and empty states --- assets/scss/styles.scss | 2 +- assets/scss/themes.scss | 36 +++++++------- components/app/Shortcuts.vue | 60 ++++++++++++------------ components/collections/graphql/index.vue | 3 +- components/collections/index.vue | 3 +- components/docs/Request.vue | 2 +- components/environments/Edit.vue | 4 +- components/firebase/Login.vue | 12 +++-- components/http/BodyParameters.vue | 6 +-- components/http/Headers.vue | 15 ++++-- components/http/Parameters.vue | 15 ++++-- components/realtime/Websocket.vue | 4 +- components/smart/AceEditor.vue | 1 - components/teams/Edit.vue | 4 +- helpers/platformutils.js | 4 ++ lang/en-US.json | 9 ++-- pages/graphql.vue | 19 +++++++- 17 files changed, 111 insertions(+), 88 deletions(-) diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 5ccd57ca..f2a2976a 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -167,7 +167,7 @@ hr { @apply truncate; @apply rounded; @apply text-xs; - @apply font-semibold font-mono; + @apply font-semibold; @apply border border-divider; @apply transition; @apply focus:(outline-none border-accent); diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index 33e0869f..c6fb51ee 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -8,7 +8,7 @@ // Background color --primary-color: theme("colors.true-gray.900"); // Light Background color - --primary-light-color: theme("colors.true-gray.800"); + --primary-light-color: theme("colors.dark.600"); // Dark Background color --primary-dark-color: theme("colors.dark.900"); // Text color @@ -18,11 +18,11 @@ // Dark Text color --secondary-dark-color: theme("colors.true-gray.100"); // Border color - --divider-color: theme("colors.true-gray.700"); + --divider-color: theme("colors.true-gray.800"); // Light Border color - --divider-light-color: theme("colors.dark.600"); + --divider-light-color: theme("colors.dark.500"); // Dark Border color - --divider-dark-color: theme("colors.dark.200"); + --divider-dark-color: theme("colors.dark.300"); // Error color --error-color: theme("colors.dark.800"); // Tooltip color @@ -35,25 +35,25 @@ // Background color --primary-color: theme("colors.white"); // Light Background color - --primary-light-color: theme("colors.true-gray.50"); + --primary-light-color: theme("colors.blue-gray.50"); // Dark Background color - --primary-dark-color: theme("colors.true-gray.100"); + --primary-dark-color: theme("colors.blue-gray.100"); // Text color - --secondary-color: theme("colors.true-gray.600"); + --secondary-color: theme("colors.blue-gray.600"); // Light Text color - --secondary-light-color: theme("colors.true-gray.500"); + --secondary-light-color: theme("colors.blue-gray.500"); // Dark Text color - --secondary-dark-color: theme("colors.true-gray.800"); + --secondary-dark-color: theme("colors.blue-gray.700"); // Border color - --divider-color: theme("colors.true-gray.200"); + --divider-color: theme("colors.blue-gray.200"); // Light Border color - --divider-light-color: theme("colors.true-gray.100"); + --divider-light-color: theme("colors.blue-gray.100"); // Dark Border color - --divider-dark-color: theme("colors.true-gray.300"); + --divider-dark-color: theme("colors.blue-gray.300"); // Error color - --error-color: theme("colors.true-gray.700"); + --error-color: theme("colors.blue-gray.700"); // Tooltip color - --tooltip-color: theme("colors.true-gray.800"); + --tooltip-color: theme("colors.blue-gray.800"); // Editor theme --editor-theme: "textmate"; } @@ -62,9 +62,9 @@ // Background color --primary-color: theme("colors.dark.900"); // Light Background color - --primary-light-color: theme("colors.dark.800"); + --primary-light-color: theme("colors.true-gray.900"); // Dark Background color - --primary-dark-color: theme("colors.true-gray.900"); + --primary-dark-color: theme("colors.dark.800"); // Text color --secondary-color: theme("colors.true-gray.400"); // Light Text color @@ -74,9 +74,9 @@ // Border color --divider-color: theme("colors.true-gray.800"); // Light Border color - --divider-light-color: theme("colors.true-gray.900"); + --divider-light-color: theme("colors.dark.700"); // Dark Border color - --divider-dark-color: theme("colors.dark.200"); + --divider-dark-color: theme("colors.dark.300"); // Error color --error-color: theme("colors.dark.800"); // Tooltip color diff --git a/components/app/Shortcuts.vue b/components/app/Shortcuts.vue index 8a39eafb..063517ef 100644 --- a/components/app/Shortcuts.vue +++ b/components/app/Shortcuts.vue @@ -20,25 +20,14 @@ -
+
-
+
{{ map.section }}
{{ key }} @@ -78,7 +67,10 @@ + + diff --git a/components/collections/graphql/index.vue b/components/collections/graphql/index.vue index 46035345..a258d4ef 100644 --- a/components/collections/graphql/index.vue +++ b/components/collections/graphql/index.vue @@ -7,9 +7,8 @@ class="flex flex-col top-8 z-10 sticky" :class="{ 'bg-primary': !savingMode }" > -
+
-
+
-
-
+
+ post_add + + {{ $t("headers_empty") }} + +