Vergins is a reusable, accessible, and themeable UI component library for Svelte applications. It provides a set of foundational and specialized components to help you build beautiful and consistent user interfaces with ease.
- Reusable Components: A collection of ready-to-use components to speed up your development process.
- Accessible by Default: Components are designed with accessibility in mind, including keyboard navigation and ARIA support.
- Themable: Easily customize the look and feel of the components using CSS variables.
- Consistent Design: All components follow a consistent design pattern to ensure a cohesive user experience.
- TypeScript Support: All components are written in TypeScript for a better development experience.
- Buttons
- Inputs
- Cards
- Navigation (Navbar, Breadcrumbs)
- Layout (Accordion, Modal)
- FileUploader
- Flyer
- LazyLoader
- Timeline
- Carousel
To use vergins in your Svelte project, install it as a dependency:
npm install vergins
Here's a basic example of how to import and use a component from the library:
<script>
import { Button } from 'vergins';
</script>
<Button on:click={() => alert('Button clicked!')}>
Click me
</Button>
vergins comes with two pre-built themes:
default-theme.css
improved-theme.css
To use a theme, import it in your main +layout.svelte
or +page.svelte
file:
<script>
import 'vergins/css/improved-theme.css';
</script>
You can also customize the theme by overriding the CSS variables defined in the theme files.
To contribute to vergins, clone the repository and install the dependencies:
git clone https://github.com/your-username/vergins.git
cd vergins
npm install
Then, start the development server:
npm run dev
To create a production version of the library:
npm run build
vergins is licensed under the MIT License.