@blockstack/ui
Version:
Blockstack UI components built using React and styled-components with styled-system.
54 lines (44 loc) • 2.6 kB
JavaScript
import { taggedTemplateLiteralLoose as _taggedTemplateLiteralLoose } from '../_virtual/_rollupPluginBabelHelpers.js';
import styled, { createGlobalStyle, css } from 'styled-components';
import { theme } from '../theme/theme.esm.js';
import preflight from './preflight.esm.js';
function _templateObject2() {
var data = _taggedTemplateLiteralLoose(["\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n border-color: ", ";\n }\n\n input:-ms-input-placeholder,\n textarea:-ms-input-placeholder {\n color: ", ";\n }\n\n input::-ms-input-placeholder,\n textarea::-ms-input-placeholder {\n color: ", ";\n }\n\n input::placeholder,\n textarea::placeholder {\n color: ", ";\n }\n\n body,\n div,\n span {\n text-align: initial;\n font-family: ", ";\n }\n"]);
_templateObject2 = function _templateObject2() {
return data;
};
return data;
}
function _templateObject() {
var data = _taggedTemplateLiteralLoose(["", ""]);
_templateObject = function _templateObject() {
return data;
};
return data;
}
var defaultConfig = function defaultConfig(theme) {
return {
light: {
color: theme.colors.ink[900],
bg: undefined,
borderColor: '#E5E5EC',
placeholderColor: theme.colors.ink[400]
},
dark: {
color: 'white',
bg: theme.colors.ink[900],
borderColor: theme.colors.ink[600],
placeholderColor: theme.colors.ink[500]
}
};
};
var _defaultConfig$light = /*#__PURE__*/defaultConfig(theme).light,
color = _defaultConfig$light.color,
bg = _defaultConfig$light.bg,
borderColor = _defaultConfig$light.borderColor,
placeholderColor = _defaultConfig$light.placeholderColor;
var cssReset = /*#__PURE__*/css(["", ";html{line-height:1.5;color:", ";background-color:", ";font-family:", ";}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:", ";}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:", ";}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:", ";}input::placeholder,textarea::placeholder{color:", ";}"], preflight, color, bg, theme && theme.fonts && theme.fonts.body, borderColor, placeholderColor, placeholderColor, placeholderColor);
var CSSReset = /*#__PURE__*/createGlobalStyle( /*#__PURE__*/_templateObject(), cssReset);
var ScopedCSSReset = /*#__PURE__*/styled.div( /*#__PURE__*/_templateObject2(), borderColor, placeholderColor, placeholderColor, placeholderColor, theme && theme.fonts && theme.fonts.body);
export { CSSReset, ScopedCSSReset };
//# sourceMappingURL=index.esm.js.map