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

nrmndev-fw

v4.0.0

Published

A utility-first CSS and CSS-in-JS framework with type safety and memoized centralized logic

Downloads

400

Readme

nrmndev-fw

A utility-first CSS and CSS-in-JS framework with type safety and memoized centralized logic

New Major Version released (v4.0.0-beta) 2024-31-10

HOTFIXES

  • Added UtilityPartialProps and UtilityRequireProps which extends UtilityProps and as with HTMLAttributes see docs for usage
  • Added forwardRef to all components

Utility

ExtendUtilityProps

  • A higher-order component (HOC) utility that extends an existing component with additional utility props, defined in PropStyleHandlerProps. It enhances the component with extra styling or layout properties while maintaining ref forwarding.

Alpha Version released (v2.1.0)

Table of Contents

Installation

You can install the framework using npm or yarn:

npm install nrmndev-fw
# or
yarn add nrmndev-fw

Getting Started

Component usage:

import React from "react";
import { Typography } from "nrmndev-fw";

const App = () => (
  <div>
    <Typography as="h2" color="primary">
      Hello world!
    </Typography>
  </div>
);

export default App;

UtiliStyledComponent usage:

Just import the utility props you need, pass spread object to UtilityStyledComponent and it will handle the className logic (if a form of predefined classNames or calculated styles passed into styled-component to render with just module classNames). For in-depth explanation refer to the documentation:

import { RowComponentProps } from "@uiTypes";
import { UtilityStyledComponent } from "@uiComponents";

const Row = ({ ...utilityProps }: RowComponentProps) => {
  return (
    <UtilityStyledComponent as="div" {...utilityProps} className={"row"} />
  );
};
const App = () => {
  return (
    <Row id="SampleId" className="someClassName" padding={"md"} margin={{top:{value:25,unit:"px"}}} xsColumns={2} smColumns={3} mdColumns={4}  flex={{ alignItems: "stretch", justifyContent: "center" }} {/* and many more*/} />
  );
};

Expects:

Usage

This framework is on a continous development and designed for personal use. The current release is not intended for production environments or widespread distribution. Please use it for personal projects or development purposes.

See all components and documentation here: (StoryBook under construction 🛠🛠🛠)

Example:

### Buttons

```jsx
<Button onClick={()=>} size="md" margin={"sm"} fontSize={{ value: 100 }} variant="outline-primary">Outlined Primary Button</Button>
<Button variant="solid-secondary" size="lg">Solid Large Button</Button>
```

Custom Theming

You can easily customize theme, just override root variables. See full customization here: (StoryBook under construction 🛠🛠🛠)

import { CssVariableProvider  } from 'nrmndev-fw';

const App = () => (
  <CssVariableProvider value={{ "--color-primary": "#4CB944" }}>
    {/** All component using "primary" will become #4CB944**/}
  </CssVariableProvider>
);
```

Features

Component modularity, theming support, scalable typed props.

  • 🛠 Customizable: Easily theme and modify components to fit your project’s design.
  • ⚡️ Performant: Optimized for high performance and lightweight applications.
  • 🧩 Modular: Import only the components you need to reduce bundle size.

Technologies Used

This framework is built with the following technologies:

  • TypeScript: A strongly typed programming language that builds on JavaScript.
  • Sass: A powerful CSS preprocessor that allows you to use variables, nested rules, mixins, and more.

Make sure you have these tools set up in your development environment to use this framework effectively.

API Documentation

See full API documentation here: https://nrmndev-fw.ngsilvestre.com/ StoryBook under construction 🛠🛠🛠

Changelog

You can view the full changelog here.