Skip to main content
Ctrl+K
FSharp.ViewEngine · DesignFSharp.ViewEngine · Key FeaturesFSharp.ViewEngine · Quick ExampleFSharp.ViewEngine · Getting StartedCore installation · Using .NET CLICore installation · Using Paket CLICore installation · Runtime SupportCore installation · Source DebuggingCore installation · Next StepsBuild your first view · Create the viewBuild your first view · Render the viewBuild your first view · Reuse componentsBuild your first view · NextElements and attributes · ElementsElements and attributes · AttributesElements and attributes · Mixed contentElements and attributes · Generic escape hatchesComposition and control flow · Functions as componentsComposition and control flow · Conditional contentComposition and control flow · SequencesRendering · FragmentsRendering · DocumentsRendering · Application boundariesEncoding and trusted content · Encoded by defaultEncoding and trusted content · Trusted raw contentEncoding and trusted content · Trusted names and expressionsAccessibility · Prefer native HTMLAccessibility · Names and relationshipsAccessibility · ARIA coverageAccessibility · Test behaviorCustom Elements & Attributes · Trusted Content BoundariesCustom Elements & Attributes · Custom ElementsCustom Elements & Attributes · elCustom Elements & Attributes · elVoidCustom Elements & Attributes · Nested Web ComponentsCustom Elements & Attributes · Custom AttributesCustom Elements & Attributes · _attrCustom Elements & Attributes · Key-value attributeCustom Elements & Attributes · Boolean attributeCustom Elements & Attributes · Combining with Built-in AttributesCustom Elements & Attributes · Extending the Html TypeCustom Elements & Attributes · Adding Custom ElementsCustom Elements & Attributes · Adding Custom AttributesCustom Elements & Attributes · Design System ExampleCustom Elements & Attributes · Shoelace ExampleSVG · Support PolicySVG · SetupSVG · Element ReferenceSVG · Numeric and Length ValuesSVG · Icon ExampleSVG · Chart and Text ExampleSVG · Gradients, Clipping, Masking, and ReuseSVG · AccessibilitySVG · Linking and NamespacesSVG · Attribute ReferenceSVG · Unsupported SVGDatastar · SetupDatastar · Core AttributesDatastar · data-signalsDatastar · data-bindDatastar · data-computedDatastar · data-effectDatastar · data-showDatastar · data-textDatastar · data-attrDatastar · data-classDatastar · data-styleDatastar · data-initDatastar · data-onDatastar · data-on-intersectDatastar · data-on-intervalDatastar · data-on-signal-patchDatastar · data-on-signal-patch-filterDatastar · data-indicatorDatastar · data-refDatastar · data-json-signalsDatastar · data-ignoreDatastar · data-ignore-morphDatastar · data-preserve-attrDatastar · Pro AttributesDatastar · data-animateDatastar · data-custom-validityDatastar · data-match-mediaDatastar · data-on-rafDatastar · data-on-resizeDatastar · data-persistDatastar · data-query-stringDatastar · data-replace-urlDatastar · data-scroll-into-viewDatastar · data-view-transitionDatastar · Trusted ExpressionsDatastar · Content Security PolicyDatastar · Complete ExampleHTMX · SetupHTMX · Request MethodsHTMX · hx-getHTMX · hx-postHTMX · hx-putHTMX · hx-patchHTMX · hx-deleteHTMX · Request Data and ConfigurationHTMX · hx-encodingHTMX · hx-headersHTMX · hx-includeHTMX · hx-paramsHTMX · hx-requestHTMX · hx-valsHTMX · Targeting and SwappingHTMX · hx-targetHTMX · hx-selectHTMX · hx-select-oobHTMX · hx-swapHTMX · hx-swap-oobHTMX · hx-preserveHTMX · Requests in FlightHTMX · hx-indicatorHTMX · hx-disabled-eltHTMX · hx-syncHTMX · hx-validateHTMX · Triggering and InteractionHTMX · hx-triggerHTMX · hx-confirmHTMX · hx-promptHTMX · hx-onHTMX · Navigation and HistoryHTMX · hx-boostHTMX · hx-push-urlHTMX · hx-replace-urlHTMX · hx-historyHTMX · hx-history-eltHTMX · Inheritance and ProcessingHTMX · hx-disableHTMX · hx-disinheritHTMX · hx-inheritHTMX · hx-extHTMX · Generic and Deprecated AttributesHTMX · Complete ExampleAlpine.js · SetupAlpine.js · Core DirectivesAlpine.js · x-dataAlpine.js · x-initAlpine.js · x-showAlpine.js · x-bindAlpine.js · x-onAlpine.js · x-textAlpine.js · x-htmlAlpine.js · x-modelAlpine.js · x-modelableAlpine.js · x-forAlpine.js · x-transitionAlpine.js · x-effectAlpine.js · x-ignoreAlpine.js · x-refAlpine.js · x-cloakAlpine.js · x-teleportAlpine.js · x-ifAlpine.js · x-idAlpine.js · Plugin DirectivesAlpine.js · x-maskAlpine.js · x-intersectAlpine.js · x-resizeAlpine.js · x-collapseAlpine.js · x-trapAlpine.js · x-anchorAlpine.js · x-sortAlpine.js · Plugins Without Directive HelpersAlpine.js · Trusted ExpressionsAlpine.js · Complete ExampleTailwind Plus Elements · SetupTailwind Plus Elements · Shared AttributesTailwind Plus Elements · AutocompleteTailwind Plus Elements · Command PaletteTailwind Plus Elements · Copy ButtonTailwind Plus Elements · DialogTailwind Plus Elements · DisclosureTailwind Plus Elements · Dropdown MenuTailwind Plus Elements · PopoverTailwind Plus Elements · SelectTailwind Plus Elements · TabsTailwind Plus Elements · Runtime ReadinessComponents · Get startedComponents · ActionsComponents · FeedbackComponents · Data displayComponents · Form controlsComponents · NavigationComponents · OverlaysComponents · LayoutComponents · Code and diagramsComponent installation · Install the CLIComponent installation · Add componentsComponent installation · Install the build toolsComponent installation · Configure TailwindComponent installation · Import component JavaScriptComponent installation · Build and watchComponent installation · Serve and use the componentsComponent installation · Update installed componentsButton · InstallationButton · UsageButton · SizesButton · ColorsButton · VariantsButton · Uniform paddingButton · All color variantsButton · PendingButton · ChildrenButton · Icon-only variantsButton · Custom paletteButton · Primary buttonsButton · Secondary buttonsButton · Ghost buttonsButton · Native Ghost resetButton · Destructive buttonsButton · Destructive pendingButton · Disabled buttonsButton · Primary icon-onlyButton · Pending icon-onlyButton · Disabled icon-onlyButton · Datastar visibilityButton · Row actionsButton · Labels and focusButton · API referenceLink · InstallationLink · UsageLink · Text underlineLink · Inherited presentationLink · SizesLink · Uniform paddingLink · ColorsLink · VariantsLink · All color variantsLink · Icon-only variantsLink · Icon-only sizesLink · Native new-tab navigationLink · API referenceButton group · InstallationButton group · UsageButton group · Grouped actionsButton group · Native link segmentsButton group · Label and Select segmentsButton group · Custom controls and popup isolationButton group · Vertical orientationButton group · API referenceDropdown menu · InstallationDropdown menu · UsageDropdown menu · IconsDropdown menu · Keyboard hintsDropdown menu · CheckboxesDropdown menu · Radio choicesDropdown menu · Disabled itemsDropdown menu · Destructive actionDropdown menu · Outlined page actionDropdown menu · Custom native controlDropdown menu · Full context row and supporting descriptionsDropdown menu · Grouped states and refreshDropdown menu · Row actionsDropdown menu · API referenceToggle button · InstallationToggle button · UsageToggle button · PendingToggle button · DisabledToggle button · Content, sizes and variantsToggle button · API referenceToggle group · InstallationToggle group · UsageToggle group · Single selectionToggle group · Connected multiple and single-item groupsToggle group · Multiple, spaced and unavailableToggle group · SubmissionToggle group · Vertical orientationToggle group · API referenceBadge · InstallationBadge · UsageBadge · ColorsBadge · VariantsBadge · API referenceNotice · InstallationNotice · UsageNotice · ColorsNotice · VariantsNotice · Success with downloadNotice · WarningNotice · Error with recovery linkNotice · Announce an updateNotice · API referenceNotification · InstallationNotification · UsageNotification · Persistent with an actionNotification · Custom lifetimeNotification · AnnouncementsNotification · API referenceLoading indicator · InstallationLoading indicator · UsageLoading indicator · With visible labelLoading indicator · API referenceProgress · InstallationProgress · UsageProgress · IndeterminateProgress · CompleteProgress · FailedProgress · API referenceEmpty state · InstallationEmpty state · UsageEmpty state · Title onlyEmpty state · With recovery actionEmpty state · API referenceSkeleton · InstallationSkeleton · UsageSkeleton · TextSkeleton · Avatar rowSkeleton · CardSkeleton · Explicit dimensionsSkeleton · API referenceCallout · InstallationCallout · UsageCallout · API referenceIcon · InstallationIcon · UsageIcon · Heroicons familiesIcon · Brand logosIcon · Rendered-size overridesIcon · API referenceTable · InstallationTable · UsageTable · Comfortable rowsTable · Hover highlightingTable · With status valuesTable · With checkboxesTable · Scrollable rows and sticky headingsTable · Stacked on mobileTable · Sortable recordsTable · Hierarchical itemsTable · Row actionsTable · Empty stateTable · Infinite scrollTable · API referenceChart · InstallationChart · UsageChart · ColumnChart · Horizontal barChart · SankeyChart · Updating options and handling eventsChart · Empty dataChart · API referenceDescription list · InstallationDescription list · UsageDescription list · Three-column detailsDescription list · Four-column detailsDescription list · With supporting textDescription list · API referenceMetric · InstallationMetric · UsageMetric · With trend and statusMetric · With review statusMetric · Multiple metricsMetric · API referenceAvatar · InstallationAvatar · UsageAvatar · Fallbacks and sizesAvatar · ImageAvatar · Image unavailableAvatar · DecorativeAvatar · API referenceCopy and reveal · InstallationCopy and reveal · UsageCopy and reveal · Icon actionsCopy and reveal · Initially revealedCopy and reveal · API referenceDay calendar · InstallationDay calendar · UsageDay calendar · Overlapping sessionsDay calendar · Compact controlsDay calendar · Provisional time selectionDay calendar · API referenceWeek calendar · InstallationWeek calendar · UsageWeek calendar · Events and date navigationWeek calendar · Shared controls and event detailsWeek calendar · API referenceMonth calendar · InstallationMonth calendar · UsageMonth calendar · Events and date navigationMonth calendar · Compact monthMonth calendar · Single-date selectionMonth calendar · Clearable single dateMonth calendar · Current dateMonth calendar · Today shortcutMonth calendar · Date rangeMonth calendar · Bounds, unavailable dates and Monday startMonth calendar · Month and year selectorsMonth calendar · Busy availabilityMonth calendar · Read-only selectionMonth calendar · API referenceYear calendar · InstallationYear calendar · UsageYear calendar · Event indicators and date navigationYear calendar · API referenceKbd · InstallationKbd · UsageKbd · Shortcut groupKbd · API referenceSeparator · InstallationSeparator · UsageSeparator · Orientation and semanticsSeparator · API referenceCard · InstallationCard · UsageCard · Header and footerCard · With mediaCard · API referenceMessage · InstallationMessage · UsageMessage · Sender and receiverMessage · Metadata and actions without an avatarMessage · API referenceInput · InstallationInput · UsageInput · Consistent control sizesInput · With help textInput · RequiredInput · OptionalInput · Validation errorInput · Native searchInput · DisabledInput · Read-onlyInput · API referenceInput group · InstallationInput group · UsageInput group · IconInput group · SuffixInput group · Text addonsInput group · Icon and keyboard hintInput group · Addon popup keeps its own controlsInput group · Textarea header and footerInput group · Validation errorInput group · Checking with visible feedbackInput group · API referenceField · InstallationField · UsageField · Custom controlField · Responsive label and control rowsField · Semantic fieldsetField · Labels and focusField · API referenceTextarea · InstallationTextarea · UsageTextarea · Visually hidden labelTextarea · With instructionsTextarea · Validation errorTextarea · Read-onlyTextarea · DisabledTextarea · API referenceFile selection · InstallationFile selection · UsageFile selection · Multiple filesFile selection · ValidationFile selection · DisabledFile selection · API referenceTag input · InstallationTag input · UsageTag input · SubmissionTag input · ValidationTag input · PendingTag input · DisabledTag input · API referenceError summary · InstallationError summary · UsageError summary · API referenceSelect · InstallationSelect · UsageSelect · Custom items and groupsSelect · Multiple selectionSelect · Local searchSelect · Remote searchSelect · Form validationSelect · DisabledSelect · PendingSelect · API referenceTime picker · InstallationTime picker · UsageTime picker · 24-hour display and boundsTime picker · Disabled and read-onlyTime picker · API referenceDate picker · InstallationDate picker · UsageDate picker · Clearable single dateDate picker · Current dateDate picker · Today shortcutDate picker · Date rangeDate picker · Month and year selectorsDate picker · Bounds and unavailable datesDate picker · ValidationDate picker · PendingDate picker · DisabledDate picker · Read-onlyDate picker · API referenceCheckbox · InstallationCheckbox · UsageCheckbox · With help textCheckbox · IndeterminateCheckbox · Required confirmation with validationCheckbox · CheckedCheckbox · PendingCheckbox · DisabledCheckbox · API referenceSwitch · InstallationSwitch · UsageSwitch · With help textSwitch · Setting with submissionSwitch · PendingSwitch · DisabledSwitch · Validation errorSwitch · SizesSwitch · Stacked layoutSwitch · API referenceRadio group · InstallationRadio group · UsageRadio group · Option descriptionsRadio group · Horizontal orientationRadio group · Required choice with validationRadio group · PendingRadio group · DisabledRadio group · API referenceChoice cards · InstallationChoice cards · UsageChoice cards · Single choiceChoice cards · Multiple choicesChoice cards · ValidationChoice cards · API referenceField group · InstallationField group · UsageField group · Without descriptionField group · Disabled fieldsetField group · Horizontal fieldsField group · Responsive fieldsField group · API referenceBreadcrumbs · InstallationBreadcrumbs · UsageBreadcrumbs · Middle overflowBreadcrumbs · Available spaceBreadcrumbs · API referenceSide nav · InstallationSide nav · UsageSide nav · Sections and collapsible groupsSide nav · Header, context, content and footerSide nav · Nested navigation with badges and actionsSide nav · Expansion and scrollSide nav · API referenceTabs · InstallationTabs · UsageTabs · Server-owned selectionTabs · Underlined tabs with refreshTabs · Vertical, icons and disabled itemsTabs · API referencePagination · InstallationPagination · UsagePagination · Page navigationPagination · Numbers onlyPagination · Previous and next onlyPagination · API referenceCommand · InstallationCommand · UsageCommand · Groups, icons and shortcutsCommand · Contextual page linksCommand · Actions and disabled itemsCommand · Dialog paletteCommand · Empty resultsCommand · API referenceBottom navigation · InstallationBottom navigation · UsageBottom navigation · Four destinationsBottom navigation · Three destinationsBottom navigation · API referenceDialog · InstallationDialog · UsageDialog · Modal dialogDialog · Server-validated confirmationDialog · App-contained dialogDialog · Labels and focusDialog · API referenceDrawer · InstallationDrawer · UsageDrawer · NavigationDrawer · Standard detail drawerDrawer · Wide editing formDrawer · Start-side filtersDrawer · Top and bottom edgesDrawer · App-contained drawerDrawer · Labels and focusDrawer · API referenceFloating panel · InstallationFloating panel · UsageFloating panel · Minimized with restoreFloating panel · ChecklistFloating panel · API referencePopover · InstallationPopover · UsagePopover · With formPopover · Side and alignmentPopover · Custom native triggerPopover · API referenceTooltip · InstallationTooltip · UsageTooltip · Existing descriptionTooltip · Bottom placementTooltip · API referenceBrowser · InstallationBrowser · UsageBrowser · With an address barBrowser · Review controls and expansionBrowser · API referencePhone · InstallationPhone · UsagePhone · With screen contentPhone · Review controls and expansionPhone · API referenceResizable · InstallationResizable · UsageResizable · Horizontal split panelsResizable · Vertical split panelsResizable · API referenceSlide · InstallationSlide · UsageSlide · CoverSlide · API referencePresentation · InstallationPresentation · UsagePresentation · API referencePage header · InstallationPage header · UsagePage header · Title and page actionsPage header · API referenceSection header · InstallationSection header · UsageSection header · Description, actions and dividerSection header · API referenceSection · InstallationSection · UsageSection · Section spacingSection · API referenceDisclosure · InstallationDisclosure · UsageDisclosure · API referencePage top bar · InstallationPage top bar · UsagePage top bar · Full-width shell barPage top bar · API referenceCode block · InstallationCode block · Quick start with GiraffeCode block · Add syntax highlightingCode block · Optional Prism stylesheetCode block · F#Code block · PythonCode block · TypeScriptCode block · BashCode block · SQLCode block · Optional nonce CSPCode block · API referenceExample · InstallationExample · UsageExample · API referenceMermaid · InstallationMermaid · UsageMermaid · Sequence constructorsMermaid · API referenceF# API reference · InstallationF# API reference · UsageF# API reference · API referenceStandalone F# scripts · PrerequisitesStandalone F# scripts · Use the Core packageStandalone F# scripts · Install editable components into a scriptStandalone F# scripts · Compose the HTML pageStandalone F# scripts · Build and viewStandalone F# scripts · Keep source ownership explicitStandalone F# scripts · Next stepsGiraffe integration · Minimal ExampleGiraffe integration · How It WorksGiraffe integration · Title ElementsUsing signals · Bind a value and handle an actionUsing signals · Related examplesTheming · Apply a theme to a regionTheming · Override only what you needTheming · Scope CSS variables to a regionTheming · CSS-variable referenceTheming · Internal variablesTheming · Add an appearance pickerTheming · Theme APIBuild a presentation · Create a deckBuild a presentation · Compose slides with ordinary F#Build a presentation · Build and openBuild a presentation · Present in the browserBuild a presentation · Print or save as PDFBuild a presentation · Explore the complete exampleBenchmarks · Rendering performanceBenchmarks · EnvironmentBenchmarks · ReproduceExamples · Templates

Theming

Apply a shared theme, override a token, and let the user choose light, dark or system appearance.

On this page

Apply a theme to a region

Shared theme and size

Save

A theme applies to its owning region and its components. This example selects Emerald, larger corners and Small controls; it does not change the surrounding page.

Override only what you need

Custom control radius

Rounded action

Use ordinary classes and semantic CSS variables for local changes. Edit the installed source when the component structure itself needs to change.

Neutral interactive controls paint a translucent background wash without fading their content or replacing their selected color. --fve-hover-wash defaults to black at 5% in light mode and white at 10% in dark mode; --fve-pressed-wash uses 10% and 15%. Override these on the owning region, not the opaque --fve-surface or --fve-surface-hover tokens.

.quiet-region {
  --fve-hover-wash: light-dark(rgb(0 0 0 / 0.05), rgb(255 255 255 / 0.10));
  --fve-pressed-wash: light-dark(rgb(0 0 0 / 0.10), rgb(255 255 255 / 0.15));
}

Table rows keep an opaque hover fill so sticky cells match. Use Table’s --fve-table-row-hover override for a table-specific color.

For an action-specific color palette, see Button. The update instructions explain how local edits are preserved.

Scope CSS variables to a region

Put overrides on the owning ComponentsTheme region or the specific component. A nested theme resets its own defaults; an explicit component _size or _density can set more-local values. Ordinary inherited overrides never need a new theme or a JavaScript observer.

Scoped light/dark overrides

Save changesButton reference

The F# example uses _style for locality. The equivalent stylesheet can target the same region ID; light-dark() follows that region’s color-scheme, including manual appearance preferences.

#theming-scoped-controls {
  --fve-radius-control: 0.75rem;
  --fve-hover-wash: light-dark(rgb(0 0 0 / 0.07), rgb(255 255 255 / 0.12));
  --fve-pressed-wash: light-dark(rgb(0 0 0 / 0.12), rgb(255 255 255 / 0.18));
  --fve-primary-hover: light-dark(#166534, #34d399);
  --fve-primary-active: light-dark(#14532d, #10b981);
}

CSS-variable reference

These are the supported customization variables. Defaults below come from ComponentsTheme.sky with its default Medium controls and Comfortable density, before application overrides. Other named themes change the brand values; changing appearance selects the corresponding mode. The catalog itself uses Compact density.

Search by variable name, purpose or scope, or filter to theme defaults, action palettes or component overrides. Each variable appears once, with ten results per page.

Each of the seven built-in action colors has independently overridable fields. The reference reads the actual palette fallbacks and shared Sky semantic defaults; var(...) defaults follow the owning theme. Neutral, Warning and Info text variables also serve their corresponding semantic controls. Neutral Outline/Ghost actions use the shared background-wash tokens instead of the opaque Soft fills. Color.Custom uses its supplied ColorPalette, rather than these built-in token defaults.

CSS variables
VariablePurpose / owning scopeLight defaultDark default
--fve-info-on-solid

Text/icons on a Solid fill

info Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

#ffffff#101828
--fve-info-soft

Soft idle fill

info Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

#eff6ff#172554
--fve-info-soft-hover

Soft and colored Outline/Ghost hover fill

info Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

color-mix(in srgb, #eff6ff 82%, #1d4ed8)color-mix(in srgb, #172554 82%, #93c5fd)
--fve-info-soft-active

Soft and colored Outline/Ghost pressed fill

info Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

color-mix(in srgb, #eff6ff 76%, #1d4ed8)color-mix(in srgb, #172554 76%, #93c5fd)
--fve-info-border

Outline border source (mixed to 20% alpha)

info Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

#1d4ed8#93c5fd
--fve-info-focus

Keyboard focus ring

info Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

#1d4ed8#93c5fd
--fve-neutral-solid

Solid fill

neutral Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

#374151#e5e7eb
--fve-neutral-hover

Solid hover fill and light-mode quiet-action hover text

neutral Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

color-mix(in srgb, #374151 85%, black)color-mix(in srgb, #e5e7eb 85%, black)
--fve-neutral-active

Solid pressed fill and light-mode quiet-action pressed text

neutral Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

color-mix(in srgb, #374151 70%, black)color-mix(in srgb, #e5e7eb 70%, black)
--fve-neutral-on-solid

Text/icons on a Solid fill

neutral Button/Link and palette-aware controls; Custom uses the supplied ColorPalette instead

#ffffff#101828

Internal variables

Variables prefixed --fve-internal- are component-managed implementation details. Use the customization variables listed above.

Add an appearance picker

After Installation, add the initializer and radio controls:

dotnet fve add color-mode radio-group --config src/Acme.Components/fve.json

Add the initializer before the stylesheet in your existing head. The key identifies the browser-local preference shared by the controls in that document.

open FSharp.ViewEngine
open Acme.Components
open type Html
open type Datastar

let appearanceHead =
    head {
        ColorMode.assets "my-app-appearance" ColorMode.System

        link {
            _rel "stylesheet"
            _href "/css/output.css"
        }
    }

Appearance

Appearance

The radios bind to the saved preference and follow changes from other controls. System stays selected while the operating system decides the resolved appearance. This preview uses the catalog's existing preference.

For a nonce-enabled host, use ColorMode.assetsWithNonce and the existing CSP setup. The Profile example shows the appearance picker in a working app. It uses the regular application script; no separate appearance bundle is needed.

Theme API

type Size =
    | ExtraSmall
    | Small
    | Medium
    | Large
    | ExtraLarge

type Padding =
    | Default
    | Uniform

type Color =
    | Primary
    | Secondary
    | Success
    | Warning
    | Error
    | Info
    | Neutral
    | Custom

type Orientation =
    | Horizontal
    | Vertical

type Radius =
    | None
    | Medium
    | Large
    | Full

type Density =
    | Compact
    | Comfortable

type ComponentsTheme

type ColorPaletteMode =
    { solid: string
      solidHover: string
      solidActive: string
      onSolid: string
      soft: string
      softHover: string
      softActive: string
      text: string
      border: string
      focus: string }

type ColorPalette =
    { light: ColorPaletteMode
      dark: ColorPaletteMode }

type ColorMode =
    | System
    | Light
    | Dark

module ColorMode =
    val value : _arg1:ColorMode -> string
    val assetsWithNonce : storageKey:string -> defaultMode:ColorMode -> nonce:string option -> HtmlElement
    val assets : storageKey:string -> defaultMode:ColorMode -> HtmlElement
    val nativeChoiceAttributes : HtmlAttribute list

module PaletteAttributes =
    val Html._palette.Static : value:ColorPalette -> HtmlAttribute

module ComponentsTheme =
    val custom : paletteClass:string -> ComponentsTheme
    val withRadius : radius:Radius -> theme:ComponentsTheme -> ComponentsTheme
    val withDensity : density:Density -> theme:ComponentsTheme -> ComponentsTheme
    val withControlSize : size:Size -> theme:ComponentsTheme -> ComponentsTheme
    val className : theme:ComponentsTheme -> string
    val attributes : theme:ComponentsTheme -> HtmlAttribute list
    val sky : ComponentsTheme
    val emerald : ComponentsTheme
    val amber : ComponentsTheme
    val cyan : ComponentsTheme
    val neutral : ComponentsTheme

module ComponentAttributes =
    val Html._color.Static : value:Color -> HtmlAttribute
    val Html._variant.Static : value:ButtonVariant -> HtmlAttribute
    val Html._variant.Static : value:LinkVariant -> HtmlAttribute
    val Html._variant.Static : value:BadgeVariant -> HtmlAttribute
    val Html._size.Static : value:Size -> HtmlAttribute
    val Html._padding.Static : value:Padding -> HtmlAttribute
    val Html._underline.Static : value:LinkUnderline -> HtmlAttribute
    val Html._values.Static : value:string list -> HtmlAttribute
    val Html._expanded.Static : value:bool -> HtmlAttribute
    val Html._clearable.Static : value:bool -> HtmlAttribute
    val Html._announcement.Static : value:LiveAnnouncement -> HtmlAttribute
    val Html._description.Static : value:string -> HtmlAttribute
    val Html._trend.Static : value:string -> HtmlAttribute
    val Html._persistenceKey.Static : value:string -> HtmlAttribute
    val Html._orientation.Static : value:Orientation -> HtmlAttribute
    val Html._density.Static : value:Density -> HtmlAttribute

module Size =
    val className : _arg1:Size -> string