Skip to content

Commit

Permalink
add app theme colors
Browse files Browse the repository at this point in the history
  • Loading branch information
firehawk89 committed Sep 29, 2023
1 parent 5d9cefc commit 181081f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import './global.css'
export default function RootLayout({ children }) {
return (
<html lang="en">
<body className="flex flex-col bg-slate-300">
<body className="bg-lightAccent dark:bg-darkAccent flex flex-col bg-slate-300">
<main>{children}</main>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion src/components/message.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Message({ sentAt, children }) {
alt="Picture of the author"
/>
</Link>
<div className="flex justify-between gap-2 rounded-lg rounded-bl-none w-fit max-w-md py-2 px-3 bg-orange-100">
<div className="bg-primary dark:bg-dark text-light flex justify-between gap-2 rounded-lg rounded-bl-none w-fit max-w-md py-2 px-3 bg-orange-100">
<p className="break-words">{children}</p>
<span className="text-xs self-end">{formatTime(sentAt)}</span>
</div>
Expand Down
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,jsx}'],
darkMode: 'class',
theme: {
colors: {
light: '#fff',
lightAccent: '#efeff3',
dark: '#18323b',
darkAccent: '#102024',
primary: '#00c2ed',
},
extend: {},
},
plugins: [],
Expand Down

0 comments on commit 181081f

Please sign in to comment.