diff --git a/README.md b/README.md
index 8fe8080..04eebb8 100644
--- a/README.md
+++ b/README.md
@@ -28,8 +28,9 @@ The build fails if any internal link or `#anchor` points nowhere ([starlight-lin
| --- | --- |
| `src/content/docs/` | One `.mdx` file per page. The file path is the URL. |
| `src/components/Screenshot.astro` | Shows an app screenshot that matches the reader's theme. |
-| `src/components/` | The landing hero, the page menu, the header title and the footer. |
-| `src/styles/` | Fonts, the Supper Club colors, and type. |
+| `src/components/` | The landing hero, the first steps card, the jump list, the page menu, the color key, the header title and the footer. |
+| `src/styles/` | Fonts, the Supper Club colors, and type. The colors follow `packages/tokens/src/color.ts` in the app repo. |
+| `src/content/docs/404.mdx` | The guide's own not-found page. |
| `public/screenshots/` | Real screenshots from the app, phone and desktop, light and dark. |
| `astro.config.mjs` | Site settings and the sidebar. |
diff --git a/src/components/ColorKey.astro b/src/components/ColorKey.astro
new file mode 100644
index 0000000..2f824c8
--- /dev/null
+++ b/src/components/ColorKey.astro
@@ -0,0 +1,67 @@
+---
+// What each color means in the app, as a small key. The swatches use the same values as the app.
+const colors = [
+ { tone: 'tomato', name: 'Red', job: 'the thing to press: the main button on a screen, the + button, the tab you are on. It is also money you owe, anything that deletes, and the badge that counts what you have not read.' },
+ { tone: 'olive', name: 'Green', job: 'money owed to you or that you lent, and things that went through.' },
+ { tone: 'saffron', name: 'Yellow', job: 'plans, date chips, highlights and gentle notices.' },
+ { tone: 'mute', name: 'Grey', job: 'settled up, or nothing owed either way.' },
+]
+---
+
+
+ {
+ colors.map((c) => (
+
+
+
+ {c.name} is {c.job}
+
+
+ ))
+ }
+
+
+
diff --git a/src/components/FirstSteps.astro b/src/components/FirstSteps.astro
new file mode 100644
index 0000000..5644c0d
--- /dev/null
+++ b/src/components/FirstSteps.astro
@@ -0,0 +1,180 @@
+---
+/**
+ * The guide's version of the app's first steps card on Home ("Set the table"): the same three
+ * steps in the same words, each one a link to the page that explains it. The gingham strip is
+ * the app's tablecloth, and this card is the only place the guide uses it.
+ */
+interface Props {
+ /** Adds a line for readers who have not signed up yet. */
+ signUpHint?: boolean
+}
+
+const { signUpHint = false } = Astro.props
+
+const steps = [
+ {
+ title: 'Start a group',
+ hint: 'Roommates, a trip, the dinner crew.',
+ href: '/groups/#create-a-group',
+ },
+ {
+ title: 'Add your people',
+ hint: 'Send an invite link, or add someone by name.',
+ href: '/groups/invites/',
+ },
+ {
+ title: 'Add the first expense',
+ hint: 'Potluck works out who owes what.',
+ href: '/expenses/#add-an-expense',
+ },
+]
+---
+
+
+
+
+
Set the table
+
Three small steps and Potluck starts keeping the tab.
+ )
+ }
diff --git a/src/components/Landing.astro b/src/components/Landing.astro
new file mode 100644
index 0000000..5f2e416
--- /dev/null
+++ b/src/components/Landing.astro
@@ -0,0 +1,26 @@
+---
+// Under the hero: the two ways into the guide, side by side. New readers get the first steps,
+// returning readers get a short list of the jobs they come back for.
+import FirstSteps from './FirstSteps.astro'
+import JumpList from './JumpList.astro'
+---
+
+
+
+
+
+
+
diff --git a/src/content/docs/404.mdx b/src/content/docs/404.mdx
new file mode 100644
index 0000000..b81907f
--- /dev/null
+++ b/src/content/docs/404.mdx
@@ -0,0 +1,15 @@
+---
+title: That page wandered off
+description: This page of the Potluck guide does not exist.
+template: splash
+editUrl: false
+pagefind: false
+hero:
+ title: That page wandered off.
+ tagline: Check the link, or go back to the front of the guide and find it from there. Search is at the top of every page.
+ actions:
+ - text: Go to the guide
+ link: /
+ - text: Troubleshooting
+ link: /troubleshooting/
+---
diff --git a/src/content/docs/balances/index.mdx b/src/content/docs/balances/index.mdx
index f7b58df..84dfc1a 100644
--- a/src/content/docs/balances/index.mdx
+++ b/src/content/docs/balances/index.mdx
@@ -59,4 +59,15 @@ Simplifying can ask you to pay someone you never split anything with directly, l
## Balances across groups
-Each group has its own balances. Home adds them up for you under **Your balance**, and the [Friends](/friends/) page shows your one-on-one tabs. Money owed in one group is never moved into another.
+Every group keeps its own balance, and so does every one-on-one tab with a friend. Money owed in one is never moved into another.
+
+**Your balance** on Home is where they are added up. This is how that total is counted:
+
+- **One currency.** It adds up every group and friend tab kept in your [default currency](/account/#preferences), and says **All told, you owe** or **All told, you are owed**. The currency is named in the corner of the card.
+- **Both sides.** **You owe** and **Owed to you** sit underneath, then one line per group. A one-on-one tab is listed by your friend's name. Tap a line to open it.
+- **Other currencies stay apart.** A balance in any other currency is listed underneath as it is, like **Plus you are owed €12.00 and you owe £5.00**. Potluck never converts one currency into another to make a single number.
+- **Colors.** What you owe is red, what you are owed is green, and a zero amount is grey. **All square** stays green.
+
+The line at the top of the card says what was counted: **across 5 groups**, **with 2 friends**, or **across your groups and friends**.
+
+The [Friends](/friends/) page adds things up per person instead; see [What the totals mean](/friends/#what-the-totals-mean).
diff --git a/src/content/docs/balances/settle-up.mdx b/src/content/docs/balances/settle-up.mdx
index 86a9a01..b5aec94 100644
--- a/src/content/docs/balances/settle-up.mdx
+++ b/src/content/docs/balances/settle-up.mdx
@@ -11,7 +11,7 @@ Potluck does not move money. You pay people the way you already do (cash, a bank
-1. On the group's **Balances** tab, tap **Settle up**. You can also tap the big plus button, then **Settle up**, and choose the group under **Which group are you settling?**
+1. On the group's **Balances** tab, tap **Settle up**. When you owe money in a group, the same button is also at the top of its other tabs, in front of **Invite**. You can also tap the big plus button, then **Settle up**, and choose the group under **Which group are you settling?** Not in a group yet? Potluck says **You are not in any groups yet.** and gives you a **Create a group** button.
2. Under **Who are you paying?**, pick the person. People you owe are listed under **You owe**, and people who owe you under **Owed to you**, each with the amount. Anyone else in the group is under **Everyone else**.
diff --git a/src/content/docs/expenses/index.mdx b/src/content/docs/expenses/index.mdx
index df90101..f326bfc 100644
--- a/src/content/docs/expenses/index.mdx
+++ b/src/content/docs/expenses/index.mdx
@@ -12,7 +12,7 @@ An expense says three things: how much, who paid, and who it was for. Potluck wo
-1. In a group, tap **Add expense** on the **Expenses** tab. From anywhere else, tap the big plus button, then **Add expense**, and pick the group under **Which group is this for?**
+1. In a group, tap **Add expense** on the **Expenses** tab. From anywhere else, tap the big plus button, then **Add expense**, and pick the group under **Which group is this for?** Not in a group yet? Potluck says **You are not in any groups yet.** and gives you a **Create a group** button.
2. Type the **Amount**. The yellow chip next to it shows the currency. Tap it to pay in a different one; see [Currencies](/expenses/currencies/). Have the receipt? Tap **Scan a receipt** under the amount to fill in the expense from a photo; see [Scan a receipt](/expenses/receipts/#scan-a-receipt).
@@ -146,13 +146,15 @@ Each one sets **Paid by** and the split in one tap: the **split equally** button
The **Expenses** tab lists expenses and payments by day, newest first. Each line tells you where it leaves you:
-- **you lent** an amount: you paid, and others owe you their share.
-- **you borrowed** an amount: someone else paid, and this is your share.
+- **you lent** an amount, in green: you paid, and others owe you their share.
+- **you borrowed** an amount, in red: someone else paid, and this is your share.
- **not involved**: you were not part of the split.
+The small **?** next to the first day in the list gives the same two definitions inside the app.
+
[Refunds](#refunds) read the other way round: **you get back** or **you owe**.
-Payments between people show as, for example, **Noor paid you $35.10**, with **payment** or the payment's note under it. Use **Search expenses** to find something in this group, or tap a category chip to see only that kind of expense. To search every group at once, see [Search everything](/expenses/search-and-totals/#search-everything).
+Payments between people show as, for example, **Noor paid you $35.10**, with **payment** or the payment's note under it. Use **Search expenses** to find something in this group (on a phone the field just says **Search**), or tap a category chip to see only that kind of expense. To search every group at once, see [Search everything](/expenses/search-and-totals/#search-everything).
## Filter the list
diff --git a/src/content/docs/friends.mdx b/src/content/docs/friends.mdx
index b766c0c..60b2656 100644
--- a/src/content/docs/friends.mdx
+++ b/src/content/docs/friends.mdx
@@ -91,6 +91,7 @@ A friend's total adds up what the two of you owe each other in every shared grou
- **Currencies are never converted.** Each currency gets its own amount, joined with "and", like **you owe** $20.00 and €8.00.
- **Each direction gets its own line.** If you owe Kai dollars but Kai owes you euros, the row shows both: **you owe** $20.00 on one line and **owes you** €15.00 on the next. One never hides the other.
- **Archived groups count too.** Their balances stay, so they are part of the total.
+- **Colors say which way.** An **owes you** amount is green and a **you owe** amount is red.
When you have a balance with someone, a line under their name says how many groups it is in, like **in 1 group** or **across 3 groups**, with a **Settle up** button. If all of those groups are archived, there is no button.
diff --git a/src/content/docs/getting-started.mdx b/src/content/docs/getting-started.mdx
index 95c899b..0820b10 100644
--- a/src/content/docs/getting-started.mdx
+++ b/src/content/docs/getting-started.mdx
@@ -5,9 +5,15 @@ description: Create a Potluck account with Google or your email, set up your pro
import { Steps } from '@astrojs/starlight/components'
import Screenshot from '~/components/Screenshot.astro'
+import FirstSteps from '~/components/FirstSteps.astro'
+import ColorKey from '~/components/ColorKey.astro'
Potluck runs in your browser, on your phone and on your computer. There is nothing to download first, and it costs nothing.
+No account yet? Start with [Create an account](#create-an-account), right below. Already signed in? These are the three steps from the **Set the table** card on Home, each with the page that walks you through it:
+
+
+
## Create an account
@@ -110,11 +116,33 @@ Home is where Potluck tells you what needs you right now.
/>
- **The greeting** says how many things need you. With no plans waiting but money still owed either way, in any currency, it says **No plans waiting on you. Your balances are below.** It only says **Nothing needs you right now.** when there is neither.
-- **Your balance** says what it counts the way **Groups** and **Friends** list them: **across 5 groups** when you have no one-on-one tabs, **with 2 friends** when you are in no other group, or **across your groups and friends** when you have both. It adds up every group in your default currency: **All told, you owe** or **All told, you are owed**, with **You owe** and **Owed to you** underneath and one line per group. Tap a group to open it. A one-on-one tab is listed by your friend's name. Totals in other currencies are listed underneath, each one as it is and never converted, like **Plus you are owed €12.00 and you owe £5.00**.
+- **Your balance** says what it counts the way **Groups** and **Friends** list them: **across 5 groups** when you have no one-on-one tabs, **with 2 friends** when you are in no other group, or **across your groups and friends** when you have both. It adds up every group in your default currency: **All told, you owe** or **All told, you are owed**, with **You owe** and **Owed to you** underneath and one line per group. A zero amount is grey, while **All square** stays green. Tap a group to open it. A one-on-one tab is listed by your friend's name. Totals in other currencies are listed underneath, each one as it is and never converted, like **Plus you are owed €12.00 and you owe £5.00**.
- **Needs you** lists plans waiting on you: polls where you have not added your times yet, and plans where you have not said whether you are going.
- **Coming up** shows plans that are on the calendar. **See all** opens [Plans](/plans/).
- **Your groups** lists your groups, with a shortcut to a **New group**.
+Not in a group yet? While your first steps card is showing, Home leaves out **Coming up** and **Your groups**, because both need a group. Hide the card and they come back.
+
+### Your first steps
+
+When you are new, Home shows a card called **Set the table** until one of your groups has someone else in it. It has three steps and keeps count, like **1 of 3 done**:
+
+1. **Start a group.** Tap **Create a group**. See [Create a group](/groups/#create-a-group).
+2. **Add your people.** Once you have a group, tap **Add people**. It opens the group's **Members** tab, where you can send an invite link or add someone by name. See [Inviting people](/groups/invites/).
+3. **Add the first expense.** See [Adding an expense](/expenses/).
+
+Only the step you are on has a button. **Getting started** at the bottom of the card opens this page.
+
+The card goes away by itself as soon as one of your groups has more than one member. It is for newcomers only, so you never see it if you have a one-on-one tab with a friend or an archived group. To put it away sooner, tap the X in its corner (**Hide these steps**). That hides it in the browser you are using, so another phone or computer still shows it.
+
+### What the colors mean
+
+Each color means the same thing on every screen:
+
+
+
+So a red amount is always something you owe, and a green one is always coming back to you.
+
### Getting around
On a phone, the tab bar at the bottom has **Home**, **Groups**, **Plans** and **Me**. The big plus button in the middle opens **What are we doing?** with three shortcuts: **Add expense**, **Plan something** and **Settle up**.
@@ -132,4 +160,9 @@ On a computer, the same places sit in a rail on the left, with an **Add** button
alt="Home on a computer. A rail on the left holds the Potluck name, an Add button, and links to Home, Groups, Plans, Notifications with a badge of 6, and Me. The balance card and Needs you sit in the middle, with Coming up and Your groups on the right."
/>
-Next: [start a group](/groups/).
+## Where to next
+
+- Splitting costs with people? [Start a group](/groups/#create-a-group), then [add an expense](/expenses/).
+- Trying to find a night that works? [Plan something](/plans/).
+- Just one other person? Keep a [one-on-one tab with a friend](/friends/#split-something-with-one-friend).
+- Got an invite link? Open it and see [Joining a group](/groups/invites/#join-with-a-link).
diff --git a/src/content/docs/groups/index.mdx b/src/content/docs/groups/index.mdx
index a4a4aea..d1c3458 100644
--- a/src/content/docs/groups/index.mdx
+++ b/src/content/docs/groups/index.mdx
@@ -12,7 +12,7 @@ A group is a shared tab: the roommates, a trip, the Thursday dinner crew. Everyt
-1. Open **Groups** and tap **New group**. (Home and the first-run screen have the same button.)
+1. Open **Groups** and tap **New group**. With no groups yet, the page asks **A table for one?** and has a **Create a group** button that does the same. So do the **Set the table** card on Home and the first-run screen.
2. Give it a **Group name**, and answer **What kind of group?**: **Home**, **Trip**, **Couple** or **Other**. A trip can also have a **First day** and **Last day**. See [Group type](/groups/settings/#group-type) for what each one does.
@@ -51,7 +51,12 @@ Tap **Create link** and send it to your friends. [Inviting people](/groups/invit
alt="The Supper club group. The header shows the group emoji, six member avatars and the line You are owed $282.44 next to an Invite button. Below are the tabs Expenses, Balances, Plans and Members, a Search expenses field with a download button, and today's expenses and payments."
/>
-The header shows the group's emoji, who is in it and your balance in plain words: **You are owed**, **You owe**, or **All square here**. A group with a [cover photo](/groups/settings/#cover-photo) shows it at the top, and a trip shows its dates under its name. A long name stops after two lines: tap it to see it all. The **Invite** button is always one tap away.
+The header shows the group's emoji, who is in it and your balance in plain words: **You are owed**, **You owe**, or **All square here**. A group with a [cover photo](/groups/settings/#cover-photo) shows it at the top, and a trip shows its dates under its name. A long name stops after two lines: tap it to see it all.
+
+The header's buttons follow what you are most likely to do next:
+
+- **Invite** opens the invite sheet. It shows whenever you are allowed to invite people to the group, except in an archived group.
+- **Settle up** appears in front of **Invite** when you owe money in the group, and becomes the main button. It starts a payment; see [Recording a payment](/balances/settle-up/). It is left out on the **Balances** tab, which has its own **Settle up** buttons, and in an archived group.
The tabs underneath:
diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx
index 4a51919..804f75d 100644
--- a/src/content/docs/index.mdx
+++ b/src/content/docs/index.mdx
@@ -12,6 +12,9 @@ hero:
link: https://potluck.fermulate.com
---
+import Landing from '~/components/Landing.astro'
import TopicMenu from '~/components/TopicMenu.astro'
+
+
diff --git a/src/content/docs/plans/index.mdx b/src/content/docs/plans/index.mdx
index 82305bd..5599935 100644
--- a/src/content/docs/plans/index.mdx
+++ b/src/content/docs/plans/index.mdx
@@ -12,9 +12,11 @@ A plan starts as a poll. Everyone in the group paints the times that work for th
## Start a poll
+A poll asks the group one question: when are you free? You choose the days and hours on offer, everyone paints the times they can make, and Potluck ranks the times that suit the most people. Nothing is on the calendar until someone [locks in](/plans/lock-in/) a time.
+
-1. Tap **Plan something** on the **Plans** page or a group's **Plans** tab. From anywhere else, tap the big plus button, then **Plan something**, and choose the group under **Which group?**
+1. Tap **Plan something** on the **Plans** page or a group's **Plans** tab. From anywhere else, tap the big plus button, then **Plan something**, and choose the group under **Which group?** Not in a group yet? Potluck says **Join or create a group first, then plan something with them.** Its **Create a group** button opens the new group form.
2. **The plan.** Fill in **What's the plan?**, pick an **Emoji**, and add **Where** and **Details** if you know them.
@@ -51,17 +53,21 @@ Times are in your time zone, and the form says which one. People in other time z
## The Plans page
-**Plans** collects plans from all your groups. Filter by group at the top.
+**Plans** collects plans from all your groups. When you are in more than one group, chips at the top filter the page by group.
-- **Still polling**: polls waiting for your times.
-- **Coming up**: plans that are on the calendar. See [Timeline](/plans/timeline/).
-- **Waiting on others**: polls you have answered that are still open.
-- **Been there**: plans that already happened.
+The page is sorted by what needs you first, in up to four sections, always in this order:
+
+1. **Still polling**: polls waiting for your times, with a count of how many. They come first because the group cannot pick until you answer.
+2. **Coming up**: plans that are on the calendar, grouped by day. See [Timeline](/plans/timeline/).
+3. **Waiting on others**: polls you have answered that are still open.
+4. **Been there**: plans that already happened.
+
+**Still polling** and **Waiting on others** only appear when they have something in them. With no plans at all, the page says **No plans yet** and has one **Plan something** button in the middle.
Each plan has a status: **Finding a time** while it polls, **On the calendar** once locked in, **Called off** if cancelled, and **Done and dusted** after it ends.
diff --git a/src/content/docs/plans/lock-in.mdx b/src/content/docs/plans/lock-in.mdx
index df47c30..ec91777 100644
--- a/src/content/docs/plans/lock-in.mdx
+++ b/src/content/docs/plans/lock-in.mdx
@@ -26,9 +26,13 @@ The time is stamped onto the plan and its status changes to **On the calendar**.
## RSVP
-Under **Are you in?**, tap **Going**, **Maybe** or **Can't**. You can change your answer any time. Below the buttons, everyone's answers are grouped into **Going**, **Maybe**, **Can't make it** and **No reply**.
+An RSVP tells the group whether you are coming. It opens as soon as a time is locked in.
-If the organizer set an **RSVP by** date, it shows next to the question. Home also asks **Are you in?** for plans you have not answered, with quick **Can't** and **Going** buttons.
+Under **Are you in?**, tap **Going**, **Maybe** or **Can't**. Below the buttons, everyone's answers are grouped into **Going**, **Maybe**, **Can't make it** and **No reply**.
+
+You can change your answer as often as you like. The one limit is the **RSVP by** date, if the organizer set one: it shows next to the question, and once it has passed the line reads **RSVPs closed** with the date and the buttons stop working. Your last answer stays lit so you can see it.
+
+Home also asks **Are you in?** for plans you have not answered, with quick **Can't** and **Going** buttons, until the **RSVP by** date passes.
About a day before the plan starts, people who said **Going** or **Maybe** get a **Coming up** reminder, and people who have not answered get an **Are you in?** nudge.
diff --git a/src/content/docs/plans/timeline.mdx b/src/content/docs/plans/timeline.mdx
index e31348d..35c98c2 100644
--- a/src/content/docs/plans/timeline.mdx
+++ b/src/content/docs/plans/timeline.mdx
@@ -36,4 +36,4 @@ Plans that need you also appear under **Needs you** on Home, so you rarely have
Times show in your time zone. If you travel, change it on the [Me page](/account/#preferences) and every plan shifts to match.
:::
-An empty timeline says **Nothing on the books**. Tap **Plan something** to fix that.
+An empty timeline says **Nothing on the books**. Tap **Plan something** to fix that. If you are not in a group yet, Home leaves **Coming up** out while your [first steps](/getting-started/#your-first-steps) card is showing, since a plan needs a group.
diff --git a/src/content/docs/troubleshooting.mdx b/src/content/docs/troubleshooting.mdx
index 7b31917..63944ec 100644
--- a/src/content/docs/troubleshooting.mdx
+++ b/src/content/docs/troubleshooting.mdx
@@ -148,6 +148,10 @@ When it goes through, the confirmation shows what was actually saved, like your
Something on the page broke, and Potluck shows its own error page instead. Tap **Try again** to load it again, or **Go home** to start fresh from Home. If it keeps happening, open an issue on [GitHub](https://github.com/Fermulate/potluck/issues) and say what you were doing.
+### "That page wandered off."
+
+The address does not match any screen in Potluck. The link may be mistyped or cut short. Check it, or tap **Go home** and find what you were after from there.
+
## Everything else
### "This version is out of date"
diff --git a/src/styles/content.css b/src/styles/content.css
index 2bc2102..a649b99 100644
--- a/src/styles/content.css
+++ b/src/styles/content.css
@@ -35,6 +35,8 @@ h1#_top {
color: var(--pl-tomato-ink);
text-decoration-thickness: 1.5px;
text-underline-offset: 0.2em;
+ /* Long links and addresses wrap instead of pushing the page sideways. */
+ overflow-wrap: anywhere;
}
.sl-markdown-content a:not(:where(.not-content *)):hover {
@@ -65,7 +67,7 @@ h1#_top {
/* Steps: tomato counters, like the app's primary buttons. */
.sl-steps > li::before {
- background-color: var(--pl-tomato);
+ background-color: var(--pl-tomato-strong);
color: var(--pl-on-tomato);
font-weight: 800;
box-shadow: none;
@@ -94,30 +96,37 @@ h1#_top {
display: none;
}
+/* Each kind of aside takes the color that does the same job in the app. */
.starlight-aside--note {
- --sl-color-asides-text-accent: var(--pl-olive-ink);
- --sl-color-asides-border-soft: color-mix(in srgb, var(--pl-olive) 30%, transparent);
- background-color: var(--pl-olive-soft);
-}
-
-.starlight-aside--tip {
+ /* A gentle notice: saffron. */
--sl-color-asides-text-accent: var(--pl-saffron-ink);
--sl-color-asides-border-soft: color-mix(in srgb, var(--pl-saffron) 40%, transparent);
background-color: var(--pl-saffron-soft);
}
-.starlight-aside--caution {
- --sl-color-asides-text-accent: var(--pl-plum-ink);
- --sl-color-asides-border-soft: color-mix(in srgb, var(--pl-plum) 30%, transparent);
- background-color: var(--pl-plum-soft);
+.starlight-aside--tip {
+ /* Something to try: olive, the color of things going well. */
+ --sl-color-asides-text-accent: var(--pl-olive-ink);
+ --sl-color-asides-border-soft: color-mix(in srgb, var(--pl-olive) 35%, transparent);
+ background-color: var(--pl-olive-soft);
}
+.starlight-aside--caution,
.starlight-aside--danger {
+ /* Something that cannot be taken back: tomato. */
--sl-color-asides-text-accent: var(--pl-tomato-ink);
--sl-color-asides-border-soft: color-mix(in srgb, var(--pl-tomato) 35%, transparent);
background-color: var(--pl-tomato-soft);
}
+.starlight-aside--danger {
+ border-width: 2px;
+}
+
+.starlight-aside a {
+ color: inherit;
+}
+
/* Tables read like a bill: hairlines, tabular figures, no zebra. */
.sl-markdown-content table:not(:where(.not-content *)) {
font-variant-numeric: tabular-nums;
@@ -156,11 +165,11 @@ h1#_top {
color: var(--sl-color-white);
}
-/* Sidebar: current page gets a saffron pill, like the app's tab bar. */
+/* Sidebar: the current page is lit in tomato, like the selected tab in the app. */
.sidebar-content a[aria-current='page'],
.sidebar-content a[aria-current='page']:hover {
- background: var(--pl-saffron-soft);
- color: var(--sl-color-white);
+ background: var(--pl-tomato-soft);
+ color: var(--pl-tomato-ink);
font-weight: 650;
border-radius: 999px;
}
@@ -188,3 +197,13 @@ h1#_top {
font-size: 1.5rem;
color: var(--sl-color-white);
}
+
+/* Wide tables (four columns or more) keep readable columns and scroll sideways on a phone,
+ instead of squeezing every cell down to one word a line. */
+.sl-markdown-content table:has(th:nth-child(4)):not(:where(.not-content *)) :is(th, td) {
+ min-width: 8.5rem;
+}
+
+.sl-markdown-content table:not(:where(.not-content *)):focus-visible {
+ outline-offset: 4px;
+}
diff --git a/src/styles/theme.css b/src/styles/theme.css
index ba4940b..7601cf9 100644
--- a/src/styles/theme.css
+++ b/src/styles/theme.css
@@ -1,5 +1,8 @@
/*
- * Supper Club, the Potluck look: paper and ink, a splash of tomato and saffron.
+ * Supper Club, the Potluck look: paper and ink, and a picnic set of three colors with
+ * one job each. Tomato is the thing to press or follow, money you owe and anything that
+ * cannot be undone, olive is money coming back and things that went well, saffron is
+ * plans, dates and gentle notices.
* Values follow packages/tokens/src/color.ts in the app repo.
*/
@@ -14,24 +17,25 @@
--pl-line-strong: #4a4037;
--pl-tomato: #ff6a4d;
+ /* Tomato as a filled surface under text (buttons, counters). */
+ --pl-tomato-strong: #ff6a4d;
--pl-tomato-ink: #ff8a70;
--pl-tomato-soft: #3b1f18;
--pl-on-tomato: #1d1a16;
--pl-saffron: #ffc65c;
--pl-saffron-ink: #ffc65c;
--pl-saffron-soft: #382c15;
- --pl-olive: #8fb062;
- --pl-olive-ink: #a6c47c;
- --pl-olive-soft: #222a18;
- --pl-plum: #c79bd0;
- --pl-plum-ink: #d6b3dc;
- --pl-plum-soft: #2d2030;
+ --pl-olive: #8fc46a;
+ --pl-olive-ink: #a8d587;
+ --pl-olive-soft: #1f2b17;
/* The balance hero turns into a lit paper slip in the dark. */
--pl-hero: #f3e9d8;
--pl-on-hero: #1d1a16;
--pl-hero-mute: #6c6152;
- --pl-hero-tomato: #b23a22;
+ /* The primary button on the hero slip, the same tomato on either slip. */
+ --pl-hero-action: #d63f25;
+ --pl-on-hero-action: #ffffff;
--pl-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.7);
--pl-radius-card: 18px;
@@ -47,7 +51,7 @@
--sl-color-black: var(--pl-paper);
--sl-color-accent-low: var(--pl-tomato-soft);
- --sl-color-accent: var(--pl-tomato);
+ --sl-color-accent: var(--pl-tomato-strong);
--sl-color-accent-high: var(--pl-tomato-ink);
--sl-color-text: var(--sl-color-gray-2);
@@ -57,7 +61,7 @@
--sl-color-bg-nav: var(--pl-paper);
--sl-color-bg-sidebar: var(--pl-paper);
--sl-color-bg-inline-code: var(--pl-card);
- --sl-color-bg-accent: var(--pl-tomato);
+ --sl-color-bg-accent: var(--pl-tomato-strong);
--sl-color-hairline-light: var(--pl-line);
--sl-color-hairline: var(--pl-line);
--sl-color-hairline-shade: var(--pl-sunken);
@@ -72,9 +76,9 @@
--sl-color-red-low: var(--pl-tomato-soft);
--sl-color-red: var(--pl-tomato);
--sl-color-red-high: var(--pl-tomato-ink);
- --sl-color-purple-low: var(--pl-plum-soft);
- --sl-color-purple: var(--pl-plum);
- --sl-color-purple-high: var(--pl-plum-ink);
+ --sl-color-purple-low: var(--pl-olive-soft);
+ --sl-color-purple: var(--pl-olive);
+ --sl-color-purple-high: var(--pl-olive-ink);
--sl-color-blue-low: var(--pl-olive-soft);
--sl-color-blue: var(--pl-olive);
--sl-color-blue-high: var(--pl-olive-ink);
@@ -94,23 +98,22 @@
--pl-line-strong: #d8cab3;
--pl-tomato: #e8492f;
+ --pl-tomato-strong: #d63f25;
--pl-tomato-ink: #bc3720;
--pl-tomato-soft: #fde4da;
--pl-on-tomato: #ffffff;
--pl-saffron: #f5b53d;
--pl-saffron-ink: #8f5c00;
--pl-saffron-soft: #fdf0d4;
- --pl-olive: #5f7a3a;
- --pl-olive-ink: #4f6a2c;
- --pl-olive-soft: #e9eedd;
- --pl-plum: #6b3d6e;
- --pl-plum-ink: #6b3d6e;
- --pl-plum-soft: #f1e4ef;
+ --pl-olive: #4a8431;
+ --pl-olive-ink: #3a6f24;
+ --pl-olive-soft: #e4f0d9;
--pl-hero: #1d1a16;
--pl-on-hero: #fbf5ea;
--pl-hero-mute: #b9ad9c;
- --pl-hero-tomato: #ff7a5c;
+ --pl-hero-action: #d63f25;
+ --pl-on-hero-action: #ffffff;
--pl-shadow: 0 18px 40px -20px rgb(80 52 20 / 0.35);
@@ -125,7 +128,7 @@
--sl-color-black: var(--pl-paper);
--sl-color-accent-low: var(--pl-tomato-soft);
- --sl-color-accent: var(--pl-tomato);
+ --sl-color-accent: var(--pl-tomato-strong);
--sl-color-accent-high: var(--pl-tomato-ink);
--sl-color-text-accent: var(--pl-tomato-ink);
@@ -133,7 +136,7 @@
--sl-color-bg-nav: var(--pl-paper);
--sl-color-bg-sidebar: var(--pl-paper);
--sl-color-bg-inline-code: var(--pl-sunken);
- --sl-color-bg-accent: var(--pl-tomato-ink);
+ --sl-color-bg-accent: var(--pl-tomato-strong);
--sl-color-hairline-light: var(--pl-line);
--sl-color-hairline-shade: var(--pl-line);
--sl-color-backdrop-overlay: rgb(29 26 22 / 0.42);
@@ -147,9 +150,9 @@
--sl-color-red-low: var(--pl-tomato-soft);
--sl-color-red: var(--pl-tomato);
--sl-color-red-high: var(--pl-tomato-ink);
- --sl-color-purple-low: var(--pl-plum-soft);
- --sl-color-purple: var(--pl-plum);
- --sl-color-purple-high: var(--pl-plum-ink);
+ --sl-color-purple-low: var(--pl-olive-soft);
+ --sl-color-purple: var(--pl-olive);
+ --sl-color-purple-high: var(--pl-olive-ink);
--sl-color-blue-low: var(--pl-olive-soft);
--sl-color-blue: var(--pl-olive);
--sl-color-blue-high: var(--pl-olive-ink);