Skip to content

Commit 68a9edd

Browse files
committed
style: add colors on class of the themes
1 parent 9b20894 commit 68a9edd

File tree

1 file changed

+64
-7
lines changed

1 file changed

+64
-7
lines changed

styles/globals.css

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
--md-cyan: #3defe9;
1111
--md-invalid: #ffffff;
1212
--md-ivory: #abb2bf;
13-
--md-stone: #7d8799;
13+
--md-stone: #5353531f;
1414
--md-malibu: #2c6fc2;
1515
--md-sage: #6bd968;
1616
--md-whiskey: #fecc1b;
@@ -28,9 +28,9 @@
2828
--md-bg-2: var(--md-invalid);
2929
--md-bg-3: hsla(0, 0%, 94%);
3030
--md-bg-4: hsl(0, 0%, 99%);
31-
--md-input: #3c3c3c1f;
3231
--md-btn: var(--md-ivory);
33-
--md-btn-hover: var(--md-stone);
32+
--md-btn-hover: #3c3c3c1f;
33+
--md-input: #3c3c3c1f;
3434
--md-bg-blur: #f6f8fa73;
3535
--md-bg-editor: var(--md-white);
3636
--md-bg-preview: var(--md-white);
@@ -43,7 +43,6 @@
4343
--md-theme: light;
4444
--md-text-selection: var(--md-divider-light-1);
4545
}
46-
4746
/* :root dark */
4847
[data-theme='dark'] {
4948
--md-bg-1: #1e1e1e;
@@ -52,20 +51,61 @@
5251
--md-bg-4: #1e1e1e;
5352
--md-input: #1e1e1e;
5453
--md-btn: var(--md-tooltipBackground);
55-
--md-btn-hover: var(--md-highlightBackground);
54+
--md-btn-hover: #303030;
5655
--md-bg-editor: var(--md-background);
5756
--md-bg-preview: #2c2c2c;
5857
--md-shadow: #000000;
5958
--md-bg-blur: #111111a3;
6059
--md-divider-light-1: #5454547a;
61-
--md-divider-light-2: #aaaaaabd;
60+
--md-divider-light-2: #7777777a;
6261
--md-text-1: #FFFFFFDE;
6362
--md-text-2: #EBEBEB99;
6463
--md-text-3: #00a0e9;
6564
--md-text-selection: var(--md-selection);
6665
--md-theme: dark;
6766
}
6867

68+
.atom-one-dark:root {
69+
--md-bg-3: #39424e;
70+
--md-input: #282c34;
71+
--md-bg-preview: #2e353f;
72+
--md-input: #282c34;
73+
--md-btn-hover: #20232b;
74+
}
75+
76+
.atom-one-light:root {
77+
--md-bg-3: #e5ebf1;
78+
--md-input: #adadad;
79+
--md-bg-preview: #ffffff;
80+
--md-text-1: #213547;
81+
--md-text-2: #3C3C3CB3;
82+
--md-text-selection: #b8b8b880;
83+
--md-btn-hover: #585858;
84+
--md-input: var(--md-divider-light-1);
85+
}
86+
87+
.atom-one-light {
88+
color-scheme: light;
89+
}
90+
91+
.vs-dark:root {
92+
--md-bg-3: #3a3a3a;
93+
--md-input: #1e1e1e;
94+
--md-bg-preview: #2c2c2c;
95+
--md-text-1: #FFFFFFDE;
96+
--md-text-2: #EBEBEB99;
97+
--md-text-selection: #b8b8b880;
98+
}
99+
100+
.vs:root {
101+
--md-bg-3: #e5ebf1;
102+
--md-input: #adadad;
103+
--md-bg-preview: #ffffff;
104+
--md-text-1: #213547;
105+
--md-text-2: #3C3C3CB3;
106+
--md-text-selection: #0099ff57;
107+
}
108+
69109
/* Global variables */
70110
:root {
71111
--md-burger-right-1: 0%;
@@ -103,7 +143,7 @@ body {
103143
padding: 0;
104144
margin: 0;
105145
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
106-
background-color: var(--md-bg-1);
146+
background: -webkit-linear-gradient(120deg, var(--md-bg-2), var(--md-bg-1) 120%) fixed no-repeat;
107147
color: var(--md-text-2);
108148
text-rendering: optimizeLegibility;
109149
font-synthesis: none;
@@ -145,6 +185,23 @@ h1,h2,h3,h4,a {
145185
background: var(--md-text-selection);
146186
color: inherit;
147187
}
188+
/* Custom scroll-bar */
189+
::-webkit-scrollbar {
190+
width: 14px;
191+
border-left: 1px solid var(--md-divider-light-1);
192+
}
193+
194+
::-webkit-scrollbar-track {
195+
background: transparent;
196+
}
197+
198+
::-webkit-scrollbar-thumb {
199+
background: var(--md-divider-light-1);
200+
}
201+
202+
::-webkit-scrollbar-thumb:hover {
203+
background: var(--md-divider-light-2);
204+
}
148205

149206
@media screen and (min-width: 768px) {
150207
body {

0 commit comments

Comments
 (0)