create-dig-app 0.3.0 → 0.3.2
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 +50 -42
- package/lib/cli.js +18 -8
- package/lib/index.js +5 -6
- package/lib/nft-cli.js +13 -12
- package/lib/nft-metadata.js +16 -5
- package/lib/templates.js +7 -8
- package/package.json +6 -3
- package/templates/dapp-window-chia/src/App.jsx +4 -4
- package/templates/dapp-window-chia/src/styles.css +35 -11
- package/templates/next-static/app/globals.css +18 -7
- package/templates/next-static/app/page.jsx +2 -2
- package/templates/nft-collection/collection.json +1 -3
- package/templates/nft-collection/scripts/dig-nft.mjs +145 -62
- package/templates/nft-collection/src/styles.css +53 -14
- package/templates/nft-drop/src/App.jsx +5 -5
- package/templates/nft-drop/src/styles.css +31 -10
- package/templates/static-site/src/index.html +3 -3
- package/templates/static-site/src/styles.css +18 -7
- package/templates/vite-react/src/App.jsx +2 -2
- package/templates/vite-react/src/styles.css +18 -7
- package/templates-ts/dapp-window-chia/src/App.tsx +4 -4
- package/templates-ts/dapp-window-chia/src/styles.css +35 -11
- package/templates-ts/dapp-window-chia/src/wallet.ts +1 -5
- package/templates-ts/next-static/app/globals.css +18 -7
- package/templates-ts/next-static/app/page.tsx +2 -2
- package/templates-ts/nft-drop/src/App.tsx +5 -5
- package/templates-ts/nft-drop/src/mint.ts +1 -5
- package/templates-ts/nft-drop/src/styles.css +31 -10
- package/templates-ts/vite-react/src/App.tsx +2 -2
- package/templates-ts/vite-react/src/styles.css +18 -7
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
--error: #dc2626;
|
|
7
7
|
|
|
8
8
|
/* DIG brand accent — violet -> magenta (SYSTEM.md visual theme; matches dig.net/hub/status). */
|
|
9
|
-
--dig-violet: #
|
|
10
|
-
--dig-magenta: #
|
|
9
|
+
--dig-violet: #5800d6;
|
|
10
|
+
--dig-magenta: #ff00de;
|
|
11
11
|
--accent: var(--dig-violet);
|
|
12
|
-
--grad-brand: linear-gradient(115deg, #
|
|
12
|
+
--grad-brand: linear-gradient(115deg, #5800d6 0%, #ff00de 100%);
|
|
13
13
|
|
|
14
14
|
/* DIG brand fonts — named first, system stack as the offline/no-fetch fallback so a scaffolded
|
|
15
15
|
capsule never depends on an external font host (keeps the site self-contained + offline-safe). */
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
--dig-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
18
18
|
}
|
|
19
19
|
@media (prefers-color-scheme: dark) {
|
|
20
|
-
:root {
|
|
20
|
+
:root {
|
|
21
|
+
--fg: #e2e8f0;
|
|
22
|
+
--muted: #94a3b8;
|
|
23
|
+
--bg: #0b1120;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
* {
|
|
27
|
+
box-sizing: border-box;
|
|
21
28
|
}
|
|
22
|
-
* { box-sizing: border-box; }
|
|
23
29
|
body {
|
|
24
30
|
margin: 0;
|
|
25
31
|
min-height: 100vh;
|
|
@@ -29,7 +35,10 @@ body {
|
|
|
29
35
|
color: var(--fg);
|
|
30
36
|
background: var(--bg);
|
|
31
37
|
}
|
|
32
|
-
main {
|
|
38
|
+
main {
|
|
39
|
+
max-width: 40rem;
|
|
40
|
+
padding: 2rem;
|
|
41
|
+
}
|
|
33
42
|
h1 {
|
|
34
43
|
font-size: 2.25rem;
|
|
35
44
|
margin: 0 0 0.5rem;
|
|
@@ -39,7 +48,9 @@ h1 {
|
|
|
39
48
|
background-clip: text;
|
|
40
49
|
color: transparent;
|
|
41
50
|
}
|
|
42
|
-
.muted {
|
|
51
|
+
.muted {
|
|
52
|
+
color: var(--muted);
|
|
53
|
+
}
|
|
43
54
|
pre {
|
|
44
55
|
font-family: var(--dig-mono);
|
|
45
56
|
background: rgba(127, 127, 127, 0.12);
|
|
@@ -3,8 +3,8 @@ export default function App() {
|
|
|
3
3
|
<main className="wrap">
|
|
4
4
|
<h1>__DISPLAY_NAME__</h1>
|
|
5
5
|
<p>
|
|
6
|
-
A React app on the <strong>DIG Network</strong> — served from a network no host can read,
|
|
7
|
-
|
|
6
|
+
A React app on the <strong>DIG Network</strong> — served from a network no host can read, change, or
|
|
7
|
+
take down.
|
|
8
8
|
</p>
|
|
9
9
|
<p className="muted">
|
|
10
10
|
Build and preview for <strong>free</strong>. You only spend $DIG when you publish.
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
--error: #dc2626;
|
|
7
7
|
|
|
8
8
|
/* DIG brand accent — violet -> magenta (SYSTEM.md visual theme; matches dig.net/hub/status). */
|
|
9
|
-
--dig-violet: #
|
|
10
|
-
--dig-magenta: #
|
|
9
|
+
--dig-violet: #5800d6;
|
|
10
|
+
--dig-magenta: #ff00de;
|
|
11
11
|
--accent: var(--dig-violet);
|
|
12
|
-
--grad-brand: linear-gradient(115deg, #
|
|
12
|
+
--grad-brand: linear-gradient(115deg, #5800d6 0%, #ff00de 100%);
|
|
13
13
|
|
|
14
14
|
/* DIG brand fonts — named first, system stack as the offline/no-fetch fallback so a scaffolded
|
|
15
15
|
capsule never depends on an external font host (keeps the site self-contained + offline-safe). */
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
--dig-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
18
18
|
}
|
|
19
19
|
@media (prefers-color-scheme: dark) {
|
|
20
|
-
:root {
|
|
20
|
+
:root {
|
|
21
|
+
--fg: #e2e8f0;
|
|
22
|
+
--muted: #94a3b8;
|
|
23
|
+
--bg: #0b1120;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
* {
|
|
27
|
+
box-sizing: border-box;
|
|
21
28
|
}
|
|
22
|
-
* { box-sizing: border-box; }
|
|
23
29
|
body {
|
|
24
30
|
margin: 0;
|
|
25
31
|
min-height: 100vh;
|
|
@@ -29,7 +35,10 @@ body {
|
|
|
29
35
|
color: var(--fg);
|
|
30
36
|
background: var(--bg);
|
|
31
37
|
}
|
|
32
|
-
.wrap {
|
|
38
|
+
.wrap {
|
|
39
|
+
max-width: 40rem;
|
|
40
|
+
padding: 2rem;
|
|
41
|
+
}
|
|
33
42
|
h1 {
|
|
34
43
|
font-size: 2.25rem;
|
|
35
44
|
margin: 0 0 0.5rem;
|
|
@@ -39,7 +48,9 @@ h1 {
|
|
|
39
48
|
background-clip: text;
|
|
40
49
|
color: transparent;
|
|
41
50
|
}
|
|
42
|
-
.muted {
|
|
51
|
+
.muted {
|
|
52
|
+
color: var(--muted);
|
|
53
|
+
}
|
|
43
54
|
pre {
|
|
44
55
|
font-family: var(--dig-mono);
|
|
45
56
|
background: rgba(127, 127, 127, 0.12);
|
|
@@ -46,12 +46,12 @@ export default function App() {
|
|
|
46
46
|
<main className="wrap">
|
|
47
47
|
<h1>__DISPLAY_NAME__</h1>
|
|
48
48
|
<p>
|
|
49
|
-
A wallet-wired dapp on the <strong>DIG Network</strong>. Your wallet is your account — no
|
|
50
|
-
|
|
49
|
+
A wallet-wired dapp on the <strong>DIG Network</strong>. Your wallet is your account — no email, no
|
|
50
|
+
password.
|
|
51
51
|
</p>
|
|
52
52
|
<p className="muted">
|
|
53
|
-
Connecting and previewing are <strong>free</strong>. There is no mint, no chain, and no spend
|
|
54
|
-
|
|
53
|
+
Connecting and previewing are <strong>free</strong>. There is no mint, no chain, and no spend here —
|
|
54
|
+
you only spend $DIG when you publish with <code>digstore deploy</code>.
|
|
55
55
|
</p>
|
|
56
56
|
|
|
57
57
|
{address ? (
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
--error: #dc2626;
|
|
7
7
|
|
|
8
8
|
/* DIG brand accent — violet -> magenta (SYSTEM.md visual theme; matches dig.net/hub/status). */
|
|
9
|
-
--dig-violet: #
|
|
10
|
-
--dig-magenta: #
|
|
9
|
+
--dig-violet: #5800d6;
|
|
10
|
+
--dig-magenta: #ff00de;
|
|
11
11
|
--accent: var(--dig-violet);
|
|
12
|
-
--grad-brand: linear-gradient(115deg, #
|
|
12
|
+
--grad-brand: linear-gradient(115deg, #5800d6 0%, #ff00de 100%);
|
|
13
13
|
|
|
14
14
|
/* DIG brand fonts — named first, system stack as the offline/no-fetch fallback so a scaffolded
|
|
15
15
|
capsule never depends on an external font host (keeps the site self-contained + offline-safe). */
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
--dig-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
18
18
|
}
|
|
19
19
|
@media (prefers-color-scheme: dark) {
|
|
20
|
-
:root {
|
|
20
|
+
:root {
|
|
21
|
+
--fg: #e2e8f0;
|
|
22
|
+
--muted: #94a3b8;
|
|
23
|
+
--bg: #0b1120;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
* {
|
|
27
|
+
box-sizing: border-box;
|
|
21
28
|
}
|
|
22
|
-
* { box-sizing: border-box; }
|
|
23
29
|
body {
|
|
24
30
|
margin: 0;
|
|
25
31
|
min-height: 100vh;
|
|
@@ -29,7 +35,10 @@ body {
|
|
|
29
35
|
color: var(--fg);
|
|
30
36
|
background: var(--bg);
|
|
31
37
|
}
|
|
32
|
-
.wrap {
|
|
38
|
+
.wrap {
|
|
39
|
+
max-width: 42rem;
|
|
40
|
+
padding: 2rem;
|
|
41
|
+
}
|
|
33
42
|
h1 {
|
|
34
43
|
font-size: 2.25rem;
|
|
35
44
|
margin: 0 0 0.5rem;
|
|
@@ -39,8 +48,12 @@ h1 {
|
|
|
39
48
|
background-clip: text;
|
|
40
49
|
color: transparent;
|
|
41
50
|
}
|
|
42
|
-
.muted {
|
|
43
|
-
|
|
51
|
+
.muted {
|
|
52
|
+
color: var(--muted);
|
|
53
|
+
}
|
|
54
|
+
.error {
|
|
55
|
+
color: var(--error);
|
|
56
|
+
}
|
|
44
57
|
button {
|
|
45
58
|
font: inherit;
|
|
46
59
|
padding: 0.6rem 1.1rem;
|
|
@@ -50,7 +63,10 @@ button {
|
|
|
50
63
|
color: white;
|
|
51
64
|
cursor: pointer;
|
|
52
65
|
}
|
|
53
|
-
button:disabled {
|
|
66
|
+
button:disabled {
|
|
67
|
+
opacity: 0.6;
|
|
68
|
+
cursor: default;
|
|
69
|
+
}
|
|
54
70
|
.card {
|
|
55
71
|
margin: 1rem 0;
|
|
56
72
|
padding: 1rem;
|
|
@@ -59,8 +75,16 @@ button:disabled { opacity: 0.6; cursor: default; }
|
|
|
59
75
|
display: grid;
|
|
60
76
|
gap: 0.5rem;
|
|
61
77
|
}
|
|
62
|
-
.row {
|
|
63
|
-
|
|
78
|
+
.row {
|
|
79
|
+
display: flex;
|
|
80
|
+
gap: 0.75rem;
|
|
81
|
+
align-items: baseline;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
}
|
|
84
|
+
code {
|
|
85
|
+
font-family: var(--dig-mono);
|
|
86
|
+
word-break: break-all;
|
|
87
|
+
}
|
|
64
88
|
pre {
|
|
65
89
|
font-family: var(--dig-mono);
|
|
66
90
|
margin-top: 1.5rem;
|
|
@@ -10,11 +10,7 @@
|
|
|
10
10
|
// WalletConnectOptions (the options the SDK's WalletConnectTransport consumes) are fully typed, so
|
|
11
11
|
// no `@types/*` package is needed for the SDK.
|
|
12
12
|
|
|
13
|
-
import {
|
|
14
|
-
ChiaProvider,
|
|
15
|
-
type ConnectOptions,
|
|
16
|
-
type WalletConnectOptions,
|
|
17
|
-
} from "@dignetwork/dig-sdk";
|
|
13
|
+
import { ChiaProvider, type ConnectOptions, type WalletConnectOptions } from "@dignetwork/dig-sdk";
|
|
18
14
|
|
|
19
15
|
// WalletConnect Cloud / Reown project id, read from the build-time env (see .env.example) and typed
|
|
20
16
|
// via src/vite-env.d.ts. When set, it enables the WalletConnect → Sage fallback for browsers without
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
--error: #dc2626;
|
|
7
7
|
|
|
8
8
|
/* DIG brand accent — violet -> magenta (SYSTEM.md visual theme; matches dig.net/hub/status). */
|
|
9
|
-
--dig-violet: #
|
|
10
|
-
--dig-magenta: #
|
|
9
|
+
--dig-violet: #5800d6;
|
|
10
|
+
--dig-magenta: #ff00de;
|
|
11
11
|
--accent: var(--dig-violet);
|
|
12
|
-
--grad-brand: linear-gradient(115deg, #
|
|
12
|
+
--grad-brand: linear-gradient(115deg, #5800d6 0%, #ff00de 100%);
|
|
13
13
|
|
|
14
14
|
/* DIG brand fonts — named first, system stack as the offline/no-fetch fallback so a scaffolded
|
|
15
15
|
capsule never depends on an external font host (keeps the site self-contained + offline-safe). */
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
--dig-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
18
18
|
}
|
|
19
19
|
@media (prefers-color-scheme: dark) {
|
|
20
|
-
:root {
|
|
20
|
+
:root {
|
|
21
|
+
--fg: #e2e8f0;
|
|
22
|
+
--muted: #94a3b8;
|
|
23
|
+
--bg: #0b1120;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
* {
|
|
27
|
+
box-sizing: border-box;
|
|
21
28
|
}
|
|
22
|
-
* { box-sizing: border-box; }
|
|
23
29
|
body {
|
|
24
30
|
margin: 0;
|
|
25
31
|
min-height: 100vh;
|
|
@@ -29,7 +35,10 @@ body {
|
|
|
29
35
|
color: var(--fg);
|
|
30
36
|
background: var(--bg);
|
|
31
37
|
}
|
|
32
|
-
.wrap {
|
|
38
|
+
.wrap {
|
|
39
|
+
max-width: 40rem;
|
|
40
|
+
padding: 2rem;
|
|
41
|
+
}
|
|
33
42
|
h1 {
|
|
34
43
|
font-size: 2.25rem;
|
|
35
44
|
margin: 0 0 0.5rem;
|
|
@@ -39,7 +48,9 @@ h1 {
|
|
|
39
48
|
background-clip: text;
|
|
40
49
|
color: transparent;
|
|
41
50
|
}
|
|
42
|
-
.muted {
|
|
51
|
+
.muted {
|
|
52
|
+
color: var(--muted);
|
|
53
|
+
}
|
|
43
54
|
pre {
|
|
44
55
|
font-family: var(--dig-mono);
|
|
45
56
|
background: rgba(127, 127, 127, 0.12);
|
|
@@ -3,8 +3,8 @@ export default function Home() {
|
|
|
3
3
|
<main className="wrap">
|
|
4
4
|
<h1>__DISPLAY_NAME__</h1>
|
|
5
5
|
<p>
|
|
6
|
-
A Next.js static-export site on the <strong>DIG Network</strong> — served from a network no
|
|
7
|
-
|
|
6
|
+
A Next.js static-export site on the <strong>DIG Network</strong> — served from a network no host can
|
|
7
|
+
read, change, or take down.
|
|
8
8
|
</p>
|
|
9
9
|
<p className="muted">
|
|
10
10
|
Build and preview for <strong>free</strong>. You only spend $DIG when you publish.
|
|
@@ -46,13 +46,13 @@ export default function App() {
|
|
|
46
46
|
<main className="wrap">
|
|
47
47
|
<h1>__DISPLAY_NAME__</h1>
|
|
48
48
|
<p>
|
|
49
|
-
An NFT drop on the <strong>DIG Network</strong> — mint NFTs whose media can live in a DIG
|
|
50
|
-
|
|
49
|
+
An NFT drop on the <strong>DIG Network</strong> — mint NFTs whose media can live in a DIG capsule,
|
|
50
|
+
truly permanent on Chia.
|
|
51
51
|
</p>
|
|
52
52
|
<p className="muted">
|
|
53
|
-
Building and previewing this mint page are <strong>free</strong> — no mint, no chain, no spend
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
Building and previewing this mint page are <strong>free</strong> — no mint, no chain, no spend when
|
|
54
|
+
you scaffold or run it. Publishing the page is one <code>digstore deploy</code> ($DIG). Minting the
|
|
55
|
+
NFTs is a separate, wallet-signed on-chain action a visitor triggers.
|
|
56
56
|
</p>
|
|
57
57
|
|
|
58
58
|
{address ? (
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
// @dignetwork/dig-sdk ships its own .d.ts types, so ChiaProvider, ConnectOptions, and
|
|
9
9
|
// WalletConnectOptions are all fully typed — no `@types/*` package is needed for the SDK.
|
|
10
10
|
|
|
11
|
-
import {
|
|
12
|
-
ChiaProvider,
|
|
13
|
-
type ConnectOptions,
|
|
14
|
-
type WalletConnectOptions,
|
|
15
|
-
} from "@dignetwork/dig-sdk";
|
|
11
|
+
import { ChiaProvider, type ConnectOptions, type WalletConnectOptions } from "@dignetwork/dig-sdk";
|
|
16
12
|
|
|
17
13
|
// WalletConnect Cloud / Reown project id, read from the build-time env (see .env.example) and typed
|
|
18
14
|
// via src/vite-env.d.ts. When set, it enables the WalletConnect → Sage fallback so visitors without
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
--error: #dc2626;
|
|
7
7
|
|
|
8
8
|
/* DIG brand accent — violet -> magenta (SYSTEM.md visual theme; matches dig.net/hub/status). */
|
|
9
|
-
--dig-violet: #
|
|
10
|
-
--dig-magenta: #
|
|
9
|
+
--dig-violet: #5800d6;
|
|
10
|
+
--dig-magenta: #ff00de;
|
|
11
11
|
--accent: var(--dig-violet);
|
|
12
|
-
--grad-brand: linear-gradient(115deg, #
|
|
12
|
+
--grad-brand: linear-gradient(115deg, #5800d6 0%, #ff00de 100%);
|
|
13
13
|
|
|
14
14
|
/* DIG brand fonts — named first, system stack as the offline/no-fetch fallback so a scaffolded
|
|
15
15
|
capsule never depends on an external font host (keeps the site self-contained + offline-safe). */
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
--dig-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
18
18
|
}
|
|
19
19
|
@media (prefers-color-scheme: dark) {
|
|
20
|
-
:root {
|
|
20
|
+
:root {
|
|
21
|
+
--fg: #e2e8f0;
|
|
22
|
+
--muted: #94a3b8;
|
|
23
|
+
--bg: #0b1120;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
* {
|
|
27
|
+
box-sizing: border-box;
|
|
21
28
|
}
|
|
22
|
-
* { box-sizing: border-box; }
|
|
23
29
|
body {
|
|
24
30
|
margin: 0;
|
|
25
31
|
min-height: 100vh;
|
|
@@ -29,7 +35,10 @@ body {
|
|
|
29
35
|
color: var(--fg);
|
|
30
36
|
background: var(--bg);
|
|
31
37
|
}
|
|
32
|
-
.wrap {
|
|
38
|
+
.wrap {
|
|
39
|
+
max-width: 42rem;
|
|
40
|
+
padding: 2rem;
|
|
41
|
+
}
|
|
33
42
|
h1 {
|
|
34
43
|
font-size: 2.25rem;
|
|
35
44
|
margin: 0 0 0.5rem;
|
|
@@ -39,8 +48,12 @@ h1 {
|
|
|
39
48
|
background-clip: text;
|
|
40
49
|
color: transparent;
|
|
41
50
|
}
|
|
42
|
-
.muted {
|
|
43
|
-
|
|
51
|
+
.muted {
|
|
52
|
+
color: var(--muted);
|
|
53
|
+
}
|
|
54
|
+
.error {
|
|
55
|
+
color: var(--error);
|
|
56
|
+
}
|
|
44
57
|
button {
|
|
45
58
|
font: inherit;
|
|
46
59
|
padding: 0.6rem 1.1rem;
|
|
@@ -58,8 +71,16 @@ button {
|
|
|
58
71
|
display: grid;
|
|
59
72
|
gap: 0.5rem;
|
|
60
73
|
}
|
|
61
|
-
.row {
|
|
62
|
-
|
|
74
|
+
.row {
|
|
75
|
+
display: flex;
|
|
76
|
+
gap: 0.75rem;
|
|
77
|
+
align-items: baseline;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
}
|
|
80
|
+
code {
|
|
81
|
+
font-family: var(--dig-mono);
|
|
82
|
+
word-break: break-all;
|
|
83
|
+
}
|
|
63
84
|
pre {
|
|
64
85
|
font-family: var(--dig-mono);
|
|
65
86
|
margin-top: 1.5rem;
|
|
@@ -3,8 +3,8 @@ export default function App() {
|
|
|
3
3
|
<main className="wrap">
|
|
4
4
|
<h1>__DISPLAY_NAME__</h1>
|
|
5
5
|
<p>
|
|
6
|
-
A React app on the <strong>DIG Network</strong> — served from a network no host can read,
|
|
7
|
-
|
|
6
|
+
A React app on the <strong>DIG Network</strong> — served from a network no host can read, change, or
|
|
7
|
+
take down.
|
|
8
8
|
</p>
|
|
9
9
|
<p className="muted">
|
|
10
10
|
Build and preview for <strong>free</strong>. You only spend $DIG when you publish.
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
--error: #dc2626;
|
|
7
7
|
|
|
8
8
|
/* DIG brand accent — violet -> magenta (SYSTEM.md visual theme; matches dig.net/hub/status). */
|
|
9
|
-
--dig-violet: #
|
|
10
|
-
--dig-magenta: #
|
|
9
|
+
--dig-violet: #5800d6;
|
|
10
|
+
--dig-magenta: #ff00de;
|
|
11
11
|
--accent: var(--dig-violet);
|
|
12
|
-
--grad-brand: linear-gradient(115deg, #
|
|
12
|
+
--grad-brand: linear-gradient(115deg, #5800d6 0%, #ff00de 100%);
|
|
13
13
|
|
|
14
14
|
/* DIG brand fonts — named first, system stack as the offline/no-fetch fallback so a scaffolded
|
|
15
15
|
capsule never depends on an external font host (keeps the site self-contained + offline-safe). */
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
--dig-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
18
18
|
}
|
|
19
19
|
@media (prefers-color-scheme: dark) {
|
|
20
|
-
:root {
|
|
20
|
+
:root {
|
|
21
|
+
--fg: #e2e8f0;
|
|
22
|
+
--muted: #94a3b8;
|
|
23
|
+
--bg: #0b1120;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
* {
|
|
27
|
+
box-sizing: border-box;
|
|
21
28
|
}
|
|
22
|
-
* { box-sizing: border-box; }
|
|
23
29
|
body {
|
|
24
30
|
margin: 0;
|
|
25
31
|
min-height: 100vh;
|
|
@@ -29,7 +35,10 @@ body {
|
|
|
29
35
|
color: var(--fg);
|
|
30
36
|
background: var(--bg);
|
|
31
37
|
}
|
|
32
|
-
.wrap {
|
|
38
|
+
.wrap {
|
|
39
|
+
max-width: 40rem;
|
|
40
|
+
padding: 2rem;
|
|
41
|
+
}
|
|
33
42
|
h1 {
|
|
34
43
|
font-size: 2.25rem;
|
|
35
44
|
margin: 0 0 0.5rem;
|
|
@@ -39,7 +48,9 @@ h1 {
|
|
|
39
48
|
background-clip: text;
|
|
40
49
|
color: transparent;
|
|
41
50
|
}
|
|
42
|
-
.muted {
|
|
51
|
+
.muted {
|
|
52
|
+
color: var(--muted);
|
|
53
|
+
}
|
|
43
54
|
pre {
|
|
44
55
|
font-family: var(--dig-mono);
|
|
45
56
|
background: rgba(127, 127, 127, 0.12);
|