styles

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Media

type Media struct {
	Query       string
	Padding     props.Unit
	VerticalGap props.Unit
}

func (*Media) CSS

func (m *Media) CSS(w io.Writer) error

CSS Writes the CSS for the media to the writer.

func (*Media) Layout

func (m *Media) Layout() Styles

Layout returns the styles for the layout for the media.

type StyleSheet

type StyleSheet struct {
	Media  []*Media
	Themes []*Theme
	// contains filtered or unexported fields
}

func NewStyleSheet

func NewStyleSheet() *StyleSheet

NewStyleSheet returns a new stylesheet. It includes the media queries and themes.

func (*StyleSheet) Buttons

func (ss *StyleSheet) Buttons() Styles

Buttons returns the styles for buttons for the base stylesheet.

func (*StyleSheet) CSS

func (ss *StyleSheet) CSS(w io.Writer) error

CSS Writes the CSS for the stylesheet to the writer.

func (*StyleSheet) Layout

func (ss *StyleSheet) Layout() Styles

Layout returns the styles for the layout for the base stylesheet.

func (*StyleSheet) Resets

func (ss *StyleSheet) Resets() Styles

Resets returns the styles for resets for the base stylesheet.

type Styles

type Styles []gcss.Style

type Theme

type Theme struct {
	MediaQuery        string
	Background        props.Color
	Foreground        props.Color
	Primary           props.Color
	PrimaryForeground props.Color
}

func (*Theme) Buttons

func (t *Theme) Buttons() Styles

Buttons returns the styles for buttons for the theme.

func (*Theme) CSS

func (t *Theme) CSS(w io.Writer) error

CSS Writes the CSS for the theme to the writer.

func (*Theme) Layout

func (t *Theme) Layout() Styles

Layout returns the styles for the layout for the theme.

Jump to

Keyboard shortcuts

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