Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
af043c03
Commit
af043c03
authored
Jul 09, 2022
by
tom
Committed by
isstuev
Jul 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete alt theme
parent
3cee2624
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
47 deletions
+1
-47
README.md
README.md
+0
-2
_app.tsx
pages/_app.tsx
+1
-5
colors.ts
theme_alt/foundations/colors.ts
+0
-17
typography.ts
theme_alt/foundations/typography.ts
+0
-10
index.ts
theme_alt/index.ts
+0
-13
No files found.
README.md
View file @
af043c03
https://block-scout.vercel.app/
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
https://www.figma.com/file/07zoJSAP7Vo655ertmlppA/My_Account?node-id=279%3A1006
pages/_app.tsx
View file @
af043c03
...
@@ -2,14 +2,10 @@ import React from 'react';
...
@@ -2,14 +2,10 @@ import React from 'react';
import
type
{
AppProps
}
from
'
next/app
'
;
import
type
{
AppProps
}
from
'
next/app
'
;
import
{
ChakraProvider
}
from
'
@chakra-ui/react
'
;
import
{
ChakraProvider
}
from
'
@chakra-ui/react
'
;
import
theme
from
'
../theme/index
'
;
import
theme
from
'
../theme/index
'
;
import
altTheme
from
'
../theme_alt/index
'
;
import
{
useRouter
}
from
'
next/router
'
;
function
MyApp
({
Component
,
pageProps
}:
AppProps
)
{
function
MyApp
({
Component
,
pageProps
}:
AppProps
)
{
const
router
=
useRouter
();
return
(
return
(
<
ChakraProvider
theme=
{
router
.
query
.
theme
===
'
alt
'
?
altTheme
:
theme
}
>
<
ChakraProvider
theme=
{
theme
}
>
<
Component
{
...
pageProps
}
/>
<
Component
{
...
pageProps
}
/>
</
ChakraProvider
>
</
ChakraProvider
>
);
);
...
...
theme_alt/foundations/colors.ts
deleted
100644 → 0
View file @
3cee2624
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
;
theme_alt/foundations/typography.ts
deleted
100644 → 0
View file @
3cee2624
import
{
theme
}
from
'
@chakra-ui/react
'
;
const
typography
=
{
fonts
:
{
heading
:
`Raleway,
${
theme
.
fonts
.
heading
}
`
,
body
:
`Raleway,
${
theme
.
fonts
.
body
}
`
,
},
}
export
default
typography
;
theme_alt/index.ts
deleted
100644 → 0
View file @
3cee2624
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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment