Smelte screenshot

Smelte

Author Avatar Theme by Matyunya
Updated: 17 Feb 2025
1533 Stars

UI framework with material components built with Svelte and Tailwind CSS

Categories

Overview

Smelte is a UI framework built on top of Svelte and Tailwind CSS using Material Design spec. It provides many components and utility functions for building responsive layouts while maintaining bundle size and performance with the help of Svelte.

Features

  • Default typography per Material design spec: Smelte follows Material design specifications for typography, ensuring a clean and consistent design throughout the UI.
  • Material icons: Smelte supports the use of Material icons, allowing you to easily incorporate icons into your UI.
  • CSS ripple animation: Smelte includes a CSS ripple animation effect, providing visual feedback on interactive elements such as buttons.
  • Image lazy loading: Smelte supports lazy loading of images, helping to improve performance by only loading images when they are visible.
  • Now SSR deployment: Smelte is compatible with Now Server Side Rendering (SSR) deployment, allowing for server-side rendering of your UI.
  • Color palette generator: Smelte includes a color palette generator, making it easy to generate consistent color schemes for your UI.
  • Improve Purge CSS: Smelte includes improvements to Purge CSS, a tool for removing unused CSS, helping to reduce the overall bundle size of your application.
  • Theming: Smelte provides theming capabilities, allowing you to customize the look and feel of your UI.
  • Image processing: Smelte includes image processing capabilities, making it easy to manipulate and optimize images within your UI.
  • Svelte template: Smelte provides a Svelte template, allowing you to quickly start building UIs without the need for additional frameworks like Sapper.
  • JS ripple animation: In addition to the CSS ripple animation, Smelte also includes a JavaScript-based ripple animation for more advanced interactions.
  • Dark mode: Smelte supports dark mode, allowing your UI to adapt to the user’s system preferences.

Installation

To get started with Smelte, you can follow these steps:

  1. Add Smelte to your dependencies using your favorite package manager:
npm install smelte
  1. Add the Smelte Rollup plugin (after Svelte but before CSS). Webpack support is coming soon.
  2. Include Tailwind utility CSS in your app component.
  3. Optionally, include Material icons and/or Roboto font in your template, if needed.
  4. Import the specific components you need, for example:
import { Button, TextField, Checkbox, Select } from "smelte";
  1. Customize the components using class props and utilize the various features of Smelte to suit your needs.

Summary

Smelte is a powerful UI framework built on top of Svelte and Tailwind CSS. It provides a wide range of features and includes many components and utility functions, making it easy to build beautiful responsive layouts while maintaining a small bundle size and high performance. Additionally, Smelte supports theming, image processing, lazy loading of images, SSR deployment, and several other useful features. With its adherence to Material design specifications, Smelte offers a cohesive and visually appealing UI experience.