Skip to content

Commit f605579

Browse files
committed
colors.
1 parent 65b4767 commit f605579

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

src/pages/ProjectPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ const ProjectPage = () => {
6161
<Link to="/" className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4">
6262
<ArrowLeftIcon size={24} /> Back to Home
6363
</Link>
64-
<h1 className="text-4xl font-bold tracking-tight text-white sm:text-6xl">{project.title}</h1>
64+
<h1 className="text-4xl font-bold tracking-tight text-markdown-hx-color sm:text-6xl">{project.title}</h1>
6565
{project.image && <img src={project.image} alt={project.title} className="mt-8 w-full rounded-lg text-gray-200" />}
66-
<div className="mt-6 text-lg leading-8 text-gray-300 prose prose-invert">
66+
<div className="mt-6 text-lg leading-8 text-gray-300 prose prose-dark">
6767
<ReactMarkdown>{project.fullContent}</ReactMarkdown>
6868
</div>
6969
</div>

tailwind.config.js

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,22 @@ module.exports = {
1414
},
1515
colors: {
1616
primary: {
17-
400: '#f87171',
18-
500: '#ef4444',
19-
600: '#dc2626',
17+
400: '#f87171', // red-400
18+
500: '#ef4444', // red-500
19+
600: '#dc2626', // red-600
2020
},
2121
secondary: {
22-
400: '#fb923c',
22+
400: '#fb923c', // orange-400
2323
},
24-
book: '#3b82f6',
25-
movie: '#ef4444',
26-
game: '#22c55e',
27-
article: '#f97316',
28-
music: '#a855f7',
29-
series: '#ec4899',
30-
'title-hover': '#fdd4a6',
24+
book: '#3b82f6', // blue-500
25+
movie: '#ef4444', // red-500
26+
game: '#22c55e', // green-500
27+
article: '#f97316', // orange-500
28+
music: '#a855f7', // purple-500
29+
series: '#ec4899', // pink-500
30+
'title-hover': '#fdd4a6', // orange-200
31+
'markdown-title-color': '#fed7aa', // orange-200
32+
'markdown-hx-color': '#ffedd5', // orange-100
3133
'dev-card-bg': 'rgba(68, 64, 60, 0.1)', // stone-900/10
3234
'dev-card-bg-hover': 'rgba(120, 113, 108, 0.2)', // stone-500/20
3335
'takes-card-bg': 'rgba(6, 95, 70, 0.15)', // emerald-900/15
@@ -45,22 +47,22 @@ module.exports = {
4547
},
4648

4749
h1: {
48-
color: theme('colors.gray.100'),
50+
color: theme('colors.markdown-hx-color'),
4951
},
5052
h2: {
51-
color: theme('colors.gray.100'),
53+
color: theme('colors.markdown-hx-color'),
5254
},
5355
h3: {
54-
color: theme('colors.gray.100'),
56+
color: theme('colors.markdown-hx-color'),
5557
},
5658
h4: {
57-
color: theme('colors.gray.100'),
59+
color: theme('colors.markdown-hx-color'),
5860
},
5961
h5: {
60-
color: theme('colors.gray.100'),
62+
color: theme('colors.markdown-hx-color'),
6163
},
6264
h6: {
63-
color: theme('colors.gray.100'),
65+
color: theme('colors.markdown-hx-color'),
6466
},
6567

6668
strong: {

0 commit comments

Comments
 (0)