Next: (hygguile js), Previous: (hygguile embed js), Up: API
Create an HTML anchor link (<a>) component.
If the href key argument evaluates to false, the hyperlink target location defaults directly to the structural evaluation of content.
The text label or component displayed inside the interactive anchor boundary.
List of symbols representing font weight CSS classes.
List of symbols representing text sizing CSS classes.
List of symbols representing base link text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing interactive state hover coloring CSS rules.
List of base text formatting utility attributes.
Optional explicit destination target path URL string.
(a "https://gnu.org" #:extra-classes '(underline))
Create a standard HTML button element.
The inner content (text string or HTML fragments) of the button.
An optional HTML identifier string.
A symbol representing the HTML button type (e.g., 'button,
'submit).
A boolean indicating whether the button should be hidden.
A JavaScript handler string triggered on click events.
List of symbols for background CSS classes.
List of symbols for hover background CSS classes.
List of symbols for border width CSS classes.
List of symbols for border color CSS classes.
List of symbols for container shadow CSS classes.
List of symbols for text color CSS classes.
List of symbols for text sizing CSS classes.
List of symbols for active state transformation CSS classes.
List of symbols for font family CSS classes.
List of symbols for font weight CSS classes.
List of symbols for border radius CSS classes.
List of utility formatting layout classes.
(button "Click Me" #:id "btn-primary" #:on-click "alert('Hello!')")
Construct a carousel UI component.
The unique HTML string identifier for the inner carousel list element.
List of symbols representing CSS classes for the <ul> element.
List of symbols specifying the width CSS classes for each carousel item.
List of symbols specifying the height CSS classes for each carousel item.
List of symbols representing CSS classes for each item wrapper
<li>.
List of symbols representing CSS classes for the wrapper <div> of
the content.
List of symbols representing CSS classes for the outer wrapper
<div>.
List of symbols representing base CSS classes for the previous/next buttons.
List of symbols representing additional CSS classes for the left (previous) button.
List of symbols representing additional CSS classes for the right (next) button.
A list of HTML/component S-expression fragments to be rendered as the carousel items.
(carousel #:id "image-carousel"
#:fragments '(((img (@ (src "img1.png"))))
((img (@ (src "img2.png"))))))
Undocumented procedure.
Create an inline HTML <code> fragment.
The code instruction text string.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing text sizing CSS classes.
List of symbols representing inline code surface container background colors.
List of symbols representing container boundary radius options.
List of symbols representing structural layout presentation depth drops.
List of symbols controlling top/bottom baseline cell padding spaces.
List of symbols controlling left/right horizontal boundary alignment padding.
List of font typography rules enforcing monospaced code metrics.
(code "(car list-expression)")
Create a vertical column container using flexbox layout.
The inner content elements or fragments to stack vertically.
List of symbols for spacing gaps between elements.
List of symbols for shadow effect CSS classes.
List of symbols defining wrap properties.
List of symbols for vertical padding CSS classes.
List of symbols for horizontal padding CSS classes.
List of symbols for container border-radius CSS classes.
List of symbols for container background CSS classes.
List of symbols for cross-axis alignment CSS classes.
List of base vertical flex layout CSS classes.
(col '((div "Top Item") (div "Bottom Item")) #:background '(bg-transparent))
Undocumented procedure.
Generate S-expression tags to optimize and load external web typography families asynchronously.
A list of S-expression initialization link tags specifying network domains to warm up.
A list of configuration strings selecting families and weights to include from the external repository API.
A string directive identifying font rendering behaviors during file downloads.
(custom-fonts #:fonts '("Merriweather" "Open+Sans"))
Create a red-themed HTML form submission button meant for destructive actions.
The inner content (text string or HTML fragments) of the button.
(danger-submit-button "Delete Repository")
Create an HTML description details (<dd>) element.
The detailed explanation text string or fragment.
List of symbols for layout and fallback color CSS classes.
List of symbols for font weight CSS classes.
List of symbols for font family CSS classes.
List of symbols for text color CSS classes.
List of symbols for text sizing CSS classes.
(dd "An implementation of the Scheme programming language.")
Create an HTML description list (<dl>) element.
The inner term (<dt>) and description (<dd>) elements.
List of symbols for layout and style CSS classes.
(dl '((dt "Framework") (dd "Hygguile")))
Create an HTML description term (<dt>) element.
The term text string or fragment.
List of symbols for default structural padding CSS classes.
List of symbols for font weight CSS classes.
List of symbols for font family CSS classes.
List of symbols for font style CSS classes.
List of symbols for text color CSS classes.
List of symbols for text sizing CSS classes.
(dt "Guile Scheme" #:weight '(font-bold))
Create an HTML emphasis (<em>) layout block.
The inner text content or target inline nodes.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing line-height spacing CSS classes.
List of symbols representing text element style transformations.
List of symbols representing text sizing CSS classes.
(em "Please notice this crucial contextual exception.")
Construct an outer fly-out navigation menu shell.
The accessibility text label string assigned to the <nav>
component.
List of symbols representing CSS classes for the structural <nav>
wrapper.
List of symbols representing CSS classes for the top-level container
<ul>.
A list of sub-components or list items to nest within the top-level menu container.
(fly-out #:aria-label "Main Navigation"
#:items (list (fly-out-item "Home")))
Undocumented procedure.
Construct a single leaf item within a fly-out menu.
The text description, link, or component fragment inside the item container.
List of symbols representing CSS classes for the wrapping <li>
item.
(fly-out-item "Documentation" #:li-class '(px-2 py-2))
Undocumented procedure.
Construct a fly-out sub-menu dropdown block.
List of symbols representing CSS classes for the wrapper <li>
component.
List of symbols representing CSS classes for the trigger <button>
element.
List of symbols representing CSS classes for the inner hidden dropdown
<ul> list.
S-expression content or fragments rendered inside the dropdown trigger button.
A list of nested child items (typically fly-out-item items)
belonging to this sub-menu.
(fly-out-submenu #:button-content '((span "Settings"))
#:items (list (fly-out-item "Account Profile")))
Create an HTML footer element.
The inner content or layout fragments of the footer.
List of symbols for background CSS classes.
List of symbols for shadow effect CSS classes.
List of utility formatting and layout CSS classes.
(footer "© 2026 Hygguile Framework")
Retrieve the short Git commit SHA or execute a custom version control command.
The shell command string to execute, defaulting to the command that fetches the 7-character short commit hash.
(get-short-commit-sha)
Construct an HTML option styled with an inline icon or glyph indicator.
The structural form state value string assigned to the option.
An S-expression fragment or character representing the icon prefix element.
The text label descriptive string. Defaults to value if false.
List of symbols representing layout font family CSS classes.
The active control target state tracker matching criteria.
List of symbols determining internal flexbox element alignment constraints.
(glyph-option #:value "nl" #:glyph "🇳🇱" #:content "Nederlands")
Create an HTML <h1> heading.
The inner text string or child elements of the heading.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing text sizing CSS classes.
(h1 "Main Page Title" #:color '(text-stone-900))
Create an HTML <h2> heading.
The inner text string or child elements of the heading.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing text sizing CSS classes.
(h2 "Section Subtitle" #:weight '(font-semibold))
Create an HTML <h3> heading.
The inner text string or child elements of the heading.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing text sizing CSS classes.
(h3 "Subsection Heading")
Create an HTML <h4> heading.
The inner text string or child elements of the heading.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing text sizing CSS classes.
(h4 "Minor Subsection Title")
Create an HTML horizontal rule (<hr>) element.
List of symbols representing margin CSS classes.
List of symbols representing border width CSS classes.
List of symbols representing border color CSS classes.
(hr #:margin '(my-4) #:color '(border-red-500))
Return an S-expression list containing basic framework-recommended HTML metadata tags.
Includes mobile-responsive viewport parameters and typical character set configurations.
(hygguile-recommended-meta)
Assemble a list of recommended UI resource fragments, including standard web typography assets and component script blocks.
An S-expression block managing custom font loading configurations,
defaulting to the result of (custom-fonts).
(hygguile-recommended-resources)
Construct an inline HTML icon element using Phosphor formatting.
A symbol designating the core identifier name of the Phosphor icon asset
(e.g., 'star, 'gear).
A configuration symbol defining line weight thickness variants. Accepts
'bold, 'light, or defaults to 'regular.
List of symbols representing additional layout formatting rules or sizing CSS classes.
(icon #:type 'heart #:weight 'bold #:icon-css '(text-red-500 text-2xl))
Create a button containing both an icon and text.
An optional HTML identifier string.
A symbol identifying the type of icon to render.
The text string or components positioned next to the icon.
A boolean indicating whether the button should be hidden.
A JavaScript handler string triggered on click events.
A symbol representing the HTML button type.
List of symbols for background CSS classes.
List of symbols for hover background CSS classes.
List of symbols for border width CSS classes.
List of symbols for border color CSS classes.
List of symbols for shadow CSS classes.
List of symbols for text sizing CSS classes.
List of symbols for font family CSS classes.
List of symbols for font weight CSS classes.
List of symbols for text color CSS classes.
List of symbols for border radius CSS classes.
List of symbols for active state transformation CSS classes.
List of symbols targeting icon coloring and sizing classes.
List of utility layout CSS classes.
List of symbols applied to the inner layout wrapper surrounding the icon and content.
(icon-button #:icon 'download #:content "Fetch Data" #:on-click "downloadData()")
Construct an HTML <input> component with a matching label.
The descriptive text string displaying the identity of the field.
The name mapping configuration string bound onto form serialization attributes.
The standard default textual configuration payload string.
The ambient string text descriptive hint applied when the field boundary is unpopulated.
A configuration symbol managing browser input rendering choices (e.g.,
'text, 'password).
A boolean property indicating if form verification forces evaluation validation.
List of symbols representing layout utility CSS classes for the input field.
List of symbols representing presentation utility CSS classes for the label field.
List of symbols regulating structure container box margins and gaps.
(input #:label "Email Address" #:name "email" #:type 'email #:required #t)
Create a button pre-configured with a light font weight.
The inner content (text string or HTML fragments) of the button.
(light-button "Read More...")
Create a container styled with a CSS linear gradient background.
The inner layout components or text elements inside the container.
A string containing additional CSS utility classes for the wrapper.
A symbol or string designating the gradient vector direction (e.g.,
'right, 'bottom).
A list of color string steps making up the gradient stops.
(linear-gradient "Gradient Text" #:direction 'right #:steps '("#ff0000" "#0000ff"))
Return a sorted, space-separated string of unique class names from xs.
Takes a list of symbols xs, removes any duplicates, converts them to strings, sorts them alphabetically, and returns them as a single, space-separated string. This is useful for creating a canonical CSS class attribute value.
If xs is the empty list, an empty string is returned.
A list of symbols.
(mk-class '(p-2 bg-stone-900/75))
Create a structural paragraph element wrapped in a monospace text layout.
The inner code text string or inline elements.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing text sizing CSS classes.
List of configuration framework tokens defining a fixed-width layout style.
(mono "$ guix pull")
Create a button pre-configured with a monospace font family.
The inner content (text string or HTML fragments) of the button.
(mono-button "git commit")
Construct an HTML <option> element.
If selected-value matches value, the option will render with a selected attribute status.
The structural form state value string assigned to the option.
The visual display text string or inner components. Defaults to value if false.
List of symbols representing font family CSS classes applied if selected.
The active value configuration used to evaluate selection symmetry.
(option #:value "light" #:content "Cozy Light Theme" #:selected-value "dark")
Create an HTML paragraph (<p>) component.
The text block or inner nodes rendered inside the paragraph boundaries.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing line-height spacing CSS classes.
List of symbols representing text sizing CSS classes.
(p "This framework focuses on modular, cozy web architectures.")
Generate S-expression link tags to pull down standard Phosphor icon asset libraries asynchronously.
Note: If the default value string containing an internal NPM handle is modified, any raw symbol characters must continue to obey parsing constraints.
The source URL string pointing directly to the distributed stylesheet manifest location.
(phosphor-icons #:stylesheet-href "https://example.com/assets/icons.css")
Create an HTML preformatted multi-line source code container block
(<pre>).
The raw multi-line string contents to preserve.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing text sizing CSS classes.
List of symbols representing code presentation layout surface background cards.
List of symbols representing card container boundary radius configurations.
List of symbols representing card container visual shadow definitions.
List of symbols tracking macro dimension constraint rules.
List of symbols processing vertical paragraph text baseline spacing layouts.
List of symbols configuring code boundary line wrapping constraints.
List of symbols processing top/bottom container padding margins.
List of symbols processing side outer margin boundaries padding options.
List of structural code scrolling mechanisms and whitespace behaviors.
(pre "(define (hello)\n (display \"Hi\"))")
Transform explicit S-expression (quote symbol) fragments within a
string into shorthand syntax.
The target input string containing raw code snippets or text representations.
(pretty-quote "This is a (quote example) line.")
Undocumented procedure.
Apply render-func to item if item is neither empty nor false.
Returns an empty list if item evaluates to null or false.
A single-argument procedure to evaluate the layout with item.
The data element or fragment list to inspect.
(render-if-nempty (lambda (i) `(b ,i)) "Bold Text")
Evaluate and return the result of expr with x if x is a non-empty string.
If x is false or an empty string, returns an empty list.
A single-argument procedure to apply to x.
The string value or condition to check.
(render-if-nestring (lambda (val) `((p ,val))) "Hello")
Create a horizontal row container using flexbox layout.
The inner content elements or fragments to align horizontally.
List of symbols for spacing gaps between elements.
List of symbols for shadow effect CSS classes.
List of symbols defining wrap properties.
List of symbols for vertical padding CSS classes.
List of symbols for horizontal padding CSS classes.
List of symbols for container border-radius CSS classes.
List of symbols for container background CSS classes.
List of symbols for cross-axis alignment CSS classes.
List of base horizontal flex layout CSS classes.
(row '((div "Left Element") (div "Right Element")) #:gap '(gap-4))
Construct a dropdown list interactive selection menu wrapper.
A list of option or glyph-option S-expressions making up the menu rows.
A string JavaScript execution statement evaluated during interaction changes.
The element name context configuration string bound onto target HTML form tracking.
The unique DOM string selector matching layout identifier tables.
List of symbols representing base structural font choices.
List of symbols specifying visual layout styles for the component wrapper card.
(select #:id "theme-picker"
#:on-change "console.log('Changed!')"
#:options (list (option #:value "dim")))
Generate a client-side script block that handles rendering notifications from URL parameters.
This macro sets up a DOM listener evaluating parameters matching
notify-title and notify-body from the window URL
properties. When populated, it generates the corresponding component
subtree inside the layout tray wrapper designated by the element
identifier notification-tray.
A space-separated string containing CSS layout configuration targeting the card header text elements.
The client-side callback script evaluated whenever a dismiss interaction triggers.
A space-separated string containing structural component icon identifiers and layout options.
A space-separated string containing CSS layout parameters handling the alignment properties of the text boundaries.
A space-separated string containing global structural box presentation layouts applied directly onto the notification layout wrapper block.
(show-notifications-from-url-js #:header-classes "text-lg font-bold")
Create an HTML strong importance (<strong>) text fragment.
The inner phrase string or inline elements requiring strong visual weight.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing line-height spacing CSS classes.
List of symbols representing text sizing CSS classes.
(strong "Warning: Destructive action ahead!")
Create a lighter, styled secondary <h1> heading wrapper.
The inner text string or child elements of the subheading.
List of symbols representing font weight CSS classes.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing font style layout configuration options (e.g., italic).
List of symbols representing text sizing CSS classes.
(sub-h1 "A deeper dive into the architecture")
Create a lighter, styled secondary <h2> heading wrapper.
The inner text string or child elements of the subheading.
List of symbols representing font weight CSS classes.
List of symbols representing font style layout configuration options.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing text sizing CSS classes.
(sub-h2 "Contextual commentary block")
Create a lighter, styled secondary <h3> heading wrapper.
The inner text string or child elements of the subheading.
List of symbols representing font weight CSS classes.
List of symbols representing font style layout configuration options.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing text sizing CSS classes.
(sub-h3 "Detailed breakdown notes")
Create a lighter, styled secondary <h4> heading wrapper.
The inner text string or child elements of the subheading.
List of symbols representing font weight CSS classes.
List of symbols representing font style layout configuration options.
List of symbols representing text color CSS classes.
List of symbols representing font family CSS classes.
List of symbols representing text sizing CSS classes.
(sub-h4 "Supplemental metadata label")
Create a green-themed standard HTML form submission button.
The inner content (text string or HTML fragments) of the button.
(submit-button "Save Preferences")
Construct an HTML <textarea> multiline field block.
The explicit header string informing users of required field contexts.
The unique string structural identifier mapping the entity across standard DOM tables.
The initial text block paragraph payload string nested inside the block.
A field completion mandatory requirement boolean validation gate switch.
List of symbols targeting specific dimensions and borders configuration styles.
List of symbols handling sizing constraints applied onto the matching label tags.
List of symbols managing outer wrapper responsive card flex constraints.
(textarea #:label "User Bio" #:name "biography" #:value "Born in Scheme...")
Undocumented procedure.
Generate a JavaScript IIFE string that pushes notification parameters into the URL query string and reloads the window.
The fallback string title of the notification.
The core informational content string of the notification.
The visibility timeline limit in milliseconds before the notification is cleared.
The fallback typography class string applied to the notification’s description field.
(trigger-notification-function-js #:title "Alert" #:body "System update complete.")
Create a utility button pre-wired to toggle UI dark/light mode themes.
A symbol identifying the default icon type.
The description text displayed within the button layout.
A symbol representing the HTML button type.
List of symbols for background CSS classes.
List of symbols for hover background CSS classes.
List of symbols for border width CSS classes.
List of symbols for border color CSS classes.
List of symbols for shadow CSS classes.
List of symbols for text sizing CSS classes.
List of symbols for active state transformation CSS classes.
List of symbols for font family CSS classes.
List of symbols for font weight CSS classes.
List of symbols for text color CSS classes.
The global JavaScript function invocation string triggered to process the theme change.
List of symbols for border radius CSS classes.
List of symbols targeting icon coloring and sizing classes.
List of utility layout CSS classes.
List of symbols applied to the inner layout wrapper surrounding the icon and content.
(ui-mode-button #:content "Switch Theme")
Wrap a main content fragment and a footer fragment within a full-screen vertical flex container.
S-expression representing the main content layout.
S-expression representing the footer layout.
(with-footer #:main '((p "Hello World")) #:footer '((footer "Standard Footer")))
Next: (hygguile js), Previous: (hygguile embed js), Up: API