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