Files
heroui-vue/packages/styles/components/typography.css
T
2026-10-22 13:07:13 +08:00

167 lines
2.9 KiB
CSS

/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix. */
.hv-typography {
@apply text-foreground;
}
.hv-typography-prose {
@apply text-foreground;
}
.hv-typography-prose h1 {
@apply text-4xl font-semibold tracking-tight;
}
.hv-typography-prose h2 {
@apply text-3xl font-semibold tracking-tight;
}
.hv-typography-prose h3 {
@apply text-2xl font-semibold tracking-tight;
}
.hv-typography-prose h4 {
@apply text-xl font-semibold tracking-tight;
}
.hv-typography-prose h5 {
@apply text-lg font-semibold tracking-tight;
}
.hv-typography-prose h6 {
@apply text-base font-semibold tracking-tight;
}
.hv-typography-prose p {
@apply text-base leading-7;
}
.hv-typography-prose code {
@apply rounded-md bg-default px-1.5 py-0.5 font-mono text-sm text-foreground;
}
.hv-typography-prose a {
@apply font-medium text-link underline underline-offset-4;
}
.hv-typography-prose blockquote {
@apply mt-4 border-s-4 border-border ps-4 text-muted italic;
}
.hv-typography-prose ul {
@apply my-4 list-disc space-y-2 ps-6;
}
.hv-typography-prose ol {
@apply my-4 list-decimal space-y-2 ps-6;
}
.hv-typography-prose li {
@apply text-base leading-7;
}
.hv-typography-prose hr {
@apply my-8 border-separator;
}
.hv-typography-prose pre {
@apply my-4 overflow-x-auto rounded-xl bg-default p-4 font-mono text-sm leading-relaxed;
}
.hv-typography-prose strong {
@apply font-semibold text-foreground;
}
.hv-typography-prose em {
@apply italic;
}
.hv-typography-prose img {
@apply my-4 rounded-xl;
}
.hv-typography--h1 {
@apply text-4xl font-semibold tracking-tight;
}
.hv-typography--h2 {
@apply text-3xl font-semibold tracking-tight;
}
.hv-typography--h3 {
@apply text-2xl font-semibold tracking-tight;
}
.hv-typography--h4 {
@apply text-xl font-semibold tracking-tight;
}
.hv-typography--h5 {
@apply text-lg font-semibold tracking-tight;
}
.hv-typography--h6 {
@apply text-base font-semibold tracking-tight;
}
.hv-typography--body {
@apply text-base leading-7;
}
.hv-typography--body-sm {
@apply text-sm leading-6;
}
.hv-typography--body-xs {
@apply text-xs leading-5;
}
.hv-typography--code {
@apply rounded-md bg-default px-1.5 py-0.5 font-mono text-sm text-foreground;
}
.hv-typography--align-start {
@apply text-start;
}
.hv-typography--align-center {
@apply text-center;
}
.hv-typography--align-end {
@apply text-end;
}
.hv-typography--align-justify {
@apply text-justify;
}
.hv-typography--color-default {
@apply text-foreground;
}
.hv-typography--color-muted {
@apply text-muted;
}
.hv-typography--truncate {
@apply block truncate;
}
.hv-typography--weight-normal {
@apply font-normal;
}
.hv-typography--weight-medium {
@apply font-medium;
}
.hv-typography--weight-semibold {
@apply font-semibold;
}
.hv-typography--weight-bold {
@apply font-bold;
}