UNPKG

@reown/appkit-ui

Version:

The full stack toolkit to build onchain app UX.

65 lines (56 loc) 1.67 kB
import { css } from '../../utils/ThemeHelperUtil.js'; export default css ` :host { position: relative; display: inline-block; } :host([data-error='true']) > input { color: ${({ tokens }) => tokens.core.textError}; } :host([data-error='false']) > input { color: ${({ tokens }) => tokens.theme.textPrimary}; } input { background: transparent; height: auto; box-sizing: border-box; color: ${({ tokens }) => tokens.theme.textPrimary}; font-feature-settings: 'case' on; font-size: ${({ textSize }) => textSize.h4}; caret-color: ${({ tokens }) => tokens.core.backgroundAccentPrimary}; line-height: ${({ typography }) => typography['h4-regular-mono'].lineHeight}; letter-spacing: ${({ typography }) => typography['h4-regular-mono'].letterSpacing}; -webkit-appearance: none; -moz-appearance: textfield; padding: 0px; font-family: ${({ fontFamily }) => fontFamily.mono}; } :host([data-width-variant='auto']) input { width: 100%; } :host([data-width-variant='fit']) input { width: 1ch; } .wui-input-amount-fit-mirror { position: absolute; visibility: hidden; white-space: pre; font-size: var(--local-font-size); line-height: 130%; letter-spacing: -1.28px; font-family: ${({ fontFamily }) => fontFamily.mono}; } .wui-input-amount-fit-width { display: inline-block; position: relative; } input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input::placeholder { color: ${({ tokens }) => tokens.theme.textSecondary}; } `; //# sourceMappingURL=styles.js.map