In Svelte:
- export each Illustrator layer as a separate SVG (using the same artboard)
- modify the SVG files:
- remove the xml parent node;
- rename the extension to .svelte
- if using several layers, rename the classes to avoid collisions between them when inlining
- import the components in svelte: `import FileName from "./FileName.svelte"
- use the layer components sequentially in a parent component with
<FileName>
. wrap them in a parent div. - stack the layers visually by giving the parent div
position: relative
and the map layersposition: absolute; top: 0; left: 0;
. use:global([selector])
to inject the styles into the svgs - insert other svelte components, like buttons, in between or on top of the layers