A living style guide for Vapor's design system. Every component below is styled by the shared main.css that vapor.codes, blog.vapor.codes and docs.vapor.codes all load from this site.
A standard paragraph of body text with a text link, some bold and some italic emphasis to show the base typographic styles.
Here's an example of a code block:
import Vapor
let app = try await Application.make(.detect())
app.get("hello") { req in
"Hello, world!"
}
try await app.execute()
And a single-line code block (long enough to reach the right edge — the copy button must not overlap or hide the code):
let key = try MLDSA87PrivateKey(seedRepresentation: mldsa87PrivateKeySeedRepresentation)
And then we have some inline code: let vaporIsAwesome = true
“Hendrerit amet nibh dui ut in feugiat pellentesque. Sed consectetur blandit lectus arcu lacus libero diam. Nulla turpis etiam non et, adipiscing.”
Info and warning callouts reuse the blockquote styling. With paragraph content, the last child's bottom margin is collapsed so the spacing inside the box stays balanced.
Note: Post-quantum signatures are much larger than classical ones — an ML-DSA-87 signature is ~4.6 KB versus ~0.1 KB for ES512.
An ordered list:
An unordered list:
Welcome to Vapor's Design Guide which contains the designs for all of Vapor's websites. This description is much longer to test card heights and make sure the cards are the same height.
Welcome to Vapor's Design Guide which contains the designs for all of Vapor's websites.