Skip to content

Instantly share code, notes, and snippets.

@wiverson
Last active April 21, 2022 18:27
Show Gist options
  • Save wiverson/a68b4f0ae355a8ba1f31c7e410b22353 to your computer and use it in GitHub Desktop.
Save wiverson/a68b4f0ae355a8ba1f31c7e410b22353 to your computer and use it in GitHub Desktop.
Links for SvelteKit

UI Libraries

Icons

CSS

Basic Starting CSS

PicoCSS is a nice starting place for CSS.

To use picocss, easiest thing to do is run:

npm install @picocss/pico

To add the library, and then add the following to a __layout.svelte file in the root of the routes directory.

<script>
    import '@picocss/pico'
</script>

<slot></slot>

Alternatively, the SCSS version can be added via:

import '@picocss/pico/scss/pico.scss'

The whole process of adding a CSS or SCSS file to SvelteKit is a bit complicated. Here are some links to some discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment