Skip to content

Commit 03f05e2

Browse files
authored
chore(site): make info gray (#14356)
1 parent cca4519 commit 03f05e2

File tree

19 files changed

+97
-88
lines changed

19 files changed

+97
-88
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trim_trailing_whitespace = true
77
insert_final_newline = true
88
indent_style = tab
99

10-
[*.{md,yaml,yml,tf,tfvars,nix}]
10+
[*.{yaml,yml,tf,tfvars,nix}]
1111
indent_style = space
1212
indent_size = 2
1313

site/src/components/Badges/Badges.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ export const EnterpriseBadge: FC = () => {
112112
css={[
113113
styles.badge,
114114
(theme) => ({
115-
backgroundColor: theme.roles.info.background,
116-
border: `1px solid ${theme.roles.info.outline}`,
117-
color: theme.roles.info.text,
115+
backgroundColor: theme.roles.notice.background,
116+
border: `1px solid ${theme.roles.notice.outline}`,
117+
color: theme.roles.notice.text,
118118
}),
119119
]}
120120
>
@@ -129,9 +129,9 @@ export const PremiumBadge: FC = () => {
129129
css={[
130130
styles.badge,
131131
(theme) => ({
132-
backgroundColor: theme.roles.info.background,
133-
border: `1px solid ${theme.roles.info.outline}`,
134-
color: theme.roles.info.text,
132+
backgroundColor: theme.roles.notice.background,
133+
border: `1px solid ${theme.roles.notice.outline}`,
134+
color: theme.roles.notice.text,
135135
}),
136136
]}
137137
>

site/src/components/BuildAvatar/BuildAvatar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const BuildAvatar: FC<BuildAvatarProps> = ({ build, size }) => {
1717
const theme = useTheme();
1818
const { status, type } = getDisplayWorkspaceBuildStatus(theme, build);
1919
const badgeType = useClassName(
20-
(css, theme) => css({ backgroundColor: theme.palette[type].light }),
20+
(css, theme) => css({ backgroundColor: theme.roles[type].fill.solid }),
2121
[type],
2222
);
2323

site/src/components/Logs/LogLine.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ const styles = {
5252
},
5353

5454
"&.debug": {
55-
backgroundColor: theme.roles.info.background,
56-
color: theme.roles.info.text,
55+
backgroundColor: theme.roles.notice.background,
56+
color: theme.roles.notice.text,
5757

5858
"& .dashed-line": {
59-
backgroundColor: theme.roles.info.outline,
59+
backgroundColor: theme.roles.notice.outline,
6060
},
6161
},
6262

site/src/components/RichParameterInput/RichParameterInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const styles = {
109109
},
110110
},
111111
suggestion: (theme) => ({
112-
color: theme.roles.info.fill.solid,
112+
color: theme.roles.notice.fill.solid,
113113
marginLeft: "-4px",
114114
padding: "4px 6px",
115115
lineHeight: "inherit",

site/src/modules/workspaces/WorkspaceBuildData/WorkspaceBuildData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const WorkspaceBuildData = ({ build }: { build: WorkspaceBuild }) => {
1919
css={{
2020
width: 16,
2121
height: 16,
22-
color: theme.palette[statusType].light,
22+
color: theme.roles[statusType].fill.solid,
2323
}}
2424
/>
2525
<div css={{ overflow: "hidden" }}>

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
318318

319319
const styles = {
320320
nameSuggestion: (theme) => ({
321-
color: theme.roles.info.fill.solid,
321+
color: theme.roles.notice.fill.solid,
322322
padding: "4px 8px",
323323
lineHeight: "inherit",
324324
fontSize: "inherit",

site/src/pages/ManagementSettingsPage/OrganizationMembersPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ const AddOrganizationMember: FC<AddOrganizationMemberProps> = ({
201201

202202
const styles = {
203203
role: (theme) => ({
204-
backgroundColor: theme.roles.info.background,
205-
borderColor: theme.roles.info.outline,
204+
backgroundColor: theme.roles.notice.background,
205+
borderColor: theme.roles.notice.outline,
206206
}),
207207
globalRole: (theme) => ({
208208
backgroundColor: theme.roles.inactive.background,

site/src/pages/ManagementSettingsPage/UserTable/UserRoleCell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ const styles = {
170170
borderColor: theme.roles.active.outline,
171171
}),
172172
ownerRoleBadge: (theme) => ({
173-
backgroundColor: theme.roles.info.background,
174-
borderColor: theme.roles.info.outline,
173+
backgroundColor: theme.roles.notice.background,
174+
borderColor: theme.roles.notice.outline,
175175
}),
176176
roleBadge: (theme) => ({
177177
backgroundColor: theme.experimental.l2.background,

site/src/pages/TemplatePage/TemplateInsightsPage/TemplateInsightsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ const TemplateUsagePanel: FC<TemplateUsagePanelProps> = ({
423423
const totalInSeconds =
424424
validUsage?.reduce((total, usage) => total + usage.seconds, 0) ?? 1;
425425
const usageColors = chroma
426-
.scale([theme.roles.success.fill.solid, theme.roles.notice.fill.solid])
426+
.scale([theme.roles.success.fill.solid, theme.roles.warning.fill.solid])
427427
.mode("lch")
428428
.colors(validUsage?.length ?? 0);
429429
// The API returns a row for each app, even if the user didn't use it.

0 commit comments

Comments
 (0)