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

@vnkrvietnam/ui-kit

v1.0.1

Published

VNKR exclusive design system component library

Readme

@vnkr/ui

VNKR Organisation — Exclusive Design System Library Thư viện component React/TypeScript độc quyền, trích xuất từ VNKR Design System.


Cài đặt

# Trong monorepo axvietnam
pnpm add @vnkr/ui

Cấu trúc thư viện

@vnkr/ui
├── tokens/
│   ├── colors.ts          ← Brand + Semantic + Shade scales
│   ├── typography.ts      ← Work Sans — sizes, weights, line-heights
│   ├── spacing.ts         ← 4px grid — spacing, radius, shadow, z-index
│   └── cssVariables.ts    ← CSS Custom Properties (--vnkr-*)
└── components/
    ├── Typography/
    │   ├── Text.tsx           ← <Text variant="h1" weight="semibold">
    │   └── TypographyScale.tsx ← Reference / docs component
    ├── ColorPalette/
    │   └── ColorPalette.tsx    ← Reference / docs component
    └── Icon/
        ├── icons.tsx          ← 100+ SVG icon components
        ├── IconGallery.tsx    ← Searchable icon reference
        └── index.ts

1 — Tokens

Colors

import { colorBrand, colorShades, colors } from "@vnkr/ui";

// Brand palette
colorBrand.dark     // #000000
colorBrand.magenta  // #FD9FDD
colorBrand.orange   // #FC7339
colorBrand.greeny   // #BEFF6C
colorBrand.violet   // #AF96FB

// Semantic
colors.info         // #0095FF
colors.success      // #00D68F
colors.warning      // #FFAA00
colors.error        // #FF3D71

// Shade scales (index 0 = darkest, 7 = lightest)
colorShades.info[3]       // #0095FF  (base)
colorShades.greyscale[2]  // #2E3A59

Typography

import { fontSize, fontWeight, fontFamily } from "@vnkr/ui";

fontSize.h1        // "6rem"    (96px)
fontSize.body2     // "0.875rem"(14px)
fontWeight.semibold // 600
fontFamily.base    // "'Work Sans', ..."

CSS Variables

import { injectVnkrTokens } from "@vnkr/ui";

// Gọi một lần ở App root — inject tất cả --vnkr-* variables vào <head>
injectVnkrTokens();
/* Sử dụng trong CSS */
.my-element {
  background: var(--vnkr-brand-violet);
  font-size:  var(--vnkr-fs-h5);
  color:      var(--vnkr-grey-700);
  padding:    var(--vnkr-space-4);
  border-radius: var(--vnkr-radius-lg);
}

2 — Typography Component

import { Text } from "@vnkr/ui";

// Headings
<Text variant="h1">VNKR</Text>
<Text variant="h3" weight="medium" color="#2E3A59">Dashboard</Text>

// Body
<Text variant="body1">Đây là nội dung chính.</Text>
<Text variant="caption" color="#8F9BB3">Ghi chú nhỏ</Text>

// Overline (tự động uppercase)
<Text variant="overline">Section label</Text>

// Button label
<Text variant="btnLarge">Tiếp tục</Text>

// Truncate overflow
<Text variant="subtitle1" truncate>Nội dung rất dài sẽ bị cắt ngắn...</Text>

// Custom tag
<Text variant="h2" as="span">Inline heading</Text>

| Prop | Type | Default | |------|------|---------| | variant | h1…h6 \| subtitle1/2 \| body1/2 \| caption \| overline \| btnGiant/Large/Medium/Small | body1 | | weight | regular \| medium \| semibold | variant default | | color | string | #2E3A59 | | align | left \| center \| right \| justify | left | | truncate | boolean | false | | as | ElementType | variant default tag |

TypographyScale — Reference

import { TypographyScale } from "@vnkr/ui";

// Dùng trong Storybook hoặc docs page
<TypographyScale />

3 — Color Palette Component

import { ColorPalette } from "@vnkr/ui";

// Reference component hiển thị toàn bộ bảng màu VNKR
<ColorPalette />

4 — Icon Set

Tất cả icon là SVG inline, zero external dependency, linear stroke style.

import {
  ArrowRight, Wallet, Shield, Bell, User,
  Search, Home, Settings2, CreditCard, Send,
} from "@vnkr/ui";

// Basic usage
<ArrowRight />
<Wallet size={32} color="#0095FF" />
<Shield size={20} strokeWidth={2} />

// Dynamic icon by name
import { VnkrIcon } from "@vnkr/ui";
<VnkrIcon name="Wallet" size={24} color="#00D68F" />

Props

| Prop | Type | Default | |------|------|---------| | size | number | 24 | | color | string | currentColor | | strokeWidth | number | 1.5 | | + tất cả SVGAttributes | | |

IconGallery — Reference

import { IconGallery } from "@vnkr/ui";

// Searchable gallery — dùng trong Storybook
<IconGallery />

Danh sách categories

| Category | Số icon | |----------|---------| | Arrow | 12 | | Archive | 5 | | Business | 7 | | Call | 5 | | Files | 6 | | Money | 10 | | Users | 8 | | Security | 8 | | Settings | 6 | | Notifications | 3 | | Location | 4 | | Search | 3 | | Shop | 4 | | Time | 3 | | Grid / Layout | 7 | | Content | 6 | | Delivery | 2 | | Building | 2 | | Essential | 19 | | Total | ~120 |


License

UNLICENSED — © VNKR Organisation. All rights reserved.