All Projects → matyunya → Smelte

matyunya / Smelte

Licence: mit
UI framework with material components built with Svelte and Tailwind CSS

Projects that are alternatives of or similar to Smelte

Svelte Materialify
A Material UI Design Component library for Svelte heavily inspired by vuetify.
Stars: ✭ 351 (-59.7%)
Mutual labels:  material-design, material, svelte
Svelte Material Ui
Svelte Material UI Components
Stars: ✭ 2,081 (+138.92%)
Mutual labels:  material-design, material, svelte
Material Components
Documentation and policies for Material Components (all platforms)
Stars: ✭ 872 (+0.11%)
Mutual labels:  material-design, material
Ui Libraries
A collection of UI Frameworks and their platform implementations.
Stars: ✭ 769 (-11.71%)
Mutual labels:  material, tailwindcss
Materialize Sass
Materializecss rubygem for Rails Asset Pipeline / Sprockets
Stars: ✭ 785 (-9.87%)
Mutual labels:  material-design, material
Awesomebar
Just beautiful
Stars: ✭ 870 (-0.11%)
Mutual labels:  material-design, material
Textfieldboxes
Material Design text field that comes in a box, based on (OLD) Google Material Design guidelines.
Stars: ✭ 760 (-12.74%)
Mutual labels:  material-design, material
Slidetoact
A simple 'Slide to Unlock' Material widget for Android, written in Kotlin 📱🎨🦄
Stars: ✭ 783 (-10.1%)
Mutual labels:  material-design, material
React Native Snackbar
🍱 Material Design "Snackbar" component for Android and iOS.
Stars: ✭ 613 (-29.62%)
Mutual labels:  material-design, material
React Native Material Textfield
Material textfield
Stars: ✭ 852 (-2.18%)
Mutual labels:  material-design, material
Matter
Material Design Components in Pure CSS. Materializing HTML at just one class per component 🍰
Stars: ✭ 888 (+1.95%)
Mutual labels:  material-design, material
Mdl Skeleton
Material Design skeleton with ssr-engine
Stars: ✭ 17 (-98.05%)
Mutual labels:  material-design, material
Wanandroid
🐔🏀【停止维护,已使用Jetpack+Mvvm重构】根据鸿神提供的WanAndroid开放Api来制作的产品级玩安卓App,采用Kotlin语言,基于Material Design+AndroidX +MVP+RxJava+Retrofit等框架开发,注释超详细,方便大家练手
Stars: ✭ 674 (-22.62%)
Mutual labels:  material-design, material
React Native Material Dropdown
Material dropdown with consistent behaviour on iOS and Android
Stars: ✭ 661 (-24.11%)
Mutual labels:  material-design, material
Materialscrollbar
An Android library that brings the Material Design 5.1 sidebar to pre-5.1 devices.
Stars: ✭ 761 (-12.63%)
Mutual labels:  material-design, material
Material Shell
A modern desktop interface for Linux. Improve your user experience and get rid of the anarchy of traditional desktop workflows. Designed to simplify navigation and reduce the need to manipulate windows in order to improve productivity. It's meant to be 100% predictable and bring the benefits of tools coveted by professionals to everyone.
Stars: ✭ 6,189 (+610.56%)
Mutual labels:  material-design, material
Material Remixer Android
Remixer for Android. Live adjustment of app variables.
Stars: ✭ 782 (-10.22%)
Mutual labels:  material-design, material
Breeze
A Material Design game launcher for Windows
Stars: ✭ 22 (-97.47%)
Mutual labels:  material-design, material
Material Awesome
Material and Mouse driven config for AwesomeWM 4.3
Stars: ✭ 588 (-32.49%)
Mutual labels:  material-design, material
Fluid
📖 Library for QtQuick apps with Material Design
Stars: ✭ 601 (-31%)
Mutual labels:  material-design, material

Smelte

Smelte logo

license downloads version Discord Chat

Demo

Smelte is a UI framework built on top of Svelte and Tailwind CSS using Material Design spec (hence the name). It comes with many components and utility functions making it easy to build beautiful responsive layouts while keeping bundle size and performance at check all thanks to Svelte.

Installation

To get you started you need to add Smelte to your dependencies with your favorite package manager

$ npm install smelte or yarn add smelte

Then add the Smelte Rollup plugin (after svelte but before css). Webpack support coming soon.

const smelte = require("smelte/rollup-plugin-smelte");

plugins = [
  ...your plugins,
  smelte({
    purge: production,
    output: "public/global.css", // it defaults to static/global.css which is probably what you expect in Sapper
    postcss: [], // Your PostCSS plugins
    whitelist: [], // Array of classnames whitelisted from purging
    whitelistPatterns: [], // Same as above, but list of regexes
    tailwind: {
      theme: {
        extend: {
          spacing: {
            72: "18rem",
            84: "21rem",
            96: "24rem"
          }
        }
      }, // Extend Tailwind theme
      colors: {
        primary: "#b027b0",
        secondary: "#009688",
        error: "#f44336",
        success: "#4caf50",
        alert: "#ff9800",
        blue: "#2196f3",
        dark: "#212121"
      }, // Object of colors to generate a palette from, and then all the utility classes
      darkMode: true,
    }, // Any other props will be applied on top of default Smelte tailwind.config.js
  }),
]

Then you should add Tailwind utilites CSS in your app component.

import "smelte/src/tailwind.css";

You might also need to include material icons in your template's

if you use any:
<link
  href="https://fonts.googleapis.com/icon?family=Material+Icons"
  rel="stylesheet"
/>

Or ship them along with Roboto if you would like to use default material font

<link
  href="https://fonts.googleapis.com/css?family=Roboto:300,400,500|Material+Icons&display=swap"
  rel="stylesheet"
/>

And you're good to go and have all the Tailwind CSS power all to yourself!

For treeshaking to work it is recommended to import each component on its own like this:

import Button from "smelte/src/components/Button";
import Treeview from "smelte/src/components/Treeview";

Components

  • [x] Text field
  • [x] Button
  • [x] Select
  • [x] Checkbox
  • [x] Radio
  • [x] List
  • [x] Chip
  • [x] Menu
  • [x] Navigation drawer
  • [x] Snackbar
  • [x] Dialog
  • [x] Card
  • [x] Slider
  • [x] Proper customization via class props
  • [x] Data table
  • [x] Autocomplete
  • [x] Tooltip
  • [x] Revise events (on:change, on:focus, on:input...)
  • [x] Treeview
  • [x] Date picker

Features

  • [x] Default typography per Material design spec
  • [x] Material icons
  • [x] CSS ripple animation
  • [x] Image lazy loading
  • [x] Now SSR deployment
  • [x] Color palette generator
  • [x] Improve Purge CSS
  • [x] Theming
  • [x] Image processing (done here)
  • [x] Svelte template (without Sapper)
  • [x] JS ripple animation
  • [x] Dark mode
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].