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

industrial-ui

v0.2.0

Published

Production-oriented library of styleless UI-components

Downloads

10

Readme

Industrial-ui

Industry-oriented library of unstyled UI-components.

Here is the short description. Please, refer to full documentation about all features of Industrial-ui.

Problem

In industry, front-end developers either write all markup by themselves, or they get an archive with the markup and styles for some project from the designer who also does it or from an out-source markupper.

If you do it on your own, you are most probably interested in creation of the logic of an application, and the process of making components from project to project annoys you. Many companies have their own UI-library, but its implementation is time-consuming and expensive.

On the other hand, if you get the markup, you have to change all the styles in your copy-pasted components from previous projects, and you waste a lot of time on doing so instead of real front-end stuff!

Just imagine a case: the studio AlphaCoders gets a technical description of some new project from a random customer. They perform requirements elicitation, make a prototype and so on. Design in this company is done by a person with professional skills of any online tool like Bootstrap studio, Webflow, Silex or other services for markup creation, so it makes a static html and css. They, a frontenter like you gets an archive, look through the code and realizes that some classes are repeated for different blocks. You rapidly begin creation of the functional components by extracting these blocks in your favorite framework. But what if I tell you that this step can easily be skipped?!

Solution – Industrial-ui

Whether you use Svelte, React or Vue (other libraries support will come later), install

  npm install industrial-ui

Now you have a library of fully-functional UI-components but with no styles at all! Pure logic and nothing more. The styles will be added by you via extracting them from markup's classes, or you can easily create them for the components. Let's take a look at the Svelte example:

<script>
  import {IUI, Button} from 'industrial-ui';
  const config = {}; 
</script>

<IUI {config}>
  <Button>Hello, world!</Button>
</IUI>

You will see the button naked like in good-old nineties. Let's imagine we don't have company's own markup, but instead we use Tailwind CSS. That is how easy it is to integrate it's CDN styles with Industrial-ui. Just configure:

  const config = {
    stylesheets: ['https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css'],
    components: {
      button: {
        class: 'bg-gray-200 font-semibold py-2 px-6 rounded inline-flex items-center'
      }
    }
  };

The IUI usage above will be transformed into a nice-looking Button with all the logic behind.

License

This project is licensed under the terms of the MIT license.