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) Search = lipgloss.NewStyle().Faint(true).Align(lipgloss.Left).MarginLeft(2) )
View Source
var ( //go:embed theme.json DefaultTheme []byte )
Functions ¶
func JoinHorizontal ¶
func JoinVertical ¶
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.
Click to show internal directories.
Click to hide internal directories.