Skip to content

Commit 8e49b63

Browse files
committed
Refactor dark mode color variables in var.css
1 parent a786f31 commit 8e49b63

File tree

1 file changed

+18
-64
lines changed

1 file changed

+18
-64
lines changed

packages/comment-widget/var.css

Lines changed: 18 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,24 @@
33
[data-color-scheme="auto"] {
44
color-scheme: dark;
55

6-
/* --halo-comment-widget-base-color: #ffffff;
7-
--halo-comment-widget-base-info-color: #64748b;
8-
--halo-comment-widget-component-form-input-bg-color: #475569;
9-
--halo-comment-widget-component-form-input-color: #ffffff;
10-
--halo-comment-widget-component-form-input-border-color: #495056;
11-
--halo-comment-widget-component-form-input-border-color-focus: #65a3ff;
12-
--halo-comment-widget-component-form-input-box-shadow-focus: 0 0 0 0.15em
13-
#1c3966;
14-
--halo-comment-widget-component-form-button-login-bg-color: #334155;
15-
--halo-comment-widget-component-form-button-login-bg-color-hover: #475569;
16-
--halo-comment-widget-component-form-button-login-border-color: #475569;
17-
--halo-comment-widget-component-form-button-submit-border-color: #475569;
18-
--halo-comment-widget-component-form-button-submit-border-color-hover: #64748b;
19-
--halo-comment-widget-component-form-button-emoji-color: #cbd5e1;
6+
--halo-cw-primary-1-color: #059669;
7+
--halo-cw-primary-2-color: #047857;
8+
--halo-cw-primary-3-color: #065f46;
209

21-
--halo-comment-widget-component-comment-item-action-bg-color-hover: #475569;
22-
--halo-comment-widget-component-comment-item-action-color-hover: #94a3b8;
10+
--halo-cw-text-1-color: #f9fafb;
11+
--halo-cw-text-2-color: #e5e7eb;
12+
--halo-cw-text-3-color: #9ca3af;
2313

24-
--halo-comment-widget-component-pagination-button-bg-color-hover: #475569;
25-
--halo-comment-widget-component-pagination-button-bg-color-active: #475569;
26-
--halo-comment-widget-component-pagination-button-border-color-active: #475569;
27-
*/
14+
--halo-cw-muted-1-color: #4b5563;
15+
--halo-cw-muted-2-color: #374151;
16+
--halo-cw-muted-3-color: #1f2937;
2817

2918
--halo-cw-emoji-picker-rgb-color: 222, 222, 221;
3019
--halo-cw-emoji-picker-rgb-accent: 58, 130, 247;
3120
--halo-cw-emoji-picker-rgb-background: 21, 22, 23;
3221
--halo-cw-emoji-picker-rgb-input: 0, 0, 0;
3322
--halo-cw-emoji-picker-color-border: rgba(255, 255, 255, 0.1);
3423
--halo-cw-emoji-picker-color-border-over: rgba(255, 255, 255, 0.2);
35-
36-
--halo-cw-primary-1-color: #059669; /* green-600 */
37-
--halo-cw-primary-2-color: #047857; /* green-700 */
38-
--halo-cw-primary-3-color: #065f46; /* green-800 */
39-
40-
--halo-cw-text-1-color: #f9fafb; /* gray-50 */
41-
--halo-cw-text-2-color: #e5e7eb; /* gray-200 */
42-
--halo-cw-text-3-color: #9ca3af; /* gray-400 */
43-
44-
--halo-cw-muted-1-color: #4b5563; /* gray-600 */
45-
--halo-cw-muted-2-color: #374151; /* gray-700 */
46-
--halo-cw-muted-3-color: #1f2937; /* gray-800 */
4724
}
4825
}
4926

@@ -52,45 +29,22 @@
5229
[data-color-scheme="dark"] {
5330
color-scheme: dark;
5431

55-
/* --halo-comment-widget-base-color: #ffffff;
56-
--halo-comment-widget-base-info-color: #64748b;
57-
--halo-comment-widget-component-form-input-bg-color: #475569;
58-
--halo-comment-widget-component-form-input-color: #ffffff;
59-
--halo-comment-widget-component-form-input-border-color: #495056;
60-
--halo-comment-widget-component-form-input-border-color-focus: #65a3ff;
61-
--halo-comment-widget-component-form-input-box-shadow-focus: 0 0 0 0.15em
62-
#1c3966;
63-
--halo-comment-widget-component-form-button-login-bg-color: #334155;
64-
--halo-comment-widget-component-form-button-login-bg-color-hover: #475569;
65-
--halo-comment-widget-component-form-button-login-border-color: #475569;
66-
--halo-comment-widget-component-form-button-submit-border-color: #475569;
67-
--halo-comment-widget-component-form-button-submit-border-color-hover: #64748b;
68-
--halo-comment-widget-component-form-button-emoji-color: #cbd5e1;
32+
--halo-cw-primary-1-color: #059669;
33+
--halo-cw-primary-2-color: #047857;
34+
--halo-cw-primary-3-color: #065f46;
6935

70-
--halo-comment-widget-component-comment-item-action-bg-color-hover: #475569;
71-
--halo-comment-widget-component-comment-item-action-color-hover: #94a3b8;
36+
--halo-cw-text-1-color: #f9fafb;
37+
--halo-cw-text-2-color: #e2e8f0;
38+
--halo-cw-text-3-color: #94a3b8;
7239

73-
--halo-comment-widget-component-pagination-button-bg-color-hover: #475569;
74-
--halo-comment-widget-component-pagination-button-bg-color-active: #475569;
75-
--halo-comment-widget-component-pagination-button-border-color-active: #475569;
76-
*/
40+
--halo-cw-muted-1-color: #64748b;
41+
--halo-cw-muted-2-color: #475569;
42+
--halo-cw-muted-3-color: #334155;
7743

7844
--halo-cw-emoji-picker-rgb-color: 222, 222, 221;
7945
--halo-cw-emoji-picker-rgb-accent: 58, 130, 247;
8046
--halo-cw-emoji-picker-rgb-background: 21, 22, 23;
8147
--halo-cw-emoji-picker-rgb-input: 0, 0, 0;
8248
--halo-cw-emoji-picker-color-border: rgba(255, 255, 255, 0.1);
8349
--halo-cw-emoji-picker-color-border-over: rgba(255, 255, 255, 0.2);
84-
85-
--halo-cw-primary-1-color: #059669; /* green-600 */
86-
--halo-cw-primary-2-color: #047857; /* green-700 */
87-
--halo-cw-primary-3-color: #065f46; /* green-800 */
88-
89-
--halo-cw-text-1-color: #f9fafb; /* gray-50 */
90-
--halo-cw-text-2-color: #e2e8f0; /* gray-200 */
91-
--halo-cw-text-3-color: #94a3b8; /* gray-400 */
92-
93-
--halo-cw-muted-1-color: #64748b; /* gray-600 */
94-
--halo-cw-muted-2-color: #475569; /* gray-700 */
95-
--halo-cw-muted-3-color: #334155; /* gray-800 */
9650
}

0 commit comments

Comments
 (0)