Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
.markdown {
@apply text-inherit;
&.is-user {
p {
line-height: 1.6;
margin-bottom: 1em;
&:first-child {
margin-bottom: 0;
}
}
}
/* Headings */
:is(h1, h2, h3, h4, h5, h6) {
font-weight: 600;
margin-top: 1em;
margin-bottom: 0.5em;
}
h1 {
font-size: var(--text-3xl);
line-height: 1.2;
}
h2 {
font-size: var(--text-2xl);
line-height: 1.3;
}
h3 {
font-size: var(--text-xl);
line-height: 1.4;
}
h4 {
font-size: var(--text-lg);
line-height: 1.4;
}
h5 {
font-size: var(--text-base);
line-height: 1.5;
}
h6 {
font-size: var(--text-sm);
line-height: 1.5;
}
/* Paragraphs and text */
p {
line-height: 1.6;
margin-bottom: 1em;
&:last-child {
margin-bottom: 0;
}
}
strong {
font-weight: 600;
}
em {
font-style: italic;
}
del {
text-decoration: line-through;
}
/* Lists */
ul,
ol {
line-height: 1.6;
margin-bottom: 1em;
padding-left: 1.5em;
}
ul {
list-style-type: disc;
}
ul > li {
list-style-type: circle;
}
ol {
list-style-type: decimal;
}
li {
margin-bottom: 0.5em;
}
li > ul,
li > ol {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
li > ol {
list-style-type: lower-roman;
}
li > ul {
list-style-type: circle;
}
/* Blockquotes */
blockquote {
line-height: 1.6;
border-left: 4px solid var(--color-accent);
padding-left: 1em;
margin-left: 0;
margin-right: 0;
margin-bottom: 1em;
opacity: 0.8;
}
/* Code */
code {
font-family: monospace;
@apply bg-secondary text-foreground;
padding: 0.2em 0.4em;
border-radius: 3px;
}
pre {
font-family: monospace;
@apply bg-secondary text-foreground px-0!;
overflow-x: auto;
/* border-radius: 8px; */
margin-bottom: 8px;
}
pre code {
background-color: transparent;
padding: 2px;
@apply text-sm!;
display: inline-block;
}
/* Links */
a {
color: var(--color-primary);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul.contains-task-list {
list-style: none;
padding-left: 0;
}
ol,
ul {
list-style: auto;
padding-left: 16px;
white-space: normal;
list-style-position: inside;
li {
p {
display: inline;
}
}
}
/* Images */
img {
max-width: 100%;
height: auto;
border-radius: 5px;
margin-bottom: 1em;
}
/* Horizontal rule */
hr {
border: 0;
height: 1px;
opacity: 0.2;
margin: 2em 0;
}
[data-streamdown="mermaid-block"] {
border-color: var(--border);
margin-bottom: 1em;
}
/* Streamdown caret styling */
& *:last-child::after {
color: oklch(0.556 0 0) !important;
}
}
[data-tool-call-block] + [data-tool-call-block] {
margin-top: 16px;
}