···3333import { Button } from "@/components/ui/button";
3434import { Input } from "@/components/ui/input";
3535import { Separator } from "@/components/ui/separator";
3636+import { useSidebar } from "@/components/ui/sidebar";
3637import { Skeleton } from "@/components/ui/skeleton";
3738import {
3839 Tooltip,
···6566 const [isMounted, setIsMounted] = useState(false);
6667 const [{ q, t }, setSearchParams] = useQueryStates(searchParamsParsers);
6768 const theme = t ? THEMES[t as keyof typeof THEMES] : undefined;
6969+ const { toggleSidebar } = useSidebar();
68706971 useEffect(() => {
7072 setIsMounted(true);
···223225 <div className="prose dark:prose-invert prose-sm max-w-none">
224226 <p>
225227 You can contribute your own theme by creating a new file in the{" "}
226226- <code>@openstatus.theme-store</code> package. You'll only need
228228+ <code>@openstatus/theme-store</code> package. You'll only need
227229 to override css variables. If you are familiar with shadcn, you'll
228230 know the trick (it also allows you to override `--radius`). Make
229229- sure your object is satisfying the <code>Theme</code> interface.
231231+ sure your object is satisfying the <code>Theme</code> interface. We
232232+ provide a theme builder to help you with the process.
230233 </p>
234234+ <Button onClick={toggleSidebar}>Toggle Theme Builder</Button>
231235 <p>
232236 Go to the{" "}
233237 <Link href="https://github.com/openstatusHQ/openstatus/tree/main/packages/theme-store">
···236240 to see the existing themes and create a new one by forking and
237241 creating a pull request.
238242 </p>
243243+ <p>
244244+ Once you're done, you can test it by adding the following snippet to
245245+ your status page:
246246+ </p>
247247+ <pre>
248248+ <code>sessionStorage.setItem("community-theme", "true");</code>
249249+ </pre>
250250+ <p>
251251+ Or use the following button to test it on the `status` page slug:
252252+ </p>
239253 <Button
240254 onClick={() => {
241255 // NOTE: we use it to display the 'floating-theme' component
···246260 Test it
247261 </Button>
248262 {/* TODO: OR go to the status-page config and click on the View and Configure button */}
249249- <p>
250250- Or use the{" "}
251251- <code>sessionStorage.setItem("community-theme", "true");</code> on
252252- your own status page.
253253- </p>
254263 </div>
255264 </Section>
256265 <Separator />