A Svelte Flat UI Toolkit for Web.
npm i svelte-flat --save
import Flat from 'svelte-flat'
import 'svelte-flat/lib/theme-default/index.css'
import { Button } from 'svelte-flat'
import 'svelte-flat/lib/theme-default/button.css'
Install babel-plugin-svelteflat
npm i babel-plugin-svelteflat -D
edit .babelrc
.
{
"plugins": [
["svelteflat", {
"libraryName": "svelte-flat",
"style": "theme-default"
}]
]
}
Then, if you need Button, you can import it without style,
import { Button } from 'svelte-flat'
Here is a forked version which named svelte-flat-ui
.