Skip to content

Let's use AI to Earn!

fix: 主题色注释添加

gaoSird43c6abc87c4
diff --git a/src/main.tsx b/src/main.tsx
index bfa858ac..65322995 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -18,6 +18,11 @@ ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
const colors = generate('#a66ae4');
const root = document.documentElement;
for (let i = 0; i < colors.length; i++) {
+ /**
+ * 主题色:
+ * --colorPrimary1 ~~ --colorPrimary10
+ * 由浅到深
+ */
root.style.setProperty(`--colorPrimary${i + 1}`, colors[i]);
}