Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# None
render(Primer::Alpha::Layout.new(gutter: :none)) do |component|
component.with_main(bg: :attention, p: 6) { "Main content" }
component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }
end
# Condensed
render(Primer::Alpha::Layout.new(gutter: :condensed)) do |component|
component.with_main(bg: :attention, p: 6) { "Main content" }
component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }
end
# Default
render(Primer::Alpha::Layout.new(gutter: :default)) do |component|
component.with_main(bg: :attention, p: 6) { "Main content" }
component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }
end
# Spacious
render(Primer::Alpha::Layout.new(gutter: :spacious)) do |component|
component.with_main(bg: :attention, p: 6) { "Main content" }
component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }
end