Documentation
¶
Overview ¶
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Author: HyperparameterSI
Package forma provides opt-in, pure Go native components based on shadcn's Base UI Maia registry. Reference sources and attribution live in docs/references/shadcn-base-maia/. Build components inside ui.View; never retain an Element between builds.
Index ¶
- func AIComponents() []string
- func AIContext(c *ui.Context, usage ContextUsage) ui.Element
- func AIMessage(c *ui.Context, role MessageRole, text string, options ...AIMessageOptions) ui.Element
- func Accordion(c *ui.Context, build func()) ui.Element
- func AccordionItem(c *ui.Context, title string, open *bool, build func()) ui.Element
- func Alert(c *ui.Context, title, description string, destructive ...bool) ui.Element
- func AlertDialog(c *ui.Context, open *bool, title, description string, confirm func()) ui.Element
- func AspectRatio(c *ui.Context, ratio float32) ui.Element
- func Attachment(c *ui.Context, name, description, state string, action func()) ui.Element
- func Avatar(c *ui.Context, name string, bitmap *ui.Bitmap) ui.Element
- func Badge(c *ui.Context, label string, variant ...Variant) ui.Element
- func Breadcrumb(c *ui.Context, items []string, selected *int) ui.Element
- func Bubble(c *ui.Context, text string, variant Variant) ui.Element
- func Button(c *ui.Context, label string, options ...ButtonOptions) ui.Element
- func ButtonGroup(c *ui.Context, build func()) ui.Element
- func Calendar(c *ui.Context, date *time.Time, options ...CalendarOptions) ui.Element
- func Card(c *ui.Context) ui.Element
- func CardContent(c *ui.Context) ui.Element
- func CardDescription(c *ui.Context, text string) ui.Element
- func CardFooter(c *ui.Context) ui.Element
- func CardHeader(c *ui.Context) ui.Element
- func CardTitle(c *ui.Context, title string) ui.Element
- func Carousel(c *ui.Context, index *int, count int, slide func(int)) ui.Element
- func ChainOfThought(c *ui.Context, title string, open *bool, steps []AIStep) ui.Element
- func Chart(c *ui.Context, state *ChartState, o ChartOptions) ui.Element
- func ChartColors(c *ui.Context) []ui.Color
- func ChartContainer(c *ui.Context, axes chart.Axes, build func(ui.Element)) ui.Element
- func ChartLegend(c *ui.Context, labels []string, colors []ui.Color) ui.Element
- func ChartTooltip(c *ui.Context, anchor ui.Element, open *bool, title string, build func()) ui.Element
- func Chat(c *ui.Context, state *ui.ScrollState, build func()) ui.Element
- func Checkbox(c *ui.Context, on *bool, label string) ui.Element
- func Checkpoint(c *ui.Context, label string, onRestore func()) ui.Element
- func CodeBlock(c *ui.Context, title, code string, options ...CodeBlockOptions) ui.Element
- func Collapsible(c *ui.Context, title string, open *bool, build func()) ui.Element
- func Color(c *ui.Context, name string) ui.Color
- func Combobox(c *ui.Context, value *string, options []string) ui.Element
- func Command(c *ui.Context, query *string, items []CommandItem) ui.Element
- func Components() []string
- func Confirmation(c *ui.Context, title, details string, state *ConfirmationState, ...) ui.Element
- func ContextMenu(c *ui.Context, anchor ui.Element, items []MenuItem) ui.Element
- func ContextUsagePercent(usage ContextUsage) float64
- func DatePicker(c *ui.Context, date *time.Time) ui.Element
- func Dialog(c *ui.Context, open *bool, title string, build func()) ui.Element
- func Direction(c *ui.Context, d ui.Direction, build func()) ui.Element
- func Drawer(c *ui.Context, open *bool, title string, build func()) ui.Element
- func DropdownMenu(c *ui.Context, label string, items []MenuItem) ui.Element
- func Empty(c *ui.Context, title, description string, actions func()) ui.Element
- func Field(c *ui.Context, label string, build func()) ui.Element
- func FileTree(c *ui.Context, state *FileTreeState, nodes []FileNode, onOpen func(FileNode)) ui.Element
- func Form(c *ui.Context, build func()) ui.Element
- func GroupItem(e ui.Element, index, count int, vertical ...bool) ui.Element
- func HoverCard(c *ui.Context, anchor ui.Element, build func()) ui.Element
- func InlineCitation(c *ui.Context, label string, source Source, onOpen func(Source)) ui.Element
- func Input(c *ui.Context, value *string, options ...InputOptions) ui.Element
- func InputGroup(c *ui.Context, build func()) ui.Element
- func InputGroupInput(c *ui.Context, value *string, options ...InputOptions) ui.Element
- func InputOTP(c *ui.Context, value *string, length int) ui.Element
- func Item(c *ui.Context, title, description string, actions func()) ui.Element
- func Kbd(c *ui.Context, text string) ui.Element
- func Label(c *ui.Context, text string) ui.Element
- func Marker(c *ui.Context, text string) ui.Element
- func Menubar(c *ui.Context, build func()) ui.Element
- func Message(c *ui.Context, author string, end bool, build func()) ui.Element
- func MessageContent(c *ui.Context) ui.Element
- func MessageFooter(c *ui.Context, end bool) ui.Element
- func MessageHeader(c *ui.Context) ui.Element
- func MessageResponse(c *ui.Context, text string, streaming ...bool) ui.Element
- func MessageScroller(c *ui.Context, state *ui.ScrollState, build func()) ui.Element
- func ModelComposer(c *ui.Context, text, model, effort *string, models []ModelOption, ...) ui.Element
- func ModelSelector(c *ui.Context, model, effort *string, models []ModelOption, ...) ui.Element
- func NativeSelect(c *ui.Context, value *string, options []string) ui.Element
- func NavigationMenu(c *ui.Context, build func()) ui.Element
- func NewTheme(o ThemeOptions) *ui.Theme
- func Pagination(c *ui.Context, page *int, total int) ui.Element
- func Plan(c *ui.Context, title, description string, open *bool, steps []AIStep) ui.Element
- func Popover(c *ui.Context, anchor ui.Element, open *bool, build func()) ui.Element
- func Progress(c *ui.Context, value float64) ui.Element
- func PromptInput(c *ui.Context, s *PromptInputState, options ...PromptInputOptions) ui.Element
- func Questionnaire(c *ui.Context, index *int, questions []Question, onComplete func()) ui.Element
- func Queue(c *ui.Context, state *QueueState, items []AIStep) ui.Element
- func Radio[T comparable](c *ui.Context, selected *T, value T, label string) ui.Element
- func RadioGroup(c *ui.Context, build func()) ui.Element
- func Reasoning(c *ui.Context, text string, running bool, duration time.Duration, open *bool) ui.Element
- func Resizable(c *ui.Context, size *float32, first, second func()) ui.Element
- func ScrollArea(c *ui.Context) ui.Element
- func Select(c *ui.Context, value *string, options []string) ui.Element
- func Separator(c *ui.Context, vertical ...bool) ui.Element
- func Sheet(c *ui.Context, open *bool, side Side, title string, build func()) ui.Element
- func Sidebar(c *ui.Context, selected *string, build func()) ui.Element
- func SidebarItem(c *ui.Context, id, label string) ui.Element
- func Skeleton(c *ui.Context) ui.Element
- func Slider(c *ui.Context, value *float64, lo, hi float64) ui.Element
- func Sonner(c *ui.Context)
- func Sources(c *ui.Context, sources []Source, open *bool, onOpen func(Source)) ui.Element
- func Spinner(c *ui.Context) ui.Element
- func StackTrace(c *ui.Context, message string, frames []StackFrame, open *bool, ...) ui.Element
- func Subagent(c *ui.Context, run SubagentRun, open *bool) ui.Element
- func Suggestion(c *ui.Context, prompt string, onSelect func(string)) ui.Element
- func Suggestions(c *ui.Context, prompts []string, onSelect func(string)) ui.Element
- func Switch(c *ui.Context, on *bool) ui.Element
- func Table(c *ui.Context, state *ui.ListState, columns []ui.TableColumn, count int, ...) ui.Element
- func Tabs(c *ui.Context, selected *int, labels ...string) ui.Element
- func Task(c *ui.Context, title string, open *bool, steps []AIStep) ui.Element
- func Terminal(c *ui.Context, output TerminalOutput, open *bool) ui.Element
- func TestResults(c *ui.Context, s *TestResultsState, suites []AITestSuite) ui.Element
- func Textarea(c *ui.Context, value *string, options ...InputOptions) ui.Element
- func Theme(dark bool) *ui.Theme
- func Toast(c *ui.Context, t ui.Toast) string
- func Toggle(c *ui.Context, on *bool, label string) ui.Element
- func ToggleGroup(c *ui.Context, build func()) ui.Element
- func Tool(c *ui.Context, run ToolRun, open *bool) ui.Element
- func Tooltip(c *ui.Context, anchor ui.Element, text string) ui.Element
- func Trace(c *ui.Context, title string, open *bool, build func()) ui.Element
- type AIMessageOptions
- type AIStatus
- type AIStep
- type AITestCase
- type AITestSuite
- type ButtonOptions
- type CalendarOptions
- type ChartKind
- type ChartOptions
- type ChartSeries
- type ChartState
- type CodeBlockOptions
- type CodeHighlighter
- type CodeLineVariant
- type CommandItem
- type ConfirmationState
- type ContextUsage
- type DateRange
- type FileNode
- type FileTreeState
- type InputOptions
- type MenuItem
- type MessageFeedback
- type MessageRole
- type ModelComposerOptions
- type ModelEffort
- type ModelOption
- type ModelSelectorOptions
- type Preset
- type PromptAttachment
- type PromptInputOptions
- type PromptInputState
- type PromptStatus
- type PromptSubmission
- type Question
- type QueueState
- type Side
- type Size
- type Source
- type StackFrame
- type SubagentRun
- type TerminalOutput
- type TestResultsState
- type ThemeOptions
- type ToolRun
- type Variant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AIComponents ¶ added in v0.1.17
func AIComponents() []string
AIComponents lists the native AI compositions separately from the pinned upstream base registry.
func AIMessage ¶ added in v0.1.17
func AIMessage(c *ui.Context, role MessageRole, text string, options ...AIMessageOptions) ui.Element
AIMessage composes the native user bubble or assistant reply and its actions. Existing Message(c, author, end, build) remains available for custom layouts.
func AccordionItem ¶
func AlertDialog ¶
func Attachment ¶
Attachment is a file presentation. Loading and error states do not start I/O.
func Breadcrumb ¶
Breadcrumb reports an activated ancestor in selected; the last item is the current page and is deliberately not interactive.
func ChainOfThought ¶ added in v0.1.17
ChainOfThought displays application-provided step summaries. It does not request, infer, or reveal a model's private reasoning.
func Chart ¶ added in v0.1.17
func Chart(c *ui.Context, state *ChartState, o ChartOptions) ui.Element
Chart draws native marks and exposes each category through pointer and keyboard selection. It performs no polling and does not require a WebView.
func ChartColors ¶
ChartColors returns a copy of the five semantic chart colors.
func ChartContainer ¶
ChartContainer is Maia's themed composition surface for ui/chart plots. Importing other shadcn controls does not link chart geometry into an app.
func ChartTooltip ¶
func Chat ¶ added in v0.1.17
Chat follows new content only while at the live edge. Scroll state belongs to the caller; jumping to the latest message is an explicit user action.
func Checkpoint ¶ added in v0.1.17
func CodeBlock ¶
CodeBlock draws selectable code, logs or a diff entirely in Go. With no decoration or highlighter it renders a single text node, including streaming output. Keep the call's position stable (or key its parent) to retain state.
func Collapsible ¶
func Color ¶
Color resolves a semantic token for custom native compositions. Legacy themes fall back to their shared roles; unknown names return transparent.
func Components ¶
func Components() []string
Components returns the pinned Base UI Maia registry names in stable order. Presence in the catalog is not a claim of pixel-level parity; see README.md.
func Confirmation ¶ added in v0.1.17
func Confirmation(c *ui.Context, title, details string, state *ConfirmationState, onDecision func(bool)) ui.Element
Confirmation records one explicit decision. To ask again, the application must create/reset the state for a new approval request.
func ContextMenu ¶
ContextMenu draws its popup in Go, keeping Maia styling on every OS. Register it on an anchor that does not already own a HandleInput callback.
func ContextUsagePercent ¶ added in v0.1.17
func ContextUsagePercent(usage ContextUsage) float64
func DatePicker ¶
DatePicker composes Golet's native date editing and calendar popover.
func FileTree ¶ added in v0.1.17
func FileTree(c *ui.Context, state *FileTreeState, nodes []FileNode, onOpen func(FileNode)) ui.Element
FileTree renders metadata only. IDs must be unique; open callbacks decide how to read/open files. Depth is capped at 64 to bound malformed recursive data.
func GroupItem ¶
GroupItem joins an element to its neighbors without overlapping borders. Apply this after styling each child of ButtonGroup, using zero-based indexes. vertical selects a column group; call Column on the container as well.
func InlineCitation ¶ added in v0.1.17
func InputGroup ¶
InputGroup shares one surface and focus outline across its input and addons. Use InputGroupInput inside it to avoid nested input borders.
func InputGroupInput ¶
InputGroupInput is the editable, borderless child of InputGroup.
func InputOTP ¶
InputOTP accepts ASCII digits, supports paste and preserves a single native editing/IME surface for keyboard navigation and accessibility.
func MessageResponse ¶ added in v0.1.17
MessageResponse renders streamed Markdown in Go; fenced code uses Forma's CodeBlock. Supply the current accumulated text on each render.
func MessageScroller ¶
MessageScroller follows new content only while already at the bottom.
func ModelComposer ¶ added in v0.1.17
func ModelComposer(c *ui.Context, text, model, effort *string, models []ModelOption, options ...ModelComposerOptions) ui.Element
ModelComposer combines a multiline prompt and ModelSelector in one muted panel. Enter inserts a newline; the send button submits nonblank text only.
func ModelSelector ¶ added in v0.1.17
func ModelSelector(c *ui.Context, model, effort *string, models []ModelOption, options ...ModelSelectorOptions) ui.Element
ModelSelector binds model and effort IDs to two keyboard-accessible menus. Changing models retains a supported effort or picks the first enabled one. It does not contact providers or persist settings. Pointers must be non-nil.
func NativeSelect ¶
NativeSelect uses the same Go selection semantics with Maia trigger geometry.
func NewTheme ¶
func NewTheme(o ThemeOptions) *ui.Theme
NewTheme resolves a caller-owned theme once, outside the view's frame loop. Overrides use shadcn names ("primary", "primary-foreground", "card", etc.). No CSS parser, webview, global registry or background work is involved.
func PromptInput ¶ added in v0.1.17
func PromptInput(c *ui.Context, s *PromptInputState, options ...PromptInputOptions) ui.Element
PromptInput is a native chat composer. Enter submits and Shift+Enter inserts a newline; IME composition is handled by the native text editor. Callbacks run on the UI thread: start network/file work on a worker and use Window.Update for results. The application owns clearing input and setting Status/Error.
func Questionnaire ¶
func Reasoning ¶ added in v0.1.17
func Reasoning(c *ui.Context, text string, running bool, duration time.Duration, open *bool) ui.Element
Reasoning displays only the text the application explicitly supplies.
func StackTrace ¶ added in v0.1.17
func StackTrace(c *ui.Context, message string, frames []StackFrame, open *bool, onOpen func(StackFrame)) ui.Element
func Suggestion ¶ added in v0.1.17
func Suggestions ¶ added in v0.1.17
func Table ¶
func Table(c *ui.Context, state *ui.ListState, columns []ui.TableColumn, count int, cell func(int, int)) ui.Element
Table draws Maia headers and cells over Golet's virtualized, selectable list. Column resizing and cell-block selection remain available in ui.Table.
func Terminal ¶ added in v0.1.17
Terminal is a read-only agent output view, not a PTY or shell executor.
func TestResults ¶ added in v0.1.17
func TestResults(c *ui.Context, s *TestResultsState, suites []AITestSuite) ui.Element
func Theme ¶
Theme returns the neutral Maia palette. Keep a copy per window and pass it to Context.SetTheme; the component layer also respects caller theme overrides.
Types ¶
type AIMessageOptions ¶ added in v0.1.17
type AIMessageOptions struct {
Author string
Streaming bool
HideCopy bool
Feedback *MessageFeedback
OnFeedback func(MessageFeedback)
OnRetry func()
OnEdit func(string)
}
AIMessageOptions keeps effects explicit: retry/edit/feedback are application callbacks. Streaming disables actions until the reply finishes.
type AIStatus ¶ added in v0.1.17
type AIStatus string
AIStatus describes displayed work, never starts that work.
type AITestCase ¶ added in v0.1.17
type AITestSuite ¶ added in v0.1.17
type AITestSuite struct {
ID, Name string
Tests []AITestCase
}
type ButtonOptions ¶
ButtonOptions are applied before input is handled.
type CalendarOptions ¶
type CalendarOptions struct {
Disabled func(time.Time) bool
FirstWeekday *time.Weekday
// Multiple enables independent date toggles. Range takes precedence if both
// bindings are provided. The date argument still tracks the last activation.
Multiple *[]time.Time
Range *DateRange
}
CalendarOptions controls unavailable dates and the first weekday. Locale and the default first weekday follow the Context's locale and region.
type ChartKind ¶ added in v0.1.17
type ChartKind int
ChartKind chooses native marks. Other geometries remain available through ChartContainer.
type ChartOptions ¶ added in v0.1.17
type ChartOptions struct {
Label string
Kind ChartKind
Labels []string
Series []ChartSeries
Height float32
Curve chart.Curve
HideLegend, HideGrid, ShowYAxis bool
FormatValue func(float64) string
OnSelect func(int)
}
ChartOptions configures a responsive, themed chart. Height defaults to 260 DIPs. Curve is shared with ui/chart (linear, monotone and step interpolation).
type ChartSeries ¶ added in v0.1.17
ChartSeries contains categorical values aligned with ChartOptions.Labels. Missing values and non-finite numbers are gaps. A zero Color uses theme tokens.
type ChartState ¶ added in v0.1.17
type ChartState struct{ Selected int }
ChartState belongs to the view. Initialize Selected to -1 for no selection.
type CodeBlockOptions ¶ added in v0.1.17
type CodeBlockOptions struct {
Size Size
Variant Variant
LineNumbers bool
StartLine int
Wrap bool
// WrapToggle optionally binds the header's wrap button to application state.
WrapToggle *bool
// OnDownload receives the original source. The application chooses where
// to save it; no files are written by the control itself.
OnDownload func(string)
HideCopy bool
HideTitleIcon bool
MaxHeight float32
CollapsedHeight float32
Expanded *bool
Lines map[int]CodeLineVariant
Highlight CodeHighlighter
HighlightKey string
Actions func()
}
CodeBlockOptions extends the original title/code API. Lines uses zero-based source indices, independent of StartLine. Zero MaxHeight defaults to 320; a negative height removes the cap. Footer and Actions build native children.
type CodeHighlighter ¶ added in v0.1.17
CodeHighlighter tokenizes one line. State flows across lines; tokens must reproduce the original text. Incremental results are cached by the block. Change HighlightKey when the language or highlighter configuration changes.
func HighlightCode ¶ added in v0.1.17
func HighlightCode(language string) CodeHighlighter
HighlightCode adapts Golet's pure Go language tokenizer. Construct it once outside View and pass it as CodeBlockOptions.Highlight; plain blocks never call this function or initialize a language registry. Unknown languages return nil, retaining the plain-text path.
type CodeLineVariant ¶ added in v0.1.17
type CodeLineVariant string
CodeLineVariant decorates a source line without changing copied text.
const ( CodeLineDefault CodeLineVariant = "" CodeLineAdded CodeLineVariant = "added" CodeLineRemoved CodeLineVariant = "removed" CodeLineHighlighted CodeLineVariant = "highlighted" )
type CommandItem ¶
CommandItem is a command-palette action. ID must be stable and unique.
type ConfirmationState ¶ added in v0.1.17
type ConfirmationState string
const ( ConfirmationPending ConfirmationState = "" ConfirmationApproved ConfirmationState = "approved" ConfirmationDenied ConfirmationState = "denied" )
type ContextUsage ¶ added in v0.1.17
ContextUsage contains measured usage and an application-supplied model limit. Limit <= 0 is unknown; this component never invents costs or model limits.
type DateRange ¶
DateRange is an inclusive calendar selection. A zero End means that only Start has been chosen and the next activation will complete the range.
type FileTreeState ¶ added in v0.1.17
type InputOptions ¶
InputOptions controls validation and availability without changing the binding.
type MenuItem ¶
type MenuItem struct {
Label, Shortcut string
Disabled, Separator bool
Checked *bool
Children []MenuItem
Action func()
}
MenuItem describes a native-drawn popup row, checkbox, or submenu.
type MessageFeedback ¶ added in v0.1.17
type MessageFeedback string
const ( FeedbackNone MessageFeedback = "" FeedbackGood MessageFeedback = "good" FeedbackBad MessageFeedback = "bad" )
type MessageRole ¶ added in v0.1.17
type MessageRole string
const ( MessageUser MessageRole = "user" MessageAssistant MessageRole = "assistant" )
type ModelComposerOptions ¶ added in v0.1.17
type ModelComposerOptions struct {
Placeholder string
Disabled bool
OnAdd func()
OnSubmit func(text, model, effort string)
OnModelChange func(model, effort string)
}
ModelComposerOptions supplies effects explicitly. The component never sends requests or opens file dialogs itself. OnSubmit receives an immutable snapshot of the prompt, model and effort; the application owns clearing the text.
type ModelEffort ¶ added in v0.1.17
ModelEffort is a provider-supported reasoning setting. IDs are passed to the application unchanged; the UI never assumes that all providers support them.
type ModelOption ¶ added in v0.1.17
type ModelOption struct {
ID, Name, Provider, Description string
Disabled bool
Efforts []ModelEffort
}
ModelOption describes one selectable model. Empty Efforts hides its effort menu. Provider groups are displayed in first-occurrence order.
type ModelSelectorOptions ¶ added in v0.1.17
type Preset ¶
type Preset string
Preset is a native palette inspired by Tailwind's color families. These are Golet presets, not a claim to reproduce every upstream shadcn preset.
type PromptAttachment ¶ added in v0.1.17
type PromptAttachment struct{ ID, Name, Path, Description string }
PromptAttachment is application-owned metadata, not an uploaded file. Path may be a local path or an application resource ID; the control never reads it.
type PromptInputOptions ¶ added in v0.1.17
type PromptInputOptions struct {
Placeholder string
InputRef *ui.Handle
HideAttach bool // Hide the optional attachment toolbar button.
Disabled bool
Status PromptStatus
Error string
Models []ModelOption
OnAttach func()
OnDropFiles func([]string)
OnRemove func(PromptAttachment)
OnSubmit func(PromptSubmission)
OnStop func()
OnModelChange func(model, effort string)
Tools func()
}
type PromptInputState ¶ added in v0.1.17
type PromptInputState struct {
Text, Model, Effort string
Attachments []PromptAttachment
}
type PromptStatus ¶ added in v0.1.17
type PromptStatus string
const ( PromptReady PromptStatus = "" PromptSubmitted PromptStatus = "submitted" PromptStreaming PromptStatus = "streaming" )
type PromptSubmission ¶ added in v0.1.17
type PromptSubmission struct {
Text, Model, Effort string
Attachments []PromptAttachment
}
PromptSubmission is a snapshot; editing/removing attachments after sending cannot change the request handed to the application.
type QueueState ¶ added in v0.1.17
type QueueState struct{ PendingOpen, CompletedOpen bool }
QueueState preserves the independent open state of the pending/done groups.
type StackFrame ¶ added in v0.1.17
type SubagentRun ¶ added in v0.1.17
type TerminalOutput ¶ added in v0.1.17
type TestResultsState ¶ added in v0.1.17
type ThemeOptions ¶
type ThemeOptions struct {
Preset Preset
Dark bool
Radius *float32
FontSize float32
Font string
Tokens map[string]ui.Color
}
ThemeOptions configures a native theme. Start from a preset and override only the semantic tokens you need; light and dark configurations are independent. Radius is a pointer so zero deliberately requests square corners. Its default is 16 DIP, preserving Golet's existing Maia geometry. FontSize defaults to 14.