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
e59c6b80
Commit
e59c6b80
authored
Jun 10, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alt theme
parent
0d585442
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
3 deletions
+51
-3
watchlist.ts
data/watchlist.ts
+1
-1
_app.tsx
pages/_app.tsx
+5
-1
_document.tsx
pages/_document.tsx
+4
-0
colors.ts
theme/foundations/colors.ts
+1
-1
colors.ts
theme_alt/foundations/colors.ts
+17
-0
typography.ts
theme_alt/foundations/typography.ts
+10
-0
index.ts
theme_alt/index.ts
+13
-0
No files found.
data/watchlist.ts
View file @
e59c6b80
...
...
@@ -18,7 +18,7 @@ export const watchlist = [
notification
:
false
,
},
{
address
:
'
0x8c461F78760988c4135e363a87dd736f8b671ff
0
'
,
address
:
'
0x8c461F78760988c4135e363a87dd736f8b671ff
1
'
,
tokenBalance
:
200.2
,
tokenBalanceUSD
:
202.4
,
totalUSD
:
3000.5
,
...
...
pages/_app.tsx
View file @
e59c6b80
...
...
@@ -2,10 +2,14 @@ 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=
{
theme
}
>
<
ChakraProvider
theme=
{
router
.
query
.
theme
===
'
alt
'
?
altTheme
:
theme
}
>
<
Component
{
...
pageProps
}
/>
</
ChakraProvider
>
);
...
...
pages/_document.tsx
View file @
e59c6b80
...
...
@@ -10,6 +10,10 @@ class MyDocument extends Document {
href=
"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap"
rel=
"stylesheet"
/>
<
link
href=
"https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,500;0,600;1,400&display=swap"
rel=
"stylesheet"
/>
</
Head
>
<
body
>
<
Main
/>
...
...
theme/foundations/colors.ts
View file @
e59c6b80
...
...
@@ -57,7 +57,7 @@ const colors = {
'
400
'
:
'
#30f7ae
'
,
'
500
'
:
'
#1fdd9b
'
,
'
600
'
:
'
#11ad7d
'
,
'
700
'
:
'
#047b5d
'
,
'
700
'
:
'
#047b5d
'
,
// <-
'
800
'
:
'
#004a33
'
,
'
900
'
:
'
#001b0f
'
,
},
...
...
theme_alt/foundations/colors.ts
0 → 100644
View file @
e59c6b80
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
0 → 100644
View file @
e59c6b80
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
0 → 100644
View file @
e59c6b80
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