Getting Started


Note: This framework is not stable! It’s largely intended for use in BOJIT sites. Interfaces may not follow strict SemVer.


  1. Create a new SvelteKit app using the SvelteKit CLI:

    In the selection dialogues, you should set up with typescript and tailwindcss support.

npx sv create <MY_APP>

  1. Install the components library
npm install @bojit/svelte-components

  1. Modify the following files
/* tailwind.config.ts */
import config from '@bojit/svelte-components/tailwind';

export default config({
    // Additional Props go Here
});
/* src/app.css */
@import '@bojit/svelte-components/themes/<EXAMPLE_THEME>.css';

/* Custom types and fonts can also be imported here */

  1. Instantiate the library in the top-level +layout.svelte file
<!-- Bare-bones +layout.svelte -->
<script lang="ts">
    import { App } from '@bojit/svelte-components';
    import '../app.css';

    let { children } = $props();
</script>

<App>
    {@render children()}
</App>

That’s it! Check the reference pages to see how each component is used!

Note: if using adapter static, don’t forget to add export const prerender = true; to the root +layout.ts!