Versions in this module Expand all Collapse all v5 v5.0.1 Jul 28, 2026 Changes in this version + var AlignContent = contentAlignProp + var AlignSelf = selfAlignNamespace("align-self") + var Appearance = appearanceProp + var BgClip = bgClipProp + var BgOrigin = bgOriginProp + var BgRepeat = bgRepeatProp + var BorderCollapse = borderCollapseProp + var ColorScheme = colorSchemeProp + var Cursor = cursorProp + var Display = displayProp + var FlexDir = flexDirProp + var FlexWrap = flexWrapProp + var FontStyle = fontStyleProp + var FontVariantLigatures = fontVariantLigaturesProp + var FontVariantNumeric = fontVariantNumericProp + var FontWeight = fontWeightProp + var Items = alignProp + var Justify = justifyProp + var JustifyItems = itemsAlignProp + var JustifySelf = selfAlignNamespace("justify-self") + var MaskRepeat = maskRepeatProp + var Overflow = overflowNamespace("overflow") + var OverflowWrap = overflowWrapProp + var OverflowX = overflowNamespace("overflow-x") + var OverflowY = overflowNamespace("overflow-y") + var OverscrollBehavior = overscrollNamespace("overscroll-behavior") + var OverscrollBehaviorX = overscrollNamespace("overscroll-behavior-x") + var OverscrollBehaviorY = overscrollNamespace("overscroll-behavior-y") + var PointerEvents = pointerEventsProp + var Position = positionProp + var TableLayout = tableLayoutProp + var TextAlign = textAlignProp + var TextDecoration = textDecorationProp + var TextDecorationStyle = textDecorationStyleProp + var TextTransform = textTransformProp + var TextWrap = textWrapProp + var UserSelect = selectProp + var VerticalAlign = verticalAlignProp + var WhiteSpace = whiteSpaceProp + func Class(parts ...any) html.PropOption + func CriticalCSS() string + func DeclareLayers(parseNames ...string) + func DefineVariant(selectorTemplate string) func(...Rule) []Rule + func EmitThemeTokens(parseTheme Theme) + func Global(parseSelector string, parseRules ...Rule) + func Harvest() string + func HarvestedClasses() []string + func Inject(parseID string, parseCSS string) + func LayerGlobal(parseName string, parseSelector string, parseRules ...Rule) + func Preflight() + func PreflightInLayer(parseLayer string) + func Reset() + func Root(parseRules ...Rule) + func Seed(parseClasses ...string) + func SeedFromDocument() + func StyleBlock() string + func UseTheme(parseTheme Theme) + type Angle string + func Deg(n float64) Angle + func Turn(n float64) Angle + func VarAngle(parseName string) Angle + func (a Angle) String() string + type BgSizeValue string + const BgAuto + const BgContain + const BgCover + func BgSizeXY(w, h Length) BgSizeValue + func (v BgSizeValue) String() string + type Color string + const Amber500 + const Black + const CurrentCo + const Green500 + const Red500 + const Red600 + const Sky400 + const Sky500 + const Sky600 + const Slate100 + const Slate200 + const Slate300 + const Slate400 + const Slate50 + const Slate500 + const Slate600 + const Slate700 + const Slate800 + const Slate900 + const Transparent + const White + func ColorMix(a, b Color, pct float64) Color + func ColorValue(parseName string) (Color, bool) + func Hex(parseValue string) Color + func RGB(r, g, b int) Color + func RGBA(r, g, b int, a float64) Color + func Var(parseName string) Color + func (c Color) String() string + type ColorStop string + func ColorHint(pos Length) ColorStop + func Stop(c Color) ColorStop + func StopAt(c Color, pos Length) ColorStop + func StopSpan(c Color, from, to Length) ColorStop + func (s ColorStop) String() string + type Duration string + func Ms(n int) Duration + func RawDuration(parseValue string) Duration + func S(n float64) Duration + func VarDuration(parseName string) Duration + func (d Duration) String() string + type Dynamic struct + func DynamicLength(parseName, parseProperty string, parseValue Length) Dynamic + func DynamicVar(parseName, parseProperty, parseValue string) Dynamic + func (d Dynamic) Class() html.PropOption + func (d Dynamic) Rule() Rule + func (d Dynamic) Style() html.PropOption + type Easing string + const Ease + const EaseIn + const EaseInOut + const EaseOut + const Linear + func CubicBezier(p1, p2, p3, p4 float64) Easing + type FontStack string + const MonoStack + const SansStack + const SerifStack + func FontStackOf(parseFamilies ...string) FontStack + func RawFontStack(parseValue string) FontStack + func VarFontStack(parseName string) FontStack + func (s FontStack) String() string + type Frame struct + Offset string + Rules []Rule + func At(offset string, rules ...Rule) Frame + type GradientDirection string + const ToBottom + const ToBottomLeft + const ToBottomRight + const ToLeft + const ToRight + const ToTop + const ToTopLeft + const ToTopRight + type GradientShape string + const Circle + const Ellipse + func CircleAt(x, y Length) GradientShape + func CircleSizedAt(radius Length, x, y Length) GradientShape + func EllipseAt(x, y Length) GradientShape + type GridPlacement string + const GridAuto + func GridLineAt(parseN int) GridPlacement + func GridLineName(parseName string) GridPlacement + func GridRange(start, end GridPlacement) GridPlacement + func GridSpan(parseN int) GridPlacement + func (p GridPlacement) String() string + type Image string + const NoImage + func ConicGradient(from Angle, x, y Length, stops ...ColorStop) Image + func LinearGradient(a Angle, stops ...ColorStop) Image + func LinearGradientTo(dir GradientDirection, stops ...ColorStop) Image + func RadialGradient(shape GradientShape, stops ...ColorStop) Image + func RawImage(parseValue string) Image + func RepeatingLinearGradient(dir GradientDirection, stops ...ColorStop) Image + func RepeatingRadialGradient(shape GradientShape, stops ...ColorStop) Image + func URLImage(parsePath string) Image + func (i Image) String() string + type Length string + const Auto + const Full + const Zero + func BreakpointValue(parseName string) (Length, bool) + func Ch(n float64) Length + func Clamp(min, preferred, max Length) Length + func Ems(n float64) Length + func FontSizeValue(parseName string) (Length, bool) + func MaxLen(values ...Length) Length + func MinLen(values ...Length) Length + func Percent(n float64) Length + func Px(n int) Length + func RadiusValue(parseName string) (Length, bool) + func RawLength(parseValue string) Length + func Rem(n float64) Length + func SpacingValue(parseIndex int) Length + func VarLength(parseName string) Length + func Vh(n float64) Length + func Vw(n float64) Length + func (l Length) String() string + type LineStyle string + const LineDashed + const LineDotted + const LineDouble + const LineGroove + const LineHidden + const LineNone + const LineRidge + const LineSolid + func (s LineStyle) String() string + type MediaQuery string + const ContrastLess + const ContrastMore + const Dark + const ForcedColors + const HoverCapable + const Light + const MotionOK + const NoHover + const Print + const ReducedData + const ReducedMotion + const ReducedTransparency + func MaxW(px int) MediaQuery + func MediaAll(queries ...MediaQuery) MediaQuery + func MinW(px int) MediaQuery + func RawMedia(parseQuery string) MediaQuery + type NthArg string + const Even + const Odd + func AnB(a, b int) NthArg + func Nth(n int) NthArg + type Number string + func Num(n float64) Number + func VarNumber(parseName string) Number + func (n Number) String() string + type Rule struct + func Active(rules ...Rule) []Rule + func Adjacent(target Selector, rules ...Rule) []Rule + func After(rules ...Rule) []Rule + func Animation(duration Duration, timing Easing) Rule + func Before(rules ...Rule) []Rule + func Bg(c Color) Rule + func BgImage(images ...Image) Rule + func BgPosition(x, y Length) Rule + func BgSize(sizes ...BgSizeValue) Rule + func Border(width Length, c Color) Rule + func BorderBottom(width Length, c Color) Rule + func BorderBottomStyle(s LineStyle) Rule + func BorderColor(c Color) Rule + func BorderLeft(width Length, c Color) Rule + func BorderLeftStyle(s LineStyle) Rule + func BorderRight(width Length, c Color) Rule + func BorderRightStyle(s LineStyle) Rule + func BorderSpacing(v Length) Rule + func BorderStyle(s LineStyle) Rule + func BorderTop(width Length, c Color) Rule + func BorderTopStyle(s LineStyle) Rule + func BorderWidth(v Length) Rule + func BorderX(width Length, c Color) Rule + func BorderY(width Length, c Color) Rule + func Bottom(v Length) Rule + func Child(target Selector, rules ...Rule) []Rule + func ColumnGap(v Length) Rule + func Custom(parseName string, parseValue string) Rule + func CustomAngle(parseName string, parseValue Angle) Rule + func CustomColor(parseName string, parseValue Color) Rule + func CustomDuration(parseName string, parseValue Duration) Rule + func CustomFontStack(parseName string, parseValue FontStack) Rule + func CustomLength(parseName string, parseValue Length) Rule + func CustomNumber(parseName string, parseValue Number) Rule + func CustomShadow(parseName string, parseValue ShadowToken) Rule + func DataTheme(parseName string, parseRules ...Rule) []Rule + func DefineUtility(parseName string, rules ...Rule) []Rule + func Descendant(target Selector, rules ...Rule) []Rule + func Disabled(rules ...Rule) []Rule + func FirstChild(rules ...Rule) []Rule + func Flex(grow, shrink Number, basis Length) Rule + func FlexBasis(v Length) Rule + func FlexGrow(n Number) Rule + func FlexShrink(n Number) Rule + func Focus(rules ...Rule) []Rule + func FocusVisible(rules ...Rule) []Rule + func Font(stack FontStack) Rule + func FontSize(v Length) Rule + func Gap(v Length) Rule + func GridArea(parseName string) Rule + func GridAreas(parseRows ...string) Rule + func GridAutoColumns(tracks ...Track) Rule + func GridAutoRows(tracks ...Track) Rule + func GridCols(tracks ...Track) Rule + func GridColumn(p GridPlacement) Rule + func GridRow(p GridPlacement) Rule + func GridRows(tracks ...Track) Rule + func H(v Length) Rule + func Has(target Selector, rules ...Rule) []Rule + func Hover(rules ...Rule) []Rule + func Inset(v Length) Rule + func InsetX(v Length) Rule + func InsetY(v Length) Rule + func Is(targets []Selector, rules ...Rule) []Rule + func Keyframes(parseName string, frames ...Frame) Rule + func LastChild(rules ...Rule) []Rule + func Left(v Length) Rule + func LineHeight(n Number) Rule + func LineHeightLen(v Length) Rule + func Margin(v Length) Rule + func MarginX(v Length) Rule + func MarginY(v Length) Rule + func MarkImportant(parseRule Rule) Rule + func MaskImage(images ...Image) Rule + func MaskSize(sizes ...BgSizeValue) Rule + func MaxHeight(v Length) Rule + func MaxWidth(v Length) Rule + func Media(query MediaQuery, rules ...Rule) []Rule + func MinHeight(v Length) Rule + func MinWidth(v Length) Rule + func Not(target Selector, rules ...Rule) []Rule + func NthChild(arg NthArg, rules ...Rule) []Rule + func NthOfType(arg NthArg, rules ...Rule) []Rule + func Opacity(n float64) Rule + func OpacityNum(n Number) Rule + func Order(parseN int) Rule + func Outline(width Length, c Color) Rule + func OutlineOffset(v Length) Rule + func OutlineStyle(s LineStyle) Rule + func Padding(v Length) Rule + func PaddingX(v Length) Rule + func PaddingY(v Length) Rule + func Property(parseName, parseValue string) Rule + func Raw(parseProperty, parseValue string) Rule + func Right(v Length) Rule + func Rounded(v Length) Rule + func RoundedBottom(v Length) Rule + func RoundedLeft(v Length) Rule + func RoundedRight(v Length) Rule + func RoundedTop(v Length) Rule + func RowGap(v Length) Rule + func Rules(parts ...any) []Rule + func ScrollPadding(v Length) Rule + func ScrollPaddingTop(v Length) Rule + func Shadow(token ShadowToken) Rule + func Sibling(target Selector, rules ...Rule) []Rule + func TextColor(c Color) Rule + func TextDecorationColor(c Color) Rule + func TextDecorationThickness(v Length) Rule + func TextIndent(v Length) Rule + func TextOverflowEllipsis() Rule + func TextUnderlineOffset(v Length) Rule + func Top(v Length) Rule + func Tracking(v Length) Rule + func Transform(fns ...TransformFn) Rule + func Transition(property TransitionProperty, duration Duration, easing Easing) Rule + func TransitionDuration(duration Duration) Rule + func TransitionLonghands(property TransitionProperty, duration Duration, easing Easing) Rule + func Utility(parseName string) (rules []Rule, ok bool) + func W(v Length) Rule + func WhenDisabled(rules ...Rule) []Rule + func Within(parseAncestor string, parseRules ...Rule) []Rule + func WordSpacing(v Length) Rule + func ZIndex(n int) Rule + type Selector string + func AttrEq(parseName, parseValue string) Selector + func AttrSel(parseName string) Selector + func ClassSel(parseName string) Selector + func El(parseTag string) Selector + func Sel(parseFragment string) Selector + func SheetRef(parseSheet Sheet) Selector + func (s Selector) String() string + type ShadowToken string + const Shadow2xl + const ShadowLg + const ShadowMd + const ShadowNone + const ShadowSm + const ShadowXl + func RawShadow(parseValue string) ShadowToken + func ShadowInset(x, y, blur, spread Length, c Color) ShadowToken + func ShadowOf(x, y, blur, spread Length, c Color) ShadowToken + func Shadows(tokens ...ShadowToken) ShadowToken + func (parseToken ShadowToken) String() string + type Sheet string + func Layer(parseName string, parseRules ...Rule) Sheet + func New(rules ...Rule) Sheet + func (s Sheet) String() string + type Sink interface + Emit func(parseClass string, parseCSS string) + func SetSink(parseSink Sink) Sink + type Theme struct + Breakpoints map[string]Length + Colors map[string]Color + FontSizes map[string]Length + Radii map[string]Length + Spacing map[int]Length + func ActiveTheme() Theme + func DefaultTheme() Theme + func (parseTheme Theme) RootRules() []Rule + type Track string + const TrackAuto + const TrackMaxContent + const TrackMinContent + func FitContent(limit Length) Track + func Fr(n float64) Track + func MinMax(min, max Track) Track + func Repeat(count int, tracks ...Track) Track + func RepeatFill(tracks ...Track) Track + func RepeatFit(tracks ...Track) Track + func TrackLen(v Length) Track + func (t Track) String() string + type TransformFn string + func Rotate(a Angle) TransformFn + func Scale(n float64) TransformFn + func ScaleXY(x, y float64) TransformFn + func TranslateX(v Length) TransformFn + func TranslateY(v Length) TransformFn + type TransitionProperty string + const PropAll + const PropColors + const PropOpacity + const PropShadow + const PropTransform + func Prop(parseName string) TransitionProperty + func TransitionProps(parseProps ...TransitionProperty) TransitionProperty Other modules containing this package github.com/monstercameron/GoWebComponents/v4