@addiscorp/kit 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/footer/index.d.ts +4 -10
- package/dist/footer/index.js +5 -3
- package/dist/kit.css +2 -6
- package/dist/license/index.d.ts +0 -8
- package/dist/license/index.js +5 -14
- package/dist/tool/index.d.ts +2 -6
- package/dist/tool/index.js +5 -5
- package/dist/tool/marks.js +4 -3
- package/dist/tool.css +13 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ import { Header, Footer, HeaderButton, PersonIcon, themeBoot } from '@addiscorp/
|
|
|
34
34
|
placeholder="Search the docs"
|
|
35
35
|
/>
|
|
36
36
|
|
|
37
|
-
<Footer
|
|
37
|
+
<Footer />
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## What the kit does, so no app has to
|
|
@@ -42,7 +42,7 @@ import { Header, Footer, HeaderButton, PersonIcon, themeBoot } from '@addiscorp/
|
|
|
42
42
|
- **The menu**: the brand button opens it; ⌘M / Ctrl+M opens and closes it; ⌘S, Ctrl+S or `/` opens it on search; typing anywhere searches; ↑ ↓ move, Enter opens, 1–9 open a numbered tile, Esc closes, `?` lists the shortcuts. A click outside or a navigation closes it.
|
|
43
43
|
- **Groups** are tiles (numbered 1–9 in order across groups) or rows (`layout: 'list'`); a `searchOnly` group appears only as search matches. An item has a `href` or an `onSelect`, an optional `icon`, `detail` and `keywords`.
|
|
44
44
|
- **`HeaderButton`**: a round button with a popover, one popover open at a time with the menu: account, notifications (`badge`), settings, or anything else.
|
|
45
|
-
- **`Footer`**: who makes the site (Addis Corp by default; `owner` changes it)
|
|
45
|
+
- **`Footer`**: who makes the site, the one copyright line (Addis Corp by default; `owner` changes it); the product's license (`MIT license`, to `/license/`) when `license` is passed; Terms and Privacy, which every Addis site links to the same pages on addis.gg (`TERMS_HREF`, `PRIVACY_HREF`); the light/dark switch.
|
|
46
46
|
- **Theme**: `themeBoot` sets light or dark before paint (a `theme` cookie wins, else the system); `ThemeToggle` switches and remembers.
|
|
47
47
|
|
|
48
48
|
## The license
|
|
@@ -62,11 +62,11 @@ const p8: License = { // a for
|
|
|
62
62
|
preface: 'p8 began as a fork of php-rs by Di Wu.',
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
<ToolSite tool="harar" license={harar}>…</ToolSite> // footer: "MIT
|
|
65
|
+
<ToolSite tool="harar" license={harar}>…</ToolSite> // footer: "MIT license" → /license/, then "source"
|
|
66
66
|
<Hero … status="alpha" license={harar} /> // ( Status: Alpha ) ( License: MIT ) above the buttons; License → /license/
|
|
67
67
|
<ProductPills status="beta" license={license} /> // the same pair on any other page
|
|
68
68
|
<DocsLayout … license={harar}>…</DocsLayout> // the same footer line
|
|
69
|
-
<Footer
|
|
69
|
+
<Footer license={license} /> // any site's footer
|
|
70
70
|
<LicenseView product="harar" license={harar} note={…} /> // the page: summary line, note, source, the full text
|
|
71
71
|
```
|
|
72
72
|
|
package/dist/footer/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { LinkComponent } from '../header/index.js';
|
|
3
|
-
import { type License } from '../license/index.js';
|
|
4
2
|
export type Owner = {
|
|
5
3
|
name: string;
|
|
6
4
|
href: string;
|
|
@@ -8,18 +6,14 @@ export type Owner = {
|
|
|
8
6
|
};
|
|
9
7
|
/** Addis Corp, the default owner. */
|
|
10
8
|
export declare const ADDIS: Owner;
|
|
9
|
+
/** The terms and privacy pages: one place on addis.gg for every Addis site. */
|
|
10
|
+
export declare const TERMS_HREF = "https://addis.gg/terms/";
|
|
11
|
+
export declare const PRIVACY_HREF = "https://addis.gg/privacy/";
|
|
11
12
|
export type FooterProps = {
|
|
12
|
-
/** The site's name, shown at the end: `simien.dev`. */
|
|
13
|
-
site: string;
|
|
14
13
|
owner?: Owner;
|
|
15
14
|
/** The year in the copyright line; this year by default. */
|
|
16
15
|
year?: number;
|
|
17
|
-
/** Anything else for the end of the footer, before the theme switch. */
|
|
18
|
-
children?: ReactNode;
|
|
19
16
|
/** A small line under the footer row, e.g. trademark notices. */
|
|
20
17
|
note?: ReactNode;
|
|
21
|
-
/** The product's license: `MIT · © 2026 Sami Fouad`, linking to the license page. */
|
|
22
|
-
license?: License;
|
|
23
|
-
Link?: LinkComponent;
|
|
24
18
|
};
|
|
25
|
-
export declare function Footer({
|
|
19
|
+
export declare function Footer({ owner, year, note }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/footer/index.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ThemeToggle } from '../theme/index.js';
|
|
3
|
-
import { LicenseLink } from '../license/index.js';
|
|
4
3
|
/** Addis Corp, the default owner. */
|
|
5
4
|
export const ADDIS = {
|
|
6
5
|
name: 'Addis Corp',
|
|
7
6
|
href: 'https://addis.gg',
|
|
8
7
|
logo: _jsx(AddisMark, {}),
|
|
9
8
|
};
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
/** The terms and privacy pages: one place on addis.gg for every Addis site. */
|
|
10
|
+
export const TERMS_HREF = 'https://addis.gg/terms/';
|
|
11
|
+
export const PRIVACY_HREF = 'https://addis.gg/privacy/';
|
|
12
|
+
export function Footer({ owner = ADDIS, year = new Date().getFullYear(), note }) {
|
|
13
|
+
return (_jsxs("footer", { className: "ak-foot", children: [_jsxs("a", { className: "ak-credit", href: owner.href, children: [owner.logo, "\u00A9 ", year, " ", owner.name] }), _jsxs("nav", { className: "ak-foot-end", "aria-label": "Legal", children: [_jsx("a", { href: TERMS_HREF, children: "terms" }), _jsx("a", { href: PRIVACY_HREF, children: "privacy" }), _jsx(ThemeToggle, {})] }), note && _jsx("p", { className: "ak-foot-note", children: note })] }));
|
|
12
14
|
}
|
|
13
15
|
function AddisMark() {
|
|
14
16
|
return (_jsx("svg", { className: "ak-owner-mark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: 32, height: 32, "aria-hidden": "true", dangerouslySetInnerHTML: { __html: '<circle cx="32" cy="32" r="31" fill="#1b1914"/><path fill="#f3efe3" d="M28.48 41L23.89 41L29.63 28.07Q26.87 27.73 25.60 26.27Q24.33 24.82 24.33 22.28L24.33 22.28L24.33 18.87L28.73 18.87L28.73 21.44Q28.73 23.27 29.52 23.95Q30.31 24.63 32.11 24.63L32.11 24.63L35.70 24.63L28.48 41ZM40.17 41L35.55 41Q35.52 38.21 35.08 36.51Q34.65 34.80 33.81 33.85Q32.98 32.91 31.74 32.38L31.74 32.38L33.19 28.91Q35.39 29.69 36.93 31.11Q38.46 32.54 39.28 34.92Q40.11 37.31 40.17 41L40.17 41Z"/><rect x="20" y="47.5" width="8" height="3" fill="#078930"/><rect x="28" y="47.5" width="8" height="3" fill="#fcdd09"/><rect x="36" y="47.5" width="8" height="3" fill="#da121a"/>' } }));
|
package/dist/kit.css
CHANGED
|
@@ -114,6 +114,8 @@
|
|
|
114
114
|
.ak-foot-end { display: inline-flex; align-items: center; gap: 12px; }
|
|
115
115
|
.ak-foot-note { flex-basis: 100%; margin: 0; font-size: 11px; line-height: 1.6; color: var(--ak-soft); opacity: .8; }
|
|
116
116
|
.ak-foot-end { flex-wrap: wrap; justify-content: flex-end; }
|
|
117
|
+
.ak-foot-end a { color: inherit; text-decoration: none; }
|
|
118
|
+
.ak-foot-end a:hover { color: var(--ak-ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
117
119
|
|
|
118
120
|
/* Status: where a product stands. Beta is a filled dot, alpha a hollow one. */
|
|
119
121
|
.ak-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
@@ -126,8 +128,6 @@
|
|
|
126
128
|
.ak-pills > a.ak-pill:hover { border-color: var(--ak-accent); color: var(--ak-ink); }
|
|
127
129
|
|
|
128
130
|
/* The license (APS 17): the footer line, the hero badge and the license page. */
|
|
129
|
-
.ak-license a { color: inherit; text-decoration: none; }
|
|
130
|
-
.ak-license a:hover { color: var(--ak-ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
131
131
|
.ak-license-page { max-width: 760px; padding: 48px 0 72px; color: var(--ak-ink); }
|
|
132
132
|
.ak-license-eyebrow { font: 600 12px var(--ak-font); letter-spacing: .11em; text-transform: uppercase; color: var(--ak-soft); }
|
|
133
133
|
.ak-license-page h1 { font: 800 clamp(32px, 5vw, 46px)/1.1 var(--ak-display); letter-spacing: -0.03em; margin: 6px 0 16px; }
|
|
@@ -135,10 +135,6 @@
|
|
|
135
135
|
.ak-license-note, .ak-license-source { color: var(--ak-soft); margin: 8px 0; max-width: 64ch; line-height: 1.55; }
|
|
136
136
|
.ak-license-page .ak-license-note a, .ak-license-page .ak-license-source a { color: var(--ak-accent); text-underline-offset: 3px; }
|
|
137
137
|
.ak-license-text { margin: 28px 0 0; padding: 24px 28px; background: var(--ak-panel); border: 1px solid var(--ak-edge); border-radius: 12px; font: 13px/1.7 var(--ak-font); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
138
|
-
@media (min-width: 601px) {
|
|
139
|
-
/* The license block, then a rule, then the site's name. */
|
|
140
|
-
.ak-foot-end .ak-license { padding-right: 12px; border-right: 1px solid var(--ak-edge); }
|
|
141
|
-
}
|
|
142
138
|
@media (max-width: 600px) {
|
|
143
139
|
.ak-license-page { padding: 32px 0 48px; }
|
|
144
140
|
/* The file's lines are wrapped for 80 columns: on a phone each paragraph reflows instead. */
|
package/dist/license/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { LinkComponent } from '../header/index.js';
|
|
3
2
|
/** A copyright line: `Copyright (c) 2025 Di Wu (GitHub: wudi)`. */
|
|
4
3
|
export type Notice = {
|
|
5
4
|
year: number;
|
|
@@ -34,13 +33,6 @@ export declare const MIT_PERMISSION = "Permission is hereby granted, free of cha
|
|
|
34
33
|
export declare function mitLicense(license?: License): string;
|
|
35
34
|
/** The default: `MIT License`, `Copyright (c) 2026 Sami Fouad`, the permission. */
|
|
36
35
|
export declare const MIT_LICENSE: string;
|
|
37
|
-
/** The short line a footer shows: `MIT · © 2026 Sami Fouad`. */
|
|
38
|
-
export declare function licenseLine(license?: License): string;
|
|
39
|
-
/** For the footer: the line, linking to the license page, and the source when it's public. */
|
|
40
|
-
export declare function LicenseLink({ license, Link }: {
|
|
41
|
-
license?: License;
|
|
42
|
-
Link?: LinkComponent;
|
|
43
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
44
36
|
/** What MIT lets you do, in a line: `harar is MIT licensed: use it, change it, ship it, …`. */
|
|
45
37
|
export declare const licenseSummary: (product: string) => string;
|
|
46
38
|
/**
|
package/dist/license/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// The license, once (APS 17: Addis products are MIT, `Copyright (c) <year> Sami Fouad`).
|
|
3
|
-
// One description of a product's license drives
|
|
4
|
-
// it, so they can't disagree: the text (`mitLicense`), the
|
|
5
|
-
// (`
|
|
3
|
+
// One description of a product's license drives the three places a site shows
|
|
4
|
+
// it, so they can't disagree: the text (`mitLicense`), the hero pill
|
|
5
|
+
// (`LicensePill`, in ../status) and the page (`LicenseView`). The footer doesn't
|
|
6
|
+
// show it (Sami, 27 Nov): its one copyright line is the owner's.
|
|
6
7
|
import { Fragment } from 'react';
|
|
7
8
|
export const LICENSE_YEAR = 2026;
|
|
8
9
|
export const LICENSE_HOLDER = 'Sami Fouad';
|
|
@@ -39,16 +40,6 @@ export function mitLicense(license = {}) {
|
|
|
39
40
|
}
|
|
40
41
|
/** The default: `MIT License`, `Copyright (c) 2026 Sami Fouad`, the permission. */
|
|
41
42
|
export const MIT_LICENSE = mitLicense();
|
|
42
|
-
/** The short line a footer shows: `MIT · © 2026 Sami Fouad`. */
|
|
43
|
-
export function licenseLine(license = {}) {
|
|
44
|
-
const { year, holder } = ours(license);
|
|
45
|
-
return `MIT · © ${year} ${holder}`;
|
|
46
|
-
}
|
|
47
|
-
const PlainLink = (props) => _jsx("a", { ...props });
|
|
48
|
-
/** For the footer: the line, linking to the license page, and the source when it's public. */
|
|
49
|
-
export function LicenseLink({ license = {}, Link = PlainLink }) {
|
|
50
|
-
return (_jsxs("span", { className: "ak-license", children: [_jsx(Link, { href: license.href ?? LICENSE_HREF, children: licenseLine(license) }), license.source && _jsxs(_Fragment, { children: [" \u00B7 ", _jsx("a", { href: license.source, children: "source" })] })] }));
|
|
51
|
-
}
|
|
52
43
|
/** What MIT lets you do, in a line: `harar is MIT licensed: use it, change it, ship it, …`. */
|
|
53
44
|
export const licenseSummary = (product) => `${product} is MIT licensed: use it, change it, ship it, commercially or not; keep the notice.`;
|
|
54
45
|
/**
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type HeaderLink = {
|
|
|
17
17
|
href: string;
|
|
18
18
|
};
|
|
19
19
|
/** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
|
|
20
|
-
export declare function ToolSite({ tool, home, docs, links, footnote,
|
|
20
|
+
export declare function ToolSite({ tool, home, docs, links, footnote, Link, children }: {
|
|
21
21
|
tool: ToolId;
|
|
22
22
|
home?: string;
|
|
23
23
|
docs?: string;
|
|
@@ -25,8 +25,6 @@ export declare function ToolSite({ tool, home, docs, links, footnote, license, L
|
|
|
25
25
|
links?: HeaderLink[];
|
|
26
26
|
/** A small line under the footer, e.g. trademark notices. */
|
|
27
27
|
footnote?: ReactNode;
|
|
28
|
-
/** The tool's license, in the footer: `MIT · © 2026 Sami Fouad`. */
|
|
29
|
-
license?: License;
|
|
30
28
|
Link?: LinkComponent;
|
|
31
29
|
children: ReactNode;
|
|
32
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -150,7 +148,7 @@ export type DocsPage = {
|
|
|
150
148
|
title: string;
|
|
151
149
|
};
|
|
152
150
|
/** The docs, after rixse.dev: the pages down the side, the page on the right. */
|
|
153
|
-
export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, footnote,
|
|
151
|
+
export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, footnote, home, Link, children }: {
|
|
154
152
|
tool: ToolId;
|
|
155
153
|
pages: DocsPage[];
|
|
156
154
|
pathname: string;
|
|
@@ -161,8 +159,6 @@ export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede
|
|
|
161
159
|
note?: string;
|
|
162
160
|
/** A small line under the footer, e.g. trademark notices. */
|
|
163
161
|
footnote?: ReactNode;
|
|
164
|
-
/** The tool's license, in the footer. */
|
|
165
|
-
license?: License;
|
|
166
162
|
home?: string;
|
|
167
163
|
Link?: LinkComponent;
|
|
168
164
|
children: ReactNode;
|
package/dist/tool/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Footer } from '../footer/index.js';
|
|
|
3
3
|
import { ProductPills } from '../status/index.js';
|
|
4
4
|
import { CopyButton } from './copy.js';
|
|
5
5
|
import { MARKS } from './marks.js';
|
|
6
|
-
import { TOOLS,
|
|
6
|
+
import { TOOLS, toolName } from './tools.js';
|
|
7
7
|
export { TOOLS, toolInfo, toolName } from './tools.js';
|
|
8
8
|
export { MARKS } from './marks.js';
|
|
9
9
|
export { CopyButton } from './copy.js';
|
|
@@ -14,8 +14,8 @@ export function Mark({ tool, size = 26 }) {
|
|
|
14
14
|
return (_jsxs("span", { className: "akt-mark", style: { width: size, height: size }, "aria-hidden": "true", children: [_jsx("svg", { className: "akt-light", viewBox: "0 0 24 24", width: size, height: size, dangerouslySetInnerHTML: { __html: mark.light } }), _jsx("svg", { className: "akt-dark", viewBox: "0 0 24 24", width: size, height: size, dangerouslySetInnerHTML: { __html: mark.dark } })] }));
|
|
15
15
|
}
|
|
16
16
|
/** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
|
|
17
|
-
export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], footnote,
|
|
18
|
-
return (_jsxs("div", { className: "akt", "data-tool": tool, children: [_jsxs("main", { className: "akt-main", children: [_jsxs("header", { className: "akt-header", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool)] }), _jsxs("nav", { "aria-label": "Main", children: [_jsx(Link, { href: docs, children: "docs" }), links.map((link) => _jsx(Link, { href: link.href, children: link.label }, link.href))] })] }), children] }), _jsx(Footer, {
|
|
17
|
+
export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], footnote, Link = PlainLink, children }) {
|
|
18
|
+
return (_jsxs("div", { className: "akt", "data-tool": tool, children: [_jsxs("main", { className: "akt-main", children: [_jsxs("header", { className: "akt-header", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool)] }), _jsxs("nav", { "aria-label": "Main", children: [_jsx(Link, { href: docs, children: "docs" }), links.map((link) => _jsx(Link, { href: link.href, children: link.label }, link.href))] })] }), children] }), _jsx(Footer, { note: footnote })] }));
|
|
19
19
|
}
|
|
20
20
|
const SCENE_SECONDS = 5;
|
|
21
21
|
/**
|
|
@@ -61,9 +61,9 @@ function Works({ works }) {
|
|
|
61
61
|
: _jsx("span", { className: "akt-work-logo", children: _jsx("img", { src: item.logo.light, alt: "" }) })), _jsxs("div", { children: [_jsx("strong", { children: item.name }), item.note && _jsx("span", { children: item.note })] })] }, item.name))) })] }));
|
|
62
62
|
}
|
|
63
63
|
/** The docs, after rixse.dev: the pages down the side, the page on the right. */
|
|
64
|
-
export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote,
|
|
64
|
+
export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote, home = '/', Link = PlainLink, children }) {
|
|
65
65
|
const here = (href) => href.replace(/\/$/, '') === pathname.replace(/\/$/, '');
|
|
66
|
-
return (_jsxs("div", { className: "akt akt-docs", "data-tool": tool, children: [_jsxs("div", { className: "akt-docs-grid", children: [_jsxs("aside", { className: "akt-side", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool), _jsx("span", { className: "akt-brand-docs", children: "docs" })] }), _jsx("nav", { "aria-label": "Docs", children: pages.map((page) => (_jsx(Link, { href: page.href, "aria-current": here(page.href) ? 'page' : undefined, children: page.title }, page.href))) }), note && _jsx("p", { className: "akt-side-note", children: note })] }), _jsxs("article", { className: "akt-doc", children: [_jsx("div", { className: "akt-eyebrow", children: eyebrow }), _jsx("h1", { children: title }), lede && _jsx("p", { className: "akt-lede", children: lede }), _jsx("div", { className: "akt-prose", children: children })] })] }), _jsx(Footer, {
|
|
66
|
+
return (_jsxs("div", { className: "akt akt-docs", "data-tool": tool, children: [_jsxs("div", { className: "akt-docs-grid", children: [_jsxs("aside", { className: "akt-side", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool), _jsx("span", { className: "akt-brand-docs", children: "docs" })] }), _jsx("nav", { "aria-label": "Docs", children: pages.map((page) => (_jsx(Link, { href: page.href, "aria-current": here(page.href) ? 'page' : undefined, children: page.title }, page.href))) }), note && _jsx("p", { className: "akt-side-note", children: note })] }), _jsxs("article", { className: "akt-doc", children: [_jsx("div", { className: "akt-eyebrow", children: eyebrow }), _jsx("h1", { children: title }), lede && _jsx("p", { className: "akt-lede", children: lede }), _jsx("div", { className: "akt-prose", children: children })] })] }), _jsx(Footer, { note: footnote })] }));
|
|
67
67
|
}
|
|
68
68
|
/** A boxed aside. */
|
|
69
69
|
export function Callout({ children }) {
|
package/dist/tool/marks.js
CHANGED
|
@@ -32,9 +32,10 @@ export const MARKS = {
|
|
|
32
32
|
light: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#11161D\"/><g transform=\"translate(2.16 2.16) scale(0.82)\"><path d=\"M7.6 11V7.6a4.4 4.4 0 0 1 8.8 0V11\" fill=\"none\" stroke=\"#E8ECEF\" stroke-width=\"2.9\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"12.2\" rx=\"2.6\" fill=\"#E8ECEF\"/><path d=\"M12 12.4a2.3 2.3 0 0 1 1.25 4.23L14 19.6h-4l0.75-2.97A2.3 2.3 0 0 1 12 12.4Z\" fill=\"#2DD4BF\"/></g>",
|
|
33
33
|
dark: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#11161D\"/><g transform=\"translate(2.16 2.16) scale(0.82)\"><path d=\"M7.6 11V7.6a4.4 4.4 0 0 1 8.8 0V11\" fill=\"none\" stroke=\"#E8ECEF\" stroke-width=\"2.9\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"12.2\" rx=\"2.6\" fill=\"#E8ECEF\"/><path d=\"M12 12.4a2.3 2.3 0 0 1 1.25 4.23L14 19.6h-4l0.75-2.97A2.3 2.3 0 0 1 12 12.4Z\" fill=\"#2DD4BF\"/></g>",
|
|
34
34
|
},
|
|
35
|
-
// gild's mark: the
|
|
35
|
+
// gild's mark (Sami, 27 Nov): the Fraunces italic g with a gold-leaf extrusion, outlined. Ivory tile in
|
|
36
|
+
// light, gold tile in dark. Made by make_icons.py (gild-brand); ids carry the variant, since the theme hides one.
|
|
36
37
|
gild: {
|
|
37
|
-
light: "<
|
|
38
|
-
dark: "<
|
|
38
|
+
light: "<defs><linearGradient id=\"akt-gild-l-ground\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"100\" x2=\"0\" y2=\"924\"><stop offset=\"0\" stop-color=\"#FBF4E2\"/><stop offset=\"1\" stop-color=\"#E8D7AE\"/></linearGradient><clipPath id=\"akt-gild-l-clip\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\"/></clipPath><path id=\"akt-gild-l-g\" d=\"M609.1 551.9Q594.6 607.1 567.8 643.3Q541.1 679.4 502.4 697.2Q463.7 715 412.7 715Q376.9 715 357 703.1Q337.2 691.2 337.2 672.7Q337.2 659.8 345.8 650.8Q354.5 641.8 369.8 641.8Q382.3 641.8 393 648.1Q403.7 654.5 413.5 662.8Q423.4 671.1 433.2 677.4Q443 683.8 453.8 683.8Q467.6 683.8 479.9 675.9Q492.2 668.1 502.5 651.7Q512.7 635.2 519.8 609.4L569.9 431.4L574.5 438.4Q556.2 481.6 536.2 508.8Q516.2 536.1 494.4 549Q472.6 561.8 448.5 561.8Q427.6 561.8 412.4 552Q397.1 542.1 389.9 522.2Q382.6 502.4 385.1 472.3Q387.5 441.9 398.6 412Q409.6 382.1 428.5 355.6Q447.3 329.2 473.3 308.8Q499.2 288.4 531.3 276.7Q563.4 265 600.9 265Q627.9 265 647.4 269.1Q666.9 273.1 677.2 279.7Q687.6 286.3 686.8 294.1Q686.2 300.2 682.8 303.6Q679.4 307 675.7 310.9Q672 314.7 670 322.1ZM464.3 469.6Q462.1 488.6 464.6 500.2Q467.1 511.8 472.6 517Q478.1 522.2 485 522.2Q497.7 522.2 511.5 509.9Q525.3 497.6 538.6 476.6Q552 455.6 563.4 429.4Q574.8 403.1 582.9 375Q591 346.8 594.3 320.7Q596.5 306.6 593.5 298.8Q590.4 291.1 579.8 291.1Q564.9 291.1 549.5 301.5Q534.1 311.9 519.9 329.8Q505.7 347.7 493.9 370.7Q482.2 393.6 474.4 419Q466.6 444.4 464.3 469.6Z\"/></defs><g transform=\"scale(0.0291262) translate(-100 -100)\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\" fill=\"url(#akt-gild-l-ground)\"/><g clip-path=\"url(#akt-gild-l-clip)\"><use href=\"#akt-gild-l-g\" transform=\"translate(23.1 42)\" fill=\"#4E330D\" opacity=\"0.35\"/><use href=\"#akt-gild-l-g\" transform=\"translate(19.2 35)\" fill=\"#6F4914\" opacity=\"0.42\"/><use href=\"#akt-gild-l-g\" transform=\"translate(15.4 28)\" fill=\"#8F611C\" opacity=\"0.52\"/><use href=\"#akt-gild-l-g\" transform=\"translate(11.6 21)\" fill=\"#AD7A26\" opacity=\"0.62\"/><use href=\"#akt-gild-l-g\" transform=\"translate(7.7 14)\" fill=\"#C99433\" opacity=\"0.72\"/><use href=\"#akt-gild-l-g\" transform=\"translate(3.9 7)\" fill=\"#E3B546\" opacity=\"0.82\"/><use href=\"#akt-gild-l-g\" fill=\"url(#akt-gild-l-ground)\" stroke=\"url(#akt-gild-l-ground)\" stroke-width=\"36\" stroke-linejoin=\"round\"/><use href=\"#akt-gild-l-g\" fill=\"#111111\"/></g></g>",
|
|
39
|
+
dark: "<defs><linearGradient id=\"akt-gild-d-ground\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"100\" x2=\"0\" y2=\"924\"><stop offset=\"0\" stop-color=\"#EDC65E\"/><stop offset=\"1\" stop-color=\"#A8761F\"/></linearGradient><clipPath id=\"akt-gild-d-clip\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\"/></clipPath><path id=\"akt-gild-d-g\" d=\"M609.1 551.9Q594.6 607.1 567.8 643.3Q541.1 679.4 502.4 697.2Q463.7 715 412.7 715Q376.9 715 357 703.1Q337.2 691.2 337.2 672.7Q337.2 659.8 345.8 650.8Q354.5 641.8 369.8 641.8Q382.3 641.8 393 648.1Q403.7 654.5 413.5 662.8Q423.4 671.1 433.2 677.4Q443 683.8 453.8 683.8Q467.6 683.8 479.9 675.9Q492.2 668.1 502.5 651.7Q512.7 635.2 519.8 609.4L569.9 431.4L574.5 438.4Q556.2 481.6 536.2 508.8Q516.2 536.1 494.4 549Q472.6 561.8 448.5 561.8Q427.6 561.8 412.4 552Q397.1 542.1 389.9 522.2Q382.6 502.4 385.1 472.3Q387.5 441.9 398.6 412Q409.6 382.1 428.5 355.6Q447.3 329.2 473.3 308.8Q499.2 288.4 531.3 276.7Q563.4 265 600.9 265Q627.9 265 647.4 269.1Q666.9 273.1 677.2 279.7Q687.6 286.3 686.8 294.1Q686.2 300.2 682.8 303.6Q679.4 307 675.7 310.9Q672 314.7 670 322.1ZM464.3 469.6Q462.1 488.6 464.6 500.2Q467.1 511.8 472.6 517Q478.1 522.2 485 522.2Q497.7 522.2 511.5 509.9Q525.3 497.6 538.6 476.6Q552 455.6 563.4 429.4Q574.8 403.1 582.9 375Q591 346.8 594.3 320.7Q596.5 306.6 593.5 298.8Q590.4 291.1 579.8 291.1Q564.9 291.1 549.5 301.5Q534.1 311.9 519.9 329.8Q505.7 347.7 493.9 370.7Q482.2 393.6 474.4 419Q466.6 444.4 464.3 469.6Z\"/></defs><g transform=\"scale(0.0291262) translate(-100 -100)\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\" fill=\"url(#akt-gild-d-ground)\"/><g clip-path=\"url(#akt-gild-d-clip)\"><use href=\"#akt-gild-d-g\" transform=\"translate(23.1 42)\" fill=\"#4E330D\" opacity=\"0.35\"/><use href=\"#akt-gild-d-g\" transform=\"translate(19.2 35)\" fill=\"#6F4914\" opacity=\"0.42\"/><use href=\"#akt-gild-d-g\" transform=\"translate(15.4 28)\" fill=\"#8F611C\" opacity=\"0.52\"/><use href=\"#akt-gild-d-g\" transform=\"translate(11.6 21)\" fill=\"#AD7A26\" opacity=\"0.62\"/><use href=\"#akt-gild-d-g\" transform=\"translate(7.7 14)\" fill=\"#C99433\" opacity=\"0.72\"/><use href=\"#akt-gild-d-g\" transform=\"translate(3.9 7)\" fill=\"#F6DC8F\" opacity=\"0.82\"/><use href=\"#akt-gild-d-g\" fill=\"url(#akt-gild-d-ground)\" stroke=\"url(#akt-gild-d-ground)\" stroke-width=\"36\" stroke-linejoin=\"round\"/><use href=\"#akt-gild-d-g\" fill=\"#111111\"/></g></g>",
|
|
39
40
|
},
|
|
40
41
|
};
|
package/dist/tool.css
CHANGED
|
@@ -212,6 +212,16 @@
|
|
|
212
212
|
.akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-accent: #0F766E; --akt-btn: #0F766E; --akt-onbtn: #FFFFFF; --akt-dotoff: #BBBFC4; }
|
|
213
213
|
:root[data-theme="dark"] .akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-ground: #0F1918; --akt-card: #0A1110; --akt-faint: #2B3433; --akt-dots: #222B2A; --akt-accent: #2DD4BF; --akt-btn: #2DD4BF; --akt-onbtn: #11161D; --akt-dotoff: #414C4B; }
|
|
214
214
|
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-ground: #0F1918; --akt-card: #0A1110; --akt-faint: #2B3433; --akt-dots: #222B2A; --akt-accent: #2DD4BF; --akt-btn: #2DD4BF; --akt-onbtn: #11161D; --akt-dotoff: #414C4B; } }
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
/* gild (Sami, 27 Nov): ivory and ink in light, black and gold in dark. Display type is Fraunces, which the
|
|
216
|
+
site loads (@fontsource-variable/fraunces); the headline accent is the mark's gilded extrusion in type. */
|
|
217
|
+
.akt[data-tool="gild"] { --akt-reel: #17130C; --akt-reelline: #2E2819; --akt-reelhl: #3A2A12; --akt-reelacc: #E3B546; --akt-ground: #FBF7EC; --akt-card: #FFFFFF; --akt-ink: #17130C; --akt-soft: #6B5E45; --akt-faint: #E6DCC4; --akt-dots: #E9E0CA; --akt-accent: #8F6516; --akt-btn: #17130C; --akt-onbtn: #FBF7EC; --akt-dotoff: #CFC3A6; }
|
|
218
|
+
:root[data-theme="dark"] .akt[data-tool="gild"] { --akt-reel: #12100C; --akt-reelline: #2E2819; --akt-reelhl: #3A2A12; --akt-reelacc: #E3B546; --akt-ground: #0C0B08; --akt-card: #16130E; --akt-ink: #F4EBD6; --akt-soft: #A8997A; --akt-faint: #2E2819; --akt-dots: #221E16; --akt-accent: #E3B546; --akt-btn: #E3B546; --akt-onbtn: #17130C; --akt-dotoff: #4A4232; }
|
|
219
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="gild"] { --akt-reel: #12100C; --akt-reelline: #2E2819; --akt-reelhl: #3A2A12; --akt-reelacc: #E3B546; --akt-ground: #0C0B08; --akt-card: #16130E; --akt-ink: #F4EBD6; --akt-soft: #A8997A; --akt-faint: #2E2819; --akt-dots: #221E16; --akt-accent: #E3B546; --akt-btn: #E3B546; --akt-onbtn: #17130C; --akt-dotoff: #4A4232; } }
|
|
220
|
+
:root .akt[data-tool="gild"], :root[data-theme="dark"] .akt[data-tool="gild"] { --akt-display: "Fraunces Variable", Fraunces, Georgia, serif; --akt-wm-weight: 600; --akt-wm-spacing: -0.01em; }
|
|
221
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="gild"] { --akt-wm-weight: 600; --akt-wm-spacing: -0.01em; } }
|
|
222
|
+
.akt[data-tool="gild"] { --akt-gilt-1: #E3B546; --akt-gilt-2: #C99433; --akt-gilt-3: #AD7A26; }
|
|
223
|
+
:root[data-theme="dark"] .akt[data-tool="gild"] { --akt-gilt-1: #8F611C; --akt-gilt-2: #6F4914; --akt-gilt-3: #4E330D; }
|
|
224
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="gild"] { --akt-gilt-1: #8F611C; --akt-gilt-2: #6F4914; --akt-gilt-3: #4E330D; } }
|
|
225
|
+
.akt[data-tool="gild"] :is(h1, h2, h3) { font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50; }
|
|
226
|
+
.akt[data-tool="gild"] .akt-brand { font-style: italic; font-variation-settings: "SOFT" 50; }
|
|
227
|
+
.akt[data-tool="gild"] .akt-hero h1 em { font-style: italic; color: var(--akt-ink); text-shadow: .025em .045em 0 var(--akt-gilt-1), .05em .09em 0 var(--akt-gilt-2), .075em .135em 0 var(--akt-gilt-3); }
|
package/package.json
CHANGED