mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
* sweep language * update class docs * additional * basic docs * sweep relevant instances * replace text-code * additional in sweep * Tiny fix * prettier --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
87 lines
1.6 KiB
SCSS
87 lines
1.6 KiB
SCSS
@tailwind base;
|
|
@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;
|
|
}
|
|
|
|
.heading-section {
|
|
@apply scroll-m-20 text-xl;
|
|
}
|
|
|
|
.heading-subSection {
|
|
@apply scroll-m-20 text-base;
|
|
}
|
|
|
|
.heading-default {
|
|
@apply scroll-m-20 text-sm font-medium;
|
|
}
|
|
|
|
.heading-compact {
|
|
@apply scroll-m-20 text-xs font-medium;
|
|
}
|
|
|
|
.heading-meta {
|
|
@apply text-xs font-mono uppercase tracking-wider font-medium;
|
|
}
|
|
|
|
/* Text */
|
|
.text-default {
|
|
@apply text-base;
|
|
}
|
|
|
|
.text-subTitle {
|
|
@apply text-lg;
|
|
}
|
|
|
|
.text-compact {
|
|
@apply text-xs;
|
|
}
|
|
|
|
/* Link */
|
|
.text-link {
|
|
@apply text-foreground-light underline underline-offset-4 decoration-inherit hover:decoration-foreground transition-colors hover:text-foreground;
|
|
}
|
|
|
|
.text-link-table-cell {
|
|
@apply truncate cursor-pointer underline underline-offset-4 decoration-foreground-muted/50 hover:decoration-foreground-lighter/80 transition-colors duration-100;
|
|
}
|
|
|
|
// Pair with `code` elements for semantic consistency, e.g. <code className="text-code-inline">
|
|
.text-code-inline {
|
|
@apply break-all text-xs tracking-tight bg-surface-200 border border-muted rounded-md px-1 py-0.5 text-foreground font-medium;
|
|
}
|
|
}
|