Files
webstudio/app/shared/design-system/components/code.tsx
T
2022-03-13 04:22:21 +00:00

25 lines
459 B
TypeScript

import { styled } from '../stitches.config';
export const Code = styled('code', {
fontFamily: '$mono',
fontSize: 'max(12px, 85%)',
whiteSpace: 'nowrap',
padding: '0 3px 2px 3px',
variants: {
variant: {
gray: {
backgroundColor: '$slate3',
color: '$slate11',
},
violet: {
backgroundColor: '$violet3',
color: '$violet11',
},
},
},
defaultVariants: {
variant: 'violet',
},
});