A minimal template for building static sites using SvelteKit
and TailwindCSS. This template uses the adapter-static
package to generate static files in the
build
directory.
Click the "Use this template" button at the top of the repository to create your own project. For more details, check GitHub's guide on template repositories.
Install the dependencies with npm i
(or pnpm i
or yarn
), then start the development server with npm run dev
or build the project for
production with npm run build
.
[!NOTE]
Both the development server and the build process require a.env
file in the root of the project. Make sure to create this file and define any necessary environment variables before running the project.
srcset
attribute to load the most suitable image size lazily.<a>
or <button>
element based on whether the href
prop is provided.The static directory contains essential files such as robots.txt
, favicon images, and fonts.
This project is open source and available under the MIT License.
If you have any suggestions or find a bug, please create an issue or submit a pull request as needed. For more information, see the contributing guidelines. I'm always happy to receive contributions and feedback to make this project better!