Skip to content

Commit

Permalink
feat: css 제너레이터 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
imddoy committed Jul 3, 2024
1 parent bf83c8f commit adb547b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
23 changes: 23 additions & 0 deletions src/styles/generator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { css } from "styled-components";

export const Generators = {
flexGenerator: (flexDirection = "row", justifyContent = "center", alignItems = "center") => css`
display: flex;
flex-direction: ${flexDirection};
justify-content: ${justifyContent};
align-items: ${alignItems};
`,
fontGenerator: (
fontSize = "1.6rem",
fontWeight = "normal",
lineHeight = "normal",
letterSpacing = "normal",
fontStyle = "normal"
) => css`
font-weight: ${fontWeight};
font-size: ${fontSize};
font-style: ${fontStyle};
line-height: ${lineHeight};
letter-spacing: ${letterSpacing};
`,
};
3 changes: 0 additions & 3 deletions src/styles/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ const global = createGlobalStyle`
box-sizing: border-box;
}
body {
/* background-color: ${({ theme }) => theme.colors.gray900};; */
}
html {
-webkit-touch-callout: none;
Expand Down

0 comments on commit adb547b

Please sign in to comment.