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
abfdc8ff
Commit
abfdc8ff
authored
Apr 24, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some colors and buttonVariants
parent
b152655c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
Theme.tsx
src/themes/Theme.tsx
+24
-0
No files found.
src/themes/Theme.tsx
View file @
abfdc8ff
...
@@ -23,12 +23,17 @@ const theme = createTheme({
...
@@ -23,12 +23,17 @@ const theme = createTheme({
secondary
:
palette
.
green
,
secondary
:
palette
.
green
,
tertiary
:
palette
.
yellow
,
tertiary
:
palette
.
yellow
,
black
:
palette
.
black
,
black
:
palette
.
black
,
white
:
palette
.
white
,
lightGray
:
palette
.
lightGray
,
gray
:
palette
.
gray
,
yellow
:
palette
.
yellow
,
},
},
spacing
:
{
spacing
:
{
s
:
8
,
s
:
8
,
m
:
16
,
m
:
16
,
l
:
24
,
l
:
24
,
xl
:
40
,
xl
:
40
,
// full: "100%",
},
},
breakpoints
:
{
breakpoints
:
{
phone
:
0
,
phone
:
0
,
...
@@ -46,6 +51,12 @@ const theme = createTheme({
...
@@ -46,6 +51,12 @@ const theme = createTheme({
defaults
:
{
defaults
:
{
// We can define a default text variant here.
// We can define a default text variant here.
},
},
primary
:
{
color
:
"primary"
,
},
secondary
:
{
color
:
"secondary"
,
},
},
},
cardVariants
:
{
cardVariants
:
{
defaults
:
{
defaults
:
{
...
@@ -71,6 +82,19 @@ const theme = createTheme({
...
@@ -71,6 +82,19 @@ const theme = createTheme({
elevation
:
5
,
elevation
:
5
,
},
},
},
},
buttonVariants
:
{
defaults
:
{
// We can define defaults for the variant here.
},
full
:
{
backgroundColor
:
"secondary"
,
color
:
"white"
,
},
clean
:
{
backgroundColor
:
"primary"
,
color
:
"secondary"
,
},
},
});
});
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