Move globals to layout

This commit is contained in:
Alicia Sykes
2023-04-19 21:12:55 +01:00
parent ce669212f0
commit fef32824de

25
src/routes/+layout.svelte Normal file
View File

@@ -0,0 +1,25 @@
<slot></slot>
<style lang="scss">
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@200;400;800&display=swap');
:global(body) {
--background: #101828;
--foreground: #ffffff;
--accent: #0ba5ec;
--card: #1d2939;
--shadow: 1px 1px 3px 3px #0B9AEC8F;
--gradient: linear-gradient(to right,#0B9AEC 0%,#6EDFDE 100%);
--max-width: 1800px;
margin: 0;
font-family: 'Kanit', sans-serif;
color: var(--foreground);
background: var(--background);
}
:global(::selection) {
background: var(--card);
color: var(--accent);
}
</style>