Skip to content

Commit bf50e75

Browse files
committed
fix: Improve colors in dark mode
1 parent 1f4582e commit bf50e75

File tree

13 files changed

+100
-105
lines changed

13 files changed

+100
-105
lines changed

_media/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_pages/index.blade.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
@extends('hyde::layouts.app')
22

33
@section('content')
4-
<div class="bg-gradient-to-b from-gray-50 to-white py-20">
4+
<div class="bg-gradient-to-b from-slate-400 to-slate-50 dark:bg-gradient-to-t dark:from-slate-800 dark:to-slate-400 py-20">
55
<div class="max-w-5xl mx-auto text-center px-4">
66
<!-- Logos -->
77
<div class="flex items-center justify-center gap-6 mb-6">
88
<img src="media/json-schema-logo-blue.svg" alt="JSON Schema Logo" class="h-60 w-60 object-contain">
9-
<span class="text-5xl font-bold text-gray-500">+</span>
9+
<span class="text-5xl font-bold text-gray-500 dark:text-gray-100">+</span>
1010
<img src="media/php-logo.svg" alt="PHP Logo" class="h-60 w-60 object-contain">
1111
</div>
1212

1313
<!-- Title & Description -->
14-
<h1 class="text-5xl font-bold text-gray-800">JSON Schema for PHP</h1>
15-
<p class="mt-4 text-lg text-gray-600 max-w-2xl mx-auto">
14+
<h1 class="text-5xl font-bold text-stone-800 dark:text-stone-200">JSON Schema for PHP</h1>
15+
<p class="mt-4 text-lg text-stone-600 dark:text-stone-400 max-w-2xl mx-auto">
1616
Validate, interpret, and work with JSON Schemas in PHP — fully compatible with the specifications.
1717
</p>
1818

1919
<!-- CTA -->
2020
<div class="mt-8">
2121
<a href="{{ url('getting-started') }}"
22-
class="inline-block px-8 py-3 bg-blue-600 text-white text-lg font-semibold rounded-lg shadow hover:bg-blue-700">
22+
class="inline-block px-8 py-3 bg-blue-600 text-white text-lg font-semibold rounded-lg shadow hover:bg-blue-700 dark:bg-sky-400 dark:hover:bg-sky-500">
2323
Get Started →
2424
</a>
2525
</div>
@@ -28,32 +28,32 @@ class="inline-block px-8 py-3 bg-blue-600 text-white text-lg font-semibold round
2828

2929
<!-- Features -->
3030
<div class="max-w-6xl mx-auto grid md:grid-cols-3 gap-8 py-16 px-4">
31-
<div class="p-6 bg-white rounded-2xl shadow">
32-
<h2 class="text-xl font-semibold text-gray-800 mb-2">Standards Compliant</h2>
33-
<p class="text-gray-600">
34-
Implements the official <a href="https://json-schema.org/specification" class="text-blue-600">JSON Schema specification</a>
31+
<div class="p-6 bg-white rounded-2xl shadow dark:bg-slate-700">
32+
<h2 class="text-xl font-semibold text-gray-800 dark:text-slate-200 mb-2 ">Standards Compliant</h2>
33+
<p class="text-gray-600 dark:text-slate-200">
34+
Implements the official <a href="https://json-schema.org/specification" class="text-blue-600 hover:text-blue-700 dark:text-sky-400 hover:underline dark:hover:text-sky-300">JSON Schema specification</a>
3535
(Draft 3 and 4), ensuring predictable and reliable validation.
3636
</p>
3737
</div>
38-
<div class="p-6 bg-white rounded-2xl shadow">
39-
<h2 class="text-xl font-semibold text-gray-800 mb-2">Developer Friendly</h2>
40-
<p class="text-gray-600">
38+
<div class="p-6 bg-white dark:bg-slate-700 rounded-2xl shadow">
39+
<h2 class="text-xl font-semibold text-gray-800 dark:text-slate-200 mb-2">Developer Friendly</h2>
40+
<p class="text-gray-600 dark:text-slate-200">
4141
Simple, expressive API designed for modern PHP projects. Integrates easily into frameworks like Laravel, Symfony, and more.
4242
</p>
4343
</div>
44-
<div class="p-6 bg-white rounded-2xl shadow">
45-
<h2 class="text-xl font-semibold text-gray-800 mb-2">Extensible</h2>
46-
<p class="text-gray-600">
44+
<div class="p-6 bg-white dark:bg-slate-700 rounded-2xl shadow">
45+
<h2 class="text-xl font-semibold text-gray-800 dark:text-slate-200 mb-2">Extensible</h2>
46+
<p class="text-gray-600 dark:text-slate-200">
4747
Built with extensibility in mind — customize validation rules, add formats, or adapt to domain-specific requirements.
4848
</p>
4949
</div>
5050
</div>
5151

5252
<!-- Example -->
53-
<div class="bg-gray-50 py-16">
53+
<div class="py-16">
5454
<div class="max-w-4xl mx-auto px-4">
55-
<h2 class="text-3xl font-bold text-gray-800 mb-6 text-center">Example</h2>
56-
<pre class="bg-white rounded-lg shadow p-4 overflow-x-auto text-sm">
55+
<h2 class="text-3xl font-bold mb-6 text-center">Example</h2>
56+
<pre class="rounded-lg shadow p-4 overflow-x-auto text-sm">
5757
<code class="language-php">
5858

5959
$schema = json_decode(file_get_contents('person.schema.json'));

_site/advanced-topics.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<style>[x-cloak] {display: none!important}</style>
2121

2222

23-
<link rel="stylesheet" href="media/app.css?v=c738313fddac0baf43cddf51e0a534ac">
23+
<link rel="stylesheet" href="media/app.css?v=e00767a839006e2bdc599299f16662c7">
2424

2525

2626

@@ -36,8 +36,8 @@
3636

3737

3838
</head>
39-
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-900 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40-
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none dark:bg-gray-800">
39+
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-800 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40+
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none bg-slate-400 dark:bg-slate-400">
4141
<div class="flex flex-grow items-center flex-shrink-0 text-gray-700 dark:text-gray-200">
4242
<a href="index.html" class="font-bold px-4" aria-label="Home page">
4343
JSON Schema for PHP
@@ -89,21 +89,21 @@
8989
</ul>
9090
</div>
9191
</nav>
92-
<section>
93-
92+
<section class="">
93+
<div class="bg-gradient-to-b from-slate-400 to-slate-50 dark:bg-gradient-to-t dark:from-slate-800 dark:to-slate-400">
9494
<main id="content" class="mx-auto max-w-7xl py-16 px-8">
9595
<article class="mx-auto prose dark:prose-invert">
9696
<h1>Advanced topics</h1>
97+
<p>This page needs to be written, want to help out? Checkout GitHub repo!</p>
9798

9899
</article>
99100
</main>
100-
101+
</div>
101102
</section>
102103

103-
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-100 dark:bg-gray-800">
104-
<div class="prose dark:prose-invert text-center mx-auto">
105-
<p>Site proudly built with <a href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
106-
104+
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-50 dark:bg-gray-800">
105+
<div class="prose dark:prose-invert text-center mx-auto ">
106+
<p>Site proudly built with <a class="text-blue-600 hover:text-blue-700 dark:text-sky-400 hover:underline dark:hover:text-sky-300" href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
107107
</div>
108108
<a href="#app" aria-label="Go to top of page" class="float-right">
109109
<button title="Scroll to top">

_site/community-guide.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<style>[x-cloak] {display: none!important}</style>
2121

2222

23-
<link rel="stylesheet" href="media/app.css?v=c738313fddac0baf43cddf51e0a534ac">
23+
<link rel="stylesheet" href="media/app.css?v=e222ad6e8bd562546693ea06e83b1771">
2424

2525

2626

@@ -36,8 +36,8 @@
3636

3737

3838
</head>
39-
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-900 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40-
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none dark:bg-gray-800">
39+
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-800 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40+
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none bg-slate-400 dark:bg-slate-400">
4141
<div class="flex flex-grow items-center flex-shrink-0 text-gray-700 dark:text-gray-200">
4242
<a href="index.html" class="font-bold px-4" aria-label="Home page">
4343
JSON Schema for PHP
@@ -89,22 +89,21 @@
8989
</ul>
9090
</div>
9191
</nav>
92-
<section>
93-
92+
<section class="">
93+
<div class="bg-gradient-to-b from-slate-400 to-slate-50 dark:bg-gradient-to-t dark:from-slate-800 dark:to-slate-400">
9494
<main id="content" class="mx-auto max-w-7xl py-16 px-8">
9595
<article class="mx-auto prose dark:prose-invert">
9696
<h1>Community guide</h1>
9797
<p>This page needs to be written, want to help out? Checkout GitHub repo!</p>
9898

9999
</article>
100100
</main>
101-
101+
</div>
102102
</section>
103103

104-
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-100 dark:bg-gray-800">
105-
<div class="prose dark:prose-invert text-center mx-auto">
106-
<p>Site proudly built with <a href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
107-
104+
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-50 dark:bg-gray-800">
105+
<div class="prose dark:prose-invert text-center mx-auto ">
106+
<p>Site proudly built with <a class="text-blue-600 hover:text-blue-700 dark:text-sky-400 hover:underline dark:hover:text-sky-300" href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
108107
</div>
109108
<a href="#app" aria-label="Go to top of page" class="float-right">
110109
<button title="Scroll to top">

_site/configuration.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<style>[x-cloak] {display: none!important}</style>
2121

2222

23-
<link rel="stylesheet" href="media/app.css?v=c738313fddac0baf43cddf51e0a534ac">
23+
<link rel="stylesheet" href="media/app.css?v=e00767a839006e2bdc599299f16662c7">
2424

2525

2626

@@ -36,8 +36,8 @@
3636

3737

3838
</head>
39-
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-900 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40-
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none dark:bg-gray-800">
39+
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-800 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40+
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none bg-slate-400 dark:bg-slate-400">
4141
<div class="flex flex-grow items-center flex-shrink-0 text-gray-700 dark:text-gray-200">
4242
<a href="index.html" class="font-bold px-4" aria-label="Home page">
4343
JSON Schema for PHP
@@ -89,22 +89,21 @@
8989
</ul>
9090
</div>
9191
</nav>
92-
<section>
93-
92+
<section class="">
93+
<div class="bg-gradient-to-b from-slate-400 to-slate-50 dark:bg-gradient-to-t dark:from-slate-800 dark:to-slate-400">
9494
<main id="content" class="mx-auto max-w-7xl py-16 px-8">
9595
<article class="mx-auto prose dark:prose-invert">
9696
<h1>Configuration</h1>
97-
<p>@todo</p>
97+
<p>This page needs to be written, want to help out? Checkout GitHub repo!</p>
9898

9999
</article>
100100
</main>
101-
101+
</div>
102102
</section>
103103

104-
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-100 dark:bg-gray-800">
105-
<div class="prose dark:prose-invert text-center mx-auto">
106-
<p>Site proudly built with <a href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
107-
104+
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-50 dark:bg-gray-800">
105+
<div class="prose dark:prose-invert text-center mx-auto ">
106+
<p>Site proudly built with <a class="text-blue-600 hover:text-blue-700 dark:text-sky-400 hover:underline dark:hover:text-sky-300" href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
108107
</div>
109108
<a href="#app" aria-label="Go to top of page" class="float-right">
110109
<button title="Scroll to top">

_site/contributors.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<style>[x-cloak] {display: none!important}</style>
2121

2222

23-
<link rel="stylesheet" href="media/app.css?v=c738313fddac0baf43cddf51e0a534ac">
23+
<link rel="stylesheet" href="media/app.css?v=e222ad6e8bd562546693ea06e83b1771">
2424

2525

2626

@@ -36,8 +36,8 @@
3636

3737

3838
</head>
39-
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-900 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40-
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none dark:bg-gray-800">
39+
<body id="app" class="flex flex-col min-h-screen overflow-x-hidden bg-slate-50 text-gray-800 dark:bg-gray-800 dark:text-white" x-data="{ navigationOpen: false }" x-on:keydown.escape="navigationOpen = false;">
40+
<a href="#content" id="skip-to-content" class="sr-only focus:not-sr-only bg-black border-4 border-yellow-400 focus:absolute focus:mt-2 focus:mx-auto focus:p-2 focus:w-64 h-auto left-0 overflow-auto right-0 rounded-md text-center text-lg text-white top-auto z-50 ">Skip to content</a> <nav aria-label="Main navigation" id="main-navigation" class="flex flex-wrap items-center justify-between p-4 shadow-lg sm:shadow-xl md:shadow-none bg-slate-400 dark:bg-slate-400">
4141
<div class="flex flex-grow items-center flex-shrink-0 text-gray-700 dark:text-gray-200">
4242
<a href="index.html" class="font-bold px-4" aria-label="Home page">
4343
JSON Schema for PHP
@@ -89,8 +89,8 @@
8989
</ul>
9090
</div>
9191
</nav>
92-
<section>
93-
92+
<section class="">
93+
<div class="bg-gradient-to-b from-slate-400 to-slate-50 dark:bg-gradient-to-t dark:from-slate-800 dark:to-slate-400">
9494
<main id="content" class="mx-auto max-w-7xl py-16 px-8">
9595
<article class="mx-auto prose dark:prose-invert">
9696
<h1>Contributors</h1>
@@ -105,13 +105,12 @@ <h1>Contributors</h1>
105105

106106
</article>
107107
</main>
108-
108+
</div>
109109
</section>
110110

111-
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-100 dark:bg-gray-800">
112-
<div class="prose dark:prose-invert text-center mx-auto">
113-
<p>Site proudly built with <a href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
114-
111+
<footer aria-label="Page footer" class="flex py-4 px-6 w-full text-center mt-auto bg-slate-50 dark:bg-gray-800">
112+
<div class="prose dark:prose-invert text-center mx-auto ">
113+
<p>Site proudly built with <a class="text-blue-600 hover:text-blue-700 dark:text-sky-400 hover:underline dark:hover:text-sky-300" href="https://github.com/hydephp/hyde">HydePHP</a> 🎩</p>
115114
</div>
116115
<a href="#app" aria-label="Go to top of page" class="float-right">
117116
<button title="Scroll to top">

0 commit comments

Comments
 (0)