Skip to content

Commit

Permalink
adjusting theme
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheartcliff committed Feb 24, 2024
1 parent 13aa677 commit f8be403
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Footer = () => {
return (
<footer className=" py-10 text-center text-gray-700">
<div className="flex items-center justify-center">
<p className="mr-2">Made with </p>
<p className="mr-2">Made with</p>
<HeartFilled className="text-red-700" />
<p className="ml-2"> by Lucas Morais</p>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/components/Timeline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import React, { useEffect, useState } from 'react';

import Item from './Item';

const theme = require('@/styles/themes');

interface ItemNode {
key: string;
title: string;
Expand Down Expand Up @@ -110,6 +112,7 @@ export default function Timeline({ data }: Props) {
const result: TimelineItemProps = {
children: renderItem(n),
position: 'right',
color: theme.primary,
};
if (n.isChild) result.color = 'gray';
return result;
Expand Down
3 changes: 3 additions & 0 deletions src/styles/themes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
primary: '#253db6',
};
4 changes: 3 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('tailwindcss').Config} */
const theme = require('./src/styles/themes');

module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
Expand Down Expand Up @@ -43,7 +45,7 @@ module.exports = {
800: '#2c5282',
900: '#2a4365',
},
primary: '#0052ff',
primary: theme.primary,
},
},
},
Expand Down

0 comments on commit f8be403

Please sign in to comment.