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 66 "@ant-design/icons" : " ^5.4.0" ,
77 "@ant-design/pro-components" : " ^2.8.7" ,
88 "@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 " ,
1212 "@dnd-kit/core" : " ^6.2.0" ,
1313 "@dnd-kit/sortable" : " ^9.0.0" ,
1414 "@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-
91
102export const config = {
11- // 主题配置
12- theme : theme ,
133 // 后台名称
144 title : 'Admin UI' ,
155 // 后台logo
Original file line number Diff line number Diff line change @@ -6,27 +6,34 @@ import {Provider} from "react-redux";
66import store from "@/store/Redux" ;
77import { ConfigProvider } from "antd" ;
88import zhCN from 'antd/es/locale/zh_CN' ;
9- import { theme } from "@/config/theme" ;
109import '@/styles/index.scss' ;
1110import "@/config/register.component" ;
11+ import { CSSUtils , ThemeConfig , ThemeProvider } from "@codingapi/ui-framework" ;
1212
1313const root = ReactDOM . createRoot (
1414 document . getElementById ( 'root' ) as HTMLElement
1515) ;
1616
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+
1725root . render (
1826 < React . StrictMode >
19- < Provider store = { store } >
20-
27+ < ThemeProvider theme = { theme } >
2128 < ConfigProvider
2229 locale = { zhCN }
23- theme = { {
24- ...theme
25- } }
30+ theme = { theme }
2631 >
27- < RoutesProvider />
32+ < Provider store = { store } >
33+ < RoutesProvider />
34+ </ Provider >
2835 </ ConfigProvider >
29- </ Provider >
36+ </ ThemeProvider >
3037 </ React . StrictMode >
3138) ;
3239
Original file line number Diff line number Diff line change 11:root {
2- --primary-color : #4a79d8 ;
2+ --primary-color : #094edc ;
33 --body-background-color : #fdfdfd ;
44
55 --content-font-size-large : 24px ;
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "dependencies" : {
66 "@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 " ,
1010 "@logicflow/core" : " ^2.0.10" ,
1111 "@logicflow/extension" : " ^2.0.14" ,
1212 "@reduxjs/toolkit" : " ^2.2.7" ,
Original file line number Diff line number Diff line change 11:root {
2- --primary-color : #4a79d8 ;
2+ --primary-color : #0f58ea ;
33 --body-background-color : #e6e7ea ;
44
55 --content-font-size-large : 24px ;
1010}
1111
1212
13+ :root:root {
14+ --adm-color-primary : var (--primary-color );
15+ }
16+
17+
1318body {
1419 margin : 0 ;
1520 padding : 0 ;
You can’t perform that action at this time.
0 commit comments