Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[design] 색상, 그래디언트 재정의 #40

Merged
merged 3 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function App() {
return (
<div className="text-5xl">
<div className="text-5xl graphic-gradient">
<div className="flex flex-col">
<span>다람쥐 헌 쳇바퀴에 타고파</span>
<span>Hyundai Sans Text Office</span>
Expand Down
6 changes: 6 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@
font-family: "hdsans";
}
}

@layer components {
.graphic-gradient {
@apply bg-gradient-to-r from-[#3ED7BE] to-[#069AF8];
}
}
8 changes: 6 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/** @type {import('tailwindcss').Config} */
import redefinedStyles from "./tailwind.redefine.js";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다른 파일로 분리해서 커스텀 스타일을 관리하는 것 아주 좋습니다.


export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
extend: {
...redefinedStyles,
},
fontFamily: {
"ds-digital": ["ds-digital"],
"hdsans": ["hdsans"],
hdsans: ["hdsans"],
},
},
plugins: [],
Expand Down
60 changes: 60 additions & 0 deletions tailwind.redefine.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
export default {
colors: {
blue: {
100: "#ECF9FF",
200: "#CFF0FF",
300: "#97E0FF",
400: "#3CC5FF",
500: "#36B1E6",
600: "#309ECC",
700: "#247699",
800: "#1B5973",
900: "#154559",
},
green: {
100: "#D5FDF8",
200: "#BBFBF0",
300: "#9AF0E2",
400: "#3ED7BE",
500: "#38C2AB",
600: "#32AC98",
700: "#258172",
800: "#258172",
900: "#164B43",
},
yellow: {
100: "#FFEECD",
200: "#FFDD9C",
300: "#FFD076",
400: "#F9BB44",
500: "#E0A83D",
600: "#C79636",
700: "#BB8C33",
800: "#957029",
900: "#70541F",
},
red: {
100: "#F9DCDB",
200: "#F4BAB7",
300: "#EE9793",
400: "#E9756F",
500: "#E3524A",
600: "#B6423C",
700: "#88312D",
800: "#5B211E",
900: "#2D100F",
},
neutral: {
100: "#E4E4E4",
200: "#C8C8C9",
300: "#ADADAF",
400: "#919294",
500: "#767679",
600: "#5E5F61",
700: "#474749",
800: "#2F2F30",
900: "#181818",
},
black: "#0D0D0D",
},
};