Files
supabase/apps/studio/styles/typography.scss
Saxon FletcherandJoshen Lim c76707012d basic typography classes (#37613)
* basic typography classes

* Clean up classes for where we use h1 tags

* Clean up classes for where we use h2, h3, h4

* Clean up classes for where we use h6

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-08-04 20:55:34 +10:00

79 lines
1.3 KiB
SCSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
body {
@apply text-default;
}
h1 {
@apply heading-title;
}
h2 {
@apply heading-section;
}
h3 {
@apply heading-subSection;
}
h4 {
@apply heading-default;
}
h5 {
@apply heading-default;
}
h6 {
@apply heading-compact;
}
small {
@apply text-compact;
}
strong {
@apply font-medium;
}
}
@layer utilities {
/* Heading */
.heading-title {
@apply scroll-m-20 text-2xl tracking-tight text-foreground;
}
.heading-section {
@apply scroll-m-20 text-xl text-foreground;
}
.heading-subSection {
@apply scroll-m-20 text-base text-foreground;
}
.heading-default {
@apply scroll-m-20 text-sm font-medium text-foreground;
}
.heading-compact {
@apply scroll-m-20 text-xs font-medium text-foreground;
}
.heading-meta {
@apply text-xs font-mono uppercase tracking-wider font-medium text-foreground;
}
/* Text */
.text-default {
@apply text-base text-foreground-light;
}
.text-subTitle {
@apply text-lg;
}
.text-compact {
@apply text-xs;
}
/* Link */
.text-link {
@apply text-foreground-light underline underline-offset-4 decoration-border hover:decoration-foreground transition-colors hover:text-foreground;
}
}