Commit af043c03 authored by tom's avatar tom Committed by isstuev

delete alt theme

parent 3cee2624
https://block-scout.vercel.app/
https://block-scout.vercel.app/?theme=alt - alt theme for demo purpose only
https://www.figma.com/file/07zoJSAP7Vo655ertmlppA/My_Account?node-id=279%3A1006
......@@ -2,14 +2,10 @@ import React from 'react';
import type { AppProps } from 'next/app';
import { ChakraProvider } from '@chakra-ui/react';
import theme from '../theme/index';
import altTheme from '../theme_alt/index';
import { useRouter } from 'next/router';
function MyApp({ Component, pageProps }: AppProps) {
const router = useRouter();
return (
<ChakraProvider theme={ router.query.theme === 'alt' ? altTheme : theme }>
<ChakraProvider theme={ theme }>
<Component { ...pageProps }/>
</ChakraProvider>
);
......
const colors = {
// main colors
brand: {
'50': '#ffe2f4',
'100': '#ffb1d7',
'200': '#ff7eba',
'300': '#ff4c9e',
'400': '#fe1b83',
'500': '#e40169',
'600': '#b30052',
'700': '#81003a',
'800': '#4f0023',
'900': '#1f000e',
},
}
export default colors;
import { theme } from '@chakra-ui/react';
const typography = {
fonts: {
heading: `Raleway, ${ theme.fonts.heading }`,
body: `Raleway, ${ theme.fonts.body }`,
},
}
export default typography;
import { extendTheme } from '@chakra-ui/react';
import typography from './foundations/typography';
import borders from '../theme/foundations/borders';
import colors from './foundations/colors';
const overrides = {
...typography,
...borders,
colors,
}
export default extendTheme(overrides);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment