Skip to content

Commit 40aab6b

Browse files
committed
fix(website): better font styling, default dark
1 parent 758e8ba commit 40aab6b

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@
22
<br/>
33
<br/>
44

5-
> Formerly Deepkit — renamed after European Union “no genuine use” ruling. Trademarks don't like open-source.
6-
7-
<br/>
8-
<br/>
9-
105
<a href="https://discord.gg/U24mryk7Wq"><img alt="Discord" src="https://img.shields.io/discord/759513055117180999?style=square&label=Discord" /></a>
116
<a href="https://www.npmjs.com/package/@deepkit/type"><img alt="npm" src="https://img.shields.io/npm/v/@deepkit/type.svg?style=square" /></a>
127
[![CI](https://github.com/marcj/untitled-code/actions/workflows/main.yml/badge.svg)](https://github.com/marcj/untitled-code/actions/workflows/main.yml)
138

14-
This is a new modular TypeScript framework for backend applications based on runtime types.
9+
A modern, high-performance, and modular TypeScript framework for backend applications based on runtime types.
1510

1611
## Docs
1712

website/src/app/components/content-text.component.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { injectLocalStorageNumber, injectLocalStorageString } from '@app/app/uti
44

55
@Injectable({ providedIn: 'root' })
66
export class ContentTextService {
7-
fontFamily = injectLocalStorageString('style/font-family', { defaultValue: '' });
8-
fontSize = injectLocalStorageNumber('style/font-size', { defaultValue: 0 });
9-
theme = injectLocalStorageString('style/theme', { defaultValue: '' });
7+
fontFamily = injectLocalStorageString('style/font-family2', { defaultValue: 'sans-serif' });
8+
fontSize = injectLocalStorageNumber('style/font-size2', { defaultValue: 0 });
9+
theme = injectLocalStorageString('style/theme2', { defaultValue: 'dark' });
1010
darkMode = computed(() => this.theme() === 'dark');
1111

1212
toc = injectLocalStorageString('style/toc', { defaultValue: '' });
@@ -66,6 +66,7 @@ export class ContentTextService {
6666
:host {
6767
display: block;
6868
margin: auto;
69+
line-height: 1.75;
6970
}
7071
7172
.style {
@@ -76,23 +77,23 @@ export class ContentTextService {
7677
}
7778
7879
:host.font-size-very-small {
79-
font-size: 0.8em;
80+
font-size: 10px;
8081
}
8182
8283
:host.font-size-small {
83-
font-size: 0.9em;
84+
font-size: 12px;
8485
}
8586
8687
:host.font-size-normal {
87-
font-size: 1em;
88+
font-size: 14px;
8889
}
8990
9091
:host.font-size-large {
91-
font-size: 1.1em;
92+
font-size: 16px;
9293
}
9394
9495
:host.font-size-very-large {
95-
font-size: 1.2em;
96+
font-size: 18px;
9697
}
9798
`,
9899
})

website/src/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,14 +531,14 @@ pre.console {
531531

532532
html body .normalize-text.dark {
533533
--color-header: white;
534-
--color-text: #ccc;
534+
--color-text: #dddddd;
535535
--color-text-selection-bg: #0062b6;
536536
--color-text-selection: white;
537537
--context-text-color: #ccc;
538538
}
539539

540540
html body .normalize-text {
541-
max-width: 64ch;
541+
max-width: 78ch;
542542
--color-header: var(--context-text-color);
543543
--color-text: var(--context-text-color);
544544
color: var(--color-text);

0 commit comments

Comments
 (0)