Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
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
LuckySwap
interface
Commits
1aa4afad
Unverified
Commit
1aa4afad
authored
Sep 27, 2022
by
vignesh mohankumar
Committed by
GitHub
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(theme): add stateOverlayPressed (#4690)
parent
58005d81
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
colors.ts
src/theme/colors.ts
+3
-0
index.tsx
src/theme/index.tsx
+1
-0
styled.d.ts
src/theme/styled.d.ts
+1
-0
No files found.
src/theme/colors.ts
View file @
1aa4afad
...
...
@@ -226,6 +226,7 @@ export interface Palette {
shallowShadow
:
Color
deepShadow
:
Color
stateOverlayHover
:
Color
stateOverlayPressed
:
Color
}
export
const
colorsLight
:
Palette
=
{
...
...
@@ -288,6 +289,7 @@ export const colorsLight: Palette = {
shallowShadow
:
'
6px 6px 10px rgba(51, 53, 72, 0.01), 2px 2px 6px rgba(51, 53, 72, 0.02), 1px 2px 2px rgba(51, 53, 72, 0.02);
'
,
stateOverlayHover
:
opacify
(
8
,
colors
.
gray300
),
stateOverlayPressed
:
opacify
(
24
,
colors
.
gray200
),
}
export
const
colorsDark
:
Palette
=
{
...
...
@@ -348,4 +350,5 @@ export const colorsDark: Palette = {
deepShadow
:
'
12px 16px 24px rgba(0, 0, 0, 0.24), 12px 8px 12px rgba(0, 0, 0, 0.24), 4px 4px 8px rgba(0, 0, 0, 0.32);
'
,
shallowShadow
:
'
4px 4px 10px rgba(0, 0, 0, 0.24), 2px 2px 4px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12);
'
,
stateOverlayHover
:
opacify
(
8
,
colors
.
gray300
),
stateOverlayPressed
:
opacify
(
24
,
colors
.
gray200
),
}
src/theme/index.tsx
View file @
1aa4afad
...
...
@@ -126,6 +126,7 @@ function uniswapThemeColors(darkMode: boolean): ThemeColors {
hoverState
:
opacify
(
24
,
ColorsPalette
.
blue200
),
hoverDefault
:
opacify
(
8
,
ColorsPalette
.
gray200
),
stateOverlayHover
:
darkMode
?
colorsDark
.
stateOverlayHover
:
colorsLight
.
stateOverlayHover
,
stateOverlayPressed
:
darkMode
?
colorsDark
.
stateOverlayPressed
:
colorsLight
.
stateOverlayPressed
,
}
}
...
...
src/theme/styled.d.ts
View file @
1aa4afad
...
...
@@ -58,6 +58,7 @@ export interface ThemeColors {
hoverState
:
Color
hoverDefault
:
Color
stateOverlayHover
:
Color
stateOverlayPressed
:
Color
}
export
interface
Colors
{
...
...
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