Skip to content

Commit 43b9bc4

Browse files
committed
style: 💄 optimize selection color
1 parent a68af8f commit 43b9bc4

File tree

6 files changed

+5
-38
lines changed

6 files changed

+5
-38
lines changed

‎blog/another-blog/icon.png

-10.9 KB
Binary file not shown.

‎blog/another-blog/index.mdx

-9
This file was deleted.

‎blog/my-first-blog/index.mdx

-25
This file was deleted.

‎src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import type {HeadFC, PageProps} from "gatsby";
2+
import type {PageProps} from "gatsby";
33
import Layout from "@src/components/layout";
44
import Seo from "@src/components/Seo";
55
import BlogList from "@src/components/BlogList";

‎src/styles/global.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ body.light {
2222
}
2323

2424
body.dark{
25-
@apply bg-gray-900 selection:bg-indigo-500 text-white;
25+
@apply bg-gray-900 selection:bg-selection-dark text-white;
2626
}
2727

2828
.dark pre[class*='language-']::-moz-selection,
2929
.dark pre[class*='language-'] ::-moz-selection,
3030
.dark code[class*='language-']::-moz-selection,
3131
.dark code[class*='language-'] ::-moz-selection {
32-
@apply bg-indigo-500;
32+
@apply bg-selection-dark;
3333
}
3434

3535
.dark pre[class*='language-']::selection,
3636
.dark pre[class*='language-'] ::selection,
3737
.dark code[class*='language-']::selection,
3838
.dark code[class*='language-'] ::selection {
39-
@apply bg-indigo-500;
39+
@apply bg-selection-dark;
4040
}
4141

4242
.light pre[class*='language-']::-moz-selection,

‎tailwind.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
"font-code-light": "#859900",
1313
"bg-code-dark": "#2A2734",
1414
"font-code-dark": "#FFCC99",
15+
"selection-dark": "#91AD70"
1516
},
1617
},
1718
},

0 commit comments

Comments
 (0)