[ui] DomiUi: Rosea's buttons and town search on @domi/ui v1.0.4 (CPAL-1.0, vendored by its own tool into packages/domi-ui), the licence credit at the foot of every screen, the README's copy line and public-domain sources; before-and-after pictures by pnpm look:shots

This commit is contained in:
2026-11-23 00:59:50 +01:00
parent 295e6ba59a
commit 8018268821
79 changed files with 8554 additions and 222 deletions
+4 -27
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { Button } from '@domi/ui';
import { GARDENER_FIELDS, GARDENER_OPTIONS, type Gardener as Look } from '@rosea/schema';
import { untrack } from 'svelte';
import { en } from '../copy/en.js';
@@ -53,8 +54,8 @@
</fieldset>
{/each}
<div class="actions">
<button type="submit" class="primary">{en.gardener.done}</button>
{#if oncancel}<button type="button" class="quiet" onclick={oncancel}>{en.scene.close}</button>{/if}
<Button type="submit" variant="primary">{en.gardener.done}</Button>
{#if oncancel}<Button variant="quiet" onclick={oncancel}>{en.scene.close}</Button>{/if}
</div>
</form>
</section>
@@ -145,33 +146,9 @@
.actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-3);
}
button {
font: inherit;
padding: var(--space-2) var(--space-4);
border-radius: 999px;
border: 1px solid var(--rose);
background: var(--paper);
color: var(--ink);
cursor: pointer;
}
.primary {
background: var(--rose);
color: var(--paper);
}
.quiet {
border: none;
text-decoration: underline;
color: var(--rose);
}
button:focus-visible {
outline: 2px solid var(--rose);
outline-offset: 2px;
}
</style>