create-antd-skin 1.2.9 → 1.3.0
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/README.md +8 -7
- package/bin/skin.js +1 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,13 +12,14 @@ npx create-antd-skin@latest parkWavesDark
|
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### Available Skins
|
|
15
|
-
- `parkWavesLight`
|
|
16
|
-
- `parkWavesDark`
|
|
17
|
-
- `parkWavesNone`
|
|
18
|
-
- `parkWavesSider`
|
|
19
|
-
- `blueSkyDark`
|
|
20
|
-
- `blueSkyLight`
|
|
21
|
-
- `redWavesLight`
|
|
15
|
+
- `parkWavesLight` - Light theme, featuring a purple color palette and a background of flowing, ribbon-like waves;
|
|
16
|
+
- `parkWavesDark` - Dark theme, featuring a purple color palette and a background of flowing, ribbon-like waves;
|
|
17
|
+
- `parkWavesNone` - Dark theme, featuring a black color palette and a sidebar layout;
|
|
18
|
+
- `parkWavesSider` - Dark theme, featuring a purple color palette, a background of flowing, ribbon-like waves, and a sidebar layout;
|
|
19
|
+
- `blueSkyDark` - Dark theme, featuring a blue color palette and a background of clouds in the sky;
|
|
20
|
+
- `blueSkyLight` - Light theme, featuring a blue color palette and a background of clouds in the sky;
|
|
21
|
+
- `redWavesLight` - Light theme, featuring a red color palette and a background of snowflake-patterned light waves;
|
|
22
|
+
- `greenWoodsLight` - Light theme, featuring a deep green color palette, with moonlight and a stag;
|
|
22
23
|
|
|
23
24
|
## Related Links
|
|
24
25
|
|
package/bin/skin.js
CHANGED
|
@@ -94,10 +94,7 @@ function toCamelCase(str) {
|
|
|
94
94
|
// .replace(/^[a-z]/, s => s.toUpperCase());
|
|
95
95
|
// }
|
|
96
96
|
function toKebabCase(str) {
|
|
97
|
-
return str
|
|
98
|
-
.replace(/([A-Z])/g, '-$1')
|
|
99
|
-
.toLowerCase()
|
|
100
|
-
.replace(/^-/, ''); // 去掉开头可能多出的横线
|
|
97
|
+
return str.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
101
98
|
}
|
|
102
99
|
async function installSkin(skinName) {
|
|
103
100
|
const cwd = process.cwd();
|