Skip to content

Commit 5df9ed2

Browse files
authored
theme: migrate purple theme usage (#105065)
Migrate purple color scale usage away from the legacy mapping and onto the new blue scale. We cannot remove the actual keys from the theme yet due to the ColorOrAlias usages, that change will be done after the bulk work of instances has been migrated
1 parent 25afb9c commit 5df9ed2

File tree

102 files changed

+198
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+198
-194
lines changed

static/app/components/charts/breakdownBars.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const Label = styled('span')`
8585

8686
const Bar = styled('div')<{active?: boolean}>`
8787
border-radius: 2px;
88-
background-color: ${p => (p.active ? p.theme.purple200 : p.theme.border)};
88+
background-color: ${p => (p.active ? p.theme.colors.blue200 : p.theme.border)};
8989
position: absolute;
9090
top: 0;
9191
left: 0;

static/app/components/charts/miniBarChart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function MiniBarChart({
288288

289289
const colorList = Array.isArray(colors)
290290
? colors
291-
: [theme.gray300, theme.purple300, theme.purple300];
291+
: [theme.gray300, theme.colors.blue400, theme.colors.blue400];
292292

293293
for (let i = 0; i < series.length; i++) {
294294
const original = series[i]!;
@@ -319,7 +319,7 @@ function MiniBarChart({
319319
chartSeries.push(updated);
320320
}
321321
return chartSeries;
322-
}, [series, emphasisColors, stacked, colors, theme.gray300, theme.purple300]);
322+
}, [series, emphasisColors, stacked, colors, theme.gray300, theme.colors.blue400]);
323323

324324
const chartOptions = useMemo(() => {
325325
const yAxisOptions = labelYAxisExtents

static/app/components/charts/releaseSeries.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class ReleaseSeries extends Component<ReleaseSeriesProps, State> {
251251
const markLine = MarkLine({
252252
animation: false,
253253
lineStyle: {
254-
color: theme.purple300,
254+
color: theme.colors.blue400,
255255
opacity: 0.3,
256256
type: 'solid',
257257
...lineStyle,
@@ -314,7 +314,7 @@ class ReleaseSeries extends Component<ReleaseSeriesProps, State> {
314314
return {
315315
id: 'release-lines',
316316
seriesName: 'Releases',
317-
color: theme.purple200,
317+
color: theme.colors.blue200,
318318
data: [],
319319
markLine,
320320
};

static/app/components/checkInTimeline/timelineZoom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ function useTimelineZoom<E extends HTMLElement>({enabled = true, onSelect}: Opti
174174
const Selection = styled(motion.div)`
175175
pointer-events: none;
176176
background: ${p => p.theme.gray200};
177-
border-left: 1px solid ${p => p.theme.purple200};
178-
border-right: 1px solid ${p => p.theme.purple200};
177+
border-left: 1px solid ${p => p.theme.colors.blue200};
178+
border-right: 1px solid ${p => p.theme.colors.blue200};
179179
height: 100%;
180180
position: absolute;
181181
top: 0;

static/app/components/core/badge/badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function makeBadgeTheme(
2020
};
2121
case 'beta':
2222
return {
23-
background: `linear-gradient(90deg, ${theme.purple300}, ${theme.pink300})`,
23+
background: `linear-gradient(90deg, ${theme.colors.blue400}, ${theme.pink300})`,
2424
color: theme.white,
2525
};
2626
// @TODO(jonasbadalic) default, experimental and internal all look the same and should be consolidated

static/app/components/core/code/codeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ const Tab = styled('button')<{isSelected: boolean}>`
283283
color: var(--prism-comment);
284284
${p =>
285285
p.isSelected
286-
? `border-bottom: 3px solid ${p.theme.purple300};
286+
? `border-bottom: 3px solid ${p.theme.colors.blue400};
287287
padding-bottom: 5px;
288288
color: var(--prism-base);`
289289
: ''}

static/app/components/core/select/option.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ const CheckWrap = withChonk(
105105
box-shadow: inset ${p.theme.dropShadowMedium};
106106
${p.isSelected &&
107107
css`
108-
background: ${p.theme.purple300};
109-
border-color: ${p.theme.purple300};
108+
background: ${p.theme.colors.blue400};
109+
border-color: ${p.theme.colors.blue400};
110110
`}
111111
`
112112
: css`

static/app/components/core/select/select.chonk.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const getChonkStylesConfig = ({
141141
...(state.isMulti && {
142142
maxHeight: 'inherit',
143143
overflowY: 'auto',
144-
scrollbarColor: `${theme.purple200} ${theme.tokens.background.primary}`,
144+
scrollbarColor: `${theme.colors.blue200} ${theme.tokens.background.primary}`,
145145
}),
146146
}),
147147
input: provided => ({
@@ -293,8 +293,8 @@ export const ChonkCheckWrap = styled('div')<{
293293
margin-top: 2px;
294294
${p.isSelected &&
295295
css`
296-
background: ${p.theme.purple300};
297-
border-color: ${p.theme.purple300};
296+
background: ${p.theme.colors.blue400};
297+
border-color: ${p.theme.colors.blue400};
298298
`}
299299
`
300300
: css`

static/app/components/events/autofix/autofixHighlightPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ const CircularSeerIcon = styled('div')`
827827
width: 24px;
828828
height: 24px;
829829
border-radius: 50%;
830-
background: ${p => p.theme.purple300};
830+
background: ${p => p.theme.colors.blue400};
831831
flex-shrink: 0;
832832
833833
> svg {

static/app/components/events/breadcrumbs/utils.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ function getBreadcrumbColorConfig(
280280
};
281281
case BreadcrumbType.USER:
282282
case BreadcrumbType.UI:
283-
return {title: theme.purple400, icon: theme.purple400, iconBorder: theme.purple200};
283+
return {
284+
title: theme.colors.blue500,
285+
icon: theme.colors.blue500,
286+
iconBorder: theme.colors.blue200,
287+
};
284288
case BreadcrumbType.SYSTEM:
285289
case BreadcrumbType.SESSION:
286290
case BreadcrumbType.DEVICE:

0 commit comments

Comments
 (0)