欢迎使用 unibest
unibest 是最好的 uniapp 开发模板
```
--------------------------------
### Calculate rpx for 640px design width
Source: https://unibest.tech/base/4-style
Formula for converting a 100px element from a 640px design draft to rpx.
```text
750 * 100 / 640
```
--------------------------------
### Calculate rpx for 375px design width
Source: https://unibest.tech/base/4-style
Formula for converting a 200px element from a 375px design draft to rpx.
```text
750 * 200 / 375
```
--------------------------------
### 使用生成的 TS 类型
Source: https://unibest.tech/base/17-generate
引入自动生成的类型定义文件以确保数据结构的一致性。
```ts
import { type Category } from '@/service/app';
const category: Category = {
id: 1,
name: '张三',
};
```
--------------------------------
### 使用 vite-svg-loader 导入 SVG
Source: https://unibest.tech/base/6-svg
利用 vite-svg-loader 插件以 URL、Raw 或 Component 形式导入 SVG。
```javascript
import iconUrl from './my-icon.svg?url'
// 'data:image/svg+xml...'
```
```html