Svelte Elementary Template is a template for building Elementary Audio web apps.
Features include:
Install dependencies.
npm install
Work on the application in local development.
npm run dev
Navigate to localhost:3000
in your web browser.
Export a static build.
npm run build
The build outputs the static site to the build
directory.
Update src/app.html
with your title and social preview tags. Replace the social preview image static/preview.png
with a preview image for your app.
Themes can be customized in tailwind.config.cjs
. Update the dark
and light
themes with your colors and styles. See the daisyUI themes guide for more information.
Knobs can be customized and replaced with knobs from the WebKnobMan gallery. You may need to adjust the styles and the size of the webaudio-param
in src/components/controls/Knob.svelte
to match your knob. The default unipolar knob and bipolar knob can be themed in the WebKnobMan editor.
The built site publishes with the Fission CLI and the Fission GH publish action. Publishing from the command line is configured in fission.yaml, and the GitHub publish action is configured in publish.yml.
To setup publishing with the Fission CLI:
fission setup
to make a Fission accountnpm run build
to build the appfission.yaml
fission app register
to register a new Fission app (accept the ./build
directory suggestion for your build directory)fission app publish
to publish your app to the webAfter publishing, your app will be available online at the domain assigned by the register command.
To set up the GitHub publish action:
base64 ~/.config/fission/key/machine_id.ed25519
FISSION_MACHINE_KEY
publish.yml
with the name of your registered appSee the Fission Guide and the publish action README for more details.
The source code for this template is available under the Apache 2.0 license. Please consult the Elementary License for additional instructions on using the Elementary SDK.