glasscn
ShowcaseDocsComponentsStudioThemingNative
5Get started
Guides
IntroductionInstallationThemingFonts & typeStudioReact Native
Surfaces
AuroraBackdropGlassLiquid glassCardTheme scopeBackground extensionScroll areaAccordionCollapsibleAlertItemEmpty
Typography
TypographyProse
Controls
ButtonBadgeInputTextareaLabelSwitchCheckboxSegmented controlTabsGlass groupGlass clusterGlass morphSliderProgressKbdSeparatorAvatarGlass preferencesComboboxCalendarDate pickerSpinnerSkeletonSelectRadio groupFieldInput groupButton groupToggleToggle groupStepper
Overlays
DialogAlert dialogSheetAction sheetPopoverTooltipDropdown menuToasterCommandDrawerContext menuConfirmation popover
Navigation
DockToolbarScroll edgeNavigation barSidebarSearch fieldGrouped list
Data
Activity ringsProgress ringSparklineStatKPIWidgetRange chartBar listGaugeTrackerCategory barHeatmapChartArea chartBar chartLine chartDonut chartTableData table
Chat
ChatChat markdownChat parts
Blocks
More Apple glass examplesLiquid Glass examplesDashboardAnalyticsSettingsSign inChat
glasscn — a shadcn registry. Copy it, own it, change it.DocsThemingregistry.json
Typographyradix-ui

Prose

Rich text (Markdown, MDX, CMS) set in the theme's type: headings, links, lists, quotes, code, tables.

Installation

pnpm dlx shadcn@latest add https://glasscn.app/r/prose.json

React Native (iOS, Android and web through react-native-web) — same parts and props:

pnpm dlx shadcn@latest add https://glasscn.app/r/native-prose.json

Or with the namespace set up: shadcn add @glasscn-app/prose

Wrap rendered Markdown/MDX: <Prose dangerouslySetInnerHTML={{ __html }} /> or <Prose><MDXContent /></Prose>.

Line length follows --glass-measure; className="max-w-none" to fill the container. Everything else comes from the type, colour and shape tokens.

Images and video never exceed the measure; a wide table scrolls sideways inside it.

Styles kbd, mark, del/ins, dl, details/summary, figure, nested list markers, GFM task lists and footnotes (remark-gfm), and GitHub alerts (`.markdown-alert`, from remark-github-blockquote-alert). Headings keep clear of a sticky header when linked (scroll-margin-top).

Source

components/glass/prose.tsx
import * as React from "react"
import { cn } from "@/lib/glass-cn"
import { Slot } from "radix-ui"

/**
 * Rich text — Markdown, MDX, a CMS — set in the theme's type: headings, links,
 * lists, quotes, code, tables, images, all from the type and colour tokens.
 * Line length is `--glass-measure`; pass `className="max-w-none"` to fill.
 */
function Prose({ asChild = false, className, ...props }: React.ComponentProps<"div"> & { asChild?: boolean }) {
  const Comp = asChild ? Slot.Root : "div"
  return <Comp data-slot="prose" className={cn("glass-prose", className)} {...props} />
}

export { Prose }
TypographyButton

The method

Most days are forgettable. If nothing carries from one to the next, years pass without change. So each night, name what mattered and decide how it changes tomorrow. Read more.

Keep the gains small. Let them compound.

Each night

  1. What was the most significant thing that happened today?
  2. How will it change what you do tomorrow?

The carried answer is stored as carryId:

const promise = entries[yesterday].answers[carryId]
WeekNightsKept
40683%
41571%