feat(mui): soft-SaaS component defaults (pill buttons, 16px cards, pill chips)

Adds MuiButton, MuiCard, and MuiChip styleOverrides to the theme: pill-shaped
buttons (borderRadius 999) with a red-gradient containedPrimary, 16px soft-
shadow cards, and pill chips. Driven by a new failing test first (TDD).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-06 19:05:01 +02:00
parent b5df88b62d
commit d2e368a05e
2 changed files with 31 additions and 0 deletions

View File

@@ -25,4 +25,11 @@ describe("MUI theme", () => {
it("uses the base radius of 10", () => {
expect(theme.shape.borderRadius).toBe(10);
});
it("makes buttons pill-shaped and cards 16px by default", () => {
const btn = theme.components?.MuiButton?.styleOverrides?.root as any;
expect(btn?.borderRadius).toBe(999);
const card = theme.components?.MuiCard?.styleOverrides?.root as any;
expect(card?.borderRadius).toBe(16);
});
});