The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Make illustration icons color responsive using accent theme colors (#17107)
Thomas des Francs88d613d4459b
diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconArray.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconArray.tsxindex 8f93914bbde..17dc958f22c 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconArray.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconArray.tsx@@ -7,12 +7,11 @@ type IllustrationIconArrayProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconArray = (props: IllustrationIconArrayProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconArrayRaw- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}height={size}width={size}/>diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarEvent.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarEvent.tsxindex 7074568c732..150987cf843 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarEvent.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarEvent.tsx@@ -9,12 +9,11 @@ export const IllustrationIconCalendarEvent = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconCalendarEventRaw- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}height={size}width={size}/>diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarTime.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarTime.tsxindex 171b0788edd..5b736a25b46 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarTime.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconCalendarTime.tsx@@ -10,14 +10,13 @@ export const IllustrationIconCalendarTime = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconCalendarTimeRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconCurrency.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconCurrency.tsxindex ce11182c667..c0c8631c00f 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconCurrency.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconCurrency.tsx@@ -11,14 +11,13 @@ export const IllustrationIconCurrency = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconCurrencyRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconJson.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconJson.tsxindex b1cd93c5050..28c97c90026 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconJson.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconJson.tsx@@ -9,14 +9,13 @@ type IllustrationIconJsonProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconJson = (props: IllustrationIconJsonProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconJsonRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconLink.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconLink.tsxindex c34082f2054..1abdf9e613d 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconLink.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconLink.tsx@@ -9,14 +9,13 @@ type IllustrationIconLinkProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconLink = (props: IllustrationIconLinkProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconLinkRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconMail.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconMail.tsxindex c1ef50634b2..4312b8847b9 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconMail.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconMail.tsx@@ -8,14 +8,13 @@ type IllustrationIconMailProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconMail = (props: IllustrationIconMailProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconMailRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconManyToMany.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconManyToMany.tsxindex 64b0e8993f7..05c29db3575 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconManyToMany.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconManyToMany.tsx@@ -10,14 +10,13 @@ export const IllustrationIconManyToMany = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconManyToManyRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconMap.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconMap.tsxindex 44c074a2622..01d409d8459 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconMap.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconMap.tsx@@ -8,14 +8,13 @@ type IllustrationIconMapProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconMap = (props: IllustrationIconMapProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconMapRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconNumbers.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconNumbers.tsxindex 736201d989f..c762a79dfee 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconNumbers.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconNumbers.tsx@@ -10,14 +10,13 @@ export const IllustrationIconNumbers = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconNumbersRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToMany.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToMany.tsxindex ef9dcb64eef..2edbe6b0ea5 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToMany.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToMany.tsx@@ -11,14 +11,13 @@ export const IllustrationIconOneToMany = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconOneToManyRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToOne.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToOne.tsxindex f8158b538d5..8050d8d4158 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToOne.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconOneToOne.tsx@@ -11,14 +11,13 @@ export const IllustrationIconOneToOne = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconOneToOneRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconPhone.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconPhone.tsxindex c339c84d1f8..23ce1650fad 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconPhone.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconPhone.tsx@@ -9,15 +9,14 @@ type IllustrationIconPhoneProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconPhone = (props: IllustrationIconPhoneProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconPhoneRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconSetting.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconSetting.tsxindex 3431447238a..b3816971830 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconSetting.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconSetting.tsx@@ -11,15 +11,14 @@ export const IllustrationIconSetting = () => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconSettingRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconStar.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconStar.tsxindex d8849b190cc..b2e4012fdaf 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconStar.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconStar.tsx@@ -9,15 +9,14 @@ type IllustrationIconStarProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconStar = (props: IllustrationIconStarProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconStarRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconTag.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconTag.tsxindex aa3a5e86e26..637c87471ee 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconTag.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconTag.tsx@@ -9,14 +9,13 @@ type IllustrationIconTagProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconTag = (props: IllustrationIconTagProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconTagRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconTags.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconTags.tsxindex da70e36303a..6e64c7e5122 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconTags.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconTags.tsx@@ -9,14 +9,13 @@ type IllustrationIconTagsProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconTags = (props: IllustrationIconTagsProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconTagsRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconText.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconText.tsxindex beb85efbc9d..9edcf16423f 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconText.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconText.tsx@@ -9,14 +9,13 @@ type IllustrationIconTextProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconText = (props: IllustrationIconTextProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconTextRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconToggle.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconToggle.tsxindex 41c7e7cecee..fd503168aee 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconToggle.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconToggle.tsx@@ -9,14 +9,13 @@ type IllustrationIconToggleProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconToggle = (props: IllustrationIconToggleProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconToggleRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconUid.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconUid.tsxindex 4264e73bb24..d13161d8cd4 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconUid.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconUid.tsx@@ -9,14 +9,13 @@ type IllustrationIconUidProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconUid = (props: IllustrationIconUidProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconUidRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);diff --git a/packages/twenty-ui/src/display/icon/components/IllustrationIconUser.tsx b/packages/twenty-ui/src/display/icon/components/IllustrationIconUser.tsxindex 1cad988ff08..6286bf25ecf 100644--- a/packages/twenty-ui/src/display/icon/components/IllustrationIconUser.tsx+++ b/packages/twenty-ui/src/display/icon/components/IllustrationIconUser.tsx@@ -9,14 +9,13 @@ type IllustrationIconUserProps = Pick<IconComponentProps, 'size'>;export const IllustrationIconUser = (props: IllustrationIconUserProps) => {const theme = useTheme();const size = props.size ?? theme.icon.size.lg;- const { color, fill } = theme.IllustrationIcon;return (<IllustrationIconWrapper><IllustrationIconUserRawheight={size}width={size}- fill={fill.blue}- color={color.blue}+ fill={theme.accent.accent3}+ color={theme.accent.accent8}/></IllustrationIconWrapper>);