UNPKG

grommet

Version:

focus on the essential experience

109 lines (108 loc) 2.34 kB
"use strict"; exports.__esModule = true; exports.theme = void 0; var _grommetIcons = require("grommet-icons"); var _utils = require("../../../utils"); var _SearchInput = require("./components/SearchInput"); var theme = exports.theme = { global: { colors: { selected: 'neutral-3', border: '#e0e0e0', focus: '#2196F3', gray: 'rgba(0, 0, 0, 0.54)' }, control: { border: { radius: '24px' } }, drop: { background: '#ffffff' }, elevation: { light: { small: '0 2px 2px 0 rgba(0,0,0,0.19)', medium: '0 3px 3px 0 rgba(0,0,0,0.18)', large: '0 4px 4px 0 rgba(0,0,0,0.17)', xlarge: '0 24px 24px 0 rgba(0, 0, 0, 0.12)' } }, font: { family: 'Arial', size: '12px' }, input: { weight: 400 }, size: { xxsmall: '24px' } }, text: { medium: '13px' }, checkBox: { border: { color: { light: 'brand' }, radius: '2px' }, color: { light: 'brand' }, check: { extend: function extend(_ref) { var extendTheme = _ref.theme, checked = _ref.checked; return "\n " + (checked && "background-color: " + (0, _utils.normalizeColor)('brand', extendTheme) + ";") + "\n "; } }, hover: { border: { color: undefined } }, icon: { size: '18px', extend: 'stroke: white;' }, icons: { checked: _grommetIcons.FormCheckmark }, gap: 'small', size: '18px', extend: "\n color: #9C9C9C;\n " }, drop: { maxHeight: '384px' }, select: { control: { extend: 'padding: 3px 6px;', open: { background: '#ece0fa', border: '1px solid #7D4CDB' } }, icons: { down: _grommetIcons.CaretDownFill, up: _grommetIcons.CaretUpFill, color: 'dark-1', margin: 'small' }, searchInput: _SearchInput.SearchInput, container: { text: { size: 'small' }, extend: 'max-height: 250px;' } }, textInput: { extend: function extend(props) { return "\n color: " + (0, _utils.normalizeColor)('gray', props.theme) + ";\n font-weight: 400;\n font-size: 13px;\n padding: 14px;\n "; } } };