Skip to content

Commit

Permalink
design: 아이콘 버튼 테마 설정 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
pipisebastian authored Feb 15, 2024
1 parent b09d84b commit 03147a1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
26 changes: 26 additions & 0 deletions src/theme/components/button.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { defineStyleConfig } from '@chakra-ui/react';

const Button = defineStyleConfig({
sizes: {
icon_sm: {
fontSize: 'xl',
h: '24px',
w: '24px',
borderRadius: 'full',
},
icon_md: {
fontSize: '2xl',
h: '38px',
w: '38px',
borderRadius: 'full',
},
icon_lg: {
fontSize: '3xl',
h: '68px',
w: '68px',
borderRadius: 'full',
},
},
});

export default Button;
6 changes: 5 additions & 1 deletion src/theme/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const components = {};
import Button from './button';

const components = {
Button,
};

export default components;

0 comments on commit 03147a1

Please sign in to comment.