Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
vicotor
frontend
Commits
992ed6f2
Commit
992ed6f2
authored
Jul 11, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
6249bdaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
11 deletions
+20
-11
Table.ts
theme/components/Table.ts
+1
-1
Tag.ts
theme/components/Tag.ts
+17
-8
useColors.ts
ui/navigation/useColors.ts
+2
-2
No files found.
theme/components/Table.ts
View file @
992ed6f2
...
...
@@ -10,7 +10,7 @@ const variantSimple: PartsStyleFunction<typeof parts> = (props) => {
color
:
mode
(
'
gray.500
'
,
'
gray.50
'
)(
props
),
},
thead
:
{
backgroundColor
:
mode
(
'
gray.50
'
,
'
whiteAlpha.
1
00
'
)(
props
),
backgroundColor
:
mode
(
'
gray.50
'
,
'
whiteAlpha.
2
00
'
)(
props
),
},
td
:
{
borderColor
:
mode
(
'
gray.200
'
,
'
whiteAlpha.200
'
)(
props
),
...
...
theme/components/Tag.ts
View file @
992ed6f2
import
type
{
tagAnatomy
as
parts
}
from
'
@chakra-ui/anatomy
'
;
import
type
{
ComponentStyleConfig
}
from
'
@chakra-ui/theme
'
;
import
{
mode
}
from
'
@chakra-ui/theme-tools
'
;
import
type
{
PartsStyleFunction
}
from
'
@chakra-ui/theme-tools
'
;
const
variantGray
:
PartsStyleFunction
<
typeof
parts
>
=
(
props
)
=>
{
return
{
container
:
{
bg
:
mode
(
'
gray.200
'
,
'
gray.600
'
)(
props
),
color
:
mode
(
'
gray.600
'
,
'
gray.50
'
)(
props
),
},
}
}
const
variants
=
{
gray
:
variantGray
,
}
const
Tag
:
ComponentStyleConfig
=
{
baseStyle
:
{
...
...
@@ -9,14 +25,7 @@ const Tag: ComponentStyleConfig = {
borderRadius
:
'
md
'
,
},
},
variants
:
{
gray
:
{
container
:
{
bg
:
'
gray.200
'
,
color
:
'
gray.600
'
,
},
},
},
variants
,
}
export
default
Tag
;
ui/navigation/useColors.ts
View file @
992ed6f2
...
...
@@ -5,11 +5,11 @@ export default function useColors() {
text
:
{
'
default
'
:
useColorModeValue
(
'
gray.600
'
,
'
gray.300
'
),
active
:
useColorModeValue
(
'
blue.700
'
,
'
gray.300
'
),
hover
:
useColorModeValue
(
'
blue.400
'
,
'
gray.100
'
)
,
hover
:
'
blue.400
'
,
},
bg
:
{
'
default
'
:
'
transparent
'
,
active
:
useColorModeValue
(
'
blue.50
'
,
'
gray.9
00
'
),
active
:
useColorModeValue
(
'
blue.50
'
,
'
whiteAlpha.2
00
'
),
},
}
}
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