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 🙏

© 2026 – Pkg Stats / Ryan Hefner

visits-style

v2.2.5

Published

VISITS Technologiesのreactデザインコンポーネント

Readme

release license bundle size

VISITS Technologiesのreactデザインコンポーネント

Dependencies

  • React, React-dom(>=19)
  • tailwindcss(>=4)

Install

npm install --save react react-dom visits-style
npm install --save-dev tailwindcss

bunでもできます

bun add react react-dom visits-style
bun add -D tailwindcss

Getting Started

@import "tailwindcss"
@import "visits-style/lib.css";
@source "../node_modules/visits-style";

/** カスタムグロバールcss定義 */
import { Button } from 'visits-style';
export default function TestComponent() {
  return (
    <div role="alert" className="bg-warn-fore px-2 py-1 flex justify-between items-center">
      <p>Warning message!</p>
      <Button variant="ghost">Dismiss</Button>
    </div>
  );
}

カスタム色の定義

// primary色
--color-primary: #37B151;
// primaryを薄くした色(hoverなどに使う想定)
--color-primary-fore: #76d58b;
// info色
--color-info: #209CEE;
--color-info-fore: #59b5f3;
// ワーニングの色
--color-warn: #F2B541;
--color-warn-fore: #f7d088;
// エラー系の色
--color-danger: #ee1114;
--color-danger-fore: #F3575A;
// モーダルなどの背景の色(alphaまで含めています)
--color-backdrop: #00000099;

/* utility colors */
// デフォルト背景色
--color-background: #FFFFFF;
// 背景色のもとに少し濃くした色(hoverなどに使う)
--color-accent: #F4F4F5;
// borderのデフォルト色
--color-input: #E4E4E7;
// borderのデフォルト色を薄くした色
--color-input-fore: #BBBBC3;
// focus時の色
--color-ring: #E4E4E7;

/* text */
// デフォルトテキスト色
--color-text: #4A4A4A;
// デフォルトテキスト色の逆転した色
--color-inverted: #FAFAFA;
// 無効、placeholder時に使うテキスト色
--color-muted: #808080;

// モーダルの幅サイズの設定
--container-dialog-sm: 24rem;
--container-dialog-md: 36rem;
--container-dialog-lg: 48rem; 

Docs