Files
supabase/apps/studio/styles/typography.css
T
Ivan Vasilov 070316cb87 chore: Migrate all scss files to css (#44268)
This pull request migrates all SCSS stylesheets in the `apps/studio` and
`apps/docs` projects to CSS, updates import paths accordingly, and
consolidates PostCSS configuration to use a shared config. The migration
includes renaming files, updating import statements, converting SCSS
comments to CSS comments, and removing redundant or legacy configuration
files. The changes improve maintainability and consistency across the
codebase.

**Migration from SCSS to CSS:**

* All SCSS stylesheets in `apps/studio/styles` and `apps/docs/styles`
have been renamed to `.css`, and their contents updated by converting
SCSS comments (`// ...`) to CSS comments (`/* ... */`). All relevant
import statements in the app entry points have been updated to reference
the new `.css` files.

**PostCSS configuration consolidation:**

* The separate `postcss.config.cjs` files in `apps/design-system`,
`apps/learn`, and `apps/studio` now all import from a shared
`config/postcss.config`, ensuring consistent PostCSS setup across
projects. The legacy `postcss.config.js` in `apps/studio` has been
removed.

**Code and style consistency improvements:**

* All instances of the SCSS-specific `#{!important}` in Tailwind
`@apply` rules have been replaced with the standard CSS `!important`
syntax.
* Minor fixes and comment updates were made throughout the stylesheets
to improve readability and maintainability, such as moving or clarifying
TODOs and notes.

These changes streamline the styling approach, reduce build complexity,
and make it easier to maintain and scale the design system and
documentation styles.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
  * Consolidated PostCSS configuration across apps
  * Migrated many stylesheet imports from SCSS to CSS
  * Standardized CSS comment and @apply syntax for consistency

* **Chores**
  * Removed SCSS (sass) dev dependency
  * Added autoprefixer and tailwindcss/nesting to PostCSS plugins
  * Removed SCSS module type declarations (cleaned up typings)
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-20 13:58:01 +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;
}
}