Streamlined Svelte & SvelteKit Documentation for the Evalium MVP
This guide extracts the essential concepts from the official documentation that are directly relevant to building the features defined in the Evalium MVP scope. It omits advanced topics and legacy syntax to keep you focused.
Tier 1: The Absolute Basics (Building a Single, Interactive Page)
.svelte Files: The Building Blocks
[cite_start]Components are the fundamental units of Svelte applications and are written in .svelte files using a superset of HTML. [cite: 8] [cite_start]These files can contain three sections: a <script> for JavaScript logic, a <style> block for CSS, and HTML markup for the structure. [cite: 8, 9] [cite_start]All three sections are optional. [cite: 8]
<script>
// instance-level logic goes here
</script>
<style>
/* styles go here */
</style>