Bulma components for Svelte
Svelma is a set of UI components for Svelte, built on top of the Bulma CSS framework. It offers a comprehensive collection of pre-designed components that can be easily integrated into Svelte projects. With Svelma, developers can quickly create modern and stylish user interfaces without having to build components from scratch.
To install Svelma in your Svelte project, follow these steps:
$ npm install --save svelma bulma
// rollup.config.js
import postcss from 'rollup-plugin-postcss';
export default {
plugins: [
postcss(),
// other plugins...
],
// other configurations...
}
// App.svelte
<script>
import 'bulma/css/bulma.css';
import 'svelma/dist/svelma.css';
</script>
<template>
<!-- Your Svelte components using Svelma -->
</template>
<script src="https://kit.fontawesome.com/your-kit-id.js" crossorigin="anonymous"></script>
or as an npm package imported into your root component:
$ npm install --save @fortawesome/fontawesome-free
// App.svelte
<script>
import '@fortawesome/fontawesome-free/css/all.css';
</script>
<template>
<!-- Your Svelte components with Font Awesome icons -->
</template>
Note: If you are doing server-side rendering with Sapper or SvelteKit, make sure to directly import the .svelte
files instead of importing from the compiled module.
Svelma is a powerful UI component library for Svelte, providing developers with a wide range of pre-designed components following the Bulma CSS framework. It offers easy integration and support for Font Awesome icons. By using Svelma, developers can create modern and visually appealing user interfaces in their Svelte projects with ease.