create-antd-skin 1.2.8 → 1.2.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-antd-skin",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "this is skin-cli for @adminui-dev/antd-layout",
5
5
  "main": "index.js",
6
6
  "author": "zhouwenqi",
@@ -29,7 +29,6 @@ const skin:ThemeSkin = {
29
29
  "skinType":"system",
30
30
  "author":"adminui.dev",
31
31
  "description":"Dark-themed skin with a blue sky",
32
- "backgroundColor":"#090a0b",
33
32
  "layoutConfig":{
34
33
  "theme":"dark",
35
34
  "primaryColor":"#32a7da",
@@ -29,7 +29,6 @@ const skin:ThemeSkin = {
29
29
  "skinType":"system",
30
30
  "author":"adminui.dev",
31
31
  "description":"Bright blue sky themed skin",
32
- "backgroundColor":"#fbfbfb",
33
32
  "layoutConfig":{
34
33
  "theme":"light",
35
34
  "primaryColor":"#4dbae9",
@@ -0,0 +1,48 @@
1
+ import { LazyImage } from "@adminui-dev/antd-layout"
2
+ import type {ThemeSkin} from "@adminui-dev/antd-layout"
3
+
4
+ const skinBgStyles:React.CSSProperties = {
5
+ position:"absolute",
6
+ backgroundColor:"#d0e1db",
7
+ inset:"0",
8
+ }
9
+ const imgStyles:React.CSSProperties = {
10
+ position:"absolute",
11
+ transition:"width 0.3s, height 0.3s, opaticy 0.3s"
12
+ }
13
+ const ImageBackground=()=>{
14
+ return (
15
+ <div style={skinBgStyles}>
16
+ <LazyImage style={{...imgStyles,...imgStyles,top:"0px",right:"0px"}} src="/images/skins/green-woods-light/top-right-bg.webp" alt="top-right-bg.webp" />
17
+ <LazyImage style={{...imgStyles,...imgStyles,bottom:"0px",left:"0px"}} src="/images/skins/green-woods-light/bottom-left-bg.webp" alt="bottom-left-bg.webp" />
18
+ <LazyImage style={{...imgStyles,...imgStyles,top:"-10px",left:"20px"}} src="/images/skins/green-woods-light/top-left-bg.webp" alt="top-left-bg.webp" />
19
+ </div>
20
+ )
21
+ }
22
+ const skin:ThemeSkin = {
23
+ "name":"greenWoodsLight",
24
+ "label":"GreenWoodsLight",
25
+ "author":"adminui.dev",
26
+ "description":"Deep green forest distant skin with stag and moonlight",
27
+ "skinType":"system",
28
+ "layoutConfig":{
29
+ "theme":"light",
30
+ "primaryColor":"#27614a",
31
+ "colorLink":"#2d6b52",
32
+ "noneHeader":false,
33
+ "hideBorder":false,
34
+ "asideBlur":true,
35
+ "headerBlur":true,
36
+ "largeBrand":true,
37
+ "containerBlur":true,
38
+ "menuItemSelectColor":"primary",
39
+ },
40
+ "antdToken":{
41
+ "colorBgBase": "#eff8f4",
42
+ "colorTextBase": "#131414"
43
+ },
44
+ "logo":"/images/skins/green-woods-light/app-logo-light.webp",
45
+ "icon":"/images/skins/green-woods-light/skin-icon-light.webp",
46
+ "backgroundContent":<ImageBackground />
47
+ }
48
+ export default skin