diff --git a/packages/hoppscotch-embed/src/layouts/default.vue b/packages/hoppscotch-embed/src/layouts/default.vue
index ba4893cbc..ca80624f3 100644
--- a/packages/hoppscotch-embed/src/layouts/default.vue
+++ b/packages/hoppscotch-embed/src/layouts/default.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/packages/hoppscotch-embed/src/layouts/embed.vue b/packages/hoppscotch-embed/src/layouts/embed.vue
index 6ac335e6e..e776d670a 100644
--- a/packages/hoppscotch-embed/src/layouts/embed.vue
+++ b/packages/hoppscotch-embed/src/layouts/embed.vue
@@ -1,5 +1,8 @@
-
-
+
+
+
+
+
diff --git a/packages/hoppscotch-embed/src/layouts/home.vue b/packages/hoppscotch-embed/src/layouts/home.vue
index 55fc07905..ca80624f3 100644
--- a/packages/hoppscotch-embed/src/layouts/home.vue
+++ b/packages/hoppscotch-embed/src/layouts/home.vue
@@ -1,9 +1,6 @@
-
+
-
- [Home Layout]
-
diff --git a/packages/hoppscotch-embed/src/pages/index.vue b/packages/hoppscotch-embed/src/pages/index.vue
index b8c640ef2..939447055 100644
--- a/packages/hoppscotch-embed/src/pages/index.vue
+++ b/packages/hoppscotch-embed/src/pages/index.vue
@@ -4,10 +4,10 @@ const { t } = useI18n()
-
+
{{ t("app.title") }}
-
+
{{ t("app.description") }}
diff --git a/packages/hoppscotch-embed/src/styles/main.css b/packages/hoppscotch-embed/src/styles/main.css
index 28002077f..b3c07b7cb 100755
--- a/packages/hoppscotch-embed/src/styles/main.css
+++ b/packages/hoppscotch-embed/src/styles/main.css
@@ -3,16 +3,34 @@
--font-mono: "Roboto Mono", monospace;
--body-font-size: 0.75rem;
--body-line-height: 1rem;
+ --accent-color: theme("colors.purple.500");
+ --accent-light-color: theme("colors.purple.400");
+ --accent-dark-color: theme("colors.purple.600");
+ --accent-contrast-color: theme("colors.white");
+}
+
+:root {
+ --primary-color: theme("colors.white");
+ --primary-light-color: theme("colors.true-gray.50");
+ --primary-dark-color: theme("colors.true-gray.100");
+ --secondary-color: theme("colors.true-gray.500");
+ --secondary-light-color: theme("colors.true-gray.400");
+ --secondary-dark-color: theme("colors.true-gray.900");
+ --divider-color: theme("colors.true-gray.200");
+ --divider-light-color: theme("colors.true-gray.100");
+ --divider-dark-color: theme("colors.true-gray.300");
+ --error-color: theme("colors.yellow.100");
+ --tooltip-color: theme("colors.true-gray.800");
+ --popover-color: theme("colors.white");
+}
+
+:root.dark {
--primary-color: theme("colors.true-gray.900");
--primary-light-color: theme("colors.dark.600");
--primary-dark-color: theme("colors.true-gray.800");
--secondary-color: theme("colors.true-gray.400");
--secondary-light-color: theme("colors.true-gray.500");
--secondary-dark-color: theme("colors.true-gray.100");
- --accent-color: theme("colors.purple.500");
- --accent-light-color: theme("colors.purple.400");
- --accent-dark-color: theme("colors.purple.600");
- --accent-contrast-color: theme("colors.white");
--divider-color: theme("colors.true-gray.800");
--divider-light-color: theme("colors.dark.500");
--divider-dark-color: theme("colors.dark.300");
@@ -29,7 +47,7 @@
}
::-webkit-scrollbar-track {
- @apply bg-transparent;
+ @apply bg-accent;
}
::-webkit-scrollbar-thumb {
@@ -130,10 +148,7 @@ body,
padding: 0;
@apply font-sans;
-}
-
-html.dark {
- @apply bg-dark-800;
+ @apply font-semibold;
}
#nprogress {
@@ -167,20 +182,41 @@ html.dark {
}
.buttonPrimary {
- @apply bg-teal-600 text-white;
- @apply rounded py-2 px-6;
- @apply font-sans;
+ @apply bg-accent rounded font-bold text-accentContrast py-2 px-4 transition whitespace-nowrap inline-flex items-center justify-center hover:bg-accentDark focus:outline-none focus-visible:bg-accentDark;
+}
+
+.buttonSecondary {
+ @apply rounded font-semibold py-2 px-4 transition whitespace-nowrap inline-flex items-center justify-center hover:bg-primaryDark focus:outline-none focus-visible:bg-primaryDark;
+}
+
+.buttonSecondaryFilled {
+ @apply bg-primaryLight;
}
.inputPrimary {
@apply flex flex-1;
- @apply bg-dark-500;
+ @apply bg-primaryLight;
@apply rounded py-2 px-4;
+ @apply font-semibold;
@apply font-sans;
+ @apply focus:outline-none;
+ @apply focus-visible:border-dividerDark;
+ @apply focus-visible:bg-primary;
+ @apply border;
+ @apply border-divider;
+ @apply hover:border-dividerDark;
}
.selectPrimary {
- @apply bg-dark-500;
+ @apply bg-primaryLight;
@apply rounded py-2 px-4;
+ @apply font-semibold;
@apply font-sans;
+ @apply focus:outline-none;
+ @apply appearance-none;
+ @apply focus-visible:border-dividerDark;
+ @apply focus-visible:bg-primary;
+ @apply border;
+ @apply border-divider;
+ @apply hover:border-dividerDark;
}
diff --git a/packages/hoppscotch-embed/windi.config.ts b/packages/hoppscotch-embed/windi.config.ts
index c60c10e93..22302e0f9 100644
--- a/packages/hoppscotch-embed/windi.config.ts
+++ b/packages/hoppscotch-embed/windi.config.ts
@@ -5,25 +5,25 @@ export default defineConfig({
// https://windicss.org/posts/v30.html#attributify-mode
attributify: true,
theme: {
- colors: {
- primary: "var(--primary-color)",
- primaryLight: "var(--primary-light-color)",
- primaryDark: "var(--primary-dark-color)",
- secondary: "var(--secondary-color)",
- secondaryLight: "var(--secondary-light-color)",
- secondaryDark: "var(--secondary-dark-color)",
- accent: "var(--accent-color)",
- accentLight: "var(--accent-light-color)",
- accentDark: "var(--accent-dark-color)",
- accentContrast: "var(--accent-contrast-color)",
- divider: "var(--divider-color)",
- dividerLight: "var(--divider-light-color)",
- dividerDark: "var(--divider-dark-color)",
- error: "var(--error-color)",
- tooltip: "var(--tooltip-color)",
- popover: "var(--popover-color)",
- },
extend: {
+ colors: {
+ primary: "var(--primary-color)",
+ primaryLight: "var(--primary-light-color)",
+ primaryDark: "var(--primary-dark-color)",
+ secondary: "var(--secondary-color)",
+ secondaryLight: "var(--secondary-light-color)",
+ secondaryDark: "var(--secondary-dark-color)",
+ accent: "var(--accent-color)",
+ accentLight: "var(--accent-light-color)",
+ accentDark: "var(--accent-dark-color)",
+ accentContrast: "var(--accent-contrast-color)",
+ divider: "var(--divider-color)",
+ dividerLight: "var(--divider-light-color)",
+ dividerDark: "var(--divider-dark-color)",
+ error: "var(--error-color)",
+ tooltip: "var(--tooltip-color)",
+ popover: "var(--popover-color)",
+ },
fontFamily: {
sans: "var(--font-sans)",
mono: "var(--font-mono)",