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
8700676e
Commit
8700676e
authored
Apr 24, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add default breakpoints and cardVariant
parent
6bafb50c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
Theme.tsx
src/themes/Theme.tsx
+29
-0
No files found.
src/themes/Theme.tsx
View file @
8700676e
...
@@ -17,6 +17,7 @@ const theme = createTheme({
...
@@ -17,6 +17,7 @@ const theme = createTheme({
colors
:
{
colors
:
{
mainBackground
:
palette
.
white
,
mainBackground
:
palette
.
white
,
cardPrimaryBackground
:
palette
.
purplePrimary
,
cardPrimaryBackground
:
palette
.
purplePrimary
,
black
:
palette
.
black
,
},
},
spacing
:
{
spacing
:
{
s
:
8
,
s
:
8
,
...
@@ -24,6 +25,10 @@ const theme = createTheme({
...
@@ -24,6 +25,10 @@ const theme = createTheme({
l
:
24
,
l
:
24
,
xl
:
40
,
xl
:
40
,
},
},
breakpoints
:
{
phone
:
0
,
tablet
:
768
,
},
textVariants
:
{
textVariants
:
{
header
:
{
header
:
{
fontWeight
:
"bold"
,
fontWeight
:
"bold"
,
...
@@ -37,6 +42,30 @@ const theme = createTheme({
...
@@ -37,6 +42,30 @@ const theme = createTheme({
// We can define a default text variant here.
// We can define a default text variant here.
},
},
},
},
cardVariants
:
{
defaults
:
{
// We can define defaults for the variant here.
// This will be applied after the defaults passed to createVariant and before the variant defined below.
},
regular
:
{
// We can refer to other values in the theme here, and use responsive props
padding
:
{
phone
:
"s"
,
tablet
:
"m"
,
},
},
elevated
:
{
padding
:
{
phone
:
"s"
,
tablet
:
"m"
,
},
shadowColor
:
"black"
,
shadowOpacity
:
0.5
,
shadowOffset
:
{
width
:
10
,
height
:
10
},
shadowRadius
:
10
,
elevation
:
5
,
},
},
});
});
export
type
Theme
=
typeof
theme
;
export
type
Theme
=
typeof
theme
;
...
...
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