Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add Theming Options (blocknative#1447)
* Added theming updates to cover not dark mode mode * Refine theme types, add actions to set themes through API, add validation * updated layout further * Remove docs files not needed * Merge in develop * Cleanup and fixes * Notify matching theme * Light mode looking good on notify * Further refined tooling and themes * TP now works with themes, updated default behavior * Update handling of theme types * restore changes to indicator * Update Icon usage * update blocknative-icon svg * re-org and rename icon imports * remove hover states from mobile * Update packages to reflect fillColor icon use of css variable theming * updates * Minor fixups and functionality tightening * Refactor logic for handling theme updates * poc theming work - define top-level component variable. - comment old variable uses out for now. - add custom border-color class to WalletAppBadge component. * update close button to use only current text color - we could potentially remove the use `--onboard-close-button-color` based on these changes. * Update Account Select to use theming * update minimized ac component - use new theme top level variables - adjust layout - remove some helper classes * update micro ac component - use new variables - tweak layout, width - try to match class names with other components * add new theming variables to account center expanded component - use theme background-color, text-color, and border-color - comment out old styles for now - adjust borders + padding spacing * remove blue check from dapp info area - removing because this is purely cosmetic at the moment. * Add system option and check to theming * account center expanded tweaks - use --w3o-accent-text-color for --action-color - remove border radius from .wallets-section. We don't need it here since the parent has it. - use white background for WalletAppBadge. * update WalletRow component - use new theming variables for text and bg hover color - use ::before element trick for bg hovers * add z-index to bg hover element * Updating theme customizer in docs * add fallback legacy variables for connect modal * add legacy variable fallbacks to account center - resolve commented out lines * correct app name spacing - remove h4 and p element. These elements have no semantic value in this context. No need to use. * Update zindex of theming tool to avoid clash with docs themer * add legacy variable override to closebutton * update app-name styles * remove comment for action color * Fix ternary in handling mobile * Cleanup defaults * add font family override for AC button * update WalletRow - remove commented out code. - add back overrides using more specific legacy variables. - set default variable values to unset in theme mapping. * Fix validation * Fix validation for theming * Update copiable theming code from customizer * remove comments * fix network select color issue - remove extra space - set --account-center-network-selector-color to --text-color * add back border-bottom for mobile designs * update theming variables names and values - update --w3o variable names - set old variables to unset for now * fix WalletRow z-index issue - options menu display above now * update theme var names and set new default values - matches new design - supports light/dark themes - supports older variables * update connect modal - use theme var names - set new default values * update notify border - use new variable names * update transaction preview components - use new theme variables - set default values to match design * update notify and transaction-preview - unset theme mapping variables - add new theme variables * Refactor functionality and cleanup logic * Ready for testing * Fix up themeing tool in docs * Add custom theming option, enable account center * remove --w3o-tp variables from transaction preview components * Remove mock transaction code * Add theming docs * small tweaks to theme customizer * add border-radius theme var to connect and account-center * update indicators to use action-color theme var - set fallback values * update default box-shadow color * Refine ts and README notes around theming * Update docs/src/lib/components/ThemeCustomizer.svelte * Update packages/transaction-preview/src/views/Maximized.svelte * Clean up demo * Update packages/core/src/views/account-center/WalletRow.svelte * Update packages/transaction-preview/src/views/Maximized.svelte * Update packages/core/src/views/account-center/WalletRow.svelte * Fix handling of custom theme in theme customizer * Add quickstart options to README and docs for all examples we have available * Fix up docs layout * Cleanup readme * Add svelte example to options list * Fix up core docs * hook up hardware wallet components to theme vars - some minor cleanup * Update poweredBy svg var * Update poweredBy svg var * Fix sidebar theming * Add rxjs handling to event listener * update poweredby and default icon graphics - import newer default icon svg - use newer poweredby graphic in account center - remove older "powered by" span with text - plug in theme values for color to control svg - update svg fill to use currentColor * remove unused svg files * Remove behavior subject * ignore to keystone AirGapped type issue * Handle issue for readme Co-authored-by: Gustavo Esquinca <[email protected]>
- Loading branch information