UI screenshot

UI

Author Avatar Theme by Perfect things
Updated: 27 Nov 2025
20 Stars

Perfect UI components

Categories

Overview:

PerfectThings/UI is a set of simple and perfect UI components written in Svelte, a popular front-end framework. It provides a collection of UI elements that can be easily integrated into web applications. The project has a Github pages site with documentation and showcases the usage of these components.

Features:

  • UI Components: PerfectThings/UI offers a range of UI components that can be used to create modern and visually appealing web interfaces.
  • Svelte Integration: The components are built using Svelte, a powerful front-end framework known for its simplicity and performance.
  • Customizable CSS: The theme provides a separate CSS file that can be imported into the project, allowing for easy customization and styling of the UI components.

Installation:

To install PerfectThings/UI, follow these steps:

  1. Firstly, install the module as a dev dependency using npm:
npm install perfectthings-ui --save-dev
  1. Import the CSS file into your bundle. You can do this by adding a postinstall script to your package.json file that copies the CSS file into your dist folder. For example:
{
  "scripts": {
    "postinstall": "cp node_modules/perfectthings-ui/docs/ui.css dist"
  }
}
  1. Add the imported CSS file directly to your index.html:
<link rel="stylesheet" href="path/to/ui.css">
  1. Import the UI components into your Svelte project as normal:
import { Button, Card, Input } from 'perfectthings-ui';

For SvelteKit projects, there are additional configuration steps:

  1. Configuration:

Since PerfectThings/UI is a front-end framework that requires a browser to work, it does not support server-side rendering (SSR). You need to disable SSR by creating a file src/routes/+layout.js and adding the following code to it:

export const prerender = false;
  1. CSS:

If you are using SvelteKit, you need to add the ui.css file to the static folder. Then, either import it into your global.css file or add it to the head section of your app.html file:

<link rel="stylesheet" href="/static/ui.css">
  1. Svelte components:

Once the CSS and configuration are set up, import the UI components as normal:

import { Button, Card, Input } from 'perfectthings-ui';

Summary:

PerfectThings/UI is a collection of UI components written in Svelte, designed to simplify the process of creating modern web interfaces. The theme offers a variety of customizable components and integrates smoothly with Svelte and SvelteKit projects. With its easy installation process and user-friendly documentation, PerfectThings/UI is a great choice for developers looking to enhance the UI of their web applications.