Files
supabase/packages/config/typography.css
Ivan Vasilov 308cd791a2 chore: Prep work for migrating to Tailwind v4 (#45285)
This PR preps the monorepo for a migration to Tailwind v4:
- Bump all Tailwind dependencies and libraries to the latest possible
version, while still compatible with Tailwind 3.
- Cleans up obsolete Tailwind 3 specific options and configs.
- Cleans up unused CSS files and fixes the CSS imports.
- Migrates all `important` uses in `@apply` lines to using the `!`
prefix.
- Move `typography.css` to the `config` package and import it from the
apps.
- Migrated all occurrences of `flex-grow`, `flex-shrink`,
`overflow-clip` and `overflow-ellipsis` since they're deprecated and
will be removed in Tailwind 4.
- Make the default theme object typesafe in the `ui` package.
- Migrate all `bg-opacity`, `border-opacity`, `ring-opacity` and
`divider-opacity` to the new format where they're declared as part of
the property color.
- Bump and unify all imports of `postcss` dependency.
2026-04-28 11:33:53 +02:00

87 lines
1.6 KiB
CSS

@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;
}
}