diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index d6e294719..d07834e31 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -162,12 +162,24 @@ hr { @apply text-lg; } -input { +.input, +.select { + @apply flex; + @apply w-full; + @apply px-4; + @apply py-2; + @apply bg-primaryLight; @apply truncate; + @apply rounded-lg; + @apply font-semibold; + @apply focus:outline-none; + @apply focus-visible:ring; + @apply focus-visible:ring-inset; + @apply focus-visible:ring-accent; } -input[type="file"], -input[type="radio"], +.input[type="file"], +.input[type="radio"], #installPWA { @apply hidden; } diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index 9cee6d2eb..4ac55eab9 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -6,27 +6,27 @@ @mixin darkTheme { // Background color - --primary-color: rgba(32, 33, 36, 1); + --primary-color: theme("colors.dark.800"); // Light Background color - --primary-light-color: rgba(255, 255, 255, 0.04); + --primary-light-color: theme("colors.dark.700"); // Dark Background color - --primary-dark-color: rgba(12, 12, 12, 1); + --primary-dark-color: theme("colors.dark.600"); // Text color - --secondary-color: rgba(255, 255, 255, 0.9); + --secondary-color: theme("colors.gray.400"); // Light Text color - --secondary-light-color: rgba(255, 255, 255, 0.5); + --secondary-light-color: theme("colors.gray.500"); // Dark Text color - --secondary-dark-color: rgba(0, 0, 0, 0.5); + --secondary-dark-color: theme("colors.white"); // Border color - --divider-color: rgba(255, 255, 255, 0.05); + --divider-color: theme("colors.dark.500"); // Light Border color - --divider-light-color: rgba(255, 255, 255, 0.05); + --divider-light-color: theme("colors.dark.400"); // Dark Border color - --divider-dark-color: rgba(255, 255, 255, 0.05); + --divider-dark-color: theme("colors.dark.700"); // Error color - --error-color: rgba(255, 255, 255, 0.05); + --error-color: theme("colors.dark.600"); // Tooltip color - --tooltip-color: rgba(48, 48, 48, 1); + --tooltip-color: theme("colors.dark.700"); // Editor theme --editor-theme: "twilight"; } @@ -102,11 +102,11 @@ @mixin greenTheme { // Accent color - --accent-color: rgba(73, 204, 104, 1); + --accent-color: rgb(97, 207, 123); // Light Accent color --accent-light-color: rgba(73, 204, 104, 1); // Dark Accent color - --accent-dark-color: rgba(64, 182, 91, 1); + --accent-dark-color: rgb(0, 71, 17); // Gradient from --gradient-from-color: theme("colors.green.200"); // Gradient via @@ -226,15 +226,15 @@ @include greenTheme; } -:root.light-mode { +:root.light { @include lightTheme; } -:root.dark-mode { +:root.dark { @include darkTheme; } -:root.black-mode { +:root.black { @include blackTheme; } diff --git a/components/app/Shortcuts.vue b/components/app/Shortcuts.vue index ba3c7df70..b11fb57d1 100644 --- a/components/app/Shortcuts.vue +++ b/components/app/Shortcuts.vue @@ -7,61 +7,30 @@ @@ -75,6 +44,56 @@ export default { props: { show: Boolean, }, + data() { + return { + shortcuts: [ + { + keys: [this.getSpecialKey(), "G"], + label: this.$t("send_request"), + }, + { + keys: [this.getSpecialKey(), "S"], + label: this.$t("save_to_collections"), + }, + { + keys: [this.getSpecialKey(), "K"], + label: this.$t("copy_request_link"), + }, + { + keys: [this.getSpecialKey(), "I"], + label: this.$t("reset_request"), + }, + { + keys: ["Alt", "▲"], + label: this.$t("select_next_method"), + }, + { + keys: ["Alt", "▼"], + label: this.$t("select_previous_method"), + }, + { + keys: ["Alt", "G"], + label: this.$t("select_get_method"), + }, + { + keys: ["Alt", "H"], + label: this.$t("select_head_method"), + }, + { + keys: ["Alt", "P"], + label: this.$t("select_post_method"), + }, + { + keys: ["Alt", "U"], + label: this.$t("select_put_method"), + }, + { + keys: ["Alt", "X"], + label: this.$t("select_delete_method"), + }, + ], + } + }, methods: { getSpecialKey: getPlatformSpecialKey, hideModal() { @@ -83,14 +102,3 @@ export default { }, } - - diff --git a/components/button/Primary.vue b/components/button/Primary.vue index 6d28c38f7..3c5236bac 100644 --- a/components/button/Primary.vue +++ b/components/button/Primary.vue @@ -15,7 +15,7 @@ :class="[ color ? `text-${color}-800 bg-${color}-200 hover:text-${color}-900 hover:bg-${color}-300 focus:text-${color}-900 focus:bg-${color}-300` - : `text-white bg-accent hover:bg-accentDark focus:bg-accentDark`, + : `text-white dark:text-accentDark bg-accent hover:bg-accentDark focus:bg-accentDark`, label ? 'px-4' : 'px-2', rounded ? 'rounded-full' : 'rounded-lg', { 'opacity-50 cursor-not-allowed': disabled }, diff --git a/components/collections/Add.vue b/components/collections/Add.vue index 545834098..836c556a0 100644 --- a/components/collections/Add.vue +++ b/components/collections/Add.vue @@ -2,26 +2,27 @@ diff --git a/components/collections/AddFolder.vue b/components/collections/AddFolder.vue index d961cad96..fc187228b 100644 --- a/components/collections/AddFolder.vue +++ b/components/collections/AddFolder.vue @@ -7,21 +7,27 @@ diff --git a/components/collections/Edit.vue b/components/collections/Edit.vue index ef45bb0cb..64fc8213f 100644 --- a/components/collections/Edit.vue +++ b/components/collections/Edit.vue @@ -7,21 +7,24 @@ diff --git a/components/collections/EditFolder.vue b/components/collections/EditFolder.vue index 62dfeeaaf..3964a2c4c 100644 --- a/components/collections/EditFolder.vue +++ b/components/collections/EditFolder.vue @@ -7,20 +7,25 @@ diff --git a/components/collections/EditRequest.vue b/components/collections/EditRequest.vue index 6b332cf79..d47a60903 100644 --- a/components/collections/EditRequest.vue +++ b/components/collections/EditRequest.vue @@ -7,21 +7,24 @@ diff --git a/components/collections/ImportExport.vue b/components/collections/ImportExport.vue index 1e4e53868..85afeac71 100644 --- a/components/collections/ImportExport.vue +++ b/components/collections/ImportExport.vue @@ -2,7 +2,7 @@ diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vue index 6d7c2a793..c5359dc55 100644 --- a/components/collections/graphql/Collection.vue +++ b/components/collections/graphql/Collection.vue @@ -35,6 +35,7 @@ text-xs group-hover:text-secondaryDark transition + font-semibold " @click="toggleShowChildren()" > diff --git a/components/collections/graphql/Edit.vue b/components/collections/graphql/Edit.vue index f57fe2a32..5a8c5ba61 100644 --- a/components/collections/graphql/Edit.vue +++ b/components/collections/graphql/Edit.vue @@ -7,21 +7,24 @@ diff --git a/components/collections/graphql/EditFolder.vue b/components/collections/graphql/EditFolder.vue index 60e474a79..5911bc0d0 100644 --- a/components/collections/graphql/EditFolder.vue +++ b/components/collections/graphql/EditFolder.vue @@ -7,21 +7,27 @@ diff --git a/components/collections/graphql/EditRequest.vue b/components/collections/graphql/EditRequest.vue index 7c7fecdc4..deba13085 100644 --- a/components/collections/graphql/EditRequest.vue +++ b/components/collections/graphql/EditRequest.vue @@ -7,21 +7,27 @@ diff --git a/components/collections/graphql/Folder.vue b/components/collections/graphql/Folder.vue index 00744c20b..ced1caf3c 100644 --- a/components/collections/graphql/Folder.vue +++ b/components/collections/graphql/Folder.vue @@ -35,6 +35,7 @@ text-xs group-hover:text-secondaryDark transition + font-semibold " @click="toggleShowChildren()" > diff --git a/components/collections/graphql/ImportExport.vue b/components/collections/graphql/ImportExport.vue index 32a69d5a1..deb94a50b 100644 --- a/components/collections/graphql/ImportExport.vue +++ b/components/collections/graphql/ImportExport.vue @@ -2,7 +2,7 @@ diff --git a/components/environments/Edit.vue b/components/environments/Edit.vue index e2522afc8..12d61e782 100644 --- a/components/environments/Edit.vue +++ b/components/environments/Edit.vue @@ -7,82 +7,90 @@ diff --git a/components/environments/Environment.vue b/components/environments/Environment.vue index 4d81a8ecc..a37a01b39 100644 --- a/components/environments/Environment.vue +++ b/components/environments/Environment.vue @@ -24,6 +24,7 @@ text-xs group-hover:text-secondaryDark transition + font-semibold " @click="$emit('edit-environment')" > diff --git a/components/environments/ImportExport.vue b/components/environments/ImportExport.vue index 499aafbbf..032db0776 100644 --- a/components/environments/ImportExport.vue +++ b/components/environments/ImportExport.vue @@ -4,7 +4,7 @@

{{ $t("import_export") }} {{ $t("environments") }}

-
+
diff --git a/components/http/ImportCurl.vue b/components/http/ImportCurl.vue index e9edfe54f..281ce3475 100644 --- a/components/http/ImportCurl.vue +++ b/components/http/ImportCurl.vue @@ -16,10 +16,9 @@ > diff --git a/components/smart/ConfirmModal.vue b/components/smart/ConfirmModal.vue index 01f5da9d1..1ed6201e8 100644 --- a/components/smart/ConfirmModal.vue +++ b/components/smart/ConfirmModal.vue @@ -7,13 +7,16 @@
diff --git a/components/smart/Modal.vue b/components/smart/Modal.vue index 5d557287e..e90cf2805 100644 --- a/components/smart/Modal.vue +++ b/components/smart/Modal.vue @@ -30,23 +30,20 @@ bg-primary rounded-lg shadow-xl - max-w-md + max-w-md max-h-lg " > -
-
- -
+
+
-
-
- -
+
+
-
-
- -
+
+
@@ -138,46 +135,6 @@ export default {