diff --git a/apps/docs/src/app/[...slug]/layout.tsx b/apps/docs/src/app/[...slug]/layout.tsx index 24db08cee..5b2b6d98c 100644 --- a/apps/docs/src/app/[...slug]/layout.tsx +++ b/apps/docs/src/app/[...slug]/layout.tsx @@ -39,7 +39,7 @@ export default function DocumentLayoutProps({ } return ( -
Figma Library | diff --git a/packages/design/tailwind/src/create-theme.ts b/packages/design/tailwind/src/create-theme.ts index 33b4cc0e5..80f1c4399 100644 --- a/packages/design/tailwind/src/create-theme.ts +++ b/packages/design/tailwind/src/create-theme.ts @@ -305,37 +305,51 @@ export function createTheme( p: { font: variables.semantic.typography.default.text.md, fontWeight: variables.primitive.font.weight['400'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-bottom': '2em', + 'max-width': '65ch', }, h1: { font: variables.semantic.typography.default.heading.xl, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h2: { font: variables.semantic.typography.default.heading.lg, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h3: { font: variables.semantic.typography.default.heading.md, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h4: { font: variables.semantic.typography.default.heading.sm, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h5: { font: variables.semantic.typography.default.heading.xs, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h6: { font: variables.semantic.typography.default.heading.xs, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, }, }, @@ -344,37 +358,51 @@ export function createTheme( p: { font: variables.semantic.typography.xs.text.md, fontWeight: variables.primitive.font.weight['400'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-bottom': '2em', + 'max-width': '65ch', }, h1: { font: variables.semantic.typography.xs.heading.xl, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h2: { font: variables.semantic.typography.xs.heading.lg, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h3: { font: variables.semantic.typography.xs.heading.md, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h4: { font: variables.semantic.typography.xs.heading.sm, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h5: { font: variables.semantic.typography.xs.heading.xs, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h6: { font: variables.semantic.typography.xs.heading['2xs'], fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, }, }, @@ -383,37 +411,51 @@ export function createTheme( p: { font: variables.semantic.typography.md.text.md, fontWeight: variables.primitive.font.weight['400'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-bottom': '2em', + 'max-width': '65ch', }, h1: { font: variables.semantic.typography.md.heading.xl, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h2: { font: variables.semantic.typography.md.heading.lg, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h3: { font: variables.semantic.typography.md.heading.md, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h4: { font: variables.semantic.typography.md.heading.sm, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h5: { font: variables.semantic.typography.md.heading.xs, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h6: { font: variables.semantic.typography.md.heading['2xs'], fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, }, }, @@ -422,37 +464,51 @@ export function createTheme( p: { font: variables.semantic.typography.xl.text.md, fontWeight: variables.primitive.font.weight['400'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-bottom': '2em', + 'max-width': '65ch', }, h1: { font: variables.semantic.typography.xl.heading.xl, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h2: { font: variables.semantic.typography.xl.heading.lg, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h3: { font: variables.semantic.typography.xl.heading.md, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h4: { font: variables.semantic.typography.xl.heading.sm, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h5: { font: variables.semantic.typography.xl.heading.xs, fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, h6: { font: variables.semantic.typography.xl.heading['2xs'], fontWeight: variables.primitive.font.weight['700'], - fontFamily: 'inherit', + fontFamily: variables.primitive.font.family.primary, + 'margin-top': '0.5em', + 'margin-bottom': '1em', }, }, },