<!--- setHexOpacity.stories.mdx --->

import { Meta } from '@storybook/addon-docs';

<Meta title="utils/setHexOpacity" />

# setHexOpacity

## Usage

```js
import { setHexOpacity } from '@strapi/helper-plugin';

const BoxCustom = styled.div`
  // using strapi theme hex
  background: ${({ theme }) => setHexOpacity(theme.colors.neutral800, 0.2)};

  // using hex
  background: setHexOpacity('#12100E', 0.2)};
`;
```
