neova-ui Svelte Themes

Neova Ui

Develop faster with this collection of reusable Svelte UI components.

Neova UI

A Svelte UI library designed to simplify your web development. It offers a collection of customizable, performance-optimized components that integrate seamlessly with Svelte applications.

Getting Started

This library expects you have setup a SvelteKit project. Here's how to do so:

pnpm create svelte my-project
cd my-project
pnpm install

You also need to install TailwindCSS.

pnpm add -D tailwindcss postcss autoprefixer
pnpm tailwindcss init -p

Let's continue by installing the library.

pnpm add -D neova-ui

Update tailwind.config.js file:

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    './src/**/*.{html,js,svelte,ts}',
    './node_modules/neova-ui/dist/**/*.{js,svelte}'
  ],
  theme: {
    extend: {}
  },
  plugins: [],
  presets: [require('neova-ui/preset.cjs')]
};

Update src/+layout.svelte file:

<script>
  import { NeovaProvider } from 'neova-ui';
  import 'neova-ui/styles.css';
</script>

<NeovaProvider>
  <slot />
</NeovaProvider>

That's it. Now, you can start using the components like this:

<script>
  import { Button } from 'neova-ui';
</script>

<Button>Hello Button</Button>

Top categories

Loading Svelte Themes