diff --git a/README.md b/README.md index 3569aeb..dc70ff9 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ The table is generated from [`index.yaml`](index.yaml); edit that file, then run | [`ninefold-help/`](ninefold-help/) | 1.0.0 | Puts the Ninefold topics into +help | | [`ninefold-config/`](ninefold-config/) | 1.0.0 | Puts the Ninefold settings into +config | | [`ninefold-app/`](ninefold-app/) | 1.0.0 | Registers Ninefold as a portal page at /apps/ninefold, with the card and rule set editors | +| [`theme-harbor-lights/`](theme-harbor-lights/) | 1.0.0 | Two portal themes for a seaside game, Harbor Night (dark) and Harbor Morning (light), with their own harbour pictures | Packages bundled with SharpMUSH (`+who`/`+where`, the HTTP handler, the diff --git a/index.yaml b/index.yaml index 6e9f4b7..bbce828 100644 --- a/index.yaml +++ b/index.yaml @@ -393,3 +393,8 @@ packages: package: ninefold-app version: 1.0.0 description: Registers Ninefold as a portal page at /apps/ninefold, with the card and rule set editors + - path: theme-harbor-lights/ + name: Harbor Lights + package: theme-harbor-lights + version: 1.0.0 + description: Two portal themes for a seaside game, Harbor Night (dark) and Harbor Morning (light), with their own harbour pictures diff --git a/theme-harbor-lights/README.md b/theme-harbor-lights/README.md new file mode 100644 index 0000000..c7c3995 --- /dev/null +++ b/theme-harbor-lights/README.md @@ -0,0 +1,30 @@ +# Harbor Lights + +A theme package: two portal themes for a seaside game. + +| Theme | Mode | Look | +|---|---|---| +| Harbor Night | dark | Lamplight over a dark harbour under a lighthouse; amber accent, frosted cards with a lamp-coloured edge | +| Harbor Morning | light | The same harbour at first light; sea-blue accent, frosted cards with a sea-coloured edge | + +Each carries its colours and style choices, a stylesheet (`harbor-night.css`, `harbor-morning.css`), a background +picture of the harbour and a compass mark beside page titles (`images/`). The art is original to this package. + +## Installing + +Admin → Packages, find **Harbor Lights**, review and apply. Both themes appear in every character's theme menu +without a reload, and in Admin → Themes with a **Package** tag. To make one the game's default, choose it there. + +A new version of the package replaces both themes. Uninstalling removes them; it is refused while either is the +game's default for its mode. Characters who chose a removed theme see the game's default. + +Needs SharpMUSH 1.2 or later (package format 1.22). + +## Changing it + +The installed themes are read-only. **Duplicate** one in Admin → Themes to make the game's own copy, colours and +stylesheet included, and change that. + +## Licence + +MIT, art included. diff --git a/theme-harbor-lights/harbor-morning.css b/theme-harbor-lights/harbor-morning.css new file mode 100644 index 0000000..e839367 --- /dev/null +++ b/theme-harbor-lights/harbor-morning.css @@ -0,0 +1,38 @@ +/* Harbor Morning: the same harbour at first light. The picture sits behind the page, washed out toward the bottom so text + on it stays readable; cards are frosted panes with a sea-coloured edge. */ + +.phosphor-shell { + background: + linear-gradient(color-mix(in srgb, var(--bg) 20%, transparent), color-mix(in srgb, var(--bg) 78%, transparent)), + url(images/harbor-morning.svg) center bottom / cover no-repeat fixed, + var(--bg); +} + +.phosphor-rail, +.phosphor-sidebar, +.phosphor-pagebar { + background: color-mix(in srgb, var(--rail-bg) 86%, transparent); + backdrop-filter: blur(8px); +} + +.phosphor-topbar { + background: color-mix(in srgb, var(--bg) 70%, transparent); + backdrop-filter: blur(8px); + border-bottom: 1px solid var(--border-soft); +} + +.kit-card.kit-card { + background: color-mix(in srgb, var(--surface) 86%, transparent); + backdrop-filter: blur(6px); + border-top: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); +} + +.kit-page-head.kit-page-head { + background: url(images/compass.svg) right center / 64px no-repeat; + padding-right: calc(64px + var(--space-5)); +} + +.kit-page-kicker.kit-page-kicker { + color: var(--accent); + letter-spacing: 0.18em; +} diff --git a/theme-harbor-lights/harbor-night.css b/theme-harbor-lights/harbor-night.css new file mode 100644 index 0000000..6047938 --- /dev/null +++ b/theme-harbor-lights/harbor-night.css @@ -0,0 +1,42 @@ +/* Harbor Night: lamplight over a dark harbour. The picture sits behind the page, darkened toward the bottom so text + on it stays readable; cards are frosted panes with a lamp-coloured edge. */ + +.phosphor-shell { + background: + linear-gradient(color-mix(in srgb, var(--bg) 35%, transparent), color-mix(in srgb, var(--bg) 82%, transparent)), + url(images/harbor-night.svg) center bottom / cover no-repeat fixed, + var(--bg); +} + +.phosphor-rail, +.phosphor-sidebar, +.phosphor-pagebar { + background: color-mix(in srgb, var(--rail-bg) 86%, transparent); + backdrop-filter: blur(8px); +} + +.phosphor-topbar { + background: color-mix(in srgb, var(--bg) 70%, transparent); + backdrop-filter: blur(8px); + border-bottom: 1px solid var(--border-soft); +} + +.kit-card.kit-card { + background: color-mix(in srgb, var(--surface) 86%, transparent); + backdrop-filter: blur(6px); + border-top: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); +} + +.kit-page-head.kit-page-head { + background: url(images/compass.svg) right center / 64px no-repeat; + padding-right: calc(64px + var(--space-5)); +} + +.kit-page-kicker.kit-page-kicker { + color: var(--accent-2); + letter-spacing: 0.18em; +} + +.kit-page-title.kit-page-title { + text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent); +} diff --git a/theme-harbor-lights/images/compass.svg b/theme-harbor-lights/images/compass.svg new file mode 100644 index 0000000..3428e86 --- /dev/null +++ b/theme-harbor-lights/images/compass.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/theme-harbor-lights/images/harbor-morning.svg b/theme-harbor-lights/images/harbor-morning.svg new file mode 100644 index 0000000..6d131d9 --- /dev/null +++ b/theme-harbor-lights/images/harbor-morning.svg @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme-harbor-lights/images/harbor-night.svg b/theme-harbor-lights/images/harbor-night.svg new file mode 100644 index 0000000..c18eb7c --- /dev/null +++ b/theme-harbor-lights/images/harbor-night.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/theme-harbor-lights/package.yaml b/theme-harbor-lights/package.yaml new file mode 100644 index 0000000..bdfb211 --- /dev/null +++ b/theme-harbor-lights/package.yaml @@ -0,0 +1,86 @@ +format: "1.22" +package: theme-harbor-lights +title: Harbor Lights +version: 1.0.0 +kind: theme +authors: [SharpMUSH] +description: "Two portal themes for a seaside game: Harbor Night, lamplight over a dark harbour under a lighthouse, and Harbor Morning, the same harbour at first light." +license: MIT +homepage: https://github.com/SharpMUSH/SharpMUSH.Packages +keywords: [theme, portal, harbor, sea, nautical] +category: Themes +requires_server: ">=1.2" +verified_server: "1.2" + +# A theme package ships portal themes only. Each theme is the colours and style choices the Themes editor saves, +# a stylesheet, and the pictures that stylesheet names by their path in this folder. Installing it adds both themes +# to every character's theme menu; a new version replaces them, and uninstalling removes them. +themes: + - id: harbor-night + name: Harbor Night + dark: true + tokens: + bg: "#0b1622" + surface: "#11202f" + surface-2: "#172a3c" + surface-3: "#0e1c2a" + rail-bg: "#07101a" + text: "#e8eef3" + text-dim: "#a9bccb" + text-faint: "#8ea3b4" + border: "#27425b" + border-soft: "#1b3145" + accent: "#ffc56b" + warn: "#ff9f6b" + link-missing: "#ff8f8f" + accent-2: "#5fb7c9" + accent-3: "#f2d79b" + font-display: marcellus + font-body: ui + corners: soft + texture: none + ornament: rule + frame: lifted + titles: normal + imagery: dusk + atmosphere: beacon + motion: calm + mode: custom + stylesheet: harbor-night.css + images: + - images/harbor-night.svg + - images/compass.svg + - id: harbor-morning + name: Harbor Morning + dark: false + tokens: + bg: "#f4f1ea" + surface: "#ffffff" + surface-2: "#edf1f2" + surface-3: "#e8eef0" + rail-bg: "#dce5e8" + text: "#14212c" + text-dim: "#3a4d5c" + text-faint: "#526474" + border: "#c6d2d8" + border-soft: "#dbe3e7" + accent: "#0a6175" + warn: "#8a4b00" + link-missing: "#b3261e" + accent-2: "#e39b4f" + accent-3: "#6aa3b0" + font-display: marcellus + font-body: ui + corners: soft + texture: none + ornament: rule + frame: lifted + titles: normal + imagery: airy + atmosphere: none + motion: calm + mode: custom + stylesheet: harbor-morning.css + images: + - images/harbor-morning.svg + - images/compass.svg