Skip to content

Commit 3c80b58

Browse files
authored
Fix container settings (#240)
Signed-off-by: stephann <[email protected]>
1 parent 94556d1 commit 3c80b58

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/generators/ruby_ui/install/templates/tailwind.css.erb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@
5151
--warning-foreground: hsl(0 0% 100%);
5252
--success: hsl(87 100% 37%);
5353
--success-foreground: hsl(0 0% 100%);
54-
55-
/* Container settings */
56-
--container-center: true;
57-
--container-padding: hsl(2rem);
58-
--container-max-width-2xl: hsl(1400px);
5954
}
6055

6156
.dark {
@@ -144,6 +139,13 @@
144139
--color-success-foreground: var(--success-foreground);
145140
}
146141

142+
/* Container settings */
143+
@utility container {
144+
margin-inline: auto;
145+
padding-inline: 2rem;
146+
max-width: 1400px;
147+
}
148+
147149
@layer base {
148150
* {
149151
@apply border-border outline-ring/50;

0 commit comments

Comments
 (0)