@hareui/vue
HareUI
Documentation: hareui.alexzvn.me
HareUI is a Vue 3 port of HeroUI v3. It pairs the accessible primitives of Reka UI with the utility-first styling of Tailwind CSS v4, and keeps HeroUI's design, tokens and component API.
- Accessible by default: keyboard, focus and screen-reader behavior come from Reka UI
- Tailwind CSS v4: no CSS-in-JS runtime, themeable through CSS variables
- Same look as HeroUI: styles and tokens are translated from HeroUI v3
- Slot-based composition: Vue slots and the
asprop instead of deeply nested props - Zero boilerplate: components work without a plugin or provider
Getting Started
Requirements: Vue 3.5+ and Tailwind CSS v4.
npm i @hareui/vue
Add the styles to your main CSS file, after Tailwind:
@import "tailwindcss";
@import "@hareui/vue";
Use components:
<script setup lang="ts">
import { Button } from '@hareui/vue'
</script>
<template>
<Button>My Button</Button>
</template>
Vite plugin (optional)
@hareui/vue/vite auto-imports components in templates (through unplugin-vue-components) and applies app-wide theme overrides at build time:
// vite.config.ts
import hareui from '@hareui/vue/vite'
export default defineConfig({
plugins: [
vue(),
tailwindcss(),
hareui({
prefix: 'H', // <HButton> / <h-button>; default '' keeps <Button>
ui: { button: { slots: { base: 'uppercase' }, defaultVariants: { size: 'lg' } } },
}),
],
})
prefix: template prefix for HareUI components. Kebab-case ('h-') is accepted.ui: same shape ascreateHareUI({ ui }); must be JSON-serializable.createHareUI({ ui }), variant props,:uiandclassstill override it.components: options forwarded to unplugin-vue-components (dts,dirs, extraresolvers, …), orfalseto turn auto import off.
Already registering unplugin-vue-components yourself? Add HareUIResolver({ prefix }) from @hareui/vue/vite to its resolvers instead.
Documentation
Visit hareui.alexzvn.me for theming, dark mode, styling, composition and every component. AI tools can read the docs as llms.txt or llms-full.txt.
Contributing
Issues and pull requests are welcome at github.com/alexzvn/hareui.
License
MIT. Styles, tokens and icons are derived from HeroUI; see THIRD_PARTY_LICENSES.md.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.0 | ^3.5.0 | MIT | |
| 0.1.3 | ^3.5.0 | MIT | |
| 0.1.2 | ^3.5.0 | MIT | |
| 0.1.1 | ^3.5.0 | MIT | |
| 0.1.0 | ^3.5.0 | MIT |