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

bigbear-ui

v1.0.0

Published

Neumorphic component library for React;基于React制作的拟物风格组件库

Downloads

165

Readme

bigbear-ui

bigbear-ui是个人制作的拟物化小型轻量级ui库

npm npm bundle size npm Build Status Coverage Status

✨ 特性

  • 📕 详细的文档与介绍
  • 🎨 使用富有特色的Neumorphism拟物化风格
  • 📦 开箱即用的高质量 React 组件
  • 🔥 使用 TypeScript 开发,提供完整的类型定义文件

安装

使用 npm 或 yarn 安装

$ npm install bigbear-ui --save

引入样式

import 'bigbear-ui/dist/index.css';

导入组件

import {componentName} from 'bigbear-ui';

在线文档

https://yehuozhili.github.io/bigbear-ui/

本地文档

下载代码,npm安装,使用npm run storybook即可获得本地文档。

git clone https://github.com/yehuozhili/bigbear-ui.git
npm install 
npm run storybook

使用scss

scss放入bigbear-ui/dist/esm/styles/index.scss。

@import "bigbear-ui/dist/esm/styles/index.scss";

使用bigbear-ui-cli

目前暂时只制作了一个模板供下载。如果需要react-router+redux+thunk以及mock数据可以使用此模板快速开发。

https://www.npmjs.com/package/bigbear-ui-cli

npm i bigbear-ui-cli -g

项目demo

http://94.191.80.37:6698/#/

制作初衷

制作一个属于自己的组件库应该是每个前端人员都有的梦想,有时候自己写出某些好的组件也想记录下来。

设计理念

新拟物风格早就存在,但是这种风格受限性很强,特别是对于背景色的要求,因为只有通过背景色制造的高光和加深才能制作出完美的凸起和凹下。

最初想法可能是做个浅色的风格和一个深色的风格,但是后来觉得,这样定制化过强,大部分时候,场景都是比较复杂的,也并不需要特别完美的定制效果,于是我将阴影效果进行改造,做出个比较通用的效果。

这种风格最适合做小工具,同时组件库体积又小,避免占太多空间。