Skip to content

The open alternative to Salesforce, designed for AI.

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.tsx
index 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.tsx
index 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.tsx
index 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>
<IllustrationIconCalendarTimeRaw
height={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.tsx
index 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>
<IllustrationIconCurrencyRaw
height={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.tsx
index 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>
<IllustrationIconJsonRaw
height={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.tsx
index 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>
<IllustrationIconLinkRaw
height={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.tsx
index 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>
<IllustrationIconMailRaw
height={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.tsx
index 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>
<IllustrationIconManyToManyRaw
height={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.tsx
index 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>
<IllustrationIconMapRaw
height={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.tsx
index 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>
<IllustrationIconNumbersRaw
height={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.tsx
index 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>
<IllustrationIconOneToManyRaw
height={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.tsx
index 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>
<IllustrationIconOneToOneRaw
height={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.tsx
index 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>
<IllustrationIconPhoneRaw
height={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.tsx
index 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>
<IllustrationIconSettingRaw
height={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.tsx
index 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>
<IllustrationIconStarRaw
height={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.tsx
index 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>
<IllustrationIconTagRaw
height={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.tsx
index 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>
<IllustrationIconTagsRaw
height={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.tsx
index 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>
<IllustrationIconTextRaw
height={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.tsx
index 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>
<IllustrationIconToggleRaw
height={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.tsx
index 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>
<IllustrationIconUidRaw
height={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.tsx
index 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>
<IllustrationIconUserRaw
height={size}
width={size}
- fill={fill.blue}
- color={color.blue}
+ fill={theme.accent.accent3}
+ color={theme.accent.accent8}
/>
</IllustrationIconWrapper>
);