1.9.1 • Published 1 year ago

svelte-doric v1.9.1

Weekly downloads
13
License
MIT
Repository
-
Last release
1 year ago

Svelte Doric

Collection of UI components for Svelte to help create Single Page Applications easily and reliably. It was written from the ground up to be a standalone library to keep installation and usage as simple as possible. Right now the components must be used with the provided baseline css and theme components, but that will likely change in the future once I figure out how to decouple some of those things without breaking what I have.

Inspired by similar libraries in React and Svelte like MUI CSS and Smelte, Svelte Doric is based on material design concepts, but deviates in a few areas to try something new (and hopefully interesting/useful). Development is mainly driven by my and my friend's experiences in building web apps, so hopefully this makes it stay on track and not add complexity needlessly.

Component Preview Site

Installation

npm add svelte-doric

Rollup

It is recommended to use the emitCss: false option within the rollup svelte config to make everything work nicely.

import svelte from "rollup-plugin-svelte"
import commonjs from "@rollup/plugin-commonjs"
import resolve from "@rollup/plugin-node-resolve"

export default {
    input: "src/main.js",
    output: {
        file: `build/app.js`,
        format: "iife",
    },
    plugins: [
        svelte({
            emitCss: false,
        }),
        resolve(),
        commonjs(),
    ]
}

That's it. That's all it takes to get things installed and going.

Getting Started

Svelte Doric has set of baseline css that it needs to ensure everything works well and behaves consistently between browsers, all of which is bundled into the Baseline component, and rendered by the AppStyle component. It ships with 3 themes: LightTheme, DarkTheme, and TronTheme, which can be swapped out at anytime during runtime safely, and extended into custom themes.

If AppStyle is not used, nothing will look correct, and some things will not behave as expected in some browsers (usually Safari).

<script>
    import {
        AppStyle,
        Baseline as baseline,
        TronTheme as theme,
    } from "svelte-doric"
</script>

<AppStyle {baseline} {theme} />
1.10.0-beta.0

1 year ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.9.1

1 year ago

1.9.0

2 years ago

1.9.0-beta.2

2 years ago

1.9.0-beta.1

2 years ago

1.9.0-beta.0

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.10

2 years ago

1.7.9

2 years ago

1.7.8

2 years ago

1.7.7

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.4.3

2 years ago

1.5.0

2 years ago

1.5.0-beta.0

2 years ago

1.5.0-beta.2

2 years ago

1.5.0-beta.1

2 years ago

1.5.0-beta.4

2 years ago

1.5.0-beta.3

2 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0-beta.1

3 years ago

1.0.2-beta.0

3 years ago

1.0.1-beta.0

3 years ago

1.0.0-beta.0

3 years ago

0.2.0-beta.0

3 years ago

0.2.0-alpha.2

4 years ago

0.2.0-alpha.1

4 years ago

0.2.0-alpha.0

4 years ago

0.1.0-alpha.1

4 years ago

0.1.0-alpha.0

4 years ago