@buun_group/brutalist-ui
Version:
A brutalist-styled component library
329 lines (271 loc) • 5.63 kB
CSS
/* Base typography styles */
.typography {
margin: 0;
color: var(--brutal-black);
font-family: var(--brutal-font-mono);
line-height: 1.5;
}
/* Variant styles */
.h1 {
font-size: var(--brutal-text-4xl);
font-weight: var(--brutal-font-black);
text-transform: uppercase;
letter-spacing: -0.02em;
line-height: 1.1;
margin-bottom: var(--brutal-space-6);
}
.h2 {
font-size: var(--brutal-text-3xl);
font-weight: var(--brutal-font-black);
text-transform: uppercase;
letter-spacing: -0.01em;
line-height: 1.2;
margin-bottom: var(--brutal-space-5);
}
.h3 {
font-size: var(--brutal-text-2xl);
font-weight: var(--brutal-font-bold);
text-transform: uppercase;
line-height: 1.3;
margin-bottom: var(--brutal-space-4);
}
.h4 {
font-size: var(--brutal-text-xl);
font-weight: var(--brutal-font-bold);
text-transform: uppercase;
line-height: 1.4;
margin-bottom: var(--brutal-space-3);
}
.h5 {
font-size: var(--brutal-text-lg);
font-weight: var(--brutal-font-bold);
text-transform: uppercase;
line-height: 1.4;
margin-bottom: var(--brutal-space-3);
}
.h6 {
font-size: var(--brutal-text-base);
font-weight: var(--brutal-font-bold);
text-transform: uppercase;
line-height: 1.4;
margin-bottom: var(--brutal-space-2);
}
.p {
font-size: var(--brutal-text-base);
font-weight: var(--brutal-font-medium);
line-height: 1.6;
margin-bottom: var(--brutal-space-4);
}
.lead {
font-size: var(--brutal-text-lg);
font-weight: var(--brutal-font-medium);
line-height: 1.6;
margin-bottom: var(--brutal-space-5);
}
.large {
font-size: var(--brutal-text-lg);
font-weight: var(--brutal-font-medium);
line-height: 1.5;
margin-bottom: var(--brutal-space-4);
}
.small {
font-size: var(--brutal-text-sm);
font-weight: var(--brutal-font-medium);
line-height: 1.5;
margin-bottom: var(--brutal-space-3);
}
.muted {
font-size: var(--brutal-text-sm);
font-weight: var(--brutal-font-medium);
color: var(--brutal-gray-600);
line-height: 1.5;
margin-bottom: var(--brutal-space-3);
}
.blockquote {
font-size: var(--brutal-text-lg);
font-weight: var(--brutal-font-medium);
font-style: italic;
border-left: var(--brutal-border-width) var(--brutal-border-style) var(--brutal-accent);
padding-left: var(--brutal-space-4);
margin: var(--brutal-space-6) 0;
line-height: 1.6;
}
.code {
font-family: var(--brutal-font-mono);
font-size: var(--brutal-text-sm);
font-weight: var(--brutal-font-medium);
background-color: var(--brutal-gray-100);
border: var(--brutal-border-width) var(--brutal-border-style) var(--brutal-gray-300);
padding: var(--brutal-space-1) var(--brutal-space-2);
display: inline-block;
line-height: 1.4;
}
.list {
font-size: var(--brutal-text-base);
font-weight: var(--brutal-font-medium);
line-height: 1.6;
margin-bottom: var(--brutal-space-4);
padding-left: var(--brutal-space-6);
}
.list li {
margin-bottom: var(--brutal-space-2);
position: relative;
}
.list li::marker {
font-weight: var(--brutal-font-black);
color: var(--brutal-accent);
}
/* Size overrides */
.size-xs {
font-size: var(--brutal-text-xs);
}
.size-sm {
font-size: var(--brutal-text-sm);
}
.size-base {
font-size: var(--brutal-text-base);
}
.size-lg {
font-size: var(--brutal-text-lg);
}
.size-xl {
font-size: var(--brutal-text-xl);
}
.size-2xl {
font-size: var(--brutal-text-2xl);
}
.size-3xl {
font-size: var(--brutal-text-3xl);
}
.size-4xl {
font-size: var(--brutal-text-4xl);
}
.size-5xl {
font-size: var(--brutal-text-5xl);
}
.size-6xl {
font-size: var(--brutal-text-6xl);
}
/* Weight overrides */
.weight-normal {
font-weight: var(--brutal-font-normal);
}
.weight-medium {
font-weight: var(--brutal-font-medium);
}
.weight-semibold {
font-weight: var(--brutal-font-semibold);
}
.weight-bold {
font-weight: var(--brutal-font-bold);
}
.weight-black {
font-weight: var(--brutal-font-black);
}
/* Alignment */
.align-left {
text-align: left;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
.align-justify {
text-align: justify;
}
/* Text transform */
.transform-none {
text-transform: none;
}
.transform-uppercase {
text-transform: uppercase;
}
.transform-lowercase {
text-transform: lowercase;
}
.transform-capitalize {
text-transform: capitalize;
}
/* Colors */
.color-default {
color: var(--brutal-black);
}
.color-muted {
color: var(--brutal-gray-600);
}
.color-accent {
color: var(--brutal-accent);
}
.color-destructive {
color: var(--brutal-red);
}
.color-warning {
color: var(--brutal-yellow-dark);
}
.color-success {
color: var(--brutal-green);
}
/* Font families */
.family-mono {
font-family: var(--brutal-font-mono);
}
.family-sans {
font-family: var(--brutal-font-sans);
}
.family-serif {
font-family: var(--brutal-font-serif);
}
/* Utilities */
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Special styling for brutalist aesthetics */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
text-shadow: 2px 2px 0px var(--brutal-white);
}
/* Responsive typography */
@media (max-width: 768px) {
.h1 {
font-size: var(--brutal-text-3xl);
}
.h2 {
font-size: var(--brutal-text-2xl);
}
.h3 {
font-size: var(--brutal-text-xl);
}
}
/* Print styles */
@media print {
.typography {
color: black;
text-shadow: none;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
text-shadow: none;
page-break-after: avoid;
}
.p,
.lead,
.large {
orphans: 3;
widows: 3;
}
.blockquote {
page-break-inside: avoid;
}
}