Package dev.fritz2.styling.theme

Types

Link copied to clipboard
interface AlertSeverities
Link copied to clipboard
interface AlertSeverity
Link copied to clipboard
interface AlertStacking
Link copied to clipboard
interface AlertStyles : FormSizesAware

definition of the theme's alerts

Link copied to clipboard
interface AlertVariants
Link copied to clipboard
interface AppFrameStyles

definition of the theme's appFrame

Link copied to clipboard
interface CardSizes
Link copied to clipboard
interface CardStyles
Link copied to clipboard
interface CheckboxStyles : SeverityAware, FormSizesAware

definition of the theme's checkbox

Link copied to clipboard
interface Colors

Defines the scheme colors in a theme

Link copied to clipboard
open class ColorScheme(    val main: ColorProperty,     val mainContrast: ColorProperty,     val highlight: ColorProperty,     val highlightContrast: ColorProperty)

Defines three colors for a color scheme. First is main which is the default color and mainContrast for showing things on top of highlight color. Besides from that there is a color highlight for highlighting things and a color highlightContrast for showing things on top of highlight color.

Link copied to clipboard
interface DataTableStyles
Link copied to clipboard
open class DefaultTheme : Theme

defines the default values and scales for fritz2

Link copied to clipboard
interface DropdownAlignments
Link copied to clipboard
interface DropdownPlacements
Link copied to clipboard
interface DropdownStyles

definition of the theme's dropdown

Link copied to clipboard
interface FontFamilies

Defines the fonts-family in a theme

Link copied to clipboard
interface FormControlStyles

definition of the theme's formControl

Link copied to clipboard
interface FormGroupLabelStyles

definition of the theme's formGroup

Link copied to clipboard
interface FormGroupStyles
Link copied to clipboard
interface FormSizesAware
Link copied to clipboard
interface FormSizesStyles
Link copied to clipboard
class IconDefinition(    val displayName: String,     val viewBox: String = "0 0 24 24",     val svg: String)

Defines a specific icon

Link copied to clipboard
interface Icons

Definition of standard-icons

Link copied to clipboard
interface InputFieldStyles : SeverityAware, FormSizesAware

definition of the theme's inputField

Link copied to clipboard
interface InputFieldVariants
Link copied to clipboard
interface MenuStyles

definition of the theme's menu

Link copied to clipboard
interface ModalSizes
Link copied to clipboard
interface ModalStyles

definition of the theme's modal

Link copied to clipboard
interface ModalVariants
Link copied to clipboard
interface ModalWidths
Link copied to clipboard
interface NavBarStyles

definition of the theme's navbar

Link copied to clipboard
interface PaperSizes
Link copied to clipboard
interface PaperStyles
Link copied to clipboard
interface PaperTypes
Link copied to clipboard
interface PopoverArrowPlacements
Link copied to clipboard
interface PopoverPlacements
Link copied to clipboard
interface PopoverSizes
Link copied to clipboard
interface PopoverStyles

definition of the theme's popover

Link copied to clipboard
interface PopupStyles
Link copied to clipboard
typealias Property = String

alias for property values

Link copied to clipboard
interface PushButtonStyles : FormSizesAware

definition of the theme's pushButton

Link copied to clipboard
interface PushButtonTypes
Link copied to clipboard
interface PushButtonVariants
Link copied to clipboard
interface RadioStyles : SeverityAware, FormSizesAware

definition of the theme's radioButton

Link copied to clipboard
class ResponsiveValue(    val sm: Property,     val md: Property = sm,     val lg: Property = md,     val xl: Property = lg)

Defines a responsive Property that can have different values for different screen sizes. Per default the value for a certain screen size is the same as the value for the next smaller screen size. You can define the concrete screen sizes that apply in the Theme you use.

Link copied to clipboard
open class ScaledValue(    val normal: Property,     val small: Property = normal,     val smaller: Property = small,     val tiny: Property = smaller,     val large: Property = normal,     val larger: Property = large,     val huge: Property = larger,     val giant: Property = huge,     val none: Property = tiny,     val full: Property = giant)

Defines a value that has different expressions for different scales.

Link copied to clipboard
interface SelectFieldStyles : SeverityAware, FormSizesAware

definition of the theme's selectField styles

Link copied to clipboard
interface SelectFieldVariants

definition of the theme's selectField variants

Link copied to clipboard
interface SeverityAware
Link copied to clipboard
interface SeverityStyles

general component's theme abstractions

Link copied to clipboard
class Shadows(    val flat: ShadowProperty,     val raised: ShadowProperty,     val raisedFurther: ShadowProperty = raised,     val top: ShadowProperty = raisedFurther,     val lowered: ShadowProperty,     val bottom: ShadowProperty = lowered,     val outline: ShadowProperty,     val glowing: ShadowProperty = outline,     val danger: ShadowProperty,     val none: ShadowProperty = "none")

Defines the scheme shadows in a theme

Link copied to clipboard
class Sizes(    val normal: Property,     val small: Property = normal,     val smaller: Property = small,     val tiny: Property = smaller,     val large: Property = normal,     val larger: Property = large,     val huge: Property = larger,     val giant: Property = huge,     val full: Property = giant,     val wide: ScaledValue) : ScaledValue

Defines a value that has different expressions for different sizes.

Link copied to clipboard
interface SliderCoreStyles
Link copied to clipboard
interface SliderStyles : SeverityAware, FormSizesAware
Link copied to clipboard
interface SwitchStyles : SeverityAware, FormSizesAware

definition of the theme's switch

Link copied to clipboard
interface TextAreaResize

definition of the theme's textArea resizes

Link copied to clipboard
interface TextAreaStyles : SeverityAware, FormSizesAware

definition of the theme's textArea styles

Link copied to clipboard
interface TextAreaVariants
Link copied to clipboard
@ExperimentalCoroutinesApi
interface Theme

Standard interface for themes in fritz2.

Link copied to clipboard
class Thickness(    val none: Property,     val normal: Property,     val thin: Property,     val fat: Property,     val hair: Property)

Defines a value that has different expressions for different thicknesses.

Link copied to clipboard
interface ToastButton
Link copied to clipboard
interface ToastPlacement
Link copied to clipboard
interface ToastStatus
Link copied to clipboard
interface ToastStyles

definition of the theme's toasts

Link copied to clipboard
interface TooltipPlacements
Link copied to clipboard
interface TooltipStyles

definition of the theme's tooltip

Link copied to clipboard
class WeightedValue(    val normal: Property,     val light: Property = normal,     val lighter: Property = light,     val strong: Property = normal,     val stronger: Property = strong,     val none: Property = lighter,     val full: Property = strong)

Defines a value that has different expressions for different weights.

Link copied to clipboard
class ZIndices(    tableHeader: Int,     tooltip: Int,     popup: Int,     dropdown: Int,     popover: Int,     appFrame: Int,     navbar: Int,     toast: Int,     modal: Int)

Defines the scheme for zIndices of fritz2 components

Functions

Link copied to clipboard
fun SliderStyles.core(orientation: String): SliderCoreStyles
Link copied to clipboard
inline fun <T : Theme> render(    theme: T,     selector: String,     override: Boolean = true,     crossinline content: RenderContext.(T) -> Unit)

Creates a RenderContext for Tags and mounts it to a constant element in the static html file which id matches the selector. It also applies the given Theme

inline fun <T : Theme> render(    theme: T,     targetElement: HTMLElement? = document.body,     override: Boolean = true,     crossinline content: RenderContext.(T) -> Unit)

Creates a render context for Tags and mounts it to an HTMLElement. It also applies the given Theme.

Properties

Link copied to clipboard
val Property.important: Property

adds important flag to resulting css