Skip to content

Dark mode with custom styles #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 3 additions & 3 deletions cookbooks/ai-builders.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Create the Pro plan in the [Products](https://app.useautumn.com/products) tab.

<Accordion title="Create the Product">
Click on the "+ Product" button and name the product "Pro".
<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img
src="/assets/quickstart/create-pro.png"

Expand All @@ -39,7 +39,7 @@ Create the Pro plan in the [Products](https://app.useautumn.com/products) tab.
<Accordion title="Create the Messages Feature">
Click the "+ Feature" button, and in the feature list, select "Create new feature".

<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img src="/assets/quickstart/messages.png" />
</Frame>
</Accordion>
Expand All @@ -48,7 +48,7 @@ Create the Pro plan in the [Products](https://app.useautumn.com/products) tab.
Back on the products page, create a new product and name it "Pro". Click "+ Feature" and add a limit of 10 messages per month.

Then click "+ Price" and a price of $20 per month.
<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img src="/assets/quickstart/messages-item.png" className="" />
<img src="/assets/quickstart/price.png" className="" />
</Frame>
Expand Down
4 changes: 2 additions & 2 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dark": "#7C3EFF"
},
"appearance": {
"default": "light",
"strict": true
"default": "system",
"strict": false
},
"favicon": "/favicon.png",
"navigation": {
Expand Down
14 changes: 7 additions & 7 deletions quickstart/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Create the Pro plan in the [Products](https://app.useautumn.com/products) tab.

<Accordion title="Create the Product">
Click on the "+ Product" button and name the product "Pro".
<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img
src="/assets/quickstart/create-pro.png"

Expand All @@ -27,7 +27,7 @@ Create the Pro plan in the [Products](https://app.useautumn.com/products) tab.
<Accordion title="Create the Messages Feature">
Click the "+ Feature" button, and in the feature list, select "Create new feature".

<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img src="/assets/quickstart/messages.png" />
</Frame>
</Accordion>
Expand All @@ -36,7 +36,7 @@ Create the Pro plan in the [Products](https://app.useautumn.com/products) tab.
Back on the products page, create a new product and name it "Pro". Click "+ Feature" and add a limit of 10 messages per month.

Then click "+ Price" and a price of $20 per month.
<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img src="/assets/quickstart/messages-item.png" className="" />
<img src="/assets/quickstart/price.png" className="" />
</Frame>
Expand Down Expand Up @@ -95,7 +95,7 @@ import { autumnHandler } from "autumn-js/next";
import { auth } from "@/lib/auth";

export const { GET, POST } = autumnHandler({
identify: async (request) => {
identify: async request => {
const session = await auth.api.getSession({
headers: request.headers,
});
Expand All @@ -118,7 +118,7 @@ import { autumnHandler } from "autumn-js/react-router";
import { auth } from "../lib/auth.server";

export const { loader, action } = autumnHandler({
identify: async (args) => {
identify: async args => {
const session = await auth.api.getSession({
headers: args.request.headers,
});
Expand Down Expand Up @@ -202,7 +202,7 @@ app.use(express.json()); // need to parse request body before autumnHandler
app.use(
"/api/autumn",
autumnHandler({
identify: async (req) => {
identify: async req => {
const session = await auth.api.getSession({
headers: fromNodeHeaders(req.headers),
});
Expand All @@ -228,7 +228,7 @@ fastify.route({
method: ["GET", "POST"],
url: "/api/autumn/*",
handler: autumnHandler({
identify: async (request) => {
identify: async request => {
const session = await auth.api.getSession({
headers: request.headers as any,
});
Expand Down
6 changes: 3 additions & 3 deletions quickstart/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Create a product in the [Products](https://app.useautumn.com/products) tab.
<Step>
<Accordion title="Create the Product">
Click on the "+ Product" button and name the product "Pro".
<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img
src="/assets/quickstart/create-pro.png"

Expand All @@ -30,7 +30,7 @@ Create a product in the [Products](https://app.useautumn.com/products) tab.
<Accordion title="Create the Messages Feature">
Click the "+ Feature" button, and in the feature list, select "Create new feature".

<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img src="/assets/quickstart/messages.png" />
</Frame>
</Accordion>
Expand All @@ -40,7 +40,7 @@ Create a product in the [Products](https://app.useautumn.com/products) tab.
Back on the products page, create a new product and name it "Pro". Click "+ Feature" and add a limit of 10 messages per month.

Then click "+ Price" and a price of $20 per month.
<Frame className="bg-transparent items-center gap-4 bg-[#fafafa]">
<Frame className="bg-transparent items-center gap-4 bg-gray-50 dark:bg-gray-800">
<img src="/assets/quickstart/messages-item.png" className="" />
<img src="/assets/quickstart/price.png" className="" />
</Frame>
Expand Down
23 changes: 20 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ code {
max-width: 300px;
}

/* Light mode styles */
#content-side-layout:not(:has(pre)) {
border-left: 1px solid #e6e6e8;
}

/* padding-top: 3rem !important;
height: 100vh;
top: 0rem; */
/* Dark mode styles - Palm theme colors */
.dark #content-side-layout:not(:has(pre)) {
border-left: 1px solid #272727;
}

#content-side-layout {
Expand All @@ -75,6 +77,10 @@ code {
top: 4rem;
}

.dark #content-side-layout {
background-color: #181818;
}

/*
#header {
margin-top: 3rem;
Expand All @@ -96,6 +102,13 @@ h2:not(a h2) {
word-wrap: normal;
}

.dark h2:not(a h2) {
background-color: #181818;
border-bottom: 1px solid #272727;
border-top: 1px solid #272727;
color: #e6e6e8 !important;
}

h2 > span {
padding-right: 1rem;
}
Expand All @@ -114,3 +127,7 @@ h2 > span {
z-index: 10;
flex-shrink: 0;
}

.dark #sidebar-content {
background-color: #181818;
}