Skip to content

Commit

Permalink
Config: 공통테마적용
Browse files Browse the repository at this point in the history
  • Loading branch information
marina-yhm committed Oct 27, 2023
1 parent 11c16e3 commit 7300cbf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { BrowserRouter } from "react-router-dom";
import { ThemeProvider } from 'styled-components';
import theme from './style/theme/theme';

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<BrowserRouter>
<App />
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>

</BrowserRouter>
</React.StrictMode>
);
Expand Down
15 changes: 15 additions & 0 deletions src/style/theme/theme.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const theme = {
colors: {
MainColor: '#05422b',
HoverColor: '#3CB371',
accent: '#e0234e',
},
fontSize: {
small: '12px',
medium: '16px',
large: '24px',
},
// 여기에 더 많은 테마 변수를 추가할 수 있습니다.
};

export default theme;

0 comments on commit 7300cbf

Please sign in to comment.