Skip to content

Commit

Permalink
perf: reduce render blocking css
Browse files Browse the repository at this point in the history
  • Loading branch information
SchutteJan committed Aug 7, 2024
1 parent e8b5a60 commit d5e6374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frontend/src/lib/pico-settings.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
:root {
--pico-spacing: 0.5rem;
/* We only include the colors we actually want to use to reduce the amount of render-blocking CSS
https://picocss.com/docs/colors
*/
--pico-color-red-400: #f06048;
--pico-color-green-400: #47a417;
--pico-color-zinc-700: #424751;
}
1 change: 0 additions & 1 deletion frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts">
import '@picocss/pico'
import '@picocss/pico/css/pico.colors.css'
import '$lib/pico-settings.css'
import { user } from '$lib/stores'
import ThemeSwitcher from '$lib/ThemeSwitcher.svelte'
Expand Down

0 comments on commit d5e6374

Please sign in to comment.