2.0.1 • Published 6 months ago
@sjsf/skeleton-theme v2.0.1
@sjsf/skeleton-theme
The skeleton v3 (tailwind v3) based theme for svelte-jsonschema-form.
Installation
npm install @sjsf/form @sjsf/skeleton-themeUsage
Setup styles
There is two ways to setup styles:
- Use tailwindcss config
import { skeleton } from '@skeletonlabs/skeleton/plugin';
import * as themes from '@skeletonlabs/skeleton/themes';
import forms from '@tailwindcss/forms'
import { THEME_CONTENT } from '@sjsf/skeleton-theme/preset'
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}', THEME_CONTENT],
plugins: [
forms,
skeleton({
themes: [/* themes.something */],
})
],
}Or with a preset
import themePreset from '@sjsf/skeleton-theme/preset'
/** @type {import('tailwindcss').Config} */
export default {
presets: [themePreset],
}- Inject prepared styles (not recommended)
// Inject them as you like
import themeStyles from "@sjsf/skeleton-theme/styles.css?inline";Bundled themes:
cerberuscatppuccinpinerose
Apply theme
<script lang="ts">
import { createForm } from '@sjsf/form';
import { theme } from '@sjsf/skeleton-theme';
const form = createForm({
theme,
...
})
</script>License
MIT
2.0.0-next.15
6 months ago
2.0.0-next.8
8 months ago
2.0.0-next.9
8 months ago
2.0.0-next.6
8 months ago
2.0.0-next.7
8 months ago
2.0.0-next.4
9 months ago
2.0.0-next.5
8 months ago
1.9.1
10 months ago
1.9.0
10 months ago
1.8.0
11 months ago
2.0.0-next.10
7 months ago
1.7.0
12 months ago
1.6.1
1 year ago
2.0.0-next.11
7 months ago
1.6.0
1 year ago
1.5.1
1 year ago
2.0.0-next.12
7 months ago
1.5.0
1 year ago
2.0.0-next.13
6 months ago
1.4.0
1 year ago
2.0.0-next.14
6 months ago
2.0.0-next.2
9 months ago
2.0.0-next.3
9 months ago
2.0.0-next.0
9 months ago
2.0.0-next.1
9 months ago
2.0.1
6 months ago
2.0.0
6 months ago
1.9.2
10 months ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.1.2
1 year ago
1.0.0
1 year ago
0.2.7
1 year ago
0.2.6
1 year ago
0.2.3
1 year ago
0.2.2
1 year ago
0.2.5
1 year ago
0.2.4
1 year ago
0.2.1
1 year ago