Skip to content

Commit 197fd04

Browse files
authored
theme: migrate surface theme usage (#105093)
Migrate gray color scale usage away from the legacy mapping. surface100 → surface200 surface200 → surface300 surface300 → surface400 surface400 → surface500 surface500 → surface500 We cannot remove the actual keys from the theme yet due to the ColorOrAlias usages.
1 parent 2dae384 commit 197fd04

File tree

37 files changed

+49
-47
lines changed

37 files changed

+49
-47
lines changed

static/app/components/editableText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const InnerLabel = styled(TextOverflow)`
241241

242242
const InputWrapper = styled('div')<{isEmpty: boolean}>`
243243
display: inline-block;
244-
background: ${p => p.theme.surface200};
244+
background: ${p => p.theme.colors.surface300};
245245
border-radius: ${p => p.theme.radius.md};
246246
margin: -${space(0.5)} -${space(1)};
247247
padding: ${space(0.5)} ${space(1)};

static/app/components/events/interfaces/frame/deprecatedLine.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ const DefaultLine = styled('div')<{
402402
display: flex;
403403
justify-content: space-between;
404404
align-items: center;
405-
background: ${p => (p.isSubFrame ? `${p.theme.surface100}` : `${p.theme.surface200}`)};
405+
background: ${p =>
406+
p.isSubFrame ? `${p.theme.colors.surface200}` : `${p.theme.colors.surface300}`};
406407
min-height: 40px;
407408
word-break: break-word;
408409
padding: ${space(0.75)} ${space(1.5)};

static/app/components/events/interfaces/frame/stacktraceLinkModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ const StyledList = styled(List)`
323323
`;
324324

325325
const Suggestions = styled('div')`
326-
background-color: ${p => p.theme.surface100};
326+
background-color: ${p => p.theme.colors.surface200};
327327
border-radius: ${p => p.theme.radius.md};
328328
padding: ${space(1)} ${space(1)} ${space(1)} ${space(2)};
329329
`;

static/app/components/events/interfaces/nativeFrame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ const RowHeader = styled('span')<{
550550
column-gap: ${space(1)};
551551
background-color: ${p =>
552552
!p.isInAppFrame && p.isSubFrame
553-
? `${p.theme.surface100}`
553+
? `${p.theme.colors.surface200}`
554554
: `${p.theme.tokens.background.secondary}`};
555555
font-size: ${p => p.theme.fontSize.sm};
556556
padding: ${space(1)};

static/app/components/events/suspectCommits.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const Title = styled('div')`
174174
const StreamlinedPanel = styled(Panel)`
175175
position: relative;
176176
background: ${p => p.theme.tokens.background.primary}
177-
linear-gradient(to right, rgba(245, 243, 247, 0), ${p => p.theme.surface100});
177+
linear-gradient(to right, rgba(245, 243, 247, 0), ${p => p.theme.colors.surface200});
178178
overflow: hidden;
179179
margin-bottom: 0;
180180
width: 100%;

static/app/components/events/viewHierarchy/wireframe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ const InteractionOverlayCanvas = styled('canvas')`
362362
`;
363363

364364
const WireframeCanvas = styled('canvas')`
365-
background-color: ${p => p.theme.surface100};
365+
background-color: ${p => p.theme.colors.surface200};
366366
width: 100%;
367367
height: 100%;
368368
`;

static/app/components/notificationActions/notificationActionItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ const StyledCard = styled(Card)<{isEditing: boolean}>`
360360
align-items: center;
361361
justify-content: space-between;
362362
margin-bottom: ${space(1)};
363-
background-color: ${props => (props.isEditing ? props.theme.surface200 : 'inherit')};
363+
background-color: ${props =>
364+
props.isEditing ? props.theme.colors.surface300 : 'inherit'};
364365
`;
365366

366367
const IconContainer = styled('div')`

static/app/components/profiling/flamegraph/aggregateFlamegraphTreeTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ const FrameBar = styled('div')<{withoutBorders?: boolean}>`
526526
overflow: auto;
527527
width: 100%;
528528
position: relative;
529-
background-color: ${p => p.theme.surface200};
529+
background-color: ${p => p.theme.colors.surface300};
530530
${p => !p.withoutBorders && `border-top: 1px solid ${p.theme.border};`}
531531
flex: 1 1 100%;
532532
`;

static/app/components/profiling/flamegraph/callTreeTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const CallTreeTable = styled('div')`
6666
}
6767
6868
&[data-hovered='true']:not([tabindex='0']) {
69-
background: ${p => p.theme.surface200};
69+
background: ${p => p.theme.colors.surface300};
7070
}
7171
}
7272
@@ -231,7 +231,7 @@ export const CallTreeTableHeaderButton = styled('button')`
231231
justify-content: space-between;
232232
padding: 0 ${space(1)};
233233
border: none;
234-
background-color: ${props => props.theme.surface200};
234+
background-color: ${props => props.theme.colors.surface300};
235235
transition: background-color 100ms ease-in-out;
236236
line-height: 29px;
237237

static/app/components/profiling/flamegraph/flamegraphDrawer/differentialFlamegraphDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ const ProfilingDetailsFrameTabs = styled('ul')`
351351
padding: 0 ${space(1)};
352352
margin: 0;
353353
border-top: 1px solid ${prop => prop.theme.border};
354-
background-color: ${props => props.theme.surface200};
354+
background-color: ${props => props.theme.colors.surface300};
355355
user-select: none;
356356
grid-area: tabs;
357357
`;

0 commit comments

Comments
 (0)