storybook-addon-themes
Version:
A storybook addon to switch between different themes for your preview
26 lines (22 loc) • 544 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ColorIcon = void 0;
var _theming = require("@storybook/theming");
var ColorIcon = _theming.styled.span(function (_ref) {
var background = _ref.background;
return {
borderRadius: '1rem',
display: 'block',
height: '1rem',
width: '1rem',
background: background
};
}, function (_ref2) {
var theme = _ref2.theme;
return {
boxShadow: "".concat(theme.appBorderColor, " 0 0 0 1px inset")
};
});
exports.ColorIcon = ColorIcon;