Skip to content

Commit c6cef69

Browse files
committed
sketch spectacles
1 parent ac2e1d0 commit c6cef69

5 files changed

Lines changed: 109 additions & 4 deletions

File tree

source/_layouts/base.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>⚗️ {{ title }} | Alembic</title>
4+
<title>{{ emoji or "⚗️" }} {{ title }} | Alembic</title>
55
<meta charset="utf8" />
66
<meta name="viewport" content="width=device-width" />
77
<link rel="stylesheet" href="{{ '/docs/docs.css' | url }} " />

source/_layouts/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: base.njk
88
{% include 'site-nav.njk' %}
99
</header>
1010
<main class="docsLayout-main">
11-
<h1>{{ title }}</h1>
11+
<h1>{{ emoji }} {{ title }}</h1>
1212

1313
<stack-layout space="var(--s3)">
1414

source/development/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: index.njk
33
title: Development
44
eleventyNavigation:
55
key: Dev
6-
order: 5
6+
order: 6
77
---
88

99
Meta information about developing on Alembic itself

source/labcoat/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
layout: index.njk
33
title: Labcoat
4+
emoji: "🥼"
45
eleventyNavigation:
56
key: Labcoat
6-
order: 4
7+
order: 5
78
---
89

910
> UNSTABLE

source/spectacles/index.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
layout: index.njk
3+
title: Spectacles
4+
emoji: 🥽
5+
eleventyNavigation:
6+
key: Spectacles
7+
order: 5
8+
---
9+
10+
**🚧 This is just an idea being sketched out at the moment 🚧**
11+
12+
Spectacles is an opinionated design system built on-top of Alembic.
13+
It tries to be a clean white-labelled system so that it can fit as many projects as possible.
14+
It builds on top of [Layouts](/layouts/) & [Forms](/forms/)
15+
and adds:
16+
17+
- A system of CSS design tokens
18+
- Custom HTML Elements
19+
- Guidelines
20+
- Icons
21+
- Best practises and patterns for using all of the above
22+
23+
## Design Tokens
24+
25+
Design tokens are a way to store variables so they can be used in different systems and contexts.
26+
Codifying them helps bring consistency to the overall design and creates more pleasing interfaces.
27+
28+
<!--
29+
30+
### Axioms
31+
32+
These sit above tokens to generalise their use and make it easier to apply theming within elements
33+
34+
- `--color-text`
35+
- `--color-background`
36+
- `--color-border`
37+
- `--color-focus`
38+
- `--measure`
39+
40+
-->
41+
42+
### Colour
43+
44+
???
45+
46+
### Spacing
47+
48+
- `--space-0` - smallest spacing
49+
- `--space-1`
50+
- `--space-2`
51+
- `--space-3`
52+
- `--space-4`
53+
- `--space-5` — the default space
54+
- `--space-6`
55+
- `--space-7`
56+
- `--space-8`
57+
- `--space-9`
58+
- `--space-10` - largest spacing
59+
60+
### Line height
61+
62+
- `--line-height-body: 1.4`
63+
- `--line-height-heading: 1.1`
64+
65+
### Font size
66+
67+
Maybe generated from something like [typescale.com](https://typescale.com/)?
68+
69+
- `--font-size-xxl`
70+
- `--font-size-xl`
71+
- `--font-size-l`
72+
- `--font-size`
73+
- `--font-size-s`
74+
- `--font-size-xs`
75+
- `--font-size-xxs`
76+
77+
### Font family
78+
79+
- `--font-family-body`
80+
- `--font-family-heading`
81+
- `--font-family-code`
82+
83+
### Font weight
84+
85+
- `--font-weight-body`
86+
- `--font-weight-heading`
87+
- `--font-weight-code`
88+
- `--font-weight-strong`
89+
90+
### Border radius
91+
92+
- `--border-radius-sharp`
93+
- `--border-radius-small`
94+
- `--border-radius`
95+
- `--border-radius-large`
96+
- `--border-radius-circle`
97+
- `--border-radius-pill`
98+
99+
### Border thickness
100+
101+
- `--border-width-thin`
102+
- `--border-width-thick`
103+
104+
- ???

0 commit comments

Comments
 (0)