UNPKG

@reown/appkit-ui

Version:

The full stack toolkit to build onchain app UX.

88 lines (76 loc) 2.37 kB
import { css } from '../../utils/ThemeHelperUtil.js'; export default css ` :host { display: block; } button { border-radius: ${({ borderRadius }) => borderRadius['20']}; background: ${({ tokens }) => tokens.theme.foregroundPrimary}; display: flex; gap: ${({ spacing }) => spacing[1]}; padding: ${({ spacing }) => spacing[1]}; color: ${({ tokens }) => tokens.theme.textSecondary}; border-radius: ${({ borderRadius }) => borderRadius[16]}; height: 32px; transition: box-shadow ${({ durations }) => durations['lg']} ${({ easings }) => easings['ease-out-power-2']}; will-change: box-shadow; } button wui-flex.avatar-container { width: 28px; height: 24px; position: relative; wui-flex.network-image-container { position: absolute; bottom: 0px; right: 0px; width: 12px; height: 12px; } wui-flex.network-image-container wui-icon { background: ${({ tokens }) => tokens.theme.foregroundPrimary}; } wui-avatar { width: 24px; min-width: 24px; height: 24px; } wui-icon { width: 12px; height: 12px; } } wui-image, wui-icon { border-radius: ${({ borderRadius }) => borderRadius[16]}; } wui-text { white-space: nowrap; } button wui-flex.balance-container { height: 100%; border-radius: ${({ borderRadius }) => borderRadius[16]}; padding-left: ${({ spacing }) => spacing[1]}; padding-right: ${({ spacing }) => spacing[1]}; background: ${({ tokens }) => tokens.theme.foregroundSecondary}; color: ${({ tokens }) => tokens.theme.textPrimary}; transition: background-color ${({ durations }) => durations['lg']} ${({ easings }) => easings['ease-out-power-2']}; will-change: background-color; } /* -- Hover & Active states ----------------------------------------------------------- */ button:hover:enabled, button:focus-visible:enabled, button:active:enabled { box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2); wui-flex.balance-container { background: ${({ tokens }) => tokens.theme.foregroundTertiary}; } } /* -- Disabled states --------------------------------------------------- */ button:disabled wui-text, button:disabled wui-flex.avatar-container { opacity: 0.3; } `; //# sourceMappingURL=styles.js.map