npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rael-ui

v0.2.0

Published

<div> <h1 align="center"> RAEL-UI </h1> <h2 align="center"> Your toolkit for elegant React UI — with themes, form management, and seamless styling. </h2> <div align="center"> <img src="https://img.shields.io/badge/-React-black?sty

Downloads

463

Readme

rael-ui is a modern UI library for React that enables developers to build beautifully styled websites without having to create styles from scratch. With built-in support for both light and dark themes, rael-ui ensures your components follow best practices in UI/UX while maintaining full customization options. It leverages compound components for seamless styling and includes a built-in form management system to simplify complex form handling.

Key Features

  • Modern, UX-Friendly Styles: Predefined styles that follow UI/UX best practices, saving time and enhancing user experience.
  • Built-In Theming: Supports both dark and light themes with easy configuration.
  • Automatic Styling Sync: Child components automatically inherit styles from parent elements (e.g., cards and their inputs).
  • Full Customizability: Customizable like shadcn’s components, supporting outline and fill styles, plus compound component patterns.
  • Integrated Form Management: Provides built-in form management to streamline form creation.

Installation

To get started, install rael-ui via npm:

npm install rael-ui

After installation, make sure to include the predefined colors and animations in your project’s Tailwind configuration. Add the following to your tailwind.config.js and index.css files:

Tailwind Configuration

const colors = {
    'primary': '#421BDD',
    'secondary': '#423A5E',
    'danger': '#e74c3c',
    'black': '#09090b',
    // 'black': '#09090b',
    'white': '#fafafa',
    'dark': '#12161C',
}

/** @type {import('tailwindcss').Config} */
export default {
    content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
    darkMode: ['class', '[data-mode="dark"]', 'selector'],
    theme: {
        extend: {
            colors: {

                // Base colors

                'primary': colors.primary,
                'secondary': colors.secondary,
                'danger': colors.danger,
                'black': colors.black,
                'white': colors.white,
                'dark': colors.dark,


                // Component colors 

                input: {
                    fill: {
                        d: {
                            'bg': '#27272a',
                            'placeholder': '#737373',
                            'text': colors.white,
                            'border': colors.black,
                        },
                        l: {
                            'bg': '#e5e5e5',
                            'placeholder': '#737373',
                            'text': colors.black,
                            'border': colors.white,

                        }
                    },
                    outline: {
                        d: {
                            'bg': colors.black,
                            'border': '#a3a3a3',
                            'placeholder': '#a3a3a3',
                            'text': colors.white,
                        },
                        l: {
                            'bg': colors.white,
                            'border': '#a3a3a3',
                            'placeholder': '#737373',
                            'text': colors.black,
                        }
                    }
                },
                meta: {
                    fill: {
                        d: {
                            'bg': '#18181b',
                            'border': '#262626',
                            'text': colors.white,
                            'text-sec': '#9ca3af',
                        },
                        l: {
                            'bg': '#fff',
                            'border': '#e4e4e7',
                            'text': colors.black,
                            'text-sec': '#4b5563',
                        },
                    },
                    outline: {
                        d: {
                            'bg': colors.black,
                            'border': '#a3a3a3',
                            'text': colors.white,
                            'text-sec': '#6b7280',
                        },
                        l: {
                            'bg': colors.white,
                            'border': '#a3a3a3',
                            'text': colors.black,
                            'text-sec': '#6b7280',
                        },
                    },
                }
            },
            animation: {
                'slide-in': 'slide-in 0.3s ease-out forwards',
                'slide-out': 'slide-out 0.3s ease-out forwards',
            },

        },
    },
    plugins: [],
};

CSS Import

@tailwind base;
@tailwind components;
@tailwind utilities;

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}


@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

Documentation

Coming soon ...