Tailwindcss Neumorphism screenshot

Tailwindcss Neumorphism

Author Avatar Theme by Sambeevors
Updated: 13 Feb 2024
159 Stars

Generate soft UI CSS code using tailwindcss

Overview:

The tailwindcss-neumorphism plugin allows users to generate soft UI CSS code using Tailwind CSS. This plugin is inspired by neumorphism.io and aims to provide users with a simple way to create neumorphism design elements in their projects. By offering customization options for colors, sizes, and variants, this plugin enables developers to easily integrate neumorphism styles into their web applications.

Features:

  • Generate Soft UI CSS Code: Easily create neumorphism design elements using Tailwind CSS.
  • Customizable Colors: Customize background colors for neumorphism elements.
  • Adjustable Sizes: Modify the sizes of neumorphism elements with 5 default sizing options.

Installation:

To install the tailwindcss-neumorphism plugin, follow these steps:

  1. Install via npm or yarn:
    npm install tailwindcss-neumorphism
    
  2. Require the plugin in your project:
    // tailwind.config.js
    module.exports = {
      plugins: [
        require('tailwindcss-neumorphism')
      ]
    }
    
  3. Customize colors and sizes in the configuration file:
    module.exports = {
      theme: {
        neumorphismColor: {
          // Define custom colors here
        },
        neumorphismSize: {
          // Adjust sizes here
        }
      },
      variants: {
        neumorphism: ['responsive', 'hover', 'focus'],
      }
    }
    

Summary:

The tailwindcss-neumorphism plugin offers a convenient solution for generating soft UI CSS code inspired by neumorphism design principles. With customizable features like colors, sizes, and variants, developers can easily incorporate neumorphism elements into their projects. By following the simple installation guide and adjusting configurations as needed, users can leverage this plugin to enhance the visual aesthetics of their web applications.