File tree Expand file tree Collapse file tree 6 files changed +28
-26
lines changed Expand file tree Collapse file tree 6 files changed +28
-26
lines changed Original file line number Diff line number Diff line change 6
6
"@ant-design/icons" : " ^5.4.0" ,
7
7
"@ant-design/pro-components" : " ^2.8.7" ,
8
8
"@babel/standalone" : " ^7.25.6" ,
9
- "@codingapi/flow-pc" : " ^0.0.37 " ,
10
- "@codingapi/form-pc" : " ^0.0.37 " ,
11
- "@codingapi/ui-framework" : " ^0.0.37 " ,
9
+ "@codingapi/flow-pc" : " ^0.0.38 " ,
10
+ "@codingapi/form-pc" : " ^0.0.38 " ,
11
+ "@codingapi/ui-framework" : " ^0.0.38 " ,
12
12
"@dnd-kit/core" : " ^6.2.0" ,
13
13
"@dnd-kit/sortable" : " ^9.0.0" ,
14
14
"@handsontable/react-wrapper" : " ^15.0.0" ,
Original file line number Diff line number Diff line change 1
- import { ThemeConfig } from "antd" ;
2
-
3
- export const theme = {
4
- token : {
5
- colorPrimary : '#4a79d8' ,
6
- }
7
- } as ThemeConfig ;
8
-
9
1
10
2
export const config = {
11
- // 主题配置
12
- theme : theme ,
13
3
// 后台名称
14
4
title : 'Admin UI' ,
15
5
// 后台logo
Original file line number Diff line number Diff line change @@ -6,27 +6,34 @@ import {Provider} from "react-redux";
6
6
import store from "@/store/Redux" ;
7
7
import { ConfigProvider } from "antd" ;
8
8
import zhCN from 'antd/es/locale/zh_CN' ;
9
- import { theme } from "@/config/theme" ;
10
9
import '@/styles/index.scss' ;
11
10
import "@/config/register.component" ;
11
+ import { CSSUtils , ThemeConfig , ThemeProvider } from "@codingapi/ui-framework" ;
12
12
13
13
const root = ReactDOM . createRoot (
14
14
document . getElementById ( 'root' ) as HTMLElement
15
15
) ;
16
16
17
+ export const theme = {
18
+ token : {
19
+ colorPrimary : CSSUtils . getRootVariable ( '--primary-color' ) ,
20
+ contentFontSize : CSSUtils . getRootVariable ( '--content-font-size' ) ,
21
+ }
22
+ } as ThemeConfig ;
23
+
24
+
17
25
root . render (
18
26
< React . StrictMode >
19
- < Provider store = { store } >
20
-
27
+ < ThemeProvider theme = { theme } >
21
28
< ConfigProvider
22
29
locale = { zhCN }
23
- theme = { {
24
- ...theme
25
- } }
30
+ theme = { theme }
26
31
>
27
- < RoutesProvider />
32
+ < Provider store = { store } >
33
+ < RoutesProvider />
34
+ </ Provider >
28
35
</ ConfigProvider >
29
- </ Provider >
36
+ </ ThemeProvider >
30
37
</ React . StrictMode >
31
38
) ;
32
39
Original file line number Diff line number Diff line change 1
1
:root {
2
- --primary-color : #4a79d8 ;
2
+ --primary-color : #094edc ;
3
3
--body-background-color : #fdfdfd ;
4
4
5
5
--content-font-size-large : 24px ;
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"@babel/standalone" : " ^7.25.6" ,
7
- "@codingapi/flow-mobile" : " ^0.0.37 " ,
8
- "@codingapi/form-mobile" : " ^0.0.37 " ,
9
- "@codingapi/ui-framework" : " ^0.0.37 " ,
7
+ "@codingapi/flow-mobile" : " ^0.0.38 " ,
8
+ "@codingapi/form-mobile" : " ^0.0.38 " ,
9
+ "@codingapi/ui-framework" : " ^0.0.38 " ,
10
10
"@logicflow/core" : " ^2.0.10" ,
11
11
"@logicflow/extension" : " ^2.0.14" ,
12
12
"@reduxjs/toolkit" : " ^2.2.7" ,
Original file line number Diff line number Diff line change 1
1
:root {
2
- --primary-color : #4a79d8 ;
2
+ --primary-color : #0f58ea ;
3
3
--body-background-color : #e6e7ea ;
4
4
5
5
--content-font-size-large : 24px ;
10
10
}
11
11
12
12
13
+ :root:root {
14
+ --adm-color-primary : var (--primary-color );
15
+ }
16
+
17
+
13
18
body {
14
19
margin : 0 ;
15
20
padding : 0 ;
You can’t perform that action at this time.
0 commit comments