1
NPM
For use with a project using a bundler like Webpack, Rollup, or Parcel
Installation
npm install --save bulma svelma rollup-plugin-postcss
undefined
rollup-plugin-postcss
rollup.config.js
import postcss from 'rollup-plugin-postcss' // ... export default { // ... plugins: [ svelte({ // ... }), postcss(), } }
Usage
<!-- App.svelte --> <script> import 'bulma/css/bulma.css' </script>
<script> import { Button } from 'svelma' </script> <Button>I am a Button</Button>
<script> import { Svelma } from 'svelma' </script> <Svelma.Button>I am a Button</Svelma.Button>
2
CDN
Coming soon..