Skip to content

Commit 17dd9ab

Browse files
committed
chore: rename project from tiny-ui to tiny-design
Update all references including package names, GitHub repo URLs, website domain, GH Pages base path, npm badges, import statements, and documentation across 179 files.
1 parent 1f7c1bc commit 17dd9ab

179 files changed

Lines changed: 235 additions & 235 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
5-
{ "repo": "wangdicoder/tiny-ui" }
5+
{ "repo": "wangdicoder/tiny-design" }
66
],
77
"commit": false,
88
"fixed": [],

.github/workflows/deploy-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: pnpm install --frozen-lockfile
3434

3535
- name: Build docs site
36-
run: pnpm --filter @tiny-design/docs build -- --base /tiny-ui/
36+
run: pnpm --filter @tiny-design/docs build -- --base /tiny-design/
3737

3838
- name: Copy 404.html for SPA routing
3939
run: cp apps/docs/build/index.html apps/docs/build/404.html

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Thanks for your interest in contributing to Tiny UI! This guide will help you ge
1313

1414
```bash
1515
# Clone the repo
16-
git clone https://github.com/wangdicoder/tiny-ui.git
17-
cd tiny-ui
16+
git clone https://github.com/wangdicoder/tiny-design.git
17+
cd tiny-design
1818

1919
# Install dependencies
2020
pnpm install
@@ -32,7 +32,7 @@ pnpm build
3232
## Project Structure
3333

3434
```
35-
tiny-ui/
35+
tiny-design/
3636
├── packages/react/ # @tiny-design/react — component library
3737
│ ├── src/ # Component source code
3838
│ ├── scripts/ # Build scripts
@@ -133,7 +133,7 @@ This creates a markdown file in `.changeset/` — commit it with your PR. When t
133133

134134
## Reporting Bugs
135135

136-
Use [GitHub Issues](https://github.com/wangdicoder/tiny-ui/issues) with the bug report template. Include:
136+
Use [GitHub Issues](https://github.com/wangdicoder/tiny-design/issues) with the bug report template. Include:
137137
- Steps to reproduce
138138
- Expected vs actual behavior
139139
- Browser and OS information

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Three workflows triggered on push/PR to `master`:
3434

3535
1. **CI** (`ci.yml`) — install → lint → build → test with coverage
3636
2. **Release** (`release.yml`) — uses `changesets/action` to either create a "Version Packages" PR or publish to npm. The docs package is excluded from publishing.
37-
3. **Deploy Site** (`deploy-site.yml`) — builds docs with `--base /tiny-ui/`, deploys to GitHub Pages with SPA routing support.
37+
3. **Deploy Site** (`deploy-site.yml`) — builds docs with `--base /tiny-design/`, deploys to GitHub Pages with SPA routing support.
3838

3939
## Release Flow
4040

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<p align="center">
2-
<a href="https://tiny-ui.dev">
3-
<img width="200" src="https://github.com/wangdicoder/tiny-ui/blob/master/site/src/assets/logo/logo.svg">
2+
<a href="https://tiny-design.dev">
3+
<img width="200" src="https://github.com/wangdicoder/tiny-design/blob/master/site/src/assets/logo/logo.svg">
44
</a>
55
</p>
66

77
<h1 align="center">Tiny UI</h1>
88
<p align="center">A friendly UI component set for React</p>
99

1010
<p align="center">
11-
<a href="https://www.npmjs.com/package/tiny-ui">
12-
<img src="https://img.shields.io/npm/v/tiny-ui.svg?style=flat-square" alt="npm version"/>
11+
<a href="https://www.npmjs.com/package/tiny-design">
12+
<img src="https://img.shields.io/npm/v/tiny-design.svg?style=flat-square" alt="npm version"/>
1313
</a>
14-
<a href="https://www.npmjs.com/package/tiny-ui">
15-
<img src="https://img.shields.io/npm/dm/tiny-ui.svg?style=flat-square" alt="npm downloads"/>
14+
<a href="https://www.npmjs.com/package/tiny-design">
15+
<img src="https://img.shields.io/npm/dm/tiny-design.svg?style=flat-square" alt="npm downloads"/>
1616
</a>
17-
<a href="https://bundlephobia.com/package/tiny-ui">
18-
<img src="https://img.shields.io/bundlephobia/minzip/tiny-ui.svg?style=flat-square" alt="bundle size"/>
17+
<a href="https://bundlephobia.com/package/tiny-design">
18+
<img src="https://img.shields.io/bundlephobia/minzip/tiny-design.svg?style=flat-square" alt="bundle size"/>
1919
</a>
2020
<a href="https://react.dev">
2121
<img src="https://img.shields.io/static/v1?label=react&message=%3E=18&color=61dafb&style=flat-square" alt="react version"/>
2222
</a>
23-
<a href="https://github.com/wangdicoder/tiny-ui/blob/master/LICENSE">
24-
<img src="https://img.shields.io/npm/l/tiny-ui.svg?style=flat-square" alt="license"/>
23+
<a href="https://github.com/wangdicoder/tiny-design/blob/master/LICENSE">
24+
<img src="https://img.shields.io/npm/l/tiny-design.svg?style=flat-square" alt="license"/>
2525
</a>
2626
</p>
2727

@@ -54,16 +54,16 @@
5454

5555
```bash
5656
# npm
57-
npm install tiny-ui
57+
npm install tiny-design
5858

5959
# yarn
60-
yarn add tiny-ui
60+
yarn add tiny-design
6161
```
6262

6363
## Quick Start
6464

6565
```jsx
66-
import { Button, Switch } from 'tiny-ui';
66+
import { Button, Switch } from 'tiny-design';
6767

6868
const App = () => (
6969
<>
@@ -80,7 +80,7 @@ Styles are automatically imported alongside each component — no separate CSS i
8080
### Dark mode
8181

8282
```jsx
83-
import { ConfigProvider } from 'tiny-ui';
83+
import { ConfigProvider } from 'tiny-design';
8484

8585
<ConfigProvider theme="dark">
8686
<App />
@@ -93,18 +93,18 @@ Override SCSS variables to customise colours, borders, fonts, and more:
9393

9494
```scss
9595
$primary-color: #007bff;
96-
$font-path: '~tiny-ui/themes/fonts';
97-
@import '~tiny-ui/themes/index.scss';
96+
$font-path: '~tiny-design/themes/fonts';
97+
@import '~tiny-design/themes/index.scss';
9898
```
9999

100-
See the [Theme Customisation Guide](https://tiny-ui.dev/guide/customise-theme) for details.
100+
See the [Theme Customisation Guide](https://tiny-design.dev/guide/customise-theme) for details.
101101

102102
## Internationalization
103103

104104
Built-in locale support for English and Chinese. Set locale via `ConfigProvider` or `IntlProvider`:
105105

106106
```jsx
107-
import { ConfigProvider, zh_CN } from 'tiny-ui';
107+
import { ConfigProvider, zh_CN } from 'tiny-design';
108108

109109
<ConfigProvider locale={zh_CN}>
110110
<App />
@@ -126,10 +126,10 @@ Supports all modern browsers. IE is **not** supported.
126126

127127
## Links
128128

129-
- [Documentation](https://tiny-ui.dev)
130-
- [Changelog](https://github.com/wangdicoder/tiny-ui/blob/master/CHANGELOG.md)
131-
- [Issues](https://github.com/wangdicoder/tiny-ui/issues)
129+
- [Documentation](https://tiny-design.dev)
130+
- [Changelog](https://github.com/wangdicoder/tiny-design/blob/master/CHANGELOG.md)
131+
- [Issues](https://github.com/wangdicoder/tiny-design/issues)
132132

133133
## License
134134

135-
[MIT](https://github.com/wangdicoder/tiny-ui/blob/master/LICENSE)
135+
[MIT](https://github.com/wangdicoder/tiny-design/blob/master/LICENSE)

apps/docs/guides/customise-theme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Tiny UI ships with built-in light and dark themes. Light mode is the default. To
2323
You can also use the `useTheme` hook to switch themes at runtime:
2424

2525
```tsx
26-
import { useTheme } from 'tiny-ui';
26+
import { useTheme } from 'tiny-design';
2727

2828
const App = () => {
2929
const { mode, setMode, toggle } = useTheme();
@@ -44,8 +44,8 @@ Every colour, shadow, and visual state is exposed as a `--ty-*` CSS custom prope
4444
```
4545

4646
The full list of tokens can be found in the source:
47-
- [Light theme tokens](https://github.com/wangdicoder/tiny-ui/blob/master/components/style/themes/_light.scss)
48-
- [Dark theme tokens](https://github.com/wangdicoder/tiny-ui/blob/master/components/style/themes/_dark.scss)
47+
- [Light theme tokens](https://github.com/wangdicoder/tiny-design/blob/master/components/style/themes/_light.scss)
48+
- [Dark theme tokens](https://github.com/wangdicoder/tiny-design/blob/master/components/style/themes/_dark.scss)
4949

5050
## SCSS variables
5151

@@ -70,7 +70,7 @@ $border-radius: 4px;
7070
$font-size-base: 14px;
7171

7272
// Import Tiny UI styles (applies your overrides via !default)
73-
@use "tiny-ui/es/style/index" as *;
73+
@use "tiny-design/es/style/index" as *;
7474
```
7575

7676
### 3. Import in your entry file
@@ -79,7 +79,7 @@ $font-size-base: 14px;
7979
import './theme-variables.scss';
8080
```
8181

82-
The full list of SCSS variables can be found in [_variables.scss](https://github.com/wangdicoder/tiny-ui/blob/master/components/style/_variables.scss).
82+
The full list of SCSS variables can be found in [_variables.scss](https://github.com/wangdicoder/tiny-design/blob/master/components/style/_variables.scss).
8383

8484
Some commonly overridden variables:
8585

apps/docs/guides/customise-theme.zh_CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Tiny UI 内置亮色和暗色主题。默认为亮色模式。要启用暗色模
2323
也可以使用 `useTheme` hook 在运行时切换主题:
2424

2525
```tsx
26-
import { useTheme } from 'tiny-ui';
26+
import { useTheme } from 'tiny-design';
2727

2828
const App = () => {
2929
const { mode, setMode, toggle } = useTheme();
@@ -44,8 +44,8 @@ const App = () => {
4444
```
4545

4646
完整的令牌列表请参考源码:
47-
- [亮色主题令牌](https://github.com/wangdicoder/tiny-ui/blob/master/components/style/themes/_light.scss)
48-
- [暗色主题令牌](https://github.com/wangdicoder/tiny-ui/blob/master/components/style/themes/_dark.scss)
47+
- [亮色主题令牌](https://github.com/wangdicoder/tiny-design/blob/master/components/style/themes/_light.scss)
48+
- [暗色主题令牌](https://github.com/wangdicoder/tiny-design/blob/master/components/style/themes/_dark.scss)
4949

5050
## SCSS 变量
5151

@@ -70,7 +70,7 @@ $border-radius: 4px;
7070
$font-size-base: 14px;
7171

7272
// 引入 Tiny UI 样式(通过 !default 应用你的覆盖值)
73-
@use "tiny-ui/es/style/index" as *;
73+
@use "tiny-design/es/style/index" as *;
7474
```
7575

7676
### 3. 在入口文件中引入
@@ -79,7 +79,7 @@ $font-size-base: 14px;
7979
import './theme-variables.scss';
8080
```
8181

82-
完整的 SCSS 变量列表请参考 [_variables.scss](https://github.com/wangdicoder/tiny-ui/blob/master/components/style/_variables.scss)
82+
完整的 SCSS 变量列表请参考 [_variables.scss](https://github.com/wangdicoder/tiny-design/blob/master/components/style/_variables.scss)
8383

8484
以下是一些常用的可覆盖变量:
8585

apps/docs/guides/get-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
You first need to install and configure the `Node.js` environment properly locally.
88

99
```bash
10-
$ npm install tiny-ui
10+
$ npm install tiny-design
1111
```
1212
<br />
1313

1414
```bash
15-
$ yarn add tiny-ui
15+
$ yarn add tiny-design
1616
```
1717
<br />
1818

1919
```bash
20-
$ pnpm add tiny-ui
20+
$ pnpm add tiny-design
2121
```
2222

2323
## Usage
@@ -27,7 +27,7 @@ The following is a simple example of using a default button component.
2727
```jsx
2828
import React from 'react';
2929
import { createRoot } from 'react-dom/client';
30-
import { Button } from 'tiny-ui';
30+
import { Button } from 'tiny-design';
3131

3232
const App = () => {
3333
return <Button>Hello World</Button>;

apps/docs/guides/get-started.zh_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
你需要先在本地正确安装和配置好 `Node.js` 环境。
88

99
```bash
10-
$ npm install tiny-ui
10+
$ npm install tiny-design
1111
```
1212
<br />
1313

1414
```bash
15-
$ yarn add tiny-ui
15+
$ yarn add tiny-design
1616
```
1717
<br />
1818

1919
```bash
20-
$ pnpm add tiny-ui
20+
$ pnpm add tiny-design
2121
```
2222

2323
## 引入方式
@@ -27,7 +27,7 @@ $ pnpm add tiny-ui
2727
```jsx
2828
import React from 'react';
2929
import { createRoot } from 'react-dom/client';
30-
import { Button } from 'tiny-ui';
30+
import { Button } from 'tiny-design';
3131

3232
const App = () => {
3333
return <Button>Hello World</Button>;

apps/docs/guides/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Tiny UI is a set of UI components and widgets built on React.js **18+**, which m
1212

1313
## Version
1414

15-
- Latest [![npm](https://img.shields.io/npm/v/tiny-ui.svg?style=flat-square)](https://www.npmjs.com/package/tiny-ui)
16-
- Download [![npm](https://img.shields.io/npm/dm/tiny-ui.svg?style=flat-square)](https://www.npmjs.com/package/tiny-ui)
15+
- Latest [![npm](https://img.shields.io/npm/v/tiny-design.svg?style=flat-square)](https://www.npmjs.com/package/tiny-design)
16+
- Download [![npm](https://img.shields.io/npm/dm/tiny-design.svg?style=flat-square)](https://www.npmjs.com/package/tiny-design)
1717

1818
## Environment Support
1919

0 commit comments

Comments
 (0)