{"id":13408707,"url":"https://github.com/c0bra/svelma","last_synced_at":"2025-04-09T05:03:01.654Z","repository":{"id":37706581,"uuid":"188113636","full_name":"c0bra/svelma","owner":"c0bra","description":"Bulma components for Svelte","archived":false,"fork":false,"pushed_at":"2023-08-15T18:40:06.000Z","size":2034,"stargazers_count":538,"open_issues_count":27,"forks_count":43,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-29T17:12:10.677Z","etag":null,"topics":["bulma","svelte","svelte-components","svelte3","sveltejs"],"latest_commit_sha":null,"homepage":"https://c0bra.github.io/svelma","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c0bra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-22T21:05:27.000Z","updated_at":"2024-10-29T16:09:32.000Z","dependencies_parsed_at":"2024-01-06T01:11:19.818Z","dependency_job_id":"4bb8db1a-82ea-4154-b294-ddd634507c62","html_url":"https://github.com/c0bra/svelma","commit_stats":{"total_commits":187,"total_committers":20,"mean_commits":9.35,"dds":"0.36363636363636365","last_synced_commit":"ddd412e79085f47646b3739f5d05277219f070a2"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fsvelma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fsvelma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fsvelma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0bra%2Fsvelma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0bra","download_url":"https://codeload.github.com/c0bra/svelma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980808,"owners_count":21027803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bulma","svelte","svelte-components","svelte3","sveltejs"],"created_at":"2024-07-30T20:00:54.702Z","updated_at":"2025-04-09T05:03:01.621Z","avatar_url":"https://github.com/c0bra.png","language":"HTML","funding_links":[],"categories":["UI Libraries \u0026 Components","components and libraries","HTML","Uncategorized"],"sub_categories":["Courses","ui component sets","Uncategorized"],"readme":"# Svelma\n\n\u003e Svelma is a set of UI components for [Svelte](https://svelte.dev) based on the [Bulma](http://bulma.io) CSS framework.\n\n\u003ca href=\"https://www.npmjs.com/package/svelma\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/svelma.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/svelma\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/svelma.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://bundlephobia.com/result?p=svelma\"\u003e\u003cimg src=\"https://badgen.net/bundlephobia/minzip/svelma\"\u003e\u003c/a\u003e\n\u003ca href=\"https://travis-ci.com/c0bra/svelma\"\u003e\u003cimg src=\"https://travis-ci.com/c0bra/svelma.svg?branch=master\"\u003e\u003c/a\u003e\n\n\n[Change Log](CHANGELOG.md)\n\n\n\n# Documentation\n\n[See docs + demos site here](https://docs-abbychau.vercel.app/svelma)\n\n# Quick Start\n\n### 1. Import svelma and dependencies via npm to your project\n\n```bash\n$ npm install --save bulma svelma\n$ npm install node-sass svelte-preprocess rollup-plugin-postcss --save-dev\n```\n\n### 2. Add the postcss plugin to your rollup config\n\n```js\n// rollup.config.js\nimport postcss from 'rollup-plugin-postcss'\nimport preprocess from 'svelte-preprocess'\n\n// ...\n\nexport default {\n  // ...\n  plugins: [\n    svelte({\n      // ...\n      preprocess: preprocess()\n    }),\n\n    postcss(),\n  ]\n}\n```\n\n### 3. Import Bulma's CSS and Svelma components\n\n```html\n\u003c!-- App.svelte --\u003e\n\u003cscript\u003e\n  import 'bulma/css/bulma.css'\n  import { Button } from 'svelma'\n\u003c/script\u003e\n\n\u003cButton type=\"is-primary\"\u003eI'm a Button!\u003c/Button\u003e\n```\n\n### 4. Include [Font Awesome](https://fontawesome.com/) icons\n\nFrom CDN in your HTML page:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/all.css\" /\u003e\n```\n\nOr as an npm package imported into your root component:\n\n`$ npm install --save @fortawesome/fontawesome-free`\n\n```html\n\u003c!-- App.svelte --\u003e\n\u003cscript\u003e\n  import 'bulma/css/bulma.css'\n  import '@fortawesome/fontawesome-free/css/all.css'\n\u003c/script\u003e\n```\n\n### SSR\n\nIf you are doing server-side rendering with Sapper (or [SvelteKit](https://kit.svelte.dev/)), you'll need to import the .svelte files directly so that your app can compile them, rather than importing from the compiled module.\n\ni.e.:\n\n```js\nimport Button from 'svelma/src/components/Button.svelte'\n```\n\ninstead of\n\n```js\nimport { Button } from 'svelma'\n```\n\n\n# Inspiration\n\nMuch thanks to the [Buefy](https://buefy.org) and [Svelma2](https://github.com/abbychau/svelma2) projects! It provided the inspiration and lots of code examples for this version of Svelma.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Fsvelma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0bra%2Fsvelma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0bra%2Fsvelma/lists"}