Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
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
G
beasy-mobile
Commits
197cada0
Commit
197cada0
authored
Sep 11, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add color transparent and a card variants
parent
8b0f03fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Theme.tsx
src/themes/Theme.tsx
+2
-0
cardVariants.ts
src/themes/variants/cardVariants.ts
+9
-0
No files found.
src/themes/Theme.tsx
View file @
197cada0
...
@@ -14,6 +14,7 @@ const palette = {
...
@@ -14,6 +14,7 @@ const palette = {
black
:
"#0B0B0B"
,
black
:
"#0B0B0B"
,
white
:
"#FFFFFF"
,
white
:
"#FFFFFF"
,
transparent
:
"transparent"
,
green
:
"#00875A"
,
green
:
"#00875A"
,
lightGray
:
"#F4F5F7"
,
lightGray
:
"#F4F5F7"
,
gray
:
"#747E98"
,
gray
:
"#747E98"
,
...
@@ -30,6 +31,7 @@ const theme = createTheme({
...
@@ -30,6 +31,7 @@ const theme = createTheme({
tertiary
:
palette
.
yellow
,
tertiary
:
palette
.
yellow
,
black
:
palette
.
black
,
black
:
palette
.
black
,
white
:
palette
.
white
,
white
:
palette
.
white
,
transparent
:
palette
.
transparent
,
lightGray
:
palette
.
lightGray
,
lightGray
:
palette
.
lightGray
,
gray
:
palette
.
gray
,
gray
:
palette
.
gray
,
yellow
:
palette
.
yellow
,
yellow
:
palette
.
yellow
,
...
...
src/themes/variants/cardVariants.ts
View file @
197cada0
import
{
OVERLAY_BACKDROP_Z_INDEX
}
from
"@/contexts/ModalsManagerContext"
;
import
{
Dimensions
}
from
"react-native"
;
import
{
Dimensions
}
from
"react-native"
;
export
const
cardVariants
=
{
export
const
cardVariants
=
{
...
@@ -59,4 +60,12 @@ export const cardVariants = {
...
@@ -59,4 +60,12 @@ export const cardVariants = {
overflow
:
"hidden"
,
overflow
:
"hidden"
,
borderRadius
:
15
,
borderRadius
:
15
,
},
},
absoluteForegroundScreenSizedTransparentCard
:
{
width
:
"100%"
,
height
:
"100%"
,
position
:
"absolute"
,
backgroundColor
:
"transparent"
,
zIndex
:
OVERLAY_BACKDROP_Z_INDEX
+
1
,
margin
:
0
,
},
};
};
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