Info Chatz

PreviousNext

Chat-themed info component with Inter font and modern messaging aesthetics

Docs
mui-treasuryitem

Preview

Loading preview…
components/info-chatz/info-chatz.styles.ts
import type { CSSObject, Theme } from "@mui/material/styles";
import { InfoSlotStyles } from "../info-basic/info";

const titleFontSize = "1rem";
const subtitleFontSize = "0.875rem";
const captionFontSize = "0.75rem";

export const getInfoChatzStyles = (
  arg: Theme | { theme: Theme },
): CSSObject & Partial<InfoSlotStyles> => {
  const theme = "theme" in arg ? arg.theme : arg;
  return {
    root: {
      "& + &": {
        marginTop: "1rem",
      },
    },
    title: {
      fontFamily: 'Maven Pro, "Helvetica Neue", Arial, sans-serif',
      fontSize: titleFontSize,
      fontWeight: 500,
      lineHeight: 1.2,
      marginBottom: "0px",
    },
    subtitle: {
      color: (theme.vars || theme).palette.grey["700"],
      fontFamily: 'Maven Pro, "Helvetica Neue", Arial, sans-serif',
      fontSize: subtitleFontSize,
      lineHeight: 1.6,
      marginBottom: "0.25rem",
      ...theme.applyStyles("dark", {
        color: (theme.vars || theme).palette.grey["500"],
      }),
    },
    eyebrow: {
      color: (theme.vars || theme).palette.grey["600"],
      fontFamily: 'Maven Pro, "Helvetica Neue", Arial, sans-serif',
      fontSize: captionFontSize,
      lineHeight: 1.4,
    },
  };
};

Installation

npx shadcn@latest add @mui-treasury/info-chatz

Usage

import { InfoChatz } from "@/components/info-chatz"
<InfoChatz />