listed-theme.css
July 30, 2025โข401 words
/*
Bauhaus-Inspired Stylesheet for Listed.to
Generated: July 30, 2025
This stylesheet applies the core principles of Bauhaus design:
- "Form Follows Function": Every style serves a purpose.
- "Less is More": A minimalist aesthetic with generous white space.
- Geometric Forms & Primary Colors: A structured and clear visual hierarchy. */
/* 1. CSS Variables /
/ Defines the core color palette for easy maintenance and consistency. */
:root {
--bauhaus-black: #222222;
--bauhaus-white: #FDFDFD;
--bauhaus-grey: #EAEAEA;
--bauhaus-red: #D72B1F;
--bauhaus-yellow: #F2B705;
--bauhaus-blue: #154084;
}
/* 2. Global Styles & Resets /
/ Establishes a clean baseline and imports the primary font. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
body {
background-color: var(--bauhaus-white);
font-family: 'Poppins', sans-serif;
color: var(--bauhaus-black);
margin: 0;
padding: 2rem;
}
/* 3. Typography Rules /
/ Creates a clear, readable, and hierarchical typographic system. */
article h3 a {
font-weight: 700;
font-size: 2rem;
text-transform: lowercase;
color: var(--bauhaus-black);
text-decoration: none;
}
article p {
font-size: 1rem;
line-height: 1.6;
color: var(--bauhaus-black);
}
/* Style for post metadata (date, word count) */
article h3+p {
font-size: 0.85rem;
color: #666;
margin-top: -1rem;
margin-bottom: 2rem;
}
article a {
color: var(--bauhaus-black);
text-decoration: none;
border-bottom: 2px solid var(--bauhaus-grey);
transition: color 0.3s, border-color 0.3s;
}
article a:hover {
color: var(--bauhaus-red);
border-bottom-color: var(--bauhaus-red);
}
/* 4. Layout Structure /
/ Uses modern CSS for a balanced, asymmetrical layout with ample white space. */
main {
display: grid;
grid-template-columns: 1fr;
gap: 4rem;
max-width: 750px;
margin: 0 auto;
}
/* 5. Component: Article/Post Styling /
/ Defines the look of individual posts and content elements. */
article {
padding: 2rem;
border: 2px solid var(--bauhaus-grey);
}
article:nth-child(odd) {
margin-left: -2rem;
margin-right: 2rem;
}
article:nth-child(even) {
margin-left: 2rem;
margin-right: -2rem;
}
article blockquote {
background-color: var(--bauhaus-grey);
border-left: 5px solid var(--bauhaus-yellow);
padding: 1.5rem;
margin: 2rem 0;
font-style: italic;
}
article ul {
list-style-type: square;
padding-left: 20px;
}
article li {
margin-bottom: 0.5rem;
}
hr {
border: none;
height: 5px;
background-color: var(--bauhaus-yellow);
margin: 4rem 0;
}
/* 6. Component: Header & Footer /
/ Minimal styling for header and footer to maintain focus on content. */
header,
footer {
text-align: center;
padding: 2rem 0;
font-size: 0.9rem;
color: #777;
}
header a,
footer a {
color: #777;
text-decoration: none;
}
header a:hover,
footer a:hover {
color: var(--bauhaus-black);
}
/* 7. Utility & Accessibility /
/ Ensures a good experience for all users, including keyboard navigation. */
a:focus-visible,
button:focus-visible {
outline: 3px solid var(--bauhaus-blue);
outline-offset: 2px;
background-color: transparent;
}