UNPKG

orcs-design-system

Version:
18 lines (17 loc) 523 B
import styled from "styled-components"; import { themeGet } from "@styled-system/theme-get"; import shouldForwardProp from "@styled-system/should-forward-prop"; import { css } from "styled-components"; export const Colour = /*#__PURE__*/styled("div").withConfig({ shouldForwardProp, displayName: "Colour", componentId: "sc-uyvdow-0" })(props => { return css({ backgroundColor: themeGet("colors.".concat(props.bg))(props), width: "75px", height: "75px" }); }); /** @component */ export default Colour;