I've been thinking a lot about the treehouse and I feel like it's time to say goodbye to the tree format.
55 lines
1.1 KiB
CSS
55 lines
1.1 KiB
CSS
/* Color scheme */
|
|
|
|
:root {
|
|
--accent-red: #fb4c9e;
|
|
--accent-yellow: #ffac0c;
|
|
--accent-green: #0dd292;
|
|
--accent-blue: #0577f0;
|
|
--accent-purple: #c952f5;
|
|
--accent-pink: #ffa8f3;
|
|
|
|
--background-color: #faeaff;
|
|
--background-color-tooltip: color-mix(
|
|
in lab,
|
|
var(--background-color),
|
|
var(--shading-base) 10%
|
|
);
|
|
--text-color: #302859;
|
|
--link-color: #004ec8;
|
|
--link-color-visited: #6c2380;
|
|
|
|
--shading-base: #592782;
|
|
|
|
--shaded-background: rgb(from var(--shading-base) r g b / 5%);
|
|
--border-1: rgb(from var(--shading-base) r g b / 15%);
|
|
--border-2: rgb(from var(--shading-base) r g b / 30%);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background-color: rgb(31, 30, 53);
|
|
--text-color: #f7ece5;
|
|
--link-color: #93cce8;
|
|
--link-color-visited: #f7afde;
|
|
|
|
--shading-base: #e4d2ff;
|
|
}
|
|
}
|
|
|
|
/* Animations */
|
|
|
|
:root {
|
|
--transition-duration: 0.15s;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
:root {
|
|
--transition-duration: 0;
|
|
}
|
|
}
|
|
|
|
/* Reset things to more sensible sizing rules */
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|