Type Definitions
-
Theme
-
Description
Color theme objectsProperties
Name Type Attributes Default Description namestring Theme display name iconstring Theme icon type'light' | 'dark' Theme type. Must be "light" if the theme uses dark text on a light background or "dark" if the theme uses light text on a dark background. colorsThemeColors <optional> Contains all of the theme colors. This can be omitted if there is CSS for the theme. isColorThemeboolean <optional> false True if this theme is a color theme, false if the theme is black/white/gray. Details
-
ThemeColors
-
Description
An object containing colors for a Fluid UI theme. Each key in the object corresponds exactly to the name of the CSS variable that it sets.Properties
Name Type Attributes Description backgroundstring Page background color textstring Primary text color lightTextstring Color used for slightly less important text (somewhere between text and secText) secTextstring Secondary text color elementsstring Color used for clickable elements (e.g. buttons, switches, etc.) elementTextstring Text color for clickable elements elementHoverstring Clickable elements hover color switchHeadstring Switch head color inputColorstring Color for input elements (like text boxes) navbarstring Navigation bar color sidebarstring Sidebar background sidebarActivestring Selected sidebar item background sidenavstring Sidenav background sidenavActivestring Selected sidenav item background cardsstring Cards color contentstring Background used for code blocks and the theme selector. Presented with lightShadow. Somewhere between background and inputColor. themestring Color used for active items (like enabled switches). This may be overridden (on all themes) to match the site's brand colors. themeTextstring Text color used on top of the "theme" color themeSelectorColorstring <optional> Text color used when showing this theme in the theme selector in black/white themes. Optional, and should only be used for color themes. Details
-
FluidConfig
-
Description
Contains customization optionsProperties
Name Type Attributes Default Description defaultThemestring <optional> system The theme ID to use by default allowBackgroundImagesboolean <optional> true Allows the user to set a background image theme allowedThemesboolean | Array.<string> <optional> true Either an array of themeIDs to allow, or true to allow all themes. Light, dark, and system are always allowed. Details
-
strings
-
Description
An object containing all of the strings (or functions if the text is adaptive) for text displayed in the UI. This is provided so that websites can override the text in Fluid UI.Details
-
AlertAction
-
Description
Sets the actions for an alertProperties
Name Type Description iconstring Action icon namestring Action name actionfunction The function to run when the action is clicked Details