api-client/assets/scss/themes.scss

300 lines
8.1 KiB
SCSS
Raw Normal View History

2020-09-22 17:06:37 +00:00
@mixin baseTheme {
--font-sans: "Inter", "sans-serif";
2020-10-21 08:19:02 +00:00
--font-mono: "Roboto Mono", "monospace";
2020-09-24 02:52:54 +00:00
--font-icon: "Material Icons";
2020-09-22 17:06:37 +00:00
}
@mixin darkTheme {
// Background color
2021-07-16 15:04:35 +00:00
--primary-color: theme("colors.true-gray.900");
2019-12-09 03:35:03 +00:00
// Light Background color
--primary-light-color: theme("colors.dark.600");
// Dark Background color
2021-07-16 15:04:35 +00:00
--primary-dark-color: theme("colors.dark.900");
// Text color
2021-07-16 15:04:35 +00:00
--secondary-color: theme("colors.true-gray.400");
// Light Text color
--secondary-light-color: theme("colors.true-gray.500");
2021-07-01 16:39:11 +00:00
// Dark Text color
--secondary-dark-color: theme("colors.true-gray.100");
2019-09-17 08:13:12 +00:00
// Border color
--divider-color: theme("colors.true-gray.800");
2021-07-03 13:14:58 +00:00
// Light Border color
--divider-light-color: theme("colors.dark.500");
2021-07-03 13:14:58 +00:00
// Dark Border color
--divider-dark-color: theme("colors.dark.300");
// Error color
--error-color: theme("colors.dark.800");
2019-12-17 19:13:15 +00:00
// Tooltip color
--tooltip-color: theme("colors.true-gray.100");
2021-08-03 11:20:28 +00:00
// Popover color
--popover-color: theme("colors.true-gray.800");
2020-09-24 02:52:54 +00:00
// Editor theme
2021-07-13 05:37:29 +00:00
--editor-theme: "merbivore_soft";
}
@mixin lightTheme {
// Background color
2021-07-02 05:01:29 +00:00
--primary-color: theme("colors.white");
2019-12-09 03:35:03 +00:00
// Light Background color
--primary-light-color: theme("colors.blue-gray.50");
// Dark Background color
--primary-dark-color: theme("colors.blue-gray.100");
2019-09-30 20:21:30 +00:00
// Text color
--secondary-color: theme("colors.blue-gray.600");
2019-09-30 20:21:30 +00:00
// Light Text color
--secondary-light-color: theme("colors.blue-gray.500");
2021-07-01 16:39:11 +00:00
// Dark Text color
--secondary-dark-color: theme("colors.blue-gray.700");
2019-09-30 20:21:30 +00:00
// Border color
--divider-color: theme("colors.blue-gray.200");
2021-07-03 13:14:58 +00:00
// Light Border color
--divider-light-color: theme("colors.blue-gray.100");
2021-07-03 13:14:58 +00:00
// Dark Border color
--divider-dark-color: theme("colors.blue-gray.300");
2019-09-30 20:21:30 +00:00
// Error color
--error-color: theme("colors.blue-gray.700");
2019-12-17 19:13:15 +00:00
// Tooltip color
--tooltip-color: theme("colors.blue-gray.800");
2021-08-03 11:20:28 +00:00
// Popover color
--popover-color: theme("colors.white");
2020-09-24 02:52:54 +00:00
// Editor theme
2021-07-13 05:37:29 +00:00
--editor-theme: "textmate";
2019-09-30 20:21:30 +00:00
}
@mixin blackTheme {
// Background color
2021-07-16 15:04:35 +00:00
--primary-color: theme("colors.dark.900");
2019-12-09 03:35:03 +00:00
// Light Background color
--primary-light-color: theme("colors.true-gray.900");
// Dark Background color
--primary-dark-color: theme("colors.dark.800");
// Text color
2021-07-16 15:04:35 +00:00
--secondary-color: theme("colors.true-gray.400");
// Light Text color
--secondary-light-color: theme("colors.true-gray.500");
2021-07-01 16:39:11 +00:00
// Dark Text color
2021-07-16 15:04:35 +00:00
--secondary-dark-color: theme("colors.true-gray.100");
2019-09-17 08:13:12 +00:00
// Border color
--divider-color: theme("colors.true-gray.800");
2021-07-03 13:14:58 +00:00
// Light Border color
--divider-light-color: theme("colors.dark.700");
2021-07-03 13:14:58 +00:00
// Dark Border color
--divider-dark-color: theme("colors.dark.300");
// Error color
2021-07-16 15:04:35 +00:00
--error-color: theme("colors.dark.800");
2019-12-17 19:13:15 +00:00
// Tooltip color
--tooltip-color: theme("colors.true-gray.100");
2021-08-03 11:20:28 +00:00
// Popover color
--popover-color: theme("colors.dark.700");
2020-09-24 02:52:54 +00:00
// Editor theme
2021-07-27 19:38:11 +00:00
--editor-theme: "twilight";
2020-09-24 02:52:54 +00:00
}
@mixin greenTheme {
2021-06-12 16:46:17 +00:00
// Accent color
--accent-color: theme("colors.green.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
--accent-light-color: theme("colors.green.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
--accent-dark-color: theme("colors.green.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.green.50");
2021-07-01 16:39:11 +00:00
// Gradient from
--gradient-from-color: theme("colors.green.200");
// Gradient via
--gradient-via-color: theme("colors.green.400");
// Gradient to
--gradient-to-color: theme("colors.green.600");
2020-09-24 02:52:54 +00:00
}
@mixin tealTheme {
2021-06-12 16:46:17 +00:00
// Accent color
--accent-color: theme("colors.teal.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
--accent-light-color: theme("colors.teal.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
--accent-dark-color: theme("colors.teal.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.teal.50");
2021-07-01 16:39:11 +00:00
// Gradient from
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.teal.200");
2021-07-01 16:39:11 +00:00
// Gradient via
2021-07-20 10:29:30 +00:00
--gradient-via-color: theme("colors.teal.400");
2021-07-01 16:39:11 +00:00
// Gradient to
2021-07-20 10:29:30 +00:00
--gradient-to-color: theme("colors.teal.600");
}
2021-08-01 17:33:54 +00:00
@mixin blueTheme {
// Accent color
--accent-color: theme("colors.blue.500");
// Light Accent color
--accent-light-color: theme("colors.blue.400");
// Dark Accent color
--accent-dark-color: theme("colors.blue.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.blue.50");
2021-08-01 17:33:54 +00:00
// Gradient from
--gradient-from-color: theme("colors.blue.200");
// Gradient via
--gradient-via-color: theme("colors.blue.400");
// Gradient to
--gradient-to-color: theme("colors.blue.600");
}
2021-03-16 08:49:21 +00:00
@mixin indigoTheme {
2021-06-12 16:46:17 +00:00
// Accent color
--accent-color: theme("colors.indigo.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
--accent-light-color: theme("colors.indigo.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
--accent-dark-color: theme("colors.indigo.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.indigo.50");
2021-07-01 16:39:11 +00:00
// Gradient from
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.indigo.200");
2021-07-01 16:39:11 +00:00
// Gradient via
2021-07-20 10:29:30 +00:00
--gradient-via-color: theme("colors.indigo.400");
2021-07-01 16:39:11 +00:00
// Gradient to
2021-07-20 10:29:30 +00:00
--gradient-to-color: theme("colors.indigo.600");
2020-09-24 02:52:54 +00:00
}
@mixin purpleTheme {
2021-06-12 16:46:17 +00:00
// Accent color
--accent-color: theme("colors.purple.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
--accent-light-color: theme("colors.purple.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
--accent-dark-color: theme("colors.purple.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.purple.50");
2021-07-01 16:39:11 +00:00
// Gradient from
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.purple.200");
2021-07-01 16:39:11 +00:00
// Gradient via
2021-07-20 10:29:30 +00:00
--gradient-via-color: theme("colors.purple.400");
2021-07-01 16:39:11 +00:00
// Gradient to
2021-07-20 10:29:30 +00:00
--gradient-to-color: theme("colors.purple.600");
2020-09-24 02:52:54 +00:00
}
2021-08-01 17:33:54 +00:00
@mixin yellowTheme {
2021-06-12 16:46:17 +00:00
// Accent color
2021-08-01 17:33:54 +00:00
--accent-color: theme("colors.yellow.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
2021-08-01 17:33:54 +00:00
--accent-light-color: theme("colors.yellow.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
2021-08-01 17:33:54 +00:00
--accent-dark-color: theme("colors.yellow.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.yellow.50");
2021-07-01 16:39:11 +00:00
// Gradient from
2021-08-01 17:33:54 +00:00
--gradient-from-color: theme("colors.yellow.200");
2021-07-01 16:39:11 +00:00
// Gradient via
2021-08-01 17:33:54 +00:00
--gradient-via-color: theme("colors.yellow.400");
2021-07-01 16:39:11 +00:00
// Gradient to
2021-08-01 17:33:54 +00:00
--gradient-to-color: theme("colors.yellow.600");
}
2021-08-01 17:33:54 +00:00
@mixin orangeTheme {
2021-06-12 16:46:17 +00:00
// Accent color
2021-08-01 17:33:54 +00:00
--accent-color: theme("colors.orange.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
2021-08-01 17:33:54 +00:00
--accent-light-color: theme("colors.orange.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
2021-08-01 17:33:54 +00:00
--accent-dark-color: theme("colors.orange.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.orange.50");
2021-07-01 16:39:11 +00:00
// Gradient from
2021-08-01 17:33:54 +00:00
--gradient-from-color: theme("colors.orange.200");
2021-07-01 16:39:11 +00:00
// Gradient via
2021-08-01 17:33:54 +00:00
--gradient-via-color: theme("colors.orange.400");
2021-07-01 16:39:11 +00:00
// Gradient to
2021-08-01 17:33:54 +00:00
--gradient-to-color: theme("colors.orange.600");
2020-09-24 02:52:54 +00:00
}
@mixin redTheme {
2021-06-12 16:46:17 +00:00
// Accent color
--accent-color: theme("colors.red.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
--accent-light-color: theme("colors.red.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
--accent-dark-color: theme("colors.red.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.red.50");
2021-07-01 16:39:11 +00:00
// Gradient from
2021-07-20 10:29:30 +00:00
--gradient-from-color: theme("colors.red.200");
2021-07-01 16:39:11 +00:00
// Gradient via
2021-07-20 10:29:30 +00:00
--gradient-via-color: theme("colors.red.400");
2021-07-01 16:39:11 +00:00
// Gradient to
2021-07-20 10:29:30 +00:00
--gradient-to-color: theme("colors.red.600");
2020-09-24 02:52:54 +00:00
}
2021-08-01 17:33:54 +00:00
@mixin pinkTheme {
2021-06-12 16:46:17 +00:00
// Accent color
2021-08-01 17:33:54 +00:00
--accent-color: theme("colors.pink.500");
2021-07-01 16:39:11 +00:00
// Light Accent color
2021-08-01 17:33:54 +00:00
--accent-light-color: theme("colors.pink.400");
2021-07-01 16:39:11 +00:00
// Dark Accent color
2021-08-01 17:33:54 +00:00
--accent-dark-color: theme("colors.pink.600");
2021-08-03 04:54:32 +00:00
// Light Contrast color
--accent-contrast-color: theme("colors.pink.50");
2021-07-01 16:39:11 +00:00
// Gradient from
2021-08-01 17:33:54 +00:00
--gradient-from-color: theme("colors.pink.200");
2021-07-01 16:39:11 +00:00
// Gradient via
2021-08-01 17:33:54 +00:00
--gradient-via-color: theme("colors.pink.400");
2021-07-01 16:39:11 +00:00
// Gradient to
2021-08-01 17:33:54 +00:00
--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 {
2020-09-22 17:06:37 +00:00
@include baseTheme;
2019-12-09 03:35:03 +00:00
@include darkTheme;
2020-09-24 02:52:54 +00:00
@include greenTheme;
2019-12-09 03:35:03 +00:00
}
2021-07-09 17:19:45 +00:00
:root.light {
2019-12-09 03:35:03 +00:00
@include lightTheme;
}
2021-07-09 17:19:45 +00:00
:root.dark {
2020-09-24 02:52:54 +00:00
@include darkTheme;
}
2021-07-09 17:19:45 +00:00
:root.black {
@include blackTheme;
}
2019-12-09 03:35:03 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="blue"] {
@include blueTheme;
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"] {
@include greenTheme;
}
2021-08-01 14:34:25 +00:00
:root[data-accent="teal"] {
@include tealTheme;
}
2021-08-01 14:34:25 +00:00
2021-03-16 08:49:21 +00:00
:root[data-accent="indigo"] {
@include indigoTheme;
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"] {
@include purpleTheme;
}
2021-08-01 14:34:25 +00:00
:root[data-accent="orange"] {
@include orangeTheme;
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="pink"] {
@include pinkTheme;
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="red"] {
@include redTheme;
}
2021-08-01 14:34:25 +00:00
2020-09-24 02:52:54 +00:00
:root[data-accent="yellow"] {
@include yellowTheme;
2019-12-09 03:35:03 +00:00
}