* Add 3 step account creation * Add textarea with dropdown * Add OWASP and styles to PasswordStrength * Align the checkbox with other ui elements * Notification on mnemonic copy * Make confirmation label clickable * Do not shorten address in creation modal * Make address name not editable in header * Always show password strength meter * Always show password strength meter * Update tests to new account flow * Remove repeated dependency * Remove console.log from test * Update yarn.lock * Restore imports order. * Format div component according to style * Remove cursor styling for old browsers * Empty line * Organize imports. Configure StrengthTester once. Use color from theme. * wip on text area * TextArea styling * Checbox styling * Update repeated password validity on first password change * Simplify CopyButton notification code. * Change TextArea styling to more consistent * Make password strength indicator wider * Move external warning down and show on both steps * Inline TextArea subcomponents * Move mnemonic saved confirmation label closer to buttons * Add steps counter to header * Remove space Co-authored-by: Michał Ziętalak <michal.z@ethworks.io> Co-authored-by: Jaco Greeff <jacogr@gmail.com>
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
// Copyright 2017-2020 @polkadot/apps authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { ThemeDef } from '@polkadot/react-components/types';
|
|
|
|
export const darkTheme: ThemeDef = {
|
|
bgInput: '#38393f',
|
|
bgInputError: '#48393f',
|
|
bgInverse: 'rgba(78, 78, 78, 0.66)',
|
|
bgMenu: '#26272c',
|
|
bgMenuHover: 'rgba(255, 255, 255, 0.05)',
|
|
bgPage: '#26272c',
|
|
bgTable: '#38393f',
|
|
bgTabs: '#38393f',
|
|
bgToggle: '#58595f',
|
|
borderTable: 'transparent',
|
|
borderTabs: 'transparent',
|
|
color: 'rgba(244, 242, 240, 0.9)',
|
|
colorCheckbox: 'rgba(78, 78, 78, 0.66)',
|
|
colorError: 'rgba(255, 0, 0, 0.85)',
|
|
colorLabel: 'rgba(244, 242, 240, 0.45)',
|
|
colorSummary: 'rgba(244, 242, 240, 0.75)',
|
|
theme: 'dark'
|
|
};
|
|
|
|
export const lightTheme: ThemeDef = {
|
|
bgInput: '#fff',
|
|
bgInputError: '#fff6f6',
|
|
bgInverse: 'rgba(244, 242, 240, 0.91)',
|
|
bgMenu: '#fff',
|
|
bgMenuHover: 'rgba(255, 255, 255, 0.5)',
|
|
bgPage: '#f5f3f1',
|
|
bgTable: '#fff',
|
|
bgTabs: '#fff',
|
|
bgToggle: '#e4e5e6',
|
|
borderTable: '#eeecea',
|
|
borderTabs: '#eeecea',
|
|
color: '#4e4e4e',
|
|
colorCheckbox: 'rgba(34, 36, 38, 0.15)',
|
|
colorError: 'rgba(139, 0, 0)',
|
|
colorLabel: 'rgba(78, 78, 78, 0.66)',
|
|
colorSummary: 'rgba(0, 0, 0, 0.6)',
|
|
theme: 'light'
|
|
};
|