Skip to content

Commit 82f99cd

Browse files
committed
feat(www): add Datastar demo, typography system, anchor links
1 parent 7b4aacb commit 82f99cd

File tree

3 files changed

+390
-194
lines changed

3 files changed

+390
-194
lines changed

www/assets/core.css

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
--color-bg-body: #0077b6;
1717
--color-bg-html: var(--color-bg-body);
1818
--color-bg-card: var(--color-bg-body);
19-
--color-text-primary: #f4d9a0;
19+
--color-text-primary: rgba(255, 255, 255, 0.85);
20+
--color-text-header: #f4d9a0;
2021
--color-accent-orange: #e86f3a;
2122
--color-accent-green: #2a9d4a;
2223
--color-accent-purple: #8b7ab8;
24+
--color-accent-red: #e05252;
2325
}
2426

2527
/* ==========================================================================
@@ -34,7 +36,7 @@
3436
}
3537

3638
html {
37-
font: 1.125rem/1.6 sans-serif;
39+
font: 1.125rem/1.6 "Source Sans 3", sans-serif;
3840
background: radial-gradient(
3941
ellipse at center,
4042
var(--color-bg-body) 0%,
@@ -332,11 +334,25 @@ li {
332334

333335
/* -- Typography -- */
334336
.font-mono {
335-
font-family: "SF Mono", "Fira Code", "Consolas", monospace;
337+
font-family: "Source Code Pro", "SF Mono", "Fira Code", "Consolas", monospace;
336338
}
337339
.font-bold {
338340
font-weight: bold;
339341
}
342+
.font-normal {
343+
font-weight: normal;
344+
}
345+
346+
code {
347+
font-family: "Source Code Pro", "SF Mono", "Fira Code", "Consolas", monospace;
348+
}
349+
350+
:not(pre) > code {
351+
background: rgba(0, 0, 0, 0.1);
352+
padding: 0em 0.15em 0.1em;
353+
border-radius: 5px;
354+
}
355+
340356
.text-sm {
341357
font-size: 0.875rem;
342358
}
@@ -361,9 +377,6 @@ li {
361377
.text-5xl {
362378
font-size: 3rem;
363379
}
364-
.text-fluid-lg {
365-
font-size: clamp(0.75rem, 1.5vw + 0.5rem, 1.25rem);
366-
}
367380
.text-fluid-xl {
368381
font-size: clamp(1.5rem, 4vw + 0.5rem, 3.5rem);
369382
}
@@ -387,6 +400,9 @@ li {
387400
.text-primary {
388401
color: var(--color-text-primary);
389402
}
403+
.text-header {
404+
color: var(--color-text-header);
405+
}
390406
.text-white {
391407
color: #fff;
392408
}
@@ -412,6 +428,9 @@ li {
412428
.bg-purple {
413429
background-color: var(--color-accent-purple);
414430
}
431+
.bg-red {
432+
background-color: var(--color-accent-red);
433+
}
415434
.bg-white {
416435
background: #fff;
417436
}
@@ -463,9 +482,15 @@ li {
463482
.rotate-ccw-3 {
464483
transform: rotate(-3deg);
465484
}
485+
.rotate-ccw-5 {
486+
transform: rotate(-5deg);
487+
}
466488
.rotate-cw-2 {
467489
transform: rotate(2deg);
468490
}
491+
.rotate-cw-4 {
492+
transform: rotate(4deg);
493+
}
469494

470495
/* -- Overflow -- */
471496
.overflow-hidden {

0 commit comments

Comments
 (0)