MCPcopy
hub / github.com/charmbracelet/fang / makeStyles

Function makeStyles

theme.go:124–200  ·  view source on GitHub ↗
(cs ColorScheme)

Source from the content-addressed store, hash-verified

122}
123
124func makeStyles(cs ColorScheme) Styles {
125 //nolint:mnd
126 return Styles{
127 Text: lipgloss.NewStyle().Foreground(cs.Base),
128 Title: lipgloss.NewStyle().
129 Bold(true).
130 Foreground(cs.Title).
131 Transform(strings.ToUpper).
132 Padding(1, 0).
133 Margin(0, 2),
134 FlagDescription: lipgloss.NewStyle().
135 Foreground(cs.Description).
136 Transform(titleFirstWord),
137 FlagDefault: lipgloss.NewStyle().
138 Foreground(cs.FlagDefault),
139 Codeblock: Codeblock{
140 Base: lipgloss.NewStyle().
141 Background(cs.Codeblock).
142 Foreground(cs.Base).
143 MarginLeft(2).
144 Padding(1, 2),
145 Text: lipgloss.NewStyle().
146 Background(cs.Codeblock),
147 Comment: lipgloss.NewStyle().
148 Background(cs.Codeblock).
149 Foreground(cs.Comment),
150 Program: Program{
151 Name: lipgloss.NewStyle().
152 Background(cs.Codeblock).
153 Foreground(cs.Program),
154 Flag: lipgloss.NewStyle().
155 Background(cs.Codeblock).
156 Foreground(cs.Flag),
157 Argument: lipgloss.NewStyle().
158 Background(cs.Codeblock).
159 Foreground(cs.Argument),
160 DimmedArgument: lipgloss.NewStyle().
161 Background(cs.Codeblock).
162 Foreground(cs.DimmedArgument),
163 Command: lipgloss.NewStyle().
164 Background(cs.Codeblock).
165 Foreground(cs.Command),
166 QuotedString: lipgloss.NewStyle().
167 Background(cs.Codeblock).
168 Foreground(cs.QuotedString),
169 },
170 },
171 Program: Program{
172 Name: lipgloss.NewStyle().
173 Foreground(cs.Program),
174 Argument: lipgloss.NewStyle().
175 Foreground(cs.Argument),
176 DimmedArgument: lipgloss.NewStyle().
177 Foreground(cs.DimmedArgument),
178 Flag: lipgloss.NewStyle().
179 Foreground(cs.Flag),
180 Command: lipgloss.NewStyle().
181 Foreground(cs.Command),

Callers 1

ExecuteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…