api-client/packages/hoppscotch-common/assets/scss/themes.scss

275 lines
8.8 KiB
SCSS
Raw Normal View History

2021-11-04 12:53:50 +00:00
@mixin base-theme {
--font-sans: "Inter Variable", sans-serif;
--font-icon: "Material Symbols Rounded Variable";
--font-mono: "Roboto Mono Variable", monospace;
--font-size-body: 0.75rem;
--font-size-tiny: 0.688rem;
--line-height-body: 1rem;
--upper-primary-sticky-fold: 4.125rem;
--upper-secondary-sticky-fold: 6.188rem;
--upper-tertiary-sticky-fold: 8.25rem;
--upper-fourth-sticky-fold: 10.2rem;
--upper-mobile-primary-sticky-fold: 6.625rem;
--upper-mobile-secondary-sticky-fold: 8.688rem;
--upper-mobile-sticky-fold: 10.75rem;
--upper-mobile-tertiary-sticky-fold: 8.25rem;
--lower-primary-sticky-fold: 3rem;
--lower-secondary-sticky-fold: 5.063rem;
--lower-tertiary-sticky-fold: 7.125rem;
--lower-fourth-sticky-fold: 9.188rem;
--sidebar-primary-sticky-fold: 2rem;
2020-09-22 17:06:37 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin dark-theme {
2023-02-08 09:43:24 +00:00
--primary-color: theme("colors.dark.800");
--primary-light-color: theme("colors.dark.600");
--primary-dark-color: theme("colors.neutral.800");
2023-02-08 09:43:24 +00:00
--primary-contrast-color: theme("colors.neutral.900");
--secondary-color: theme("colors.neutral.400");
--secondary-light-color: theme("colors.neutral.500");
2023-02-08 09:43:24 +00:00
--secondary-dark-color: theme("colors.neutral.50");
--divider-color: theme("colors.neutral.800");
--divider-light-color: theme("colors.dark.500");
--divider-dark-color: theme("colors.dark.300");
2023-02-08 09:43:24 +00:00
--error-color: theme("colors.stone.800");
--tooltip-color: theme("colors.neutral.100");
2021-08-23 04:52:07 +00:00
--popover-color: theme("colors.dark.700");
2021-07-13 05:37:29 +00:00
--editor-theme: "merbivore_soft";
}
2021-11-04 12:53:50 +00:00
@mixin light-theme {
2021-07-02 05:01:29 +00:00
--primary-color: theme("colors.white");
2023-02-08 09:43:24 +00:00
--primary-light-color: theme("colors.gray.50");
--primary-dark-color: theme("colors.gray.100");
--primary-contrast-color: theme("colors.light.50");
--secondary-color: theme("colors.gray.500");
--secondary-light-color: theme("colors.gray.400");
--secondary-dark-color: theme("colors.gray.900");
--divider-color: theme("colors.gray.100");
2023-02-08 09:43:24 +00:00
--divider-light-color: theme("colors.gray.100");
--divider-dark-color: theme("colors.gray.300");
--error-color: theme("colors.yellow.100");
--tooltip-color: theme("colors.neutral.800");
2021-08-03 11:20:28 +00:00
--popover-color: theme("colors.white");
2021-07-13 05:37:29 +00:00
--editor-theme: "textmate";
2019-09-30 20:21:30 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin black-theme {
2021-07-16 15:04:35 +00:00
--primary-color: theme("colors.dark.900");
--primary-light-color: theme("colors.neutral.900");
--primary-dark-color: theme("colors.dark.800");
2023-02-08 09:43:24 +00:00
--primary-contrast-color: theme("colors.dark.900");
--secondary-color: theme("colors.neutral.400");
--secondary-light-color: theme("colors.neutral.500");
--secondary-dark-color: theme("colors.neutral.100");
2023-02-08 09:43:24 +00:00
--divider-color: theme("colors.dark.600");
2021-12-24 02:42:35 +00:00
--divider-light-color: theme("colors.dark.800");
2023-02-08 09:43:24 +00:00
--divider-dark-color: theme("colors.dark.200");
--error-color: theme("colors.stone.900");
--tooltip-color: theme("colors.neutral.100");
2023-02-08 09:43:24 +00:00
--popover-color: theme("colors.dark.900");
2021-07-27 19:38:11 +00:00
--editor-theme: "twilight";
2020-09-24 02:52:54 +00:00
}
2021-11-09 16:35:39 +00:00
@mixin dark-editor-theme {
2021-11-20 01:57:50 +00:00
--editor-type-color: theme("colors.purple.400");
--editor-name-color: theme("colors.blue.400");
--editor-operator-color: theme("colors.indigo.400");
--editor-invalid-color: theme("colors.red.400");
--editor-separator-color: theme("colors.gray.400");
--editor-meta-color: theme("colors.gray.400");
--editor-variable-color: theme("colors.green.400");
--editor-link-color: theme("colors.cyan.400");
--editor-process-color: theme("colors.fuchsia.400");
--editor-constant-color: theme("colors.violet.400");
--editor-keyword-color: theme("colors.pink.400");
2021-11-09 16:35:39 +00:00
}
@mixin light-editor-theme {
2021-11-10 10:57:12 +00:00
--editor-type-color: theme("colors.purple.600");
2021-11-09 16:56:53 +00:00
--editor-name-color: theme("colors.red.600");
2021-11-10 08:23:10 +00:00
--editor-operator-color: theme("colors.indigo.600");
2021-11-10 10:57:12 +00:00
--editor-invalid-color: theme("colors.red.600");
--editor-separator-color: theme("colors.gray.600");
--editor-meta-color: theme("colors.gray.600");
--editor-variable-color: theme("colors.green.600");
--editor-link-color: theme("colors.cyan.600");
2021-11-09 16:56:53 +00:00
--editor-process-color: theme("colors.blue.600");
2021-11-10 10:57:12 +00:00
--editor-constant-color: theme("colors.fuchsia.600");
--editor-keyword-color: theme("colors.pink.600");
2021-11-09 16:35:39 +00:00
}
@mixin black-editor-theme {
2021-11-10 10:57:12 +00:00
--editor-type-color: theme("colors.purple.400");
2021-11-20 01:57:50 +00:00
--editor-name-color: theme("colors.fuchsia.400");
2021-11-10 10:57:12 +00:00
--editor-operator-color: theme("colors.indigo.400");
--editor-invalid-color: theme("colors.red.400");
--editor-separator-color: theme("colors.gray.400");
--editor-meta-color: theme("colors.gray.400");
--editor-variable-color: theme("colors.green.400");
--editor-link-color: theme("colors.cyan.400");
2021-11-20 01:57:50 +00:00
--editor-process-color: theme("colors.violet.400");
--editor-constant-color: theme("colors.blue.400");
2021-11-10 10:57:12 +00:00
--editor-keyword-color: theme("colors.pink.400");
2021-11-09 16:35:39 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin green-theme {
--accent-color: theme("colors.green.500");
--accent-light-color: theme("colors.green.400");
--accent-dark-color: theme("colors.green.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-07-01 16:39:11 +00:00
--gradient-from-color: theme("colors.green.200");
--gradient-via-color: theme("colors.green.400");
--gradient-to-color: theme("colors.green.600");
2020-09-24 02:52:54 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin teal-theme {
--accent-color: theme("colors.teal.500");
--accent-light-color: theme("colors.teal.400");
2021-07-01 16:39:11 +00:00
--accent-dark-color: theme("colors.teal.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.teal.200");
--gradient-via-color: theme("colors.teal.400");
--gradient-to-color: theme("colors.teal.600");
}
2021-11-04 12:53:50 +00:00
@mixin blue-theme {
2021-08-01 17:33:54 +00:00
--accent-color: theme("colors.blue.500");
--accent-light-color: theme("colors.blue.400");
--accent-dark-color: theme("colors.blue.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-08-01 17:33:54 +00:00
--gradient-from-color: theme("colors.blue.200");
--gradient-via-color: theme("colors.blue.400");
--gradient-to-color: theme("colors.blue.600");
}
2021-11-04 12:53:50 +00:00
@mixin indigo-theme {
--accent-color: theme("colors.indigo.500");
--accent-light-color: theme("colors.indigo.400");
2021-07-01 16:39:11 +00:00
--accent-dark-color: theme("colors.indigo.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.indigo.200");
--gradient-via-color: theme("colors.indigo.400");
--gradient-to-color: theme("colors.indigo.600");
2020-09-24 02:52:54 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin purple-theme {
--accent-color: theme("colors.purple.500");
--accent-light-color: theme("colors.purple.400");
2021-07-01 16:39:11 +00:00
--accent-dark-color: theme("colors.purple.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.purple.200");
--gradient-via-color: theme("colors.purple.400");
--gradient-to-color: theme("colors.purple.600");
2020-09-24 02:52:54 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin yellow-theme {
2021-08-01 17:33:54 +00:00
--accent-color: theme("colors.yellow.500");
--accent-light-color: theme("colors.yellow.400");
--accent-dark-color: theme("colors.yellow.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-08-01 17:33:54 +00:00
--gradient-from-color: theme("colors.yellow.200");
--gradient-via-color: theme("colors.yellow.400");
--gradient-to-color: theme("colors.yellow.600");
}
2021-11-04 12:53:50 +00:00
@mixin orange-theme {
2021-08-01 17:33:54 +00:00
--accent-color: theme("colors.orange.500");
--accent-light-color: theme("colors.orange.400");
--accent-dark-color: theme("colors.orange.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-08-01 17:33:54 +00:00
--gradient-from-color: theme("colors.orange.200");
--gradient-via-color: theme("colors.orange.400");
--gradient-to-color: theme("colors.orange.600");
2020-09-24 02:52:54 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin red-theme {
--accent-color: theme("colors.red.500");
--accent-light-color: theme("colors.red.400");
2021-07-01 16:39:11 +00:00
--accent-dark-color: theme("colors.red.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.red.200");
--gradient-via-color: theme("colors.red.400");
--gradient-to-color: theme("colors.red.600");
2020-09-24 02:52:54 +00:00
}
2021-11-04 12:53:50 +00:00
@mixin pink-theme {
2021-08-01 17:33:54 +00:00
--accent-color: theme("colors.pink.500");
--accent-light-color: theme("colors.pink.400");
--accent-dark-color: theme("colors.pink.600");
2021-08-12 08:26:11 +00:00
--accent-contrast-color: theme("colors.white");
2021-08-01 17:33:54 +00:00
--gradient-from-color: theme("colors.pink.200");
--gradient-via-color: theme("colors.pink.400");
--gradient-to-color: theme("colors.pink.600");
2019-10-05 09:27:24 +00:00
}
2019-10-25 08:14:34 +00:00
2019-12-09 03:35:03 +00:00
:root {
2021-11-04 12:53:50 +00:00
@include base-theme;
@include dark-theme;
2021-11-09 16:35:39 +00:00
@include dark-editor-theme;
@include green-theme;
2019-12-09 03:35:03 +00:00
}
2021-07-09 17:19:45 +00:00
:root.light {
2021-11-04 12:53:50 +00:00
@include light-theme;
2021-11-09 16:35:39 +00:00
@include light-editor-theme;
color-scheme: light;
2019-12-09 03:35:03 +00:00
}
2021-07-09 17:19:45 +00:00
:root.dark {
2021-11-04 12:53:50 +00:00
@include dark-theme;
2021-11-09 16:35:39 +00:00
@include dark-editor-theme;
color-scheme: dark;
2020-09-24 02:52:54 +00:00
}
2021-07-09 17:19:45 +00:00
:root.black {
2021-11-04 12:53:50 +00:00
@include black-theme;
2021-11-09 16:35:39 +00:00
@include black-editor-theme;
color-scheme: dark;
}
2019-12-09 03:35:03 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="blue"] {
2021-11-04 12:53:50 +00:00
@include blue-theme;
2019-12-09 03:35:03 +00:00
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="green"] {
2021-11-04 12:53:50 +00:00
@include green-theme;
2020-09-24 02:52:54 +00:00
}
2021-08-01 14:34:25 +00:00
:root[data-accent="teal"] {
2021-11-04 12:53:50 +00:00
@include teal-theme;
}
2021-08-01 14:34:25 +00:00
2021-03-16 08:49:21 +00:00
:root[data-accent="indigo"] {
2021-11-04 12:53:50 +00:00
@include indigo-theme;
2020-09-24 02:52:54 +00:00
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="purple"] {
2021-11-04 12:53:50 +00:00
@include purple-theme;
2020-09-24 02:52:54 +00:00
}
2021-08-01 14:34:25 +00:00
:root[data-accent="orange"] {
2021-11-04 12:53:50 +00:00
@include orange-theme;
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="pink"] {
2021-11-04 12:53:50 +00:00
@include pink-theme;
2020-09-24 02:52:54 +00:00
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="red"] {
2021-11-04 12:53:50 +00:00
@include red-theme;
2020-09-24 02:52:54 +00:00
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="yellow"] {
2021-11-04 12:53:50 +00:00
@include yellow-theme;
2019-12-09 03:35:03 +00:00
}