feat: add Color calendar setting (#4141)

* feat: add Color calendar setting

Closes #4067

* fix: fix wrong imports

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Thaïs
2024-02-24 08:34:56 -03:00
committed by GitHub
parent 0fe838d320
commit a993155fb0
5 changed files with 115 additions and 5 deletions

View File

@ -5,10 +5,12 @@ import { ThemeColor } from '@/ui/theme/constants/colors';
export type ColorSampleVariant = 'default' | 'pipeline';
const StyledColorSample = styled.div<{
export type ColorSampleProps = {
colorName: ThemeColor;
variant?: ColorSampleVariant;
}>`
};
const StyledColorSample = styled.div<ColorSampleProps>`
background-color: ${({ theme, colorName }) =>
theme.tag.background[colorName]};
border: 1px solid ${({ theme, colorName }) => theme.tag.text[colorName]};