mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 04:56:36 +00:00
chore: add Button primary variant on theme
This commit is contained in:
parent
b60e17150b
commit
0d0c486240
2 changed files with 19 additions and 0 deletions
18
src/theme/components/Button.ts
Normal file
18
src/theme/components/Button.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
export const Button = {
|
||||||
|
variants: {
|
||||||
|
primary: {
|
||||||
|
py: '8px',
|
||||||
|
px: '32px',
|
||||||
|
borderRadius: 0,
|
||||||
|
width: { base: '188px', md: 'auto' },
|
||||||
|
// TODO: move to theme colors
|
||||||
|
bg: 'brand.light.primary',
|
||||||
|
_hover: { bg: 'brand.light.secondary' },
|
||||||
|
_focus: {
|
||||||
|
bg: 'brand.light.primary',
|
||||||
|
boxShadow: 'inset 0 0 0 2px #06fece !important'
|
||||||
|
},
|
||||||
|
_active: { borderTop: '4px solid', borderColor: 'green.200', pt: '4px' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
1
src/theme/components/index.ts
Normal file
1
src/theme/components/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './Button';
|
||||||
Loading…
Reference in a new issue