Add dark mode support
This commit is contained in:
parent
2623567566
commit
9108523ff3
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
||||||
dist/
|
web/build/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
|
@ -8,20 +8,26 @@ a:focus {
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
@apply flex text-gray-200 text-xs;
|
@apply flex text-gray-900 text-xs;
|
||||||
|
|
||||||
@screen lg {
|
@screen lg {
|
||||||
@apply text-sm
|
@apply text-sm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@screen dark {
|
||||||
|
@apply text-gray-200
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
.filter-contrast-1 {
|
@variants responsive {
|
||||||
filter: contrast(1%)
|
.filter-contrast-1 {
|
||||||
}
|
filter: contrast(1%)
|
||||||
.filter-invert-100 {
|
}
|
||||||
filter: invert(100%)
|
.filter-invert-100 {
|
||||||
|
filter: invert(100%)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.with-arrow:after {
|
.with-arrow:after {
|
||||||
|
|
|
@ -7,6 +7,8 @@ module.exports = {
|
||||||
500: "#42a7ff",
|
500: "#42a7ff",
|
||||||
},
|
},
|
||||||
gray: {
|
gray: {
|
||||||
|
50: "#f9f9f9",
|
||||||
|
100: "#f5f5f5",
|
||||||
200: "#aaa",
|
200: "#aaa",
|
||||||
700: "#36393e",
|
700: "#36393e",
|
||||||
750: "#2e3136",
|
750: "#2e3136",
|
||||||
|
@ -22,7 +24,11 @@ module.exports = {
|
||||||
serif: ["Lucida Grande"],
|
serif: ["Lucida Grande"],
|
||||||
georgia: ["Georgia"],
|
georgia: ["Georgia"],
|
||||||
},
|
},
|
||||||
extend: {},
|
extend: {
|
||||||
|
screens: {
|
||||||
|
dark: { raw: "(prefers-color-scheme: dark)" },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
variants: {
|
variants: {
|
||||||
borderWidth: ["responsive", "hover", "focus"],
|
borderWidth: ["responsive", "hover", "focus"],
|
||||||
|
|
39922
web/build/app.css
39922
web/build/app.css
File diff suppressed because it is too large
Load diff
|
@ -1,9 +0,0 @@
|
||||||
{
|
|
||||||
"entrypoints": {
|
|
||||||
"app": {
|
|
||||||
"css": [
|
|
||||||
"/build/app.css"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"build/app.css": "/build/app.css"
|
|
||||||
}
|
|
|
@ -36,12 +36,13 @@
|
||||||
on GitHub.
|
on GitHub.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="py-3 md:bg-gray-800 md:py-5">
|
|
||||||
|
<div class="py-3 bg-gray-100 dark:bg-gray-800 md:py-5">
|
||||||
<div class="w-full max-w-5xl px-4 mx-auto">
|
<div class="w-full max-w-5xl px-4 mx-auto">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<img
|
<img
|
||||||
class="w-auto h-6 md:h-12 filter-invert-100"
|
class="w-auto h-6 md:h-12 dark:filter-invert-100"
|
||||||
src="https://symfony.com/images/logos/header-logo.svg"
|
src="https://symfony.com/images/logos/header-logo.svg"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
|
@ -58,7 +59,7 @@
|
||||||
></path>
|
></path>
|
||||||
</svg>
|
</svg>
|
||||||
<img
|
<img
|
||||||
class="hidden h-4 md:block filter-contrast-1"
|
class="hidden h-4 md:block dark:filter-contrast-1"
|
||||||
src="https://symfony.com/images/pictos/slsponsor.svg"
|
src="https://symfony.com/images/pictos/slsponsor.svg"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
|
@ -67,7 +68,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hidden md:block bg-gray-750">
|
<div class="hidden md:block bg-gray-50 dark:bg-gray-750">
|
||||||
<div class="w-full max-w-5xl px-4 mx-auto">
|
<div class="w-full max-w-5xl px-4 mx-auto">
|
||||||
<nav class="flex items-center justify-between py-2">
|
<nav class="flex items-center justify-between py-2">
|
||||||
<a class="nav-item" href="#">About</a>
|
<a class="nav-item" href="#">About</a>
|
||||||
|
@ -113,7 +114,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-gray-200 bg-gray-700">
|
<div class="text-gray-900 bg-white dark:text-gray-200 dark:bg-gray-700">
|
||||||
<div class="w-full max-w-5xl px-4 py-8 mx-auto">
|
<div class="w-full max-w-5xl px-4 py-8 mx-auto">
|
||||||
<div class="space-y-16">
|
<div class="space-y-16">
|
||||||
<div class="grid grid-cols-1 gap-10 md:grid-cols-3">
|
<div class="grid grid-cols-1 gap-10 md:grid-cols-3">
|
||||||
|
@ -150,7 +151,7 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<div class="p-4 rounded-lg bg-gray-750">
|
<div class="p-4 bg-gray-100 rounded-lg dark:bg-gray-750">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<svg
|
<svg
|
||||||
class="w-12 fill-current flex-no-shrink text-silver-500"
|
class="w-12 fill-current flex-no-shrink text-silver-500"
|
||||||
|
|
Reference in a new issue