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
baadde83
Commit
baadde83
authored
Apr 25, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add text variants
parent
b67a4fa9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
Theme.tsx
src/themes/Theme.tsx
+11
-3
Variants.tsx
src/themes/Variants.tsx
+9
-0
No files found.
src/themes/Theme.tsx
View file @
baadde83
...
@@ -51,6 +51,11 @@ const theme = createTheme({
...
@@ -51,6 +51,11 @@ const theme = createTheme({
tablet
:
768
,
tablet
:
768
,
},
},
textVariants
:
{
textVariants
:
{
defaults
:
{
// We can define a default text variant here.
color
:
"gray"
,
},
header
:
{
header
:
{
fontWeight
:
"bold"
,
fontWeight
:
"bold"
,
fontSize
:
34
,
fontSize
:
34
,
...
@@ -59,9 +64,6 @@ const theme = createTheme({
...
@@ -59,9 +64,6 @@ const theme = createTheme({
fontSize
:
16
,
fontSize
:
16
,
lineHeight
:
24
,
lineHeight
:
24
,
},
},
defaults
:
{
// We can define a default text variant here.
},
primary
:
{
primary
:
{
color
:
"primary"
,
color
:
"primary"
,
},
},
...
@@ -74,6 +76,12 @@ const theme = createTheme({
...
@@ -74,6 +76,12 @@ const theme = createTheme({
white
:
{
white
:
{
color
:
"white"
,
color
:
"white"
,
},
},
gray
:
{
color
:
"gray"
,
},
lightGray
:
{
color
:
"lightGray"
,
},
},
},
cardVariants
:
{
cardVariants
:
{
defaults
:
{
defaults
:
{
...
...
src/themes/Variants.tsx
View file @
baadde83
...
@@ -25,3 +25,12 @@ export const buttonVariants = createVariant<Theme, "buttonVariants">({
...
@@ -25,3 +25,12 @@ export const buttonVariants = createVariant<Theme, "buttonVariants">({
},
},
},
},
});
});
export
const
textVariants
=
createVariant
<
Theme
,
"textVariants"
>
({
themeKey
:
"textVariants"
,
defaults
:
{
fontSize
:
16
,
fontWeight
:
"normal"
,
color
:
"gray"
,
},
});
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