moraine
v0.0.4
Published
Comprehensive SolidJS component library with atomic class styling.
Maintainers
Readme
Moraine
Inspired by Nuxt UI and shadcn, Moraine is a comprehensive SolidJS component library with atomic class styling.
[!important] Status: pre-alpha. Breaking changes are allowed before
v1.0.0.
Documention
Full guide and examples: https://ui.subf.dev
Quick Start
- Install
morainein a Solid project
bun add moraine solid-js unocss- Setup Styles
UnoCSS as example here. TailwindCSS is experimentally supported.
// unocss.config.ts
import { defineConfig, presetWind4 } from 'unocss'
import { presetMoraine } from 'moraine/unocss'
export default defineConfig({
presets: [presetWind4(), presetMoraine()],
})- Now you can import components directly from
moraine.
import { Button, Input } from 'moraine'
function App() {
return (
<div class="flex flex-col gap-3">
<Input placeholder="Enter text" />
<Button variant="outline">Save changes</Button>
</div>
)
}Development
# Install dependencies
bun install
# Start development build
bun run dev
# Run tests
bun run test
# Start docs development server
bun run docs
# Run linting and type checking
bun run qaLicense
MIT
