Skip to content

Commit 0692e52

Browse files
committed
Light mode support for documentation
1 parent 6a11c5a commit 0692e52

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

website/docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const config = {
1010
favicon: 'img/favicon.ico',
1111
url: 'https://soql.beyondthecloud.dev/',
1212
baseUrl: '/',
13-
organizationName: 'Beyond The Cloud',
13+
organizationName: 'Beyond The Cloud Sp. z o.o.',
1414
projectName: 'soql-lib',
1515
onBrokenLinks: 'throw',
1616
onBrokenMarkdownLinks: 'throw',
@@ -69,7 +69,7 @@ const config = {
6969
],
7070
colorMode: {
7171
defaultMode: 'dark',
72-
disableSwitch: true,
72+
disableSwitch: false,
7373
},
7474
docs: {
7575
sidebar: {

website/src/pages/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ export default function Home() {
88
description="The SOQL Lib provides functional constructs for SOQL queries in Apex.">
99
<div className="relative isolate px-6 pt-14 lg:px-8">
1010
<div className="text-center">
11-
<Heading className="text-5xl mb-6 font-semibold tracking-tight text-balance text-white sm:text-7xl" as="h1">SOQL Lib</Heading>
12-
<p className="text-lg mb-10 text-gray-300 max-w-2xl mx-auto">
11+
<Heading className="text-5xl mb-6 font-semibold tracking-tight text-balance text-gray-900 dark:text-white sm:text-7xl" as="h1">SOQL Lib</Heading>
12+
<p className="text-lg mb-10 text-gray-600 dark:text-gray-300 max-w-2xl mx-auto">
1313
Everything you need to build SOQL queries in Salesforce APEX.
1414
</p>
1515

1616
<div className="space-x-4">
1717
<a href="/docs/getting-started" className="rounded-md bg-sky-600 px-4 py-3 text-sm font-semibold text-white shadow-xs hover:scale-110 transition-transform focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sky-600">Get Started</a>
18-
<a href="/docs/overview" className="rounded-md bg-gray-800 px-4 py-3 text-sm font-semibold text-white shadow-xs ring-1 ring-gray-600 hover:scale-110 transition-transform">Learn More</a>
19-
<a href="https://calendar.app.google/VLyYFV8E93QDobPd8" className="rounded-md bg-red-800 px-4 py-3 text-sm font-semibold text-white shadow-xs ring-1 ring-gray-600 hover:scale-110 transition-transform">Help needed?</a>
18+
<a href="/docs/overview" className="rounded-md bg-gray-200 dark:bg-gray-800 px-4 py-3 text-sm font-semibold text-gray-900 dark:text-white shadow-xs ring-1 ring-gray-400 dark:ring-gray-600 hover:scale-110 transition-transform">Learn More</a>
19+
<a href="https://calendar.app.google/VLyYFV8E93QDobPd8" className="rounded-md bg-red-800 px-4 py-3 text-sm font-semibold text-white shadow-xs ring-1 ring-red-600 hover:scale-110 transition-transform">Help needed?</a>
2020
</div>
2121
</div>
2222
</div>
@@ -57,19 +57,19 @@ export function Features() {
5757
<div className="my-20 px-6 lg:px-8">
5858
<div className="mx-auto max-w-7xl">
5959
<div className="text-center mb-16">
60-
<h2 className="text-3xl font-bold tracking-tight text-white sm:text-4xl mb-4">
60+
<h2 className="text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl mb-4">
6161
What's in SOQL Lib?
6262
</h2>
63-
<p className="text-lg text-gray-300 max-w-2xl mx-auto">
63+
<p className="text-lg text-gray-600 dark:text-gray-300 max-w-2xl mx-auto">
6464
The SOQL Lib provides functional constructs for SOQL queries in Apex.
6565
</p>
6666
</div>
6767

6868
<div className="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
6969
{features.map((feature, index) => (
70-
<div key={index} className="relative rounded-2xl border border-gray-700 p-8 shadow-lg hover:shadow-xl transition-shadow bg-gray-800/50 backdrop-blur-sm">
71-
<h3 className="text-lg font-semibold text-white mb-4">{feature.title}</h3>
72-
<p className="text-gray-300 leading-relaxed">{feature.description}</p>
70+
<div key={index} className="relative rounded-2xl border border-gray-300 dark:border-gray-700 p-8 shadow-lg hover:shadow-xl transition-shadow bg-white/50 dark:bg-gray-800/50 backdrop-blur-sm">
71+
<h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-4">{feature.title}</h3>
72+
<p className="text-gray-600 dark:text-gray-300 leading-relaxed">{feature.description}</p>
7373
</div>
7474
))}
7575
</div>

0 commit comments

Comments
 (0)