Skip to content

Commit 8e5267d

Browse files
author
Roshan Jossy
committed
use dark colorscheme for dark mode
1 parent 53850a6 commit 8e5267d

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

src/components/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Card({
99
}) {
1010
return (
1111
<div
12-
className={`py-4 px-8 bg-white dark:bg-slate-800 rounded-lg ${classes}`}
12+
className={`py-4 px-8 bg-white dark:bg-dark-700 rounded-lg ${classes}`}
1313
>
1414
{children}
1515
</div>

src/components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Layout({
1313
sidebarContentRight,
1414
}: LayoutProps) {
1515
return (
16-
<div className="mx-auto bg-gray-100 dark:bg-slate-700 min-h-screen">
16+
<div className="mx-auto bg-gray-100 dark:bg-dark-800 min-h-screen">
1717
<Navbar />
1818
<div className="grid grid-cols-9 gap-10 mt-10 px-20 pt-10">
1919
{sidebarContentLeft && (

src/components/UserDetails/Badges/BadgeList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const BadgeList = ({ user }: any) => {
3636
))}
3737
{hasNext ? (
3838
<button
39+
className="text-gray-600 dark:text-gray-300"
3940
onClick={() => {
4041
loadNext(2)
4142
}}

src/components/issue/Issue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Issue = ({ issue }: IssueProps) => {
2020
issue
2121
)
2222
return (
23-
<div className="flex flex-col p-6 rounded-lg shadow-lg hover:shadow-md bg-white dark:bg-slate-800">
23+
<div className="flex flex-col p-6 rounded-lg shadow-lg hover:shadow-md bg-white dark:bg-dark-700">
2424
<a href={data.url} target="_blank" rel="noopener noreferrer">
2525
<div className="flex flex-row">
2626
<img

src/components/navbar/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function Navbar() {
1010
const router = useRouter()
1111
const { pathname } = router
1212
return (
13-
<nav className="fixed top-0 left-0 right-0 z-10 w-full h-16 bg-white dark:bg-slate-800 p-3 shadow-sm">
13+
<nav className="fixed top-0 left-0 right-0 z-10 w-full h-16 bg-white dark:bg-dark-700 p-3 shadow-sm">
1414
<div className="container m-auto flex justify-between">
1515
<a href="/">
1616
<div className="logo w-10 h-10"></div>

tailwind.config.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ module.exports = {
44
'./src/components/**/*.{js,ts,jsx,tsx}',
55
],
66
theme: {
7-
extend: {},
7+
extend: {
8+
colors: {
9+
dark: {
10+
50: '#fdf8f6',
11+
100: '#f2e8e5',
12+
200: '#eaddd7',
13+
300: '#e0cec7',
14+
400: '#d2bab0',
15+
500: '#bfa094',
16+
600: '#40444b',
17+
700: '#36393f',
18+
800: '#2f3136',
19+
900: '#202225',
20+
},
21+
},
22+
},
823
},
924
darkMode: 'class',
1025
plugins: [require('@tailwindcss/typography')],

0 commit comments

Comments
 (0)