Skip to content

Commit

Permalink
Adding styles for headings and texts for readability and look
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Dec 14, 2023
1 parent 830096c commit e481c93
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ export function ConversationMessage({
</div>
<div className="text-sm font-medium">{name}</div>
</div>
<div className="min-w-0 break-words pl-8 text-base font-normal sm:p-0">
<div
id="MessageBlock"
className="min-w-0 break-words pl-8 text-base font-normal sm:p-0"
>
{children}
</div>
</div>
Expand Down
42 changes: 42 additions & 0 deletions front/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,45 @@ main {
transform: translate3d(8px, 3px, 0);
}
}

#MessageBlock {
@apply text-base font-normal leading-7 text-element-800;

h1 {
@apply text-5xl font-bold;
@apply pb-3 pt-4;
}
h2 {
@apply text-4xl font-bold;
@apply pb-2 pt-3;
}
h3 {
@apply text-2xl font-semibold;
@apply pb-2 pt-3;
}
h4 {
@apply text-xl font-semibold;
@apply pb-2 pt-2.5;
}
h5 {
@apply text-xl font-bold;
@apply pb-1.5 pt-2;
}
h6 {
@apply text-lg font-semibold;
@apply pb-1.5 pt-2;
}
strong {
@apply font-semibold text-element-900;
}
a {
@apply font-semibold text-action-500;
transition: all 0.2s ease-in-out;
&:hover {
@apply text-action-400;
}
&:active {
@apply text-action-600;
}
}
}

0 comments on commit e481c93

Please sign in to comment.