Showing
diff --git a/web/packages/teleport/src/SideNav/SideNav.tsx b/web/packages/teleport/src/SideNav/SideNav.tsx
index ee21d63fad650..569255f2d6cad 100644
--- a/web/packages/teleport/src/SideNav/SideNav.tsx
+++ b/web/packages/teleport/src/SideNav/SideNav.tsx
@@ -76,15 +76,15 @@ const LogoItem = styled(Flex)(
text-decoration: none;
width: 100%;
&:hover {
- background ${props.theme.colors.primary.lighter};
- color ${props.theme.colors.primary.contrastText};
+ background ${props.theme.colors.levels.elevated};
+ color ${props.theme.colors.text.contrast};
}
`
);
export const Nav = styled.nav`
- background: ${props => props.theme.colors.primary.light};
- border-right: 1px solid ${props => props.theme.colors.primary.dark};
+ background: ${props => props.theme.colors.levels.surface};
+ border-right: 1px solid ${props => props.theme.colors.levels.sunkenSecondary};
overflow: auto;
height: 100%;
display: flex;
diff --git a/web/packages/teleport/src/SideNav/SideNavItem.tsx b/web/packages/teleport/src/SideNav/SideNavItem.tsx
index dc01e74c8d54c..74b342615e300 100644
--- a/web/packages/teleport/src/SideNav/SideNavItem.tsx
+++ b/web/packages/teleport/src/SideNav/SideNavItem.tsx
@@ -26,26 +26,26 @@ const fromTheme = ({ $nested = false, theme = defaultTheme }) => {
fontFamily: theme.font,
paddingLeft: theme.space[9] + 'px',
paddingRight: theme.space[5] + 'px',
- background: theme.colors.primary.light,
+ background: theme.colors.levels.surface,
color: theme.colors.text.secondary,
minHeight: '56px',
'&:active, &.active': {
- borderLeftColor: $nested ? 'none' : theme.colors.accent,
- background: theme.colors.primary.lighter,
- color: theme.colors.primary.contrastText,
+ borderLeftColor: $nested ? 'none' : theme.colors.brand.accent,
+ background: theme.colors.levels.elevated,
+ color: theme.colors.text.contrast,
fontWeight: theme.bold,
'.marker': {
- background: theme.colors.secondary.light,
+ background: theme.colors.brand.accent,
},
},
'&:hover': {
- background: theme.colors.primary.lighter,
+ background: theme.colors.levels.elevated,
},
'&:focus, &:hover': {
- color: theme.colors.primary.contrastText,
+ color: theme.colors.text.contrast,
},
};
diff --git a/web/packages/teleport/src/SideNav/SideNavItemGroup.tsx b/web/packages/teleport/src/SideNav/SideNavItemGroup.tsx
index 01b1512db9d9b..ade377b06ec4f 100644
--- a/web/packages/teleport/src/SideNav/SideNavItemGroup.tsx
+++ b/web/packages/teleport/src/SideNav/SideNavItemGroup.tsx
@@ -105,24 +105,24 @@ const fromTheme = ({ theme }) => {
fontFamily: theme.font,
paddingLeft: theme.space[9] + 'px',
paddingRight: theme.space[5] + 'px',
- background: theme.colors.primary.light,
+ background: theme.colors.levels.surface,
color: theme.colors.text.secondary,
'&.active': {
- borderLeftColor: theme.colors.accent,
- background: theme.colors.primary.lighter,
- color: theme.colors.primary.contrastText,
+ borderLeftColor: theme.colors.brand.accent,
+ background: theme.colors.levels.elevated,
+ color: theme.colors.text.contrast,
'.marker': {
- background: theme.colors.secondary.light,
+ background: theme.colors.brand.accent,
},
},
'&:hover': {
- background: theme.colors.primary.lighter,
+ background: theme.colors.levels.elevated,
},
'&:hover, &:focus': {
- color: theme.colors.primary.contrastText,
+ color: theme.colors.text.contrast,
},
minHeight: '56px',
@@ -131,7 +131,7 @@ const fromTheme = ({ theme }) => {
const StyledChildrenContainer = styled.div`
background: ${props =>
- `linefar-gradient(140deg, ${props.theme.colors.primary.lighter}, ${props.theme.colors.primary.light});`};
+ `linefar-gradient(140deg, ${props.theme.colors.levels.elevated}, ${props.theme.colors.levels.surface});`};
`;
const StyledMarker = styled.div`
diff --git a/web/packages/teleport/src/Support/Support.tsx b/web/packages/teleport/src/Support/Support.tsx
index bdc8d056c8171..25ef72a7c8de6 100644
--- a/web/packages/teleport/src/Support/Support.tsx
+++ b/web/packages/teleport/src/Support/Support.tsx
@@ -130,7 +130,7 @@ export const DataContainer: React.FC<{ title: string }> = ({
}) => (
props.theme.typography.body2}
&:hover, &:focus {
- background: ${props => props.theme.colors.primary.lighter};
+ background: ${props => props.theme.colors.levels.elevated};
}
`;
@@ -219,7 +219,7 @@ const Header = ({ title = '', icon = null }) => (
`${theme.space[6]}px`};
overflow-y: initial;
flex-shrink: 0;
- border-bottom: 1px solid ${({ theme }) => theme.colors.primary.main};
+ border-bottom: 1px solid
+ ${({ theme }) => theme.colors.levels.surfaceSecondary};
`;
diff --git a/web/packages/teleport/src/TrustedClusters/DeleteTrust/DeleteTrust.tsx b/web/packages/teleport/src/TrustedClusters/DeleteTrust/DeleteTrust.tsx
index 567733de90927..d08743b15a69b 100644
--- a/web/packages/teleport/src/TrustedClusters/DeleteTrust/DeleteTrust.tsx
+++ b/web/packages/teleport/src/TrustedClusters/DeleteTrust/DeleteTrust.tsx
@@ -43,7 +43,7 @@ export default function DeleteTrustedClusterDialog(props: Props) {
{attempt.isFailed && {attempt.message}}
Are you sure you want to delete trusted cluster{' '}
-
+
{name}
?
diff --git a/web/packages/teleport/src/TrustedClusters/TrustedList/TrustedListItem.tsx b/web/packages/teleport/src/TrustedClusters/TrustedList/TrustedListItem.tsx
index 01f9f8b01cc40..7d0b02780aaa8 100644
--- a/web/packages/teleport/src/TrustedClusters/TrustedList/TrustedListItem.tsx
+++ b/web/packages/teleport/src/TrustedClusters/TrustedList/TrustedListItem.tsx
@@ -36,7 +36,7 @@ export default function TrustedListItem(props: Props) {
flexDirection="column"
alignItems="center"
justifyContent="center"
- bg="primary.light"
+ bg="levels.surface"
px="5"
pt="4"
pb="5"
diff --git a/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap b/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap
index 67adf08693812..40b0541580070 100644
--- a/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap
+++ b/web/packages/teleport/src/Users/__snapshots__/Users.story.test.tsx.snap
@@ -412,7 +412,7 @@ exports[`success state 1`] = `
>
Showing
diff --git a/web/packages/teleport/src/Welcome/CardWelcome.tsx b/web/packages/teleport/src/Welcome/CardWelcome.tsx
index da9e9e5795099..2f08cec69aeee 100644
--- a/web/packages/teleport/src/Welcome/CardWelcome.tsx
+++ b/web/packages/teleport/src/Welcome/CardWelcome.tsx
@@ -19,7 +19,7 @@ import { Card, Box, Text, ButtonPrimary } from 'design';
export function CardWelcome({ title, subTitle, btnText, onClick }: Props) {
return (
-
+
{title}
diff --git a/web/packages/teleport/src/Welcome/NewCredentials/Expired.tsx b/web/packages/teleport/src/Welcome/NewCredentials/Expired.tsx
index 00f12a8846eac..d1712b113f7ba 100644
--- a/web/packages/teleport/src/Welcome/NewCredentials/Expired.tsx
+++ b/web/packages/teleport/src/Welcome/NewCredentials/Expired.tsx
@@ -23,7 +23,14 @@ export function Expired({ resetMode = false }) {
const paraCodeTxt = resetMode ? 'reset' : 'invite';
return (
-
+
{titleCodeTxt} Code Expired
diff --git a/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.story.tsx b/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.story.tsx
index 4b1fa486d186f..c54a95789f2d7 100644
--- a/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.story.tsx
+++ b/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.story.tsx
@@ -155,7 +155,7 @@ export const SuccessAndPrivateKeyEnabledReset = () => (
function CardWrapper({ children }) {
return (
-
+
{children}
);
diff --git a/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.tsx b/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.tsx
index 8740575da1ae0..4d4f6a8c2e456 100644
--- a/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.tsx
+++ b/web/packages/teleport/src/Welcome/NewCredentials/NewCredentials.tsx
@@ -119,7 +119,7 @@ export function NewCredentials(props: State & Props) {
}
return (
-
+
flows={loginFlows}
currFlow={flow}
diff --git a/web/packages/teleport/src/Welcome/NewCredentials/NewMfaDevice.tsx b/web/packages/teleport/src/Welcome/NewCredentials/NewMfaDevice.tsx
index 86b49d0b0c733..14aef5cbf65c5 100644
--- a/web/packages/teleport/src/Welcome/NewCredentials/NewMfaDevice.tsx
+++ b/web/packages/teleport/src/Welcome/NewCredentials/NewMfaDevice.tsx
@@ -143,7 +143,7 @@ export function NewMfaDevice(props: Props) {
justifyContent="center"
alignItems="center"
borderRadius={8}
- bg={mfaType?.value === 'optional' ? 'primary.lighter' : ''}
+ bg={mfaType?.value === 'optional' ? 'levels.elevated' : ''}
height={mfaType?.value === 'optional' ? '340px' : '240px'}
px={3}
>
diff --git a/web/packages/teleport/src/Welcome/NewCredentials/Success.tsx b/web/packages/teleport/src/Welcome/NewCredentials/Success.tsx
index 1e383798b378c..dd1b4d4f8cbd1 100644
--- a/web/packages/teleport/src/Welcome/NewCredentials/Success.tsx
+++ b/web/packages/teleport/src/Welcome/NewCredentials/Success.tsx
@@ -47,7 +47,7 @@ export function RegisterSuccess({
{
ml={2}
style={{ position: 'absolute', top: '6px', right: '16px' }}
fontSize="3"
- color="primary.lighter"
+ color="levels.elevated"
/>