Skip to content

Commit

Permalink
[FE] Design System (#13)
Browse files Browse the repository at this point in the history
* #7 design: 디자인 시스템 세팅 (#8)

* #7 design: 디자인 시스템 세팅

- 로고 컴포넌트, GlobalStyle, designSystem 생성
- icon svg 파일 업로드
- Pretendard font

* #7 refactor: 로고 컴포넌트 props 구조 수정

* #7 refactor: 디자인 시스템 세팅 리뷰 반영

- design modules 불필요한 변수 선언 없이 export default
- src 최상단 디렉터리 path alias 선언

* #7 design: light/dark 모드 design system 세팅

---------

Co-authored-by: 유지수 Jisoo Yoo <[email protected]>
  • Loading branch information
Kakamotobi and youzysu authored Jul 25, 2023
1 parent f44b559 commit d80d054
Show file tree
Hide file tree
Showing 33 changed files with 433 additions and 18 deletions.
9 changes: 7 additions & 2 deletions fe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Issue Tracker - Team 08</title>
<link
rel="stylesheet"
as="style"
crossorigin
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css" />
<title>팔팔한 이슈 트래커 - 88 Issue Tracker</title>
</head>
<body>
<div id="root"></div>
Expand Down
Binary file added fe/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions fe/src/App.css

This file was deleted.

30 changes: 26 additions & 4 deletions fe/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
import "./App.css";
import { useState } from "react";
import Logo from "@components/common/Logo";
import GlobalStyle from "@styles/GlobalStyle";
import { lightMode, darkMode } from "@styles/designSystem";
import styled, { ThemeProvider } from "styled-components";

function App() {
return <div></div>;
export default function App() {
const [themeMode, setThemeMode] = useState<"light" | "dark">("dark");

const toggleThemeMode = () => {
setThemeMode((prev) => {
return prev === "light" ? "dark" : "light";
});
};

return (
<ThemeProvider theme={themeMode === "light" ? lightMode : darkMode}>
<GlobalStyle />
<Logo size="large" />
<H1>적용 되니?</H1>
<button onClick={toggleThemeMode}>Theme Mode</button>
</ThemeProvider>
);
}

export default App;
const H1 = styled.h1`
color: ${({ theme: { neutral } }) => neutral.text.strong};
font: ${({ theme: { font } }) => font.displayMD12};
`;
3 changes: 3 additions & 0 deletions fe/src/assets/icon/Rectangle 16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions fe/src/assets/icon/alertCircle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions fe/src/assets/icon/archive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions fe/src/assets/icon/calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions fe/src/assets/icon/checkBoxActive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions fe/src/assets/icon/checkBoxInitial.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions fe/src/assets/icon/checkOffCircle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions fe/src/assets/icon/checkOnCircle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions fe/src/assets/icon/chevronDown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions fe/src/assets/icon/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions fe/src/assets/icon/label.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions fe/src/assets/icon/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions fe/src/assets/icon/milestone.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions fe/src/assets/icon/paperclip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions fe/src/assets/icon/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions fe/src/assets/icon/refreshCcw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d80d054

Please sign in to comment.