Skip to content

Commit 81c0d47

Browse files
committed
🌟 update some themes
1 parent 63b387f commit 81c0d47

11 files changed

Lines changed: 52 additions & 27 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
:root{
2-
--primaryColor: #ff9f19;
2+
--primaryColor: #ff3019;
3+
// --primaryColor: #ff9f19;
34
--secondaryColor: #1f1f1e;
45

56
--primaryColorPastelDark25opacity: #715e438a;

src/components/Form/Buttons/Buttons.module.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,24 @@
5151
pointer-events: all;
5252

5353
&:focus {
54-
background-color: var(--primaryColorPastel);
55-
outline: 1px solid var(--primaryColor);
54+
background-color: var(--buttonFocusBG);
55+
outline: 1px solid var(--buttonFocusColor);
56+
color: var(--buttonFocusCOLOR);
57+
}
58+
59+
&:active{
60+
background-color: var(--buttonActiveBG);
5661
}
5762

5863
a {
5964
user-select: none;
6065
pointer-events: all;
61-
color: var(--grayDarkPrimary);
66+
// color: var(--grayDarkPrimary);
6267
cursor: pointer;
6368

64-
&:hover {
65-
background-color: var(--yellowPastel);
66-
}
69+
// &:hover {
70+
// background-color: var(--primaryColorPastelDark25opacity);
71+
// }
6772
}
6873
}
6974
}

src/components/Form/Input/Input.module.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
input {
31-
border: 1px solid var(--labelColor);
31+
border: 1px solid var(--borderNOTSelected);
3232
color: var(--h1Color);
3333
padding: 10px 28px;
3434
border-radius: 4px;
@@ -39,19 +39,15 @@
3939
-webkit-box-shadow: 0 0 0px 1000px var(--secondaryColor) inset;
4040
-webkit-text-fill-color: var(--labelColor);
4141

42-
&:focus{
43-
border: 1px solid var(--primaryColor);
42+
&:focus {
43+
border: 1px solid var(--borderSelected);
4444
outline: none;
4545

4646
box-shadow: 0 0 0px 1000px var(--secondaryColor) inset;
4747
-webkit-box-shadow: 0 0 0px 1000px var(--secondaryColor) inset;
4848
-webkit-text-fill-color: var(--labelColor);
4949
}
5050

51-
&:not(:focus) {
52-
-webkit-text-fill-color: var(--labelColor);
53-
}
54-
5551
&:not(:placeholder-shown) {
5652
-webkit-text-fill-color: var(--h1Color);
5753
}

src/components/Menu/Menu.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.c_menu {
2-
background-color: var(--secondaryColor);
2+
background-color: var(--menuBG);
33
width: var(--menuWidth);
44

55
max-height: calc(100vh);
@@ -27,7 +27,7 @@
2727

2828
.c_menu_logo_span,
2929
.c_menu_logo_icon {
30-
color: var(--primaryColor);
30+
color: var(--yellowDefault);
3131
font-size: 25px;
3232
font-weight: 700;
3333

src/components/MyNotes/MyNotes.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
justify-content: center;
7777
align-items: center;
7878

79-
box-shadow: 5px 9px 12px #945d10;
79+
box-shadow: 5px 9px 12px #945d1027;
8080

8181
position: relative;
8282

src/pages/_app.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ function App({ Component, pageProps }) {
1010
const [theme, setTheme] = useState('light')
1111

1212
function onClickToggle() {
13-
if (theme == 'dark') {
14-
setTheme('light')
15-
} else {
16-
setTheme('dark')
17-
}
13+
theme == 'dark' ? setTheme('light') : setTheme('dark')
1814
}
1915

2016
return (

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Form from '../components/Form/Form'
77
// next components
88
import Head from 'next/head'
99
// react hooks
10-
import { useEffect, useState } from "react"
10+
import { useState } from "react"
1111

1212
function Home() {
1313
const [state, setState] = useState('signIn')

src/styles/globals.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body {
2020
max-width: 100vw;
2121
overflow-x: hidden;
2222

23-
background-color: var(--primaryColor);
23+
background-color: var(--notesBG);
2424
}
2525

2626
:root {

src/styles/themes/dark.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,24 @@ export default createGlobalStyle`
1212
1313
--primaryColorPastel: #f8b557;
1414
15-
1615
--primaryColorVivid: #ff9500;
1716
1817
--labelColor: #8e8e8e;
1918
--h1Color: #f3f3f3;
2019
--h2Color: #8e8d8d;
20+
21+
--borderSelected: #ff9f19;
22+
--borderNOTSelected: #464645;
23+
24+
--buttonFocusBG: #f8b557;
25+
--buttonFocusCOLOR: #20201e;
26+
27+
--buttonActiveBG: #b26f11;
28+
29+
30+
--yellowDefault: #e38d16;
31+
32+
--menuBG: #1f1f1e;
33+
--notesBG: #ff9f19;
2134
}
2235
`;

0 commit comments

Comments
 (0)