diff --git a/site/src/components/ActiveUserChart/ActiveUserChart.tsx b/site/src/components/ActiveUserChart/ActiveUserChart.tsx index b9810eeaa0066..c8dd64a7e987d 100644 --- a/site/src/components/ActiveUserChart/ActiveUserChart.tsx +++ b/site/src/components/ActiveUserChart/ActiveUserChart.tsx @@ -127,9 +127,9 @@ export const ActiveUserChart: FC = ({ { label: `${interval === "day" ? "Daily" : "Weekly"} Active Users`, data: chartData, - pointBackgroundColor: theme.experimental.roles.active.outline, - pointBorderColor: theme.experimental.roles.active.outline, - borderColor: theme.experimental.roles.active.outline, + pointBackgroundColor: theme.roles.active.outline, + pointBorderColor: theme.roles.active.outline, + borderColor: theme.roles.active.outline, }, ], }} diff --git a/site/src/components/Badges/Badges.tsx b/site/src/components/Badges/Badges.tsx index 19f20f0cfbc15..8473b62e1e0c3 100644 --- a/site/src/components/Badges/Badges.tsx +++ b/site/src/components/Badges/Badges.tsx @@ -19,19 +19,19 @@ const styles = { }, enabledBadge: (theme) => ({ - border: `1px solid ${theme.experimental.roles.success.outline}`, - backgroundColor: theme.experimental.roles.success.background, - color: theme.experimental.roles.success.text, + border: `1px solid ${theme.roles.success.outline}`, + backgroundColor: theme.roles.success.background, + color: theme.roles.success.text, }), errorBadge: (theme) => ({ - border: `1px solid ${theme.experimental.roles.error.outline}`, - backgroundColor: theme.experimental.roles.error.background, - color: theme.experimental.roles.error.text, + border: `1px solid ${theme.roles.error.outline}`, + backgroundColor: theme.roles.error.background, + color: theme.roles.error.text, }), warnBadge: (theme) => ({ - border: `1px solid ${theme.experimental.roles.warning.outline}`, - backgroundColor: theme.experimental.roles.warning.background, - color: theme.experimental.roles.warning.text, + border: `1px solid ${theme.roles.warning.outline}`, + backgroundColor: theme.roles.warning.background, + color: theme.roles.warning.text, }), } satisfies Record>; @@ -97,9 +97,9 @@ export const EnterpriseBadge: FC = () => { css={[ styles.badge, (theme) => ({ - backgroundColor: theme.experimental.roles.info.background, - border: `1px solid ${theme.experimental.roles.info.outline}`, - color: theme.experimental.roles.info.text, + backgroundColor: theme.roles.info.background, + border: `1px solid ${theme.roles.info.outline}`, + color: theme.roles.info.text, }), ]} > @@ -114,9 +114,9 @@ export const PreviewBadge: FC = () => { css={[ styles.badge, (theme) => ({ - border: `1px solid ${theme.experimental.roles.preview.outline}`, - backgroundColor: theme.experimental.roles.preview.background, - color: theme.experimental.roles.preview.text, + border: `1px solid ${theme.roles.preview.outline}`, + backgroundColor: theme.roles.preview.background, + color: theme.roles.preview.text, }), ]} > @@ -131,9 +131,9 @@ export const AlphaBadge: FC = () => { css={[ styles.badge, (theme) => ({ - border: `1px solid ${theme.experimental.roles.preview.outline}`, - backgroundColor: theme.experimental.roles.preview.background, - color: theme.experimental.roles.preview.text, + border: `1px solid ${theme.roles.preview.outline}`, + backgroundColor: theme.roles.preview.background, + color: theme.roles.preview.text, }), ]} > @@ -148,9 +148,9 @@ export const DeprecatedBadge: FC = () => { css={[ styles.badge, (theme) => ({ - border: `1px solid ${theme.experimental.roles.danger.outline}`, - backgroundColor: theme.experimental.roles.danger.background, - color: theme.experimental.roles.danger.text, + border: `1px solid ${theme.roles.danger.outline}`, + backgroundColor: theme.roles.danger.background, + color: theme.roles.danger.text, }), ]} > diff --git a/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx b/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx index 9313a395435cd..9d9ada835eea7 100644 --- a/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx +++ b/site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx @@ -108,10 +108,10 @@ export const DeleteDialog: FC = ({ const styles = { callout: (theme) => ({ - backgroundColor: theme.experimental.roles.danger.background, - border: `1px solid ${theme.experimental.roles.danger.outline}`, + backgroundColor: theme.roles.danger.background, + border: `1px solid ${theme.roles.danger.outline}`, borderRadius: theme.shape.borderRadius, - color: theme.experimental.roles.danger.text, + color: theme.roles.danger.text, padding: "8px 16px", }), } satisfies Record>; diff --git a/site/src/components/Dialogs/Dialog.tsx b/site/src/components/Dialogs/Dialog.tsx index 09b66b0c25111..f9c4c8f8a3083 100644 --- a/site/src/components/Dialogs/Dialog.tsx +++ b/site/src/components/Dialogs/Dialog.tsx @@ -72,24 +72,24 @@ export const DialogActionButtons: FC = ({ const styles = { dangerButton: (theme) => ({ "&.MuiButton-contained": { - backgroundColor: theme.experimental.roles.danger.fill.solid, - borderColor: theme.experimental.roles.danger.fill.outline, + backgroundColor: theme.roles.danger.fill.solid, + borderColor: theme.roles.danger.fill.outline, "&:not(.MuiLoadingButton-loading)": { - color: theme.experimental.roles.danger.fill.text, + color: theme.roles.danger.fill.text, }, "&:hover:not(:disabled)": { - backgroundColor: theme.experimental.roles.danger.hover.fill.solid, - borderColor: theme.experimental.roles.danger.hover.fill.outline, + backgroundColor: theme.roles.danger.hover.fill.solid, + borderColor: theme.roles.danger.hover.fill.outline, }, "&.Mui-disabled": { - backgroundColor: theme.experimental.roles.danger.disabled.background, - borderColor: theme.experimental.roles.danger.disabled.outline, + backgroundColor: theme.roles.danger.disabled.background, + borderColor: theme.roles.danger.disabled.outline, "&:not(.MuiLoadingButton-loading)": { - color: theme.experimental.roles.danger.disabled.fill.text, + color: theme.roles.danger.disabled.fill.text, }, }, }, diff --git a/site/src/components/HelpTooltip/HelpTooltip.tsx b/site/src/components/HelpTooltip/HelpTooltip.tsx index d890a79619df1..14fcd78ac3d2f 100644 --- a/site/src/components/HelpTooltip/HelpTooltip.tsx +++ b/site/src/components/HelpTooltip/HelpTooltip.tsx @@ -207,7 +207,7 @@ const styles = { display: "flex", alignItems: "center", ...(theme.typography.body2 as CSSObject), - color: theme.experimental.roles.active.fill.outline, + color: theme.roles.active.fill.outline, }), linkIcon: { diff --git a/site/src/components/InfoTooltip/InfoTooltip.tsx b/site/src/components/InfoTooltip/InfoTooltip.tsx index bce7d0bd5b2c8..552c2c274f29d 100644 --- a/site/src/components/InfoTooltip/InfoTooltip.tsx +++ b/site/src/components/InfoTooltip/InfoTooltip.tsx @@ -8,7 +8,7 @@ import { HelpTooltipTrigger, } from "components/HelpTooltip/HelpTooltip"; import { css, type Interpolation, type Theme, useTheme } from "@emotion/react"; -import type { ThemeRole } from "theme/experimental"; +import type { ThemeRole } from "theme/roles"; interface InfoTooltipProps { type?: ThemeRole; @@ -22,7 +22,7 @@ export const InfoTooltip: FC = ({ type = "info", }) => { const theme = useTheme(); - const iconColor = theme.experimental.roles[type].outline; + const iconColor = theme.roles[type].outline; return ( diff --git a/site/src/components/LastSeen/LastSeen.tsx b/site/src/components/LastSeen/LastSeen.tsx index 25ef1258a6558..72e8e310a979e 100644 --- a/site/src/components/LastSeen/LastSeen.tsx +++ b/site/src/components/LastSeen/LastSeen.tsx @@ -23,13 +23,13 @@ export const LastSeen: FC = ({ at, ...attrs }) => { // Since the agent reports on a 10m interval, // the last_used_at can be inaccurate when recent. message = "Now"; - color = theme.experimental.roles.success.fill.solid; + color = theme.roles.success.fill.solid; } else if (t.isAfter(now.subtract(3, "day"))) { color = theme.experimental.l2.text; } else if (t.isAfter(now.subtract(1, "month"))) { - color = theme.experimental.roles.warning.fill.solid; + color = theme.roles.warning.fill.solid; } else if (t.isAfter(now.subtract(100, "year"))) { - color = theme.experimental.roles.error.fill.solid; + color = theme.roles.error.fill.solid; } else { message = "Never"; } diff --git a/site/src/components/PaginationWidget/PageButtons.tsx b/site/src/components/PaginationWidget/PageButtons.tsx index d124b4562dab4..ec93b301f4cd1 100644 --- a/site/src/components/PaginationWidget/PageButtons.tsx +++ b/site/src/components/PaginationWidget/PageButtons.tsx @@ -74,14 +74,14 @@ const BasePageButton: FC = ({