Skip to content
Proyectos

Acerca de

⚛️ A friendly UI component set for React

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

What you can do

  • 80+ components — buttons, forms, data display, navigation, feedback, and more
  • Visual Theme Editor — 20+ built-in presets inspired by popular design systems; customise colours, typography, and spacing in real time without writing code
  • Dark mode — built-in light/dark themes with system preference detection and a useTheme hook
  • TypeScript — written in strict TypeScript with complete type definitions

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Tiny Design

A friendly, themeable UI component library for React

test status npm version npm downloads minzipped size jsDelivr hits react version license

Documentation  •  Theme Editor  •  Theming Guide


Highlights

  • 80+ components — buttons, forms, data display, navigation, feedback, and more
  • Visual Theme Editor — 20+ built-in presets inspired by popular design systems; customise colours, typography, and spacing in real time without writing code
  • Dark mode — built-in light/dark themes with system preference detection and a useTheme hook
  • TypeScript — written in strict TypeScript with complete type definitions
  • Accessible — follows WAI-ARIA standards with keyboard navigation support
  • Lightweight — tree-shakeable ESM/CJS builds; styles auto-import alongside components
  • i18n — English and Chinese built in
  • AI-ready — llms.txt, .cursorrules, and MCP server for seamless AI-assisted development

Quick Start

pnpm add @tiny-design/react
import { Button, Switch } from '@tiny-design/react';

const App = () => (
  <>
    <Button variant="solid" color="primary">
      Click Me
    </Button>
    <Switch checked />
  </>
);

No separate CSS import needed — styles are bundled with each component and tree-shaken by modern bundlers.

Theming

Visual Theme Editor

The built-in Theme Editor lets you pick from 20+ preset themes or fine-tune individual tokens — colours, typography, border radius, spacing — and see changes live on real components. Export as CSS or SCSS when you're done.

Dark mode

import { useTheme } from '@tiny-design/react';

function ThemeToggle() {
  const { resolvedTheme, toggle } = useTheme();
  return <button onClick={toggle}>{resolvedTheme}</button>;
}

Or set it declaratively:

<html data-tiny-theme="dark">

CSS custom properties

Every visual token is a --ty-* CSS custom property. Override any of them:

:root {
  --ty-color-primary: #3b82f6;
  --ty-color-bg: #fafafa;
  --ty-border-radius: 8px;
}

See the Theming Guide for the full token list and Theme Studio workflow.

Packages

Package Description
@tiny-design/react Core component library
@tiny-design/tokens V2 design tokens and theme runtime
@tiny-design/icons SVG icon components
@tiny-design/cli CLI for the Tiny Design component library
@tiny-design/mcp MCP server for AI assistants to access the component library

Components

Category Count Examples
Foundation 5 Button, Icon, Image, Link, Typography
Layout 7 Grid, Flex, Space, Split, Divider, Aspect Ratio
Navigation 7 Menu, Breadcrumb, Dropdown, Pagination, Steps, Anchor, SpeedDial
Data Display 19 Card, Carousel, Collapse, Tag, Tooltip, Tree, Table
Form 22 Input, Select, DatePicker, TimePicker, Checkbox, Radio, Slider
Feedback 13 Modal, Drawer, Overlay, Message, Notification, Alert, Skeleton
Miscellany 5 ConfigProvider, BackTop, Sticky, Keyboard, CopyToClipboard

Internationalization

import { ConfigProvider, zh_CN } from '@tiny-design/react';

<ConfigProvider locale={zh_CN}>
  <App />
</ConfigProvider>
Locale Language
en_US English (default)
zh_CN 简体中文

Browser Support

Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
last 2 versions last 2 versions last 2 versions last 2 versions

Contributing

pnpm install        # install dependencies
pnpm dev            # start docs dev server
pnpm build          # build all packages
pnpm test           # run tests
pnpm lint           # lint code

License

MIT

Explorar proyectos relacionados

Cargando…