mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Problem All eight apps now import the shared inline-code styles, so the old utility and prose rules are redundant. ## Solution Remove those definitions and the remaining `text-code-inline` classes from four shared components and one Studio payment label. Behaviour stays the same. Code should keep the shared appearance established earlier in the stack, with possible small differences in text size, weight and spacing where the old class still took precedence. ## Review instructions - **Design:** check the config removals and four shared-component class removals. Optional spot checks: [Markdown examples](https://design-system-git-dnywh-depr-707-code-cleanup-supabase.vercel.app/design-system/docs/ui-patterns/markdown#inline-code) and [MCP configuration](https://studio-staging-git-dnywh-depr-707-code-cleanup-supabase.vercel.app/dashboard/project/_?showConnect=true&connectTab=mcp). - **Security:** check the single class removal in `CreditCard.tsx`. No payment logic changes or payment-flow testing needed. Optional: in [Studio](https://studio-staging-git-dnywh-depr-707-code-cleanup-supabase.vercel.app/dashboard/organizations), choose an organisation with a Stripe-managed payment method and check “Token ending in …” under Billing > Payment methods. You can see what it looks like on master based on [these screenshots](https://github.com/supabase/supabase/pull/44965) with `VOLZ`.
77 lines
1.3 KiB
CSS
77 lines
1.3 KiB
CSS
/* Heading */
|
|
@utility heading-title {
|
|
@apply scroll-m-20 text-2xl tracking-tight;
|
|
}
|
|
|
|
@utility heading-section {
|
|
@apply scroll-m-20 text-xl;
|
|
}
|
|
|
|
@utility heading-subSection {
|
|
@apply scroll-m-20 text-base;
|
|
}
|
|
|
|
@utility heading-default {
|
|
@apply scroll-m-20 text-sm font-medium;
|
|
}
|
|
|
|
@utility heading-compact {
|
|
@apply scroll-m-20 text-xs font-medium;
|
|
}
|
|
|
|
@utility heading-meta {
|
|
@apply text-xs font-mono uppercase tracking-wider font-medium;
|
|
}
|
|
|
|
/* Text */
|
|
@utility text-default {
|
|
@apply text-base;
|
|
}
|
|
|
|
@utility text-subTitle {
|
|
@apply text-lg;
|
|
}
|
|
|
|
@utility text-compact {
|
|
@apply text-xs;
|
|
}
|
|
|
|
/* Link */
|
|
@utility text-link {
|
|
@apply text-foreground-light underline underline-offset-4 decoration-inherit hover:decoration-foreground transition-colors hover:text-foreground;
|
|
}
|
|
|
|
@utility 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;
|
|
}
|
|
|
|
@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;
|
|
}
|
|
}
|