@reown/appkit-ui
Version:
The full stack toolkit to build onchain app UX.
80 lines (70 loc) • 1.95 kB
JavaScript
import { css } from '../../utils/ThemeHelperUtil.js';
export default css `
:host {
width: 100%;
}
:host > wui-flex {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: ${({ spacing }) => spacing[2]};
padding: ${({ spacing }) => spacing[3]};
border-radius: ${({ borderRadius }) => borderRadius[6]};
border: 1px solid ${({ tokens }) => tokens.theme.borderPrimary};
box-sizing: border-box;
background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
color: ${({ tokens }) => tokens.theme.textPrimary};
}
:host > wui-flex[data-type='info'] {
.icon-box {
background-color: ${({ tokens }) => tokens.theme.foregroundSecondary};
wui-icon {
color: ${({ tokens }) => tokens.theme.iconDefault};
}
}
}
:host > wui-flex[data-type='success'] {
.icon-box {
background-color: ${({ tokens }) => tokens.core.backgroundSuccess};
wui-icon {
color: ${({ tokens }) => tokens.core.borderSuccess};
}
}
}
:host > wui-flex[data-type='warning'] {
.icon-box {
background-color: ${({ tokens }) => tokens.core.backgroundWarning};
wui-icon {
color: ${({ tokens }) => tokens.core.borderWarning};
}
}
}
:host > wui-flex[data-type='error'] {
.icon-box {
background-color: ${({ tokens }) => tokens.core.backgroundError};
wui-icon {
color: ${({ tokens }) => tokens.core.borderError};
}
}
}
wui-flex {
width: 100%;
}
wui-text {
word-break: break-word;
flex: 1;
}
.close {
cursor: pointer;
color: ${({ tokens }) => tokens.theme.iconDefault};
}
.icon-box {
height: 40px;
width: 40px;
border-radius: ${({ borderRadius }) => borderRadius['2']};
background-color: var(--local-icon-bg-value);
}
`;
//# sourceMappingURL=styles.js.map