Skip to content

Commit 3a59874

Browse files
committed
changed darkMode coloring to tw-zinc color
1 parent 74cf032 commit 3a59874

File tree

8 files changed

+38
-14
lines changed

8 files changed

+38
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
.env
1010
.env.backup
1111
.phpunit.result.cache
12+
.idea

resources/css/_scroll.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.light {
2+
*::-webkit-scrollbar {
3+
width: 13px;
4+
}
5+
*::-webkit-scrollbar-track {
6+
@apply bg-transparent;
7+
}
8+
*::-webkit-scrollbar-thumb {
9+
@apply bg-gray-200/50 rounded-full border-solid border-white
10+
}
11+
}
12+
13+
.dark {
14+
*::-webkit-scrollbar {
15+
width: 13px;
16+
}
17+
*::-webkit-scrollbar-track {
18+
@apply bg-transparent;
19+
}
20+
*::-webkit-scrollbar-thumb {
21+
@apply bg-zinc-800/50 rounded-full border-solid border-zinc-900
22+
}
23+
}

resources/css/app.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
@import 'tailwindcss/base';
2+
@import 'tailwindcss/components';
3+
@import 'tailwindcss/utilities';
4+
@import "scroll";
25

36
.light {
47
@import 'highlight.js/styles/a11y-light';
8+
.hljs {
9+
@apply bg-white;
10+
}
511
}
612

713
.dark {
814
@import 'highlight.js/styles/a11y-dark';
15+
.hljs {
16+
@apply bg-zinc-900;
17+
}
918
}
1019

11-
@import 'tailwindcss/components';
12-
@import 'tailwindcss/utilities';
13-
14-
.hljs {
15-
@apply bg-white;
16-
}
1720
.hljs-ln td.hljs-ln-numbers {
1821
@apply text-gray-400 pr-3 inline-block w-full text-right;
1922
}

resources/views/_editor.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="h-full font-mono text-sm">
22
<textarea
3-
name="code" class="dark:bg-dark text-gray-900 dark:text-white w-full h-full resize-none outline-none"
3+
name="code" class="dark:bg-zinc-900 text-gray-900 dark:text-white w-full h-full resize-none outline-none"
44
placeholder="<?php&#10;&#10;echo 'Share your snippet here!';"
55
>{{ optional($paste ?? null)->code }}</textarea>
66
</div>

resources/views/components/main.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="flex flex-col min-w-0 flex-1 overflow-hidden">
22
<div class="lg:hidden print:hidden">
3-
<div class="flex items-center justify-between bg-gray-50 dark:bg-gray-700 border-b border-gray-200 dark:border-gray-900 px-4 py-1.5">
3+
<div class="flex items-center justify-between bg-gray-50 dark:bg-zinc-800 border-b border-gray-200 dark:border-gray-900 px-4 py-1.5">
44
<div>
55
<a href="{{ route('home') }}">
66
<img class="h-8 w-auto dark:hidden" src="{{ asset('images/laravelio-icon.svg') }}" alt="Laravel.io">

resources/views/components/nav.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="flex-1 w-14" aria-hidden="true">
1414
<!-- Force sidebar to shrink to fit close icon -->
1515
</div>
16-
<div tabindex="0" class="origin-top-right relative shrink-0 flex flex-col max-w-xs w-full bg-gray-50 dark:bg-gray-700 focus:outline-none">
16+
<div tabindex="0" class="origin-top-right relative shrink-0 flex flex-col max-w-xs w-full bg-gray-50 dark:bg-zinc-800 focus:outline-none">
1717
<div class="absolute top-0 left-0 -ml-12 pt-2">
1818
<button
1919
type="button"
@@ -36,7 +36,7 @@ class="ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outlin
3636
<div :class="{'hidden': !isOpen }" class="lg:flex lg:shrink-0 print:hidden">
3737
<div class="flex flex-col w-64">
3838
<!-- Sidebar component, swap this element with another sidebar if you like -->
39-
<div class="flex flex-col h-0 flex-1 border-r border-gray-200 dark:border-gray-900 bg-gray-50 dark:bg-gray-700">
39+
<div class="flex flex-col h-0 flex-1 border-r border-gray-200 dark:border-gray-900 bg-gray-50 dark:bg-zinc-800">
4040
<div class="flex-1 flex flex-col pt-8 pb-4 px-6 overflow-y-auto">
4141
<x-sidebar>{!! $slot !!}</x-sidebar>
4242
</div>

resources/views/layouts/app.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@include('layouts.favicons')
3030
@include('layouts.fathom')
3131
</head>
32-
<body class="dark:bg-dark">
32+
<body class="dark:bg-zinc-900">
3333

3434
@yield('content')
3535

tailwind.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ module.exports = {
55
darkMode: 'class',
66
theme: {
77
extend: {
8-
colors: {
9-
dark: '#2b2b2b',
10-
},
118
fontFamily: {
129
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
1310
},

0 commit comments

Comments
 (0)