feat: Updates styles
This commit is contained in:
@@ -18,7 +18,7 @@ public struct FormHeader: HTML, Sendable {
|
||||
|
||||
public var content: some HTML {
|
||||
LabeledContent {
|
||||
h2(.class("text-2xl font-extrabold dark:\(text: .white)")) { label }
|
||||
h2(.class("text-2xl font-extrabold text-gray-600 dark:text-slate-200")) { label }
|
||||
} label: {
|
||||
SVG(svg, color: .blue)
|
||||
}
|
||||
@@ -50,8 +50,8 @@ public struct Input: HTML, Sendable {
|
||||
input(
|
||||
.id(id), .placeholder(placeholder), .name(name ?? id),
|
||||
.class("""
|
||||
w-full px-4 py-2 border \(border: .gray) rounded-md focus:ring-2
|
||||
focus:ring-yellow-800 focus:border-yellow-800 \(text: .darkGray) dark:\(text: .white)
|
||||
w-full px-4 py-2 border border-gray-300 dark:border-gray-400 rounded-md focus:ring-2
|
||||
focus:ring-yellow-800 focus:border-yellow-800 text-blue-600 dark:text-gray-300
|
||||
""")
|
||||
)
|
||||
}
|
||||
@@ -74,7 +74,7 @@ public struct InputLabel<InputLabel: HTML>: HTML {
|
||||
public var content: some HTML<HTMLTag.label> {
|
||||
label(
|
||||
.for(forInputId),
|
||||
.class("block text-sm font-medium \(text: .darkGray) dark:\(text: .gray) mb-2")
|
||||
.class("block text-sm font-medium text-blue-500 dark:text-gray-300 mb-2")
|
||||
) {
|
||||
self.inputLabel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user