docs(ui): publish complete component catalog

This commit is contained in:
2026-07-19 23:21:33 +05:30
parent b190bbf41c
commit 45f2820871
975 changed files with 49638 additions and 294 deletions
+146
View File
@@ -1,5 +1,151 @@
@import "tailwindcss";
@source "../**/*.{wrn,ts,tsx}";
@source "../../node_modules/@wrnexus/ui/components/*.wrn";
/* Documentation v2: one consistent reading surface for guides, packages,
and component references. */
.docs-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 15rem;
gap: clamp(2rem, 5vw, 5rem);
align-items: start;
padding-top: clamp(1.5rem, 4vw, 3rem);
}
.package-document,
.component-detail-page .documentation {
width: 100%;
max-width: 840px;
margin: 0;
}
.doc-intro {
position: relative;
overflow: hidden;
margin-bottom: 2.5rem;
padding: clamp(1.5rem, 4vw, 3rem);
border: 1px solid var(--border);
border-radius: 24px;
background: linear-gradient(
145deg,
var(--surface),
color-mix(in srgb, var(--brand) 7%, var(--surface))
);
box-shadow: var(--shadow);
}
.doc-intro::after {
position: absolute;
top: -7rem;
right: -5rem;
width: 16rem;
height: 16rem;
border-radius: 999px;
background: color-mix(in srgb, var(--brand) 18%, transparent);
filter: blur(45px);
content: "";
pointer-events: none;
}
.doc-meta,
.component-card-meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1.25rem;
}
.doc-meta span,
.component-card-meta span {
padding: 0.35rem 0.65rem;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--muted);
background: var(--surface-soft);
font-size: 0.74rem;
font-weight: 700;
}
.component-catalog-page {
padding-bottom: 6rem;
}
.component-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
padding-top: 1.5rem;
}
.component-card {
position: relative;
display: flex;
min-width: 0;
min-height: 250px;
flex-direction: column;
padding: 1.35rem;
border: 1px solid var(--border);
border-radius: 18px;
color: inherit;
background: var(--surface);
box-shadow: 0 10px 35px rgba(15, 23, 42, 0.04);
text-decoration: none;
transition:
transform 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.component-card:hover {
transform: translateY(-4px);
border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
box-shadow: var(--shadow);
}
.component-card h2 {
margin: 0.85rem 0 0.5rem;
overflow-wrap: anywhere;
font-size: 1.08rem;
}
.component-card p {
flex: 1;
margin: 0;
color: var(--muted);
font-size: 0.88rem;
line-height: 1.6;
}
.component-card .card-link {
margin-top: 1.2rem;
color: var(--brand-strong);
font-size: 0.84rem;
font-weight: 800;
}
.required {
color: #dc2626;
font-weight: 800;
}
.component-detail-page pre {
max-height: 38rem;
}
.component-catalog-callout {
border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
border-radius: 20px;
padding: 1.5rem;
background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
@media (max-width: 1080px) {
.component-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.docs-layout {
grid-template-columns: minmax(0, 1fr);
}
.docs-layout .on-this-page {
display: none;
}
}
@media (max-width: 640px) {
.component-grid {
grid-template-columns: minmax(0, 1fr);
}
.component-card {
min-height: 0;
}
.doc-intro {
border-radius: 18px;
}
}
:root {
color-scheme: light;