- Enter Mnemonic and sign in
+
+ Enter Mnemonic and sign in
+
- ) =>
setMnemonic(e.target.value)
@@ -60,7 +63,6 @@ export const SignInContent: React.FC<{ showCreateAccount: () => void }> = ({
autoComplete="mnemonic"
autoFocus
disabled={isLoading}
- sx={{ color: 'red' }}
/>
@@ -79,14 +81,21 @@ export const SignInContent: React.FC<{ showCreateAccount: () => void }> = ({
{inputError && (
-
+
{inputError}
)}
- Don't have an account?{' '}
+
+ Don't have an account?
+ {' '}
Create one now
@@ -94,3 +103,25 @@ export const SignInContent: React.FC<{ showCreateAccount: () => void }> = ({
)
}
+
+const StyledInput = styled((props) => )(
+ ({ theme }) => ({
+ '& input': {
+ color: theme.palette.nym.text.light,
+ },
+ '& label': {
+ color: theme.palette.nym.text.light,
+ },
+ '& label.Mui-focused': {
+ color: theme.palette.primary.main,
+ },
+ '& .MuiOutlinedInput-root': {
+ '& fieldset': {
+ borderColor: theme.palette.common.white,
+ },
+ '&:hover fieldset': {
+ borderColor: theme.palette.primary.main,
+ },
+ },
+ }),
+)
diff --git a/nym-wallet/src/theme/mui-theme.d.ts b/nym-wallet/src/theme/mui-theme.d.ts
index 27f030e826..b945ab3fe4 100644
--- a/nym-wallet/src/theme/mui-theme.d.ts
+++ b/nym-wallet/src/theme/mui-theme.d.ts
@@ -34,9 +34,9 @@ declare module '@mui/material/styles' {
*/
interface NymPalette {
highlight: string
+ background: { light: string; dark: string }
text: {
- nav: string
- footer: string
+ light: string
}
}
diff --git a/nym-wallet/src/theme/theme.tsx b/nym-wallet/src/theme/theme.tsx
index c0a4ae2284..5e33dc2d83 100644
--- a/nym-wallet/src/theme/theme.tsx
+++ b/nym-wallet/src/theme/theme.tsx
@@ -21,10 +21,9 @@ import {
const nymPalette: NymPalette = {
/** emphasises important elements */
highlight: '#FB6E4E',
+ background: { light: '#FAFAFA', dark: '#121726' },
text: {
- nav: '#F2F2F2',
- /** footer text colour */
- footer: '#666B77',
+ light: '#F2F2F2',
},
}
@@ -65,7 +64,7 @@ const lightMode: NymPaletteVariant = {
}
/**
- * Nym palette specific to the Network Explorer
+ * Nym palette specific to the Nym Wallet
*
* IMPORTANT: do not export this constant, always use the MUI `useTheme` hook to get the correct
* colours for dark/light mode.