Skip to content

Commit

Permalink
chore(autofmt): Automated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 14, 2023
1 parent 7233ea1 commit a1c7168
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 51 deletions.
34 changes: 17 additions & 17 deletions console/client/src/theme/colors.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { alpha } from '@mui/material/styles';
import { alpha } from '@mui/material/styles'

const withAlphas = (color) => {
return {
...color,
alpha4: alpha(color.main, 0.04),
alpha8: alpha(color.main, 0.08),
alpha12: alpha(color.main, 0.12),
alpha30: alpha(color.main, 0.30),
alpha50: alpha(color.main, 0.50)
};
};
alpha30: alpha(color.main, 0.3),
alpha50: alpha(color.main, 0.5),
}
}

export const neutral = {
50: '#F8F9FA',
Expand All @@ -21,50 +21,50 @@ export const neutral = {
600: '#4D5761',
700: '#2F3746',
800: '#1C2536',
900: '#111927'
};
900: '#111927',
}

export const indigo = withAlphas({
lightest: '#F5F7FF',
light: '#EBEEFE',
main: '#6366F1',
dark: '#4338CA',
darkest: '#312E81',
contrastText: '#FFFFFF'
});
contrastText: '#FFFFFF',
})

export const success = withAlphas({
lightest: '#F0FDF9',
light: '#3FC79A',
main: '#10B981',
dark: '#0B815A',
darkest: '#134E48',
contrastText: '#FFFFFF'
});
contrastText: '#FFFFFF',
})

export const info = withAlphas({
lightest: '#ECFDFF',
light: '#CFF9FE',
main: '#06AED4',
dark: '#0E7090',
darkest: '#164C63',
contrastText: '#FFFFFF'
});
contrastText: '#FFFFFF',
})

export const warning = withAlphas({
lightest: '#FFFAEB',
light: '#FEF0C7',
main: '#F79009',
dark: '#B54708',
darkest: '#7A2E0E',
contrastText: '#FFFFFF'
});
contrastText: '#FFFFFF',
})

export const error = withAlphas({
lightest: '#FEF3F2',
light: '#FEE4E2',
main: '#F04438',
dark: '#B42318',
darkest: '#7A271A',
contrastText: '#FFFFFF'
});
contrastText: '#FFFFFF',
})
6 changes: 3 additions & 3 deletions console/client/src/theme/create-shadows.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export const createShadows = () => {
'0px 8px 40px rgba(0, 0, 0, 0.08)',
'0px 8px 42px rgba(0, 0, 0, 0.08)',
'0px 9px 44px rgba(0, 0, 0, 0.08)',
'0px 9px 46px rgba(0, 0, 0, 0.08)'
];
};
'0px 9px 46px rgba(0, 0, 0, 0.08)',
]
}
47 changes: 24 additions & 23 deletions console/client/src/theme/create-typography.js
Original file line number Diff line number Diff line change
@@ -1,76 +1,77 @@
export const createTypography = () => {
return {
fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
fontFamily:
'"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
body1: {
fontSize: '1rem',
fontWeight: 400,
lineHeight: 1.5
lineHeight: 1.5,
},
body2: {
fontSize: '0.875rem',
fontWeight: 400,
lineHeight: 1.57
lineHeight: 1.57,
},
button: {
fontWeight: 600
fontWeight: 600,
},
caption: {
fontSize: '0.75rem',
fontWeight: 500,
lineHeight: 1.66
lineHeight: 1.66,
},
subtitle1: {
fontSize: '1rem',
fontWeight: 500,
lineHeight: 1.57
lineHeight: 1.57,
},
subtitle2: {
fontSize: '0.875rem',
fontWeight: 500,
lineHeight: 1.57
lineHeight: 1.57,
},
overline: {
fontSize: '0.75rem',
fontWeight: 600,
letterSpacing: '0.5px',
lineHeight: 2.5,
textTransform: 'uppercase'
textTransform: 'uppercase',
},
h1: {
fontFamily: '\'Plus Jakarta Sans\', sans-serif',
fontFamily: "'Plus Jakarta Sans', sans-serif",
fontWeight: 700,
fontSize: '3.5rem',
lineHeight: 1.2
lineHeight: 1.2,
},
h2: {
fontFamily: '\'Plus Jakarta Sans\', sans-serif',
fontFamily: "'Plus Jakarta Sans', sans-serif",
fontWeight: 700,
fontSize: '3rem',
lineHeight: 1.2
lineHeight: 1.2,
},
h3: {
fontFamily: '\'Plus Jakarta Sans\', sans-serif',
fontFamily: "'Plus Jakarta Sans', sans-serif",
fontWeight: 700,
fontSize: '2.25rem',
lineHeight: 1.2
lineHeight: 1.2,
},
h4: {
fontFamily: '\'Plus Jakarta Sans\', sans-serif',
fontFamily: "'Plus Jakarta Sans', sans-serif",
fontWeight: 700,
fontSize: '2rem',
lineHeight: 1.2
lineHeight: 1.2,
},
h5: {
fontFamily: '\'Plus Jakarta Sans\', sans-serif',
fontFamily: "'Plus Jakarta Sans', sans-serif",
fontWeight: 700,
fontSize: '1.5rem',
lineHeight: 1.2
lineHeight: 1.2,
},
h6: {
fontFamily: '\'Plus Jakarta Sans\', sans-serif',
fontFamily: "'Plus Jakarta Sans', sans-serif",
fontWeight: 700,
fontSize: '1.125rem',
lineHeight: 1.2
}
};
};
lineHeight: 1.2,
},
}
}
10 changes: 2 additions & 8 deletions console/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "es6",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -21,7 +17,5 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src/**/*"
]
"include": ["src/**/*"]
}

0 comments on commit a1c7168

Please sign in to comment.