Skip to content

Commit 1e5e166

Browse files
committed
Dark mode changes
1 parent 0934eb2 commit 1e5e166

File tree

6 files changed

+58
-56
lines changed

6 files changed

+58
-56
lines changed

src/assets/css/app.css

Lines changed: 23 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,59 +4,31 @@
44
*/
55

66
.theme-light {
7-
--bg-background-primary: white;
8-
--bg-background-secondary: #f7fafc;
9-
--bg-background-tertiary: #e2e8f0;
10-
11-
--bg-background-form: white;
12-
13-
--text-copy-primary: #2d3748;
14-
--text-copy-secondary: #4a5568;
15-
16-
--border-border-color-primary: white;
17-
}
18-
19-
.theme-light .search-highlighted {
20-
background: #f0fff4;
21-
}
22-
23-
.theme-light .search-hover:hover {
24-
background: #f0fff4;
25-
}
26-
27-
.theme-dark .markdown-body {
28-
color: #24292e;
29-
}
30-
31-
.theme-dark .search-highlighted {
32-
background: #2d3748;
33-
}
34-
35-
.theme-dark .search-hover:hover {
36-
background: #2d3748;
7+
/*
8+
** Light Mode: Background Colors Variables
9+
*/
10+
--bg-background-primary: #f7f8fc;
11+
--bg-background-secondary: #ffffff;
12+
--bg-background-ternary: #f6f7f8;
13+
/*
14+
** Light Mode: Body Text Colors Variables
15+
*/
16+
--text-liText-primary: rgba(107, 114, 128, 1);
17+
--text-liText-secondary: rgba(75, 85, 99, 1);
18+
--text-liText-ternary: rgba(31, 41, 55, 1);
3719
}
3820

3921
.theme-dark {
22+
/*
23+
** Dark Mode: Background Colors Variables
24+
*/
4025
--bg-background-primary: #0d2438;
41-
--bg-background-secondary: #102c44;
42-
--bg-background-tertiary: #1e3951;
43-
44-
--bg-background-form: #1a202c;
45-
46-
--text-copy-primary: #cbd5e0;
47-
--text-copy-secondary: #e2e8f0;
48-
49-
--border-border-color-primary: #1a202c;
50-
}
51-
52-
.theme-dark .markdown-body {
53-
color: #cbd5e0;
54-
}
55-
56-
.theme-dark nav .active {
57-
@apply border-white border-b;
58-
}
59-
60-
.content-wrapper {
61-
transition: background-color 0.25s;
26+
--bg-background-secondary: #102d44;
27+
--bg-background-ternary: #1e3851;
28+
/*
29+
** Dark Mode: Body Text Colors Variables
30+
*/
31+
--text-liText-primary: #ffffff;
32+
--text-liText-secondary: #f7f8fc;
33+
--text-liText-ternary: #f6f7f8;
6234
}

src/assets/css/tailwind.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,33 @@
33
@tailwind components;
44

55
@tailwind utilities;
6+
7+
.theme-light {
8+
/*
9+
** Light Mode: Background Colors Variables
10+
*/
11+
--bg-background-primary: #f7f8fc;
12+
--bg-background-secondary: #ffffff;
13+
--bg-background-ternary: #f6f7f8;
14+
/*
15+
** Light Mode: Body Text Colors Variables
16+
*/
17+
--text-liText-primary: rgba(107, 114, 128, 1);
18+
--text-liText-secondary: rgba(75, 85, 99, 1);
19+
--text-liText-ternary: rgba(31, 41, 55, 1);
20+
}
21+
22+
.theme-dark {
23+
/*
24+
** Dark Mode: Background Colors Variables
25+
*/
26+
--bg-background-primary: #0d2438;
27+
--bg-background-secondary: #102d44;
28+
--bg-background-ternary: #1e3851;
29+
/*
30+
** Dark Mode: Body Text Colors Variables
31+
*/
32+
--text-liText-primary: #ffffff;
33+
--text-liText-secondary: #f7f8fc;
34+
--text-liText-ternary: #f6f7f8;
35+
}

src/components/about/AboutCounter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="mt-10 sm:mt-20 bg-gray-100 shadow-sm">
2+
<div class="mt-10 sm:mt-20 bg-red-100 dark:bg-red-500 shadow-sm">
33
<div
44
class="container mx-auto py-20 block sm:flex sm:justify-between sm:items-center"
55
>

src/components/shared/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="container mx-auto bg-white pt-20 sm:pt-40 pb-8">
2+
<div class="container mx-auto pt-20 sm:pt-40 pb-8">
33
<div class="flex flex-col justify-center items-center mb-12 sm:mb-28">
44
<p class="text-3xl sm:text-4xl font-semibold text-gray-500 mb-5">
55
Follow me

src/components/shared/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<nav id="nav" class="container mx-auto bg-white">
2+
<nav id="nav" class="container mx-auto">
33
<div class="md:flex items-center justify-between my-6">
44
<div class="flex justify-between items-center">
55
<div class="text-2xl font-bold text-gray-800 md:text-3xl">

tailwind.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
purge: { content: ['./public/**/*.html', './src/**/*.vue'] },
3-
darkMode: false, // or 'media' or 'class'
2+
content: ['./src/**/*.vue', './src/**/*.js', './src/**/*.html'],
3+
darkMode: 'class',
44
theme: {
55
extend: {
66
colors: {

0 commit comments

Comments
 (0)