@rdyl-design/react-mobile 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +46 -0
  2. package/package.json +33 -0
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ ## Installation
2
+
3
+ ```bash
4
+ $ npm install @rdyl-design/react-mobile
5
+ # or
6
+ $ yarn add @rdyl-design/react-mobile
7
+ ```
8
+
9
+ ## Getting started
10
+
11
+ 1. 导入样式文件
12
+ ```tsx
13
+ // app.tsx
14
+ import '@rdyl-design/dist/index.less'
15
+ ```
16
+
17
+ 2. color 变量
18
+ ```css
19
+ :root {
20
+ /* primary 主题色 */
21
+ --primary: #08979c;
22
+ --primary-hover: #54afb2;
23
+ --primary-ring: rgba(207, 255, 248, 0.6);
24
+
25
+ /* 背景颜色 */
26
+ --bg: #fff;
27
+ --bg-s: #f8f8f8;
28
+ --bg-hover: #f5f5f5;
29
+ --bg-danger: #ff4d4f;
30
+ --bg-danger-hover: #fff1f0;
31
+
32
+ /* 边框颜色 */
33
+ --border: #eee;
34
+
35
+ /* 字体颜色 */
36
+ --title: #27313d;
37
+ --text: #526680;
38
+ --text-desc: #969696;
39
+ --text-placeholder: rgb(167, 167, 167);
40
+ --text-danger: #a8071a;
41
+ --text-danger-hover: #ff7875;
42
+ --text-warn: #fa8c16;
43
+ --text-warn-hover: #fcfaf2;
44
+ --text-success: #73d13d;
45
+ }
46
+ ```
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@rdyl-design/react-mobile",
3
+ "version": "0.0.1",
4
+ "main": "./dist/index.js",
5
+ "license": "MIT",
6
+ "types": "./types",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "types",
13
+ "README.md"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsc && copyfiles -u 1 src/*.less dist/*.less dist && copyfiles -u 1 src/**/*.less dist/**/*.less dist && copyfiles -u 1 src/**/*.d.ts src/*.d.ts types && rm -rf dist/stories && rm -rf types/stories"
17
+ },
18
+ "devDependencies": {
19
+ "@types/react": "^18.3.13",
20
+ "@types/react-dom": "^18.3.1",
21
+ "copyfiles": "^2.4.1",
22
+ "react": "^18.3.1",
23
+ "react-dom": "^18.3.1",
24
+ "typescript": "^5.6.3"
25
+ },
26
+ "peerDependencies": {
27
+ "react": ">=18.0.0",
28
+ "react-dom": ">=18.0.0"
29
+ },
30
+ "dependencies": {
31
+ "classnames": "^2.5.1"
32
+ }
33
+ }