UNPKG

@reown/appkit-ui

Version:

The full stack toolkit to build onchain app UX.

52 lines (44 loc) 1.39 kB
import { css } from '../../utils/ThemeHelperUtil.js'; export default css ` :host { width: 100%; } :host([data-type='primary']) > button { background-color: ${({ tokens }) => tokens.theme.backgroundPrimary}; } :host([data-type='secondary']) > button { background-color: ${({ tokens }) => tokens.theme.foregroundPrimary}; } button { display: flex; align-items: center; justify-content: space-between; padding: ${({ spacing }) => spacing[3]}; width: 100%; border-radius: ${({ borderRadius }) => borderRadius[4]}; transition: background-color ${({ durations }) => durations['lg']} ${({ easings }) => easings['ease-out-power-2']}, scale ${({ durations }) => durations['lg']} ${({ easings }) => easings['ease-out-power-2']}; will-change: background-color, scale; } wui-text { text-transform: capitalize; } wui-image { color: ${({ tokens }) => tokens.theme.textPrimary}; } @media (hover: hover) { :host([data-type='primary']) > button:hover:enabled { background-color: ${({ tokens }) => tokens.theme.foregroundPrimary}; } :host([data-type='secondary']) > button:hover:enabled { background-color: ${({ tokens }) => tokens.theme.foregroundSecondary}; } } button:disabled { opacity: 0.5; cursor: not-allowed; } `; //# sourceMappingURL=styles.js.map