Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
Form.svelte
List.svelte
SVG.svelte
Visualization.svelte
stores.js
<script>
import SVG from './SVG.svelte';
import Form from './Form.svelte';
import List from './List.svelte';
import Visualization from './Visualization.svelte';
</script>

<style>
@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,700&display=swap");
:global(*) {
box-sizing: border-box;
padding: 0;
margin: 0;
}
:global(body) {
color: hsl(240, 25%, 95%);
background: hsl(240, 25%, 20%);
font-family: "IBM Plex Mono", monospace;
}
/* absolute position the span in the top left corner of each heading */
:global(h2) {
position: relative;
font-size: 1.85rem;
padding: 0.25rem;
font-weight: 400;
}
:global(h2 span) {
position: absolute;
top: 0%;
right: 100%;
transform: translateY(-50%);
display: block;
width: 1.25em;
height: 1.25em;
border-radius: 0.75rem;
background: hsla(240, 25%, 50%, 0.3);
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */