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

@eugle/oneui-rn

v0.0.2

Published

A simple based on the react and styled-components senior style ui library

Downloads

3

Readme

NPM version

Basic UI

One UI is a fully customized front-end UI library based on the Styled-Components framework and React component thinking. Use Flex layout and CSS3 style to write specifications.

Feature

With One UI, you can build any front-end UI interface you want. Flexible, customize any of your UI interface. Follow the All in js idea, let CSS styles pass parameters like React components, and compile front-end CSS styles through Styled-Components. One UI has now released the official version, but you can still fix some problems in complex usage scenarios through pull request.

Why?

Why invented One UI? Alright... (note, this part contains some of my personal opinions!) Before inventing One UI, I tried many different front-end UI libraries. I found that although they are basically no problem when writing simple examples, once you want to build some complex and beautiful pages with a high degree of freedom, you will find some deep-seated problems. For example, the UI library hard-codes the document structure specification , Difficult to customize. Similar layout structures can be used out of the box, but in many cases you can't customize them for personal needs.

Principle

One UI tries to solve the problem of arbitrary customization through some principles:

Usage

use npm
npm i -s @eugle/oneui

use yarn
yarn add @eugle/oneui

ES6
import {Div} from '@eugle/oneui'

API

GlobalColor

Customize the default color

GlobalColor({  
	primary: '#35b8e0',  
	primaryRGB: '53,184,224',  
	primaryG: '#0081ee',  
	success: '#10c469',  
	successRGB: '16,196,105',  
	successG: '#009f5a',   
	danger: '#ff5b5b',  
	dangerRGB: '255,93,93',
	dangerG: '#e02e2e',
	warning: '#f9c851',
	warningRGB: '249,200,81',
	warningG: '#ff8a00',
	info: '#002fa7',
	infoRGB: '0,47,167',
	infoG: '#002687',
}); 

RGB at the end represents the format of '255,255,255' for transparency G at the end is used to set the color at the end of the gradient

Reference

Styled-Components. Official document
HTML5. Guide
CSS3. Guide
JavaScript. Web development technology
React. Official document

If this is not enough, you can also read the heavily annotated source code of One UI at any time.

Contribution

Contributions in all forms are welcome!