duckquill/sass/_variables.scss

87 lines
2.4 KiB
SCSS
Raw Normal View History

2023-10-13 00:55:20 +00:00
@use "sass:color";
2023-10-14 15:36:20 +00:00
$accent-color: #ff7800;
2023-10-14 02:46:48 +00:00
$accent-color-20: color.scale($accent-color, $alpha: -80%);
2023-10-13 00:55:20 +00:00
2023-10-14 02:46:48 +00:00
$crt-bg: radial-gradient(
color.scale($accent-color, $lightness: -80%),
color.scale($accent-color, $lightness: -90%)
2023-10-13 00:55:20 +00:00
);
2023-10-14 02:46:48 +00:00
$bg-l: color.mix($accent-color, rgb(250, 250, 250), 10%);
$bg-d: color.mix($accent-color, rgb(11, 11, 11), 5%);
2023-10-13 00:55:20 +00:00
2023-10-14 02:46:48 +00:00
$glow:
0 0 0 1px color.scale($accent-color, $alpha: -95%),
0 2px 6px 2px color.scale($accent-color, $alpha: -95%),
0 4px 24px 4px color.scale($accent-color, $alpha: -90%);
2023-10-13 00:55:20 +00:00
:root {
// GENERAL SETUP
2023-10-14 03:43:03 +00:00
--accent-color-20: #{$accent-color-20};
2023-10-13 00:55:20 +00:00
--accent-color: #{$accent-color};
2023-10-14 03:43:03 +00:00
--background: #{$bg-l};
2023-10-13 00:55:20 +00:00
--border-radius-big: 1.2rem;
--border-radius-small: 0.5rem;
2023-10-14 03:43:03 +00:00
--border-radius: 0.75rem;
--border: rgba(120, 120, 120, 0.4);
2023-10-13 00:55:20 +00:00
--content-width: 720px;
2023-10-14 03:43:03 +00:00
--crt-bg: #{$crt-bg};
--text: var(--dark4);
2023-10-13 00:55:20 +00:00
// CUSTOM COLOR PALETTE
2023-10-14 02:46:48 +00:00
--fg-03: rgba(0, 0, 0, 0.03);
--fg-05: rgba(0, 0, 0, 0.05);
--fg-07: rgba(0, 0, 0, 0.07);
--fg-09: rgba(0, 0, 0, 0.09);
--fg-50: rgba(0, 0, 0, 0.5);
2023-10-13 00:55:20 +00:00
2023-10-14 03:43:03 +00:00
--orange-bg: rgba(255, 120, 0, 0.1);
--orange-fg: rgb(255, 120, 0);
2023-10-13 00:55:20 +00:00
--purple-bg: rgba(145, 65, 172, 0.1);
--purple-fg: rgb(145, 65, 172);
--red-bg: rgba(224, 27, 36, 0.1);
--red-fg: rgb(224, 27, 36);
--yellow-bg: rgba(156, 110, 3, 0.1);
--yellow-fg: rgb(156, 110, 3);
// CUSTOM VARIABLES
--shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 1px 3px 1px rgba(0, 0, 0, 0.07),
0 2px 6px 2px rgba(0, 0, 0, 0.03);
--shadow-raised: 0 0 0 1px rgba(0, 0, 0, 0.06),
0 2px 6px 2px rgba(0, 0, 0, 0.14), 0 4px 12px 4px rgba(0, 0, 0, 0.06);
--drop-shadow: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07))
drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
2023-10-14 02:46:48 +00:00
--glow: #{$glow};
2023-10-13 00:55:20 +00:00
--transition-long: 800ms;
2023-10-14 03:43:03 +00:00
--transition-longer: 400ms;
--transition: 200ms;
2023-10-13 00:55:20 +00:00
}
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
2023-10-14 02:46:48 +00:00
// GENERAL SETUP
2023-10-14 03:43:03 +00:00
--background: #{$bg-d};
2023-10-13 00:55:20 +00:00
--text: var(--light2);
2023-10-14 02:46:48 +00:00
// CUSTOM COLOR PALETTE
--fg-03: rgba(255, 255, 255, 0.03);
--fg-05: rgba(255, 255, 255, 0.05);
--fg-07: rgba(255, 255, 255, 0.07);
--fg-09: rgba(255, 255, 255, 0.09);
--fg-50: rgba(255, 255, 255, 0.5);
2023-10-13 00:55:20 +00:00
2023-10-14 03:43:03 +00:00
--orange-bg: rgba(255, 190, 111, 0.1);
--orange-fg: rgb(255, 190, 111);
2023-10-13 00:55:20 +00:00
--purple-bg: rgba(220, 138, 221, 0.1);
--purple-fg: rgb(220, 138, 221);
--red-bg: rgba(226, 97, 81, 0.1);
--red-fg: rgb(246, 97, 81);
--yellow-bg: rgba(248, 228, 92, 0.1);
--yellow-fg: rgb(248, 228, 92);
}
}