tailpipe

package
v0.0.0-...-0564b78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, genTmpDir, tailpipeDir string, cfg TailPipeConfig) error

Types

type BackdropFilterConfig

type BackdropFilterConfig struct {
	Blur, Brightness, Contrast, Grayscale, HueRotate, Invert, Opacity, Saturate, Sepia StringMap
}

type BackgroundConfig

type BackgroundConfig struct {
	Color                          SStringMap
	Image, Opacity, Position, Size StringMap
}

type BorderConfig

type BorderConfig struct {
	Color                           SStringMap
	Opacity, Radius, Spacing, Width StringMap
}

type BoxShadowConfig

type BoxShadowConfig struct {
	Color          SStringMap
	Value, Opacity StringMap
}

type DivideConfig

type DivideConfig struct {
	Color          SStringMap
	Opacity, Width StringMap
}

type FlexConfig

type FlexConfig struct {
	Value, Basis, Direction, Grow, Shrink, Wrap StringMap
}

type FontConfig

type FontConfig struct {
	Family                                   StringSliceMap
	Size                                     FontSizeConfigMap
	Smoothing, Style, Weight, VariantNumeric StringMap
}

type FontSizeConfig

type FontSizeConfig struct {
	Value      string
	LineHeight string
}

type FontSizeConfigMap

type FontSizeConfigMap map[string]FontSizeConfig

type GridConfig

type GridConfig struct {
	AutoColumns     StringMap
	AutoRows        StringMap
	Columns         GridValueConfig
	Rows            GridValueConfig
	TemplateColumns StringMap
	TemplateRows    StringMap
}

type GridValueConfig

type GridValueConfig struct {
	Value StringMap
	Start StringMap
	End   StringMap
}

type KV

type KV struct {
	Key   string
	Value string
}

type MinMaxValue

type MinMaxValue struct {
	Value, Min, Max StringMap
}

type OutlineConfig

type OutlineConfig struct {
	Color         SStringMap
	Offset, Width StringMap
}

type PlaceholderConfig

type PlaceholderConfig struct {
	Color   SStringMap
	Opacity StringMap
}

type RingConfig

type RingConfig struct {
	Color, OffsetColor          SStringMap
	OffsetWidth, Opacity, Width StringMap
}

type SSStringMap

type SSStringMap map[string]SStringMap

func (SSStringMap) Extend

func (s SSStringMap) Extend(extend ...SSStringMap) SSStringMap

type SStringMap

type SStringMap map[string]StringMap

func (SStringMap) Extend

func (s SStringMap) Extend(extend ...SStringMap) SStringMap

func (SStringMap) Lookup

func (ss SStringMap) Lookup(key1, key2, defaultValue string) string

func (SStringMap) SortedKV

func (ss SStringMap) SortedKV() []KV

type ScrollConfig

type ScrollConfig struct {
	Margin  StringMap
	Padding StringMap
}

type StringMap

type StringMap map[string]string

func (StringMap) Extend

func (s StringMap) Extend(extend ...StringMap) StringMap

func (StringMap) SortedKV

func (s StringMap) SortedKV() []KV

type StringSlice

type StringSlice []string

func (StringSlice) Extend

func (s StringSlice) Extend(extend ...StringSlice)

type StringSliceMap

type StringSliceMap map[string]StringSlice

func (StringSliceMap) Extend

func (ss StringSliceMap) Extend(extend StringSliceMap)

func (StringSliceMap) SortedKV

func (ss StringSliceMap) SortedKV() []KV

type TailPipeConfig

type TailPipeConfig struct {
	Animation          StringMap
	Aria               StringMap
	AspectRatio        StringMap
	BackdropFilter     BackdropFilterConfig
	Background         BackgroundConfig
	Blur               StringMap
	Border             BorderConfig
	BoxShadow          BoxShadowConfig
	Brightness         StringMap
	CaretColor         SStringMap
	Columns            StringMap
	Contrast           StringMap
	Color              SStringMap
	Cursor             StringMap
	Divide             DivideConfig
	DropShadow         StringSliceMap
	Fill               SStringMap
	Flex               FlexConfig
	Font               FontConfig
	Gap                StringMap
	GradientColorStops SStringMap
	Grayscale          StringMap
	Grid               GridConfig
	Height             MinMaxValue
	HueRotate          StringMap
	Inset              StringMap
	Invert             StringMap
	Keyframes          SSStringMap
	LetterSpacing      StringMap
	LineHeight         StringMap
	ListStyleType      StringMap
	ListStylePosition  StringMap
	Margin             StringMap
	ObjectPosition     StringMap
	Opacity            StringMap
	Order              StringMap
	Outline            OutlineConfig
	Padding            StringMap
	Placeholder        PlaceholderConfig
	Ring               RingConfig
	Rotate             StringMap
	Saturate           StringMap
	Scale              StringMap
	Screens            StringMap
	Scroll             ScrollConfig
	Sepia              StringMap
	Skew               StringMap
	Space              StringMap
	Spacing            StringMap
	Stroke             SStringMap
	StrokeWidth        StringMap
	Text               TextConfig
	TransformOrigin    StringMap
	Transition         TransitionConfig
	Translate          StringMap
	Width              MinMaxValue
	WillChange         StringMap
	ZIndex             StringMap
}

func DefaultTailPipeConfig

func DefaultTailPipeConfig() TailPipeConfig

type TextConfig

type TextConfig struct {
	Color, DecorationColor                  SStringMap
	Decoration, DecorationThickness         StringMap
	Align, Indent, Opacity, UnderlineOffset StringMap
}

type TransitionConfig

type TransitionConfig struct {
	Delay, Duration, Property, TimingFunction StringMap
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL