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
a9a2e0ea
Commit
a9a2e0ea
authored
Apr 24, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the colors most likely to be used in the theme. kept the other default for now.
parent
5021ee8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
App.tsx
App.tsx
+1
-1
Theme.tsx
src/themes/Theme.tsx
+8
-3
Variants.tsx
src/themes/Variants.tsx
+1
-1
No files found.
App.tsx
View file @
a9a2e0ea
...
@@ -10,7 +10,7 @@ export default function App() {
...
@@ -10,7 +10,7 @@ export default function App() {
<
ThemeProvider
theme=
{
theme
}
>
<
ThemeProvider
theme=
{
theme
}
>
<
View
style=
{
styles
.
container
}
>
<
View
style=
{
styles
.
container
}
>
<
StatusBar
style=
"auto"
/>
<
StatusBar
style=
"auto"
/>
<
Text
color=
"
cardPrimaryBackground
"
>
Restyle Text
</
Text
>
<
Text
color=
"
tertiary
"
>
Restyle Text
</
Text
>
<
Card
variant=
{
"elevated"
}
width=
{
200
}
height=
{
200
}
/>
<
Card
variant=
{
"elevated"
}
width=
{
200
}
height=
{
200
}
/>
</
View
>
</
View
>
</
ThemeProvider
>
</
ThemeProvider
>
...
...
src/themes/Theme.tsx
View file @
a9a2e0ea
...
@@ -10,13 +10,18 @@ const palette = {
...
@@ -10,13 +10,18 @@ const palette = {
greenDark
:
"#0A906E"
,
greenDark
:
"#0A906E"
,
black
:
"#0B0B0B"
,
black
:
"#0B0B0B"
,
white
:
"#F0F2F3"
,
white
:
"#FFFFFF"
,
green
:
"#00875A"
,
lightGray
:
"#F4F5F7"
,
gray
:
"#747E98"
,
yellow
:
"#F4C44A"
,
};
};
const
theme
=
createTheme
({
const
theme
=
createTheme
({
colors
:
{
colors
:
{
mainBackground
:
palette
.
white
,
primary
:
palette
.
white
,
cardPrimaryBackground
:
palette
.
purplePrimary
,
secondary
:
palette
.
green
,
tertiary
:
palette
.
yellow
,
black
:
palette
.
black
,
black
:
palette
.
black
,
},
},
spacing
:
{
spacing
:
{
...
...
src/themes/Variants.tsx
View file @
a9a2e0ea
...
@@ -8,6 +8,6 @@ export const cardVariants = createVariant<Theme, "cardVariants">({
...
@@ -8,6 +8,6 @@ export const cardVariants = createVariant<Theme, "cardVariants">({
phone
:
"s"
,
phone
:
"s"
,
tablet
:
"m"
,
tablet
:
"m"
,
},
},
backgroundColor
:
"
cardPrimaryBackground
"
,
backgroundColor
:
"
secondary
"
,
},
},
});
});
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