@use "kit-deps" as *;
/* =========================
Demo page styles
========================= */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: $space-6;
}
.demo-section {
margin-bottom: $space-12;
h2 {
font-size: 28px;
font-weight: $font-weight-bold;
margin-bottom: $space-5;
}
h3 {
font-size: 18px;
font-weight: $font-weight-semibold;
margin-top: $space-8;
margin-bottom: $space-4;
color: $neutral-700;
}
> *:last-child {
margin-bottom: 0;
}
// Keep headings visually separated from the previous component block.
h3:first-child {
margin-top: 0;
}
}
.demo-row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: $space-4;
margin-bottom: $space-5;
&:last-child {
margin-bottom: 0;
}
}
.color-card {
display: flex;
flex-direction: column;
gap: $space-1;
min-width: 80px;
padding: $space-2;
border-radius: $radius-md;
background: $neutral-0;
box-shadow: 0 1px 2px rgba($neutral-900, 0.06);
font-size: 11px;
color: $neutral-700;
.color-card-swatch {
width: 72px;
height: 72px;
border-radius: $radius-sm;
box-shadow: inset 0 0 0 1px rgba($neutral-900, 0.08);
}
.color-card-name {
font-weight: $font-weight-semibold;
color: $neutral-900;
}
.color-card-hex {
font-family: "IBM Plex Mono", monospace;
text-transform: uppercase;
}
}
.demo-row-palette {
gap: $space-3;
}
.swatch {
display: flex;
flex-direction: column;
gap: $space-1;
font-size: 11px;
color: $neutral-700;
.swatch-color {
display: block;
width: 64px;
height: 64px;
border-radius: $radius-md;
box-shadow: inset 0 0 0 1px rgba($neutral-900, 0.08);
}
}
.spacing-block {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
background-color: $mint-200;
border: 1px solid $mint-400;
border-radius: $radius-sm;
font-size: 11px;
color: $mint-900;
}
.utility-box {
padding: $space-1 $space-2;
background-color: $neutral-100;
border-radius: $radius-sm;
font-size: 12px;
}
.radius-box {
width: 48px;
height: 48px;
background-color: $mint-300;
&.radius-xs { border-radius: $radius-xs; }
&.radius-sm { border-radius: $radius-sm; }
&.radius-md { border-radius: $radius-md; }
&.radius-lg { border-radius: $radius-lg; }
&.radius-xl { border-radius: $radius-xl; }
&.radius-2xl { border-radius: $radius-2xl; }
&.radius-full { border-radius: $radius-full; }
}
// Vue component mounts get a subtle outline so sections are visible in screenshots.
.vue-mount {
width: 100%;
padding: $space-2;
border-radius: $radius-md;
background: rgba($neutral-900, 0.02);
}