diff --git a/README.md b/README.md index 6820176..42bdf84 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ If it is necessary to modify the [antd5 theme](https://ant.design/docs/react/cus // default.scss :root { --color-primary: #00b96b; // -> colorPrimary: #00b96b - --border-radius: 4px; // -> borderRadius: 4px + --border-radius: 4px; // -> borderRadius: 4 } ``` @@ -121,11 +121,11 @@ If it is necessary to modify the [antd5 theme](https://ant.design/docs/react/cus "tokens": { "dark": { "colorPrimary": "#000", - "borderRadius": "4px", + "borderRadius": "4", }, "default": { "colorPrimary": "#00b96b", - "borderRadius": "4px" + "borderRadius": "4" } }, "vars": { @@ -150,51 +150,6 @@ css 变量在切换主题时自动注入到 `head` 下,保证 [antd@5.x](https ``` -警告⚠️: 主题文夹下文件中仅支持 css 变量 - - - ## Api [gin_serve api](https://github.com/freeshineit/gin_serve) diff --git a/scripts/sass-to-json.ts b/scripts/sass-to-json.ts index dade500..5fb206e 100644 --- a/scripts/sass-to-json.ts +++ b/scripts/sass-to-json.ts @@ -14,12 +14,12 @@ import { lowerCamel } from '@skax/camel'; * ```scss * // -> colorPrimary: #000 * --color-primary: #000; - * // -> borderRadius: 4px + * // -> borderRadius: 4 * --border-radius: 4px; * ``` * * ```ts - * sassVar2JSON() // -> {"colorPrimary": "#00b96b, borderRadius: '2px'} + * sassVar2JSON() // -> {"colorPrimary": "#00b96b", borderRadius: 4} * ``` * * @returns {Object} diff --git a/src/pages/home/home.module.scss b/src/pages/home/home.module.scss index 5155273..083e29d 100644 --- a/src/pages/home/home.module.scss +++ b/src/pages/home/home.module.scss @@ -24,6 +24,12 @@ } } +.logoWrapper { + a { + display: inline-block; + } +} + .logo { height: 6em; padding: 1.5em; diff --git a/src/pages/home/home.tsx b/src/pages/home/home.tsx index 5e30399..025c7da 100644 --- a/src/pages/home/home.tsx +++ b/src/pages/home/home.tsx @@ -17,11 +17,10 @@ const Home = () => { return (
-
+
Vite logo