diff --git a/src/popup/copy-dark.svg b/src/popup/copy-dark.svg new file mode 100644 index 0000000..2b1d44e --- /dev/null +++ b/src/popup/copy-dark.svg @@ -0,0 +1,67 @@ + + + +image/svg+xml + + + + + + + \ No newline at end of file diff --git a/src/popup/popup.less b/src/popup/popup.less index 7e795b5..dbf66d1 100644 --- a/src/popup/popup.less +++ b/src/popup/popup.less @@ -50,3 +50,22 @@ body { .info { white-space: nowrap; } + +@media (prefers-color-scheme: dark) { + body { + background: #414141; + outline: 1px solid #7f7f7f; + color: #c4c4c4; + } + .copy { + background: url("../popup/copy-dark.svg") no-repeat; + } +} + +@media (prefers-color-scheme: light) { + body { + background: #f1f3f5; + outline: 1px solid #7f7f7f; + color: #343a40; + } +}