All Projects → c0bra → Svelma

c0bra / Svelma

Licence: mit
Bulma components for Svelte

Projects that are alternatives of or similar to Svelma

http-interceptors
The Web apps in this monorepo make HTTP requests and require uniform consistency in how they are executed and handled. This monorepo demonstrates the same app written with Angular and with Svelte. Each app uses HTTP interceptors. The Angular app uses HttpClient and its interceptors while the Svelte app uses Axios and its interceptors.
Stars: ✭ 46 (-88.53%)
Mutual labels:  svelte, bulma
Svelte Bulma Components
Collection of Bulma UI components to be used in Svelte or standalone
Stars: ✭ 80 (-80.05%)
Mutual labels:  svelte, bulma
Pagy
🏆 The Best Pagination Ruby Gem 🥇
Stars: ✭ 3,340 (+732.92%)
Mutual labels:  bulma
Fresh
Landing page starter
Stars: ✭ 368 (-8.23%)
Mutual labels:  bulma
Devfolio
A simple, responsive, single-page portfolio and resume for developers built with Bulma, Sass, Font Awesome and Flickity.
Stars: ✭ 320 (-20.2%)
Mutual labels:  bulma
Abstract State Router
Like ui-router, but without all the Angular. The best way to structure a single-page webapp.
Stars: ✭ 288 (-28.18%)
Mutual labels:  svelte
Svelte Intellij
Svelte components in WebStorm and friends
Stars: ✭ 345 (-13.97%)
Mutual labels:  svelte
Userscripts
An open-source userscript editor for Safari
Stars: ✭ 261 (-34.91%)
Mutual labels:  svelte
Figma Html
Convert Figma designs to HTML, React, Vue, Angular, and more!
Stars: ✭ 382 (-4.74%)
Mutual labels:  svelte
Svelte Router
Svelte Router adds routing to your Svelte apps. It's designed for Single Page Applications (SPA). Includes localisation, guards and nested layouts.
Stars: ✭ 310 (-22.69%)
Mutual labels:  svelte
Re Bulma
[Deprecated] 💎Bulma components for React
Stars: ✭ 369 (-7.98%)
Mutual labels:  bulma
Crayon
Simple framework agnostic UI router for SPAs
Stars: ✭ 310 (-22.69%)
Mutual labels:  svelte
Sapper Ecommerce
Svelte ecommerce - Headless, Authentication, Cart & Checkout, TailwindCSS, Server Rendered, Proxy + API Integrated, Animations, Stores, Lazy Loading, Loading Indicators, Carousel, Instant Search, Faceted Filters, 1 command deploy to production, Open Source, MIT license. Join us as contributor ([email protected])
Stars: ✭ 289 (-27.93%)
Mutual labels:  svelte
Vudash
Powerful, Flexible, Open Source dashboards for anything
Stars: ✭ 363 (-9.48%)
Mutual labels:  svelte
Awesome Bulma Templates
🚀 Free real-world templates built with Bulma
Stars: ✭ 283 (-29.43%)
Mutual labels:  bulma
Svelte Materialify
A Material UI Design Component library for Svelte heavily inspired by vuetify.
Stars: ✭ 351 (-12.47%)
Mutual labels:  svelte
Svelte Calendar
A lightweight datepicker with neat animations and a unique UX.
Stars: ✭ 279 (-30.42%)
Mutual labels:  svelte
Svelvet
🧵 An experimental svelte compiler & watcher that works with snowpack
Stars: ✭ 310 (-22.69%)
Mutual labels:  svelte
Bulma Admin Dashboard Template
🐝 Free admin dashboard template with bulma css
Stars: ✭ 327 (-18.45%)
Mutual labels:  bulma
Mermaid Live Editor
Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.
Stars: ✭ 395 (-1.5%)
Mutual labels:  svelte

Svelma

Svelma is a set of UI components for Svelte based on the Bulma CSS framework.

Inspiration

Much thanks to the Buefy project! It provided the inspiration and lots of code examples for Svelma.. If you like Vue.js and Bulma, check it out.

Features

  • Extremely lightweight thanks to Svelte, a compile-only javascript framework. The bundle is 50K minified, 14K gzipped.
  • Components can be used independently, so a modern tree-shaking bundler will reduce the final bundle size even further.
  • Svelma does not bundle Bulma, so you are free to include it in your project however you wish, themes and all.

Documentation

See docs + demos site here

Quick Start

1. Create a svelte app from the template

https://github.com/sveltejs/template is a template repo for svelte. degit will scaffold the repo for you:

$ npx degit sveltejs/template my-svelma-project
$ cd my-svelma-project
$ npm install

NOTE: There are of course other ways to set up a project using svelte. This is just the quickest way to start.

2. Install svelma and dependencies via npm

Note that you'll need a CSS processing plugin for rollup so that you can import css files. Here we're using rollup-plugin-postcss. If you're going to use a <link> tag in your HTML you can skip the plugin and the import ... css statement below in step #2

$ npm install --save bulma svelma
$ npm install node-sass svelte-preprocess rollup-plugin-postcss --save-dev

Add the postcss plugin to your rollup config (I don't think the order really matters):

// rollup.config.js
import postcss from 'rollup-plugin-postcss'
import preprocess from 'svelte-preprocess'

// ...

export default {
  // ...
  plugins: [
    svelte({
      // ...
      preprocess: preprocess()
    }),

    postcss(),
  }
}

3. Import Bulma's CSS and Svelma components

<!-- App.svelte -->
<script>
  import 'bulma/css/bulma.css'
  import { Button } from 'svelma'
</script>

<button type="is-primary">I'm a Button!</button>

4. Include Font Awesome icons

From CDN in your HTML page:

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"></link>

...or as an npm package imported into your root component:

$ npm install --save @fortawesome/fontawesome-free
<!-- App.svelte -->
<script>
  import 'bulma/css/bulma.css'
  import '@fortawesome/fontawesome-free/css/all.css'
</script>

SSR

If you are doing server-side rendering with Sapper, you'll need to import the .svelte files directly so that your app can compile them, rather than importing from the compiled module.

i.e.:

import Button from 'svelma/src/components/Button.svelte'

instead of

import { Button } from 'svelma'

Development

  1. Clone this repo: git clone https://github.com/c0bra/svelma.git
  2. Install dependencies:
    1. npm i && (cd docs; npm i)
    2. npm install -g semantic-release-cli commitizen
  3. Start the automated build and automated docs: npm run dev
  4. Open url that console prints in your browser

Commit

$ git cz

Publish

NOTE: CI should publish new versions using semantic-release automatically

$ npm version <version>
$ npm publish

License

Code released under MIT license.

Copyright ©, Brian Hann.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].