Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Monsieur+La+Doulaise&display=swap" rel="stylesheet">
</head>
<div class="contents lui-theme-context" style="--lui-theme-primary-font: "Monsieur La Doulaise", cursive; --lui-theme-button-primary-color: red; --lui-theme-button-border-color: green; --lui-theme-button-text-color: green; --lui-theme-button-hover-primary-color: blue; --lui-theme-button-hover-border-color: blue; --lui-theme-button-hover-text-color: blue;">
<button class="lui-button lui-button--themed lui-button--size-default lui-button--app--primary w-fit w-fit" data-controller="lui--button">
<span class="lui-button__text" data-lui--button-target="text">
Button inside theme context
</span>
</button>
<div class="contents lui-theme-context" style="--lui-theme-button-primary-color: black; --lui-theme-button-border-color: aliceblue; --lui-theme-button-text-color: white; --lui-theme-button-hover-primary-color: grey; --lui-theme-button-hover-border-color: grey; --lui-theme-button-hover-text-color: grey;">
<button class="lui-button lui-button--themed lui-button--size-default lui-button--app--primary w-fit w-fit" data-controller="lui--button">
<span class="lui-button__text" data-lui--button-target="text">
Nested theme context
</span>
</button>
</div>
</div>
<button class="lui-button lui-button--size-default lui-button--app--primary w-fit w-fit" data-controller="lui--button">
<span class="lui-button__text" data-lui--button-target="text">
Button outside theme context
</span>
</button>
<div class="contents lui-theme-context" style="--lui-theme-tabs-layout-primary-color: red;">
<div class="lui-tabs_layout" data-controller="tabs" data-tabs-keep-tab-in-url-value="true">
<div class="lui-tabs_layout__tab_list" data-tabs-target="tabList" data-controller="lui--blurred-scroll">
<span data-action="click->tabs#changeTab" data-tabs-target="tab" data-tab-id="0" data-tab-title="Tab 1" class="lui-tabs_layout__tab_entry text-general-global-black lui-tabs_layout__tab_entry--active">
Tab 1
</span> </div>
<div class="lui-tabs_layout__main">
<turbo-frame class="lui-tabs_layout__tab" data-tabs-target="panel" data-tab-id="0" hidden="hidden" id="lui-tab-Tab 1">
<p>Tab content here</p>
</turbo-frame>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<%# Put these in the head of the application layout you want to style %>
<head>
<%# Inter fonts%>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
<%# Monsieur La Doulaise fonts %>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Monsieur+La+Doulaise&display=swap" rel="stylesheet">
</head>
<%= render LooposUi::ThemeContext.new(
theme: {
#primary_font: "Inter",
primary_font: '"Monsieur La Doulaise", cursive',
button: {
primary_color: "red",
border_color: "green",
text_color: "green",
hover: {
primary_color: "blue",
border_color: "blue",
text_color: "blue"
}
}
}) do %>
<%= render LooposUi::Button.new(
text: "Button inside theme context",
app: :app,
type: :primary,
size: :default,
) %>
<%= render LooposUi::ThemeContext.new(
theme: {
button: {
primary_color: "black",
border_color: "aliceblue",
text_color: "white",
hover: {
primary_color: "grey",
border_color: "grey",
text_color: "grey",
}
}
}) do %>
<%= render LooposUi::Button.new(
text: "Nested theme context",
app: :app,
type: :primary,
size: :default,
) %>
<% end %>
<% end %>
<%= render LooposUi::Button.new(
text: "Button outside theme context",
app: :app,
type: :primary,
size: :default,
) %>
<%= render LooposUi::ThemeContext.new(
theme: {
tabs_layout: {
primary_color: "red"
}
}) do %>
<%= render LooposUi::TabsLayout.new do |layout| %>
<% layout.with_tab(title: "Tab 1") do %>
<p>Tab content here</p>
<% end %>
<% end %>
<% end %>