svelte-helloworld Svelte Themes

Svelte Helloworld

Svelte Hello World

Svelte Hello World

1. Tailwindcss

Key Value
background black
light text gray-300
dark text gray-500
theme cyan-600

2. Memo

Memo for the next time I create a new project.

  • Install tailwindcss
  • Use 100dvh instead of 100vh
  • Add $component and $data aliases
  • Add --host to package.json script for global serve
  • Add description meta, robots.txt, and favicon.ico
  • To print symbol, you need to hold Alt, then pres 0, 1, 4, 9 sequently.

3. Deploy

Build project:

npm run build

Preview project:

npm run preview

Top categories

Loading Svelte Themes