svelte-tailwind-darkmode Svelte Themes

Svelte Tailwind Darkmode

Template sveltekit + tailwindcss + shadcn sveltekit with dark mode theme powered by vite

Sveltekit + Tailwind CSS + Shadcn svelte Boilerplate with Darkmode

This is a simple boilerplate project for getting started with a web development project using sveltekit and Tailwind CSS, powered by Vite.

šŸŽÆ Features

  • āœ… Vanilla JavaScript: Write modern JavaScript code without any frameworks or libraries.
  • āœ… Tailwind CSS: Utilize the power of Tailwind CSS to create highly customizable and responsive UI components.
  • āœ… Vite: Enjoy a fast development experience with Vite's blazing-fast build tooling.
  • āœ… Darkmode: Darkmode from shadcn svelte



šŸŽÆ Getting Started

  1. Clone the repository:
git clone https://github.com/jhordyess/svelte-tailwind-darkmode.git
  1. Navigate to the project folder:
cd svelte-tailwind-darkmode
  1. Install dependencies:
pnpm install
  1. Start the development server:
pnpm run dev
  1. Open your browser and visit http://localhost:5173 to see your project.



šŸ“Œ Project structure

ā”œā”€ā”€ src
ā”‚Ā Ā  ā”œā”€ā”€ lib
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ components
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ ui
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ button
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ button.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ index.ts
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ dropdown-menu
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-checkbox-item.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-content.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-item.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-label.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-radio-group.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-radio-item.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-separator.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-shortcut.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-sub-content.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ dropdown-menu-sub-trigger.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ index.ts
ā”‚Ā Ā  ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ ThemeToggle.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ index.ts
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ utils.ts
ā”‚Ā Ā  ā”œā”€ā”€ routes
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ +layout.svelte
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ +page.svelte
ā”‚Ā Ā  ā”œā”€ā”€ styles
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ app.css
ā”‚Ā Ā  ā”œā”€ā”€ app.d.ts
ā”‚Ā Ā  ā””ā”€ā”€ app.html
ā”œā”€ā”€ static
ā”‚Ā Ā  ā””ā”€ā”€ favicon-32x32.png
ā”œā”€ā”€ README.md
ā”œā”€ā”€ components.json
ā”œā”€ā”€ eslint.config.js
ā”œā”€ā”€ package.json
ā”œā”€ā”€ pnpm-lock.yaml
ā”œā”€ā”€ postcss.config.js
ā”œā”€ā”€ svelte.config.js
ā”œā”€ā”€ tailwind.config.ts
ā”œā”€ā”€ tsconfig.json
ā””ā”€ā”€ vite.config.ts



šŸŽÆ Commands

Start the development server

pnpm run dev

Build the project for production

pnpm run build

Preview the project before production

pnpm run preview

šŸŽÆ Contributing

Contributions are welcome! If you find any issues or want to enhance the project, feel free to submit a pull request.


Happy coding!

Top categories

Loading Svelte Themes