styles

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package styles implements the theming logic for slides

Index

Constants

This section is empty.

Variables

View Source
var (
	Author       = lipgloss.NewStyle().Foreground(salmon).Align(lipgloss.Left).MarginLeft(2)
	Date         = lipgloss.NewStyle().Faint(true).Align(lipgloss.Left).Margin(0, 1)
	Page         = lipgloss.NewStyle().Foreground(salmon).Align(lipgloss.Right).MarginRight(3)
	Slide        = lipgloss.NewStyle().Padding(1)
	Status       = lipgloss.NewStyle().Padding(1)
	ActionStatus = lipgloss.NewStyle().
					Foreground(salmon).
					Align(lipgloss.Left).
					MarginLeft(3)
)
View Source
var (
	//go:embed theme.json
	DefaultTheme []byte
)

Functions

func JoinHorizontal

func JoinHorizontal(left, right string, width int) string

func JoinVertical

func JoinVertical(top, bottom string, height int) string

func SelectTheme added in v0.2.0

func SelectTheme(theme string) glamour.TermRendererOption

SelectTheme picks a glamour style config based on the theme provided in the markdown header

Types

This section is empty.

Jump to

Keyboard shortcuts

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