Skip to content

Commit 0245d0f

Browse files
committed
set darkMode as default
1 parent 542069d commit 0245d0f

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

src/nft/css/sprinkles.css.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,13 @@ export const vars = createGlobalTheme(':root', {
165165
white: '#FFF',
166166

167167
// new uniswap colors:
168-
blue400: '#4C82FB',
168+
blue100: '#DEE1FF',
169169
blue200: '#ADBCFF30',
170+
blue300: '#869EFF',
171+
blue400: '#4C82FB',
172+
blue500: '#1267D6',
173+
blue600: '#1D4294',
174+
blue700: '#09265E',
170175
pink400: '#FB118E',
171176
red700: '#530f10',
172177
red400: '#FA2C38',

src/pages/Landing/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const TitleText = styled.h1<{ isDarkMode: boolean }>`
111111
margin: 0 0 24px;
112112
background: ${({ isDarkMode }) =>
113113
isDarkMode
114-
? 'linear-gradient(20deg,rgb(129 92 255) 10%,rgb(255 47 47) 99.8%)'
114+
? 'linear-gradient(20deg,rgb(60,160,250,1) 10%,rgb(40,100,200,1) 99.8%)'
115115
: 'linear-gradient(10deg, rgba(20,20,20,1) 0%, rgba(0,55,130,1) 100%)'};
116116
background-clip: text;
117117
-webkit-background-clip: text;

src/state/user/hooks.tsx

+1-9
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,7 @@ function deserializeToken(serializedToken: SerializedToken, Class: typeof Token
4949
}
5050

5151
export function useIsDarkMode(): boolean {
52-
const { userDarkMode, matchesDarkMode } = useAppSelector(
53-
({ user: { matchesDarkMode, userDarkMode } }) => ({
54-
userDarkMode,
55-
matchesDarkMode,
56-
}),
57-
shallowEqual
58-
)
59-
60-
return userDarkMode === null ? matchesDarkMode : userDarkMode
52+
return true;
6153
}
6254

6355
export function useDarkModeManager(): [boolean, () => void] {

src/theme/colors.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ export const darkTheme = {
140140
textSecondary: colors.gray300,
141141
textTertiary: colors.gray500,
142142

143-
accentAction: colors.blue400,
144-
accentActive: colors.blue400,
143+
accentAction: colors.blue500,
144+
accentActive: colors.blue700,
145145
accentSuccess: colors.green200,
146146
accentWarning: colors.gold200,
147147
accentFailure: colors.red300,
148148
accentCritical: colors.red300,
149149

150150
accentActionSoft: opacify(24, colors.blue400),
151-
accentActiveSoft: opacify(24, colors.blue400),
151+
accentActiveSoft: opacify(24, colors.blue700),
152152
accentSuccessSoft: opacify(24, colors.green400),
153153
accentWarningSoft: opacify(24, colors.gold200),
154154
accentFailureSoft: opacify(12, colors.red300),
@@ -192,15 +192,15 @@ export const lightTheme: Theme = {
192192
textSecondary: colors.gray400,
193193
textTertiary: colors.gray300,
194194

195-
accentAction: colors.blue700,
196-
accentActive: colors.blue400,
195+
accentAction: colors.blue400,
196+
accentActive: colors.blue700,
197197
accentSuccess: colors.green300,
198198
accentWarning: colors.gold200,
199199
accentFailure: colors.red400,
200200
accentCritical: colors.red400,
201201

202-
accentActionSoft: opacify(24, colors.blue700),
203-
accentActiveSoft: opacify(24, colors.blue400),
202+
accentActionSoft: opacify(24, colors.blue400),
203+
accentActiveSoft: opacify(24, colors.blue700),
204204
accentSuccessSoft: opacify(24, colors.green300),
205205
accentWarningSoft: opacify(24, colors.gold200),
206206
accentFailureSoft: opacify(12, colors.red400),
@@ -218,7 +218,7 @@ export const lightTheme: Theme = {
218218
shallowShadow:
219219
'6px 6px 10px rgba(51, 53, 72, 0.01), 2px 2px 6px rgba(51, 53, 72, 0.02), 1px 2px 2px rgba(51, 53, 72, 0.02);',
220220

221-
networkDefaultShadow: `0px 40px 120px ${opacify(12, colors.blue700)}`,
221+
networkDefaultShadow: `0px 40px 120px ${opacify(12, colors.blue400)}`,
222222

223223
stateOverlayHover: opacify(8, colors.gray300),
224224
stateOverlayPressed: opacify(24, colors.gray200),

0 commit comments

Comments
 (0)