feat: theme revisions
This commit is contained in:
parent
2eed920716
commit
c86f0d7f04
20 changed files with 243 additions and 103 deletions
|
@ -36,4 +36,27 @@ const colors = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = colors;
|
const colorSchemes = {
|
||||||
|
light: {
|
||||||
|
primary: "188deg 84% 35%",
|
||||||
|
secondary: "8 84% 50%",
|
||||||
|
background: "0 0% 98%",
|
||||||
|
surface: "188 27% 94%",
|
||||||
|
border: "188 48% 80%",
|
||||||
|
text: "0 0% 4%",
|
||||||
|
fadeText: "188 12% 32%",
|
||||||
|
shadow: "188deg 100% 18%",
|
||||||
|
},
|
||||||
|
dark: {
|
||||||
|
primary: "188deg 84% 28%",
|
||||||
|
secondary: "8 84% 43%",
|
||||||
|
background: "0 0% 4%",
|
||||||
|
surface: "202 10% 10%",
|
||||||
|
border: "208 27% 15%",
|
||||||
|
text: "0 0% 98%",
|
||||||
|
fadeText: "188 12% 70%",
|
||||||
|
shadow: "188deg 100% 18%",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = { colors, colorSchemes };
|
||||||
|
|
|
@ -1,7 +1,29 @@
|
||||||
html {
|
{% set colorSchemes = colors.colorSchemes %}
|
||||||
{% for colorName, colorValues in colors %}
|
{% set lightScheme = colorSchemes.light %}
|
||||||
{% for value, hex in colorValues %}
|
{% set darkScheme = colorSchemes.dark %}
|
||||||
--color-{{ colorName }}-{{ value }}: {{ hex }};
|
|
||||||
{% endfor %}
|
:root {
|
||||||
|
{% for colorName, value in lightScheme %}
|
||||||
|
--{{ colorName }}: {{ value }};
|
||||||
|
--color-{{ colorName }}: hsl({{ value }});
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{% for colorName, value in lightScheme %}
|
||||||
|
.bg-{{ colorName }} {
|
||||||
|
background-color: var(--color-{{ colorName }});
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-{{ colorName }} {
|
||||||
|
color: var(--color-{{ colorName }});
|
||||||
|
}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
{% for colorName, value in darkScheme %}
|
||||||
|
--{{ colorName }}: {{ value }};
|
||||||
|
--color-{{ colorName }}: hsl({{ value }});
|
||||||
|
{% endfor %}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -74,3 +74,9 @@
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
{% for keyRaw, value in spacing %}
|
||||||
|
{% set key = keyRaw | replace(".", "-") %}
|
||||||
|
--spacing-{{ key }}: {{ value }}px;
|
||||||
|
{% endfor %}
|
||||||
|
}
|
||||||
|
|
|
@ -14,13 +14,16 @@
|
||||||
<ul class="[ flex list-none gap-0.5 m-0 p-0 ]">
|
<ul class="[ flex list-none gap-0.5 m-0 p-0 ]">
|
||||||
<li>
|
<li>
|
||||||
<span class="[ visually-hidden ]">RSS</span>
|
<span class="[ visually-hidden ]">RSS</span>
|
||||||
<a href="#" target="_blank">{% include "svgs/rss.svg" %}</a>
|
<a href="#" target="_blank" aria-label="View RSS feed">{% include "svgs/rss.svg" %}</a>
|
||||||
</li>
|
</li>
|
||||||
{% for key, url in meta.social %}
|
{% for key, url in meta.social %}
|
||||||
{% set alt = key | capitalize %}
|
{% set alt = key | capitalize %}
|
||||||
<li>
|
<li>
|
||||||
<span class="[ visually-hidden ]">{{ alt }}</span>
|
<span class="[ visually-hidden ]">{{ alt }}</span>
|
||||||
<a href="{{ url }}" target="_blank" rel="external noreferrer noopener">{% include "svgs/social-" + key + ".svg" %}</a>
|
<a href="{{ url }}"
|
||||||
|
target="_blank"
|
||||||
|
rel="external noreferrer noopener"
|
||||||
|
aria-label="View {{ alt }} page">{% include "svgs/social-" + key + ".svg" %}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -2,10 +2,13 @@
|
||||||
<nav class="[ wrapper flex items-center justify-between ]">
|
<nav class="[ wrapper flex items-center justify-between ]">
|
||||||
<div class="[ site-logo ] [ flex items-center ]">
|
<div class="[ site-logo ] [ flex items-center ]">
|
||||||
<a class="[ logo ] [ flex items-center justify-center ]"
|
<a class="[ logo ] [ flex items-center justify-center ]"
|
||||||
|
aria-label="Go to index"
|
||||||
href="{{ meta.url }}">
|
href="{{ meta.url }}">
|
||||||
<img src="/assets/images/logo.svg" width="32" height="32" alt="" />
|
<img src="/assets/images/logo.svg" width="32" height="32" alt="" />
|
||||||
</a>
|
</a>
|
||||||
<a class="[ wordmark ] [ flex ]" href="{{ meta.url }}">
|
<a class="[ wordmark ] [ flex ]"
|
||||||
|
href="{{ meta.url }}"
|
||||||
|
aria-label="Go to index">
|
||||||
<span>wonderful</span>
|
<span>wonderful</span>
|
||||||
<span>frog</span>
|
<span>frog</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
4
src/_includes/svgs/calendar.svg
Normal file
4
src/_includes/svgs/calendar.svg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M6 0H3V2H1V5H15V2H13V0H10V2H6V0Z" fill="currentColor"/>
|
||||||
|
<path d="M15 7H1V15H15V7Z" fill="currentColor"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 217 B |
|
@ -18,16 +18,16 @@
|
||||||
{% if preload.crossorigin %}crossorigin{% endif %} />
|
{% if preload.crossorigin %}crossorigin{% endif %} />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% set css %}
|
{% set css %}
|
||||||
|
{% include "css/colorVariables.njk" %}
|
||||||
{% include "css/fontFace.njk" %}
|
{% include "css/fontFace.njk" %}
|
||||||
{% include "css/fontVariables.njk" %}
|
{% include "css/fontVariables.njk" %}
|
||||||
{% include "css/colorVariables.njk" %}
|
|
||||||
{% include "css/spacing.njk" %}
|
{% include "css/spacing.njk" %}
|
||||||
{% endset %}
|
{% endset %}
|
||||||
<style>{{ css | minifyCss | safe }}</style>
|
<style>{{ css | minifyCss | safe }}</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="[ flex-col ]">
|
||||||
{% include "partials/header.html" %}
|
{% include "partials/header.html" %}
|
||||||
<main id="main" class="[ flow wrapper ]">
|
<main id="main" class="[ flow flex-1 wrapper ]">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
</main>
|
</main>
|
||||||
{% include "partials/footer.html" %}
|
{% include "partials/footer.html" %}
|
||||||
|
|
|
@ -4,12 +4,14 @@ layout: base
|
||||||
|
|
||||||
<article class="[ flow ]">
|
<article class="[ flow ]">
|
||||||
<header class="[ flow ]" style="--flow-space: 1rem">
|
<header class="[ flow ]" style="--flow-space: 1rem">
|
||||||
<time class="[ date ]" datetime="{{ date }}">{{ date | formatDate("MMMM D, YYYY") }}</time>
|
<time class="[ date ][ flex items-center gap-0.5 ]" datetime="{{ date }}">
|
||||||
|
{% include "svgs/calendar.svg" %}
|
||||||
|
{{ date | formatDate("MMMM D, YYYY") }}</time>
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<ul class="[ categories ]">
|
<ul class="[ categories ] [ flex gap-1 list-none p-0 ]">
|
||||||
{% for category in categories %}
|
{% for category in categories %}
|
||||||
<li>
|
<li>
|
||||||
<a href="/tag/{{ category }}">{{ category }}</a>
|
<a class="[ flex ]" href="/tags/{{ category }}">{{ category }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
.archive-divider {
|
.archive-divider {
|
||||||
border-color: var(--color-bg-faded);
|
border-color: var(--color-surface);
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: dashed;
|
border-style: dashed;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.archive-date {
|
.archive-date {
|
||||||
color: var(--color-text-soft);
|
color: var(--color-fadeText);
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.05em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,23 @@
|
||||||
.categories {
|
.categories {
|
||||||
color: var(--color-text-soft);
|
color: var(--text-color);
|
||||||
display: flex;
|
|
||||||
gap: 1rem;
|
|
||||||
list-style-type: none;
|
|
||||||
margin-block-end: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.categories li::before {
|
.categories li {
|
||||||
content: "#";
|
--text-color: var(--color-fadeText);
|
||||||
margin-inline-end: 0.125rem;
|
}
|
||||||
user-select: none;
|
|
||||||
|
.categories > li > a {
|
||||||
|
color: var(--text-color);
|
||||||
|
text-decoration-color: var(--text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.categories li:has(a:hover) {
|
||||||
|
--text-color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.categories > li > a::before {
|
||||||
|
content: "#";
|
||||||
|
color: var(--text-color);
|
||||||
|
user-select: none;
|
||||||
|
transition: color var(--transition-duration);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
.date {
|
.date {
|
||||||
color: var(--color-text-soft);
|
color: var(--color-fadeText);
|
||||||
|
}
|
||||||
|
|
||||||
|
.date svg {
|
||||||
|
color: var(--color-shadow);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
.pill {
|
.pill {
|
||||||
background-color: var(--color-bg-soft);
|
background-color: var(--color-surface);
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
transition: transform var(--transition-duration);
|
transition: transform var(--transition-duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pill:hover {
|
.pill:hover {
|
||||||
background-color: var(--color-text);
|
background-color: var(--color-text);
|
||||||
color: var(--color-bg);
|
color: var(--color-primary);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,5 +19,9 @@ a.pill {
|
||||||
}
|
}
|
||||||
|
|
||||||
.pill-count {
|
.pill-count {
|
||||||
color: var(--color-text-soft);
|
color: var(--color-fadeText);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pill:hover .pill-count {
|
||||||
|
color: var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.footer {
|
.footer {
|
||||||
background-color: var(--color-bg-soft);
|
background-color: var(--color-surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-grid {
|
.footer-grid {
|
||||||
|
|
|
@ -2,17 +2,6 @@
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-logo .logo {
|
|
||||||
background-color: var(--color-light);
|
|
||||||
border-radius: 50%;
|
|
||||||
width: 52px;
|
|
||||||
height: 52px;
|
|
||||||
border-color: var(--color-dark);
|
|
||||||
border-width: 1px;
|
|
||||||
border-style: solid;
|
|
||||||
box-shadow: 0 2px 0 var(--color-dark);
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-logo .wordmark {
|
.site-logo .wordmark {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +19,7 @@
|
||||||
-1px 3px 0 var(--shadow-color),
|
-1px 3px 0 var(--shadow-color),
|
||||||
0px 3px 0 var(--shadow-color),
|
0px 3px 0 var(--shadow-color),
|
||||||
1px 3px 0 var(--shadow-color);
|
1px 3px 0 var(--shadow-color);
|
||||||
color: white;
|
color: var(--color-white);
|
||||||
font-family: var(--font-family-display);
|
font-family: var(--font-family-display);
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
letter-spacing: -0.05em;
|
letter-spacing: -0.05em;
|
||||||
|
@ -42,24 +31,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-logo .wordmark > :nth-child(1) {
|
.site-logo .wordmark > :nth-child(1) {
|
||||||
--shadow-color: var(--color-dark);
|
--shadow-color: var(--color-shadow);
|
||||||
}
|
|
||||||
|
|
||||||
.site-logo .wordmark > :nth-child(2) {
|
|
||||||
--shadow-color: var(--color-primary-faded);
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@container (max-width: 32em) {
|
.site-logo .wordmark > :nth-child(2) {
|
||||||
.site-logo .wordmark {
|
--shadow-color: var(--color-primary);
|
||||||
/* Visually hide wordmark on smaller screens */
|
|
||||||
clip: rect(0 0 0 0);
|
|
||||||
height: auto;
|
|
||||||
margin: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
padding: 0;
|
|
||||||
position: absolute;
|
|
||||||
width: 1px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
.navbar {
|
.navbar {
|
||||||
backdrop-filter: blur(3px);
|
backdrop-filter: blur(3px);
|
||||||
background-color: color-mix(in srgb, var(--color-bg) 60%, transparent);
|
background-color: color-mix(
|
||||||
background-image: linear-gradient(var(--color-bg) 20%, transparent);
|
in srgb,
|
||||||
|
var(--color-background) 60%,
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
background-image: linear-gradient(var(--color-background) 20%, transparent);
|
||||||
container: navbar / inline-size;
|
container: navbar / inline-size;
|
||||||
padding-block: 1.5rem;
|
padding-block: 1.5rem;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
|
|
@ -10,7 +10,7 @@ html {
|
||||||
|
|
||||||
body {
|
body {
|
||||||
accent-color: var(--color-primary);
|
accent-color: var(--color-primary);
|
||||||
background-color: var(--color-bg);
|
background-color: var(--color-background);
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
font-family: var(--font-family-body);
|
font-family: var(--font-family-body);
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
|
@ -44,6 +44,13 @@ h2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: var(--font-weight-display-bold);
|
||||||
|
letter-spacing: -0.05rem;
|
||||||
|
line-height: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-weight: var(--font-weight-display-bold);
|
font-weight: var(--font-weight-display-bold);
|
||||||
letter-spacing: -0.05rem;
|
letter-spacing: -0.05rem;
|
||||||
|
@ -55,31 +62,36 @@ a {
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
text-decoration-color: var(--color-primary);
|
text-decoration-color: var(--color-primary);
|
||||||
text-decoration-thickness: 2px;
|
text-decoration-thickness: 2px;
|
||||||
transition: text-decoration-color var(--transition-duration);
|
transition:
|
||||||
|
color var(--transition-duration),
|
||||||
|
text-decoration-color var(--transition-duration);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited {
|
||||||
|
text-decoration-color: var(--color-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
a:active,
|
a:active,
|
||||||
a:focus-visible {
|
a:focus-visible {
|
||||||
text-decoration-color: var(--color-primary-highlight);
|
color: var(--color-primary);
|
||||||
}
|
text-decoration-color: var(--color-primary);
|
||||||
|
|
||||||
a:visited {
|
|
||||||
text-decoration-color: var(--color-primary-subtle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul li::marker {
|
ul li::marker {
|
||||||
color: var(--color-primary-faded);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
ol li::marker {
|
ol li::marker {
|
||||||
color: var(--color-text-soft);
|
color: var(--color-fadeText);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
border-inline-start: 2px solid var(--color-bg-faded);
|
border-inline-start: 2px solid var(--color-primary);
|
||||||
margin-inline-start: 0;
|
margin-inline-start: 0;
|
||||||
|
margin-inline-end: 0;
|
||||||
padding-inline: 1rem;
|
padding-inline: 1rem;
|
||||||
|
background-color: var(--color-surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote > * + * {
|
blockquote > * + * {
|
||||||
|
@ -107,7 +119,23 @@ img[width][height] {
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
color: var(--color-bg-faded);
|
color: var(--color-surface);
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
margin-inline: 0;
|
||||||
|
gap: var(--spacing-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
figure figcaption {
|
||||||
|
color: var(--color-fadeText);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
|
|
@ -3,32 +3,6 @@
|
||||||
--transition-duration: 250ms;
|
--transition-duration: 250ms;
|
||||||
--transition-timing: ease;
|
--transition-timing: ease;
|
||||||
|
|
||||||
--color-light: var(--color-neutral-50);
|
--color-white: white;
|
||||||
--color-dark: var(--color-neutral-950);
|
--color-black: black;
|
||||||
|
|
||||||
--color-bg: var(--color-light);
|
|
||||||
--color-bg-faded: var(--color-neutral-300);
|
|
||||||
--color-bg-soft: var(--color-neutral-100);
|
|
||||||
--color-text: var(--color-dark);
|
|
||||||
--color-text-soft: var(--color-neutral-600);
|
|
||||||
--color-primary: var(--color-aqua-400);
|
|
||||||
--color-primary-highlight: var(--color-aqua-300);
|
|
||||||
--color-primary-subtle: var(--color-aqua-500);
|
|
||||||
--color-primary-faded: var(--color-aqua-600);
|
|
||||||
--color-secondary: var(--color-carotte-400);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--color-bg: var(--color-dark);
|
|
||||||
--color-bg-soft: var(--color-neutral-900);
|
|
||||||
--color-bg-faded: var(--color-neutral-800);
|
|
||||||
--color-text: var(--color-light);
|
|
||||||
--color-text-soft: var(--color-neutral-500);
|
|
||||||
|
|
||||||
--color-primary: var(--color-aqua-300);
|
|
||||||
--color-primary-highlight: var(--color-aqua-200);
|
|
||||||
--color-primary-subtle: var(--color-aqua-400);
|
|
||||||
--color-primary-faded: var(--color-aqua-100);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,3 +26,7 @@
|
||||||
.flex-nowrap {
|
.flex-nowrap {
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-1 {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
.wrapper {
|
.wrapper {
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
width: clamp(16rem, 90vw, 80ch);
|
width: clamp(16rem, 90vw, 65ch);
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
padding-left: 1.5rem;
|
padding-left: 1.5rem;
|
||||||
|
|
75
src/content/pages/styleguide.html
Normal file
75
src/content/pages/styleguide.html
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
---
|
||||||
|
layout: base
|
||||||
|
permalink: /styleguide/index.html
|
||||||
|
title: Styleguide
|
||||||
|
---
|
||||||
|
|
||||||
|
<h1>Heading one</h1>
|
||||||
|
<h2>Heading two</h2>
|
||||||
|
<h3>Heading three</h3>
|
||||||
|
<h4>Heading four</h4>
|
||||||
|
<p>Paragraph text</p>
|
||||||
|
<p>
|
||||||
|
<strong>Bold text</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<em>Emphasized text</em>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
<em>Bold and emphasized text</em>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
An abbreviation: <abbr title="Hypertext Markup Language">HTML</abbr>
|
||||||
|
</p>
|
||||||
|
<hr />
|
||||||
|
<div class="[ flex ]">
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-primary)"></div>
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-secondary)"></div>
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-background)"></div>
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-surface)"></div>
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-border)"></div>
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-text)"></div>
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-fadeText)"></div>
|
||||||
|
<div class="[ size-2 ]" style="background-color: var(--color-shadow)"></div>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<a href="#">A link</a>
|
||||||
|
<a href="/">A visited link</a>
|
||||||
|
<hr />
|
||||||
|
<blockquote>
|
||||||
|
<p>A blockquote</p>
|
||||||
|
<p>Here is some more text</p>
|
||||||
|
<p>And even more!</p>
|
||||||
|
</blockquote>
|
||||||
|
<hr />
|
||||||
|
<p>An unordered list</p>
|
||||||
|
<ul>
|
||||||
|
<li>Item one</li>
|
||||||
|
<li>Item two</li>
|
||||||
|
<li>Item three</li>
|
||||||
|
</ul>
|
||||||
|
<hr />
|
||||||
|
<p>An ordered list</p>
|
||||||
|
<ol>
|
||||||
|
<li>Item one</li>
|
||||||
|
<li>Item two</li>
|
||||||
|
<li>Item three</li>
|
||||||
|
</ol>
|
||||||
|
<hr />
|
||||||
|
<aside>
|
||||||
|
<p>An aside block</p>
|
||||||
|
</aside>
|
||||||
|
<hr />
|
||||||
|
<figure>
|
||||||
|
<img src="/assets/images/logo.svg" />
|
||||||
|
<figcaption>A fig caption.</figcaption>
|
||||||
|
</figure>
|
||||||
|
<hr />
|
||||||
|
<div style="background-color: var(--color-surface);
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
padding: 1rem">A card-type component.</div>
|
||||||
|
<hr />
|
||||||
|
<div style="box-shadow: 2px 2px 8px hsl(var(--shadow) / 0.34);
|
||||||
|
padding: 1rem">This box has a shadow</div>
|
Loading…
Add table
Add a link
Reference in a new issue