Files
HMDesign/src/hm-theme.css
T

84 lines
6.6 KiB
CSS

@import "@hm-design/ui/theme.css";
:root {
/* Existing preview artwork keeps its own fixed colors. Shared controls use Semantic values. */
--hm-green: var(--hm-sem-action-primary);
--hm-green-light: #205241;
--hm-green-deep: #0a221d;
--hm-brown: #3e3523;
--hm-beige: var(--hm-sem-bg-content);
--hm-ink: var(--hm-sem-fg-primary);
--hm-muted: var(--hm-sem-fg-secondary);
--hm-field-border: var(--hm-sem-stroke-input-default);
--hm-danger: var(--hm-sem-action-destructive);
}
html, body, button, input { font-family: var(--hm-font-family-base); }
html { scroll-behavior: smooth; }
body { margin: 0; }
.hm-app { min-width: 320px; }
.hm-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.hm-topbar { background: var(--hm-sem-bg-brand); color: #fff; border-bottom: 1px solid #31594c; padding: 15px 0; }
.hm-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #80b6a3; border-radius: 4px; background: #174b3a; font-size: 16px; font-weight: 800; letter-spacing: -.08em; }
.hm-brand-name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.hm-brand-caption { margin: 2px 0 0; color: #bddfd4; font-size: 11px; }
.hm-topbar-status { display: inline-flex; align-items: center; gap: 7px; color: #c6d8d1; font-size: 12px; white-space: nowrap; }
.hm-topbar-status span { width: 7px; height: 7px; border-radius: 50%; background: #67d6ac; box-shadow: 0 0 0 4px #67d6ac22; }
.hm-breadcrumb { color: #827b70; }
.hm-breadcrumb strong { color: var(--hm-green); font-weight: 600; }
.hm-hero { position: relative; overflow: hidden; min-height: 330px; border: 1px solid #254d40; border-radius: 4px; background: var(--hm-sem-bg-brand); color: #fff; }
.hm-hero::after { content: ""; position: absolute; width: 590px; height: 590px; right: -240px; top: -175px; border: 1px solid #ffffff24; border-radius: 50%; box-shadow: 0 0 0 72px #ffffff09,0 0 0 145px #ffffff06; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #c3e6d7; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.hm-hero h1 { margin: 20px 0 17px; font-size: clamp(32px,4vw,49px); line-height: 1.27; letter-spacing: -.055em; font-weight: 700; }
.hm-hero h1 span { color: #d9eac3; }
.hm-hero-copy { max-width: 600px; margin: 0; color: #d5e4dd; font-size: 14px; line-height: 1.8; word-break: keep-all; }
.hm-hero-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; border-bottom: 1px solid #b6d8c8; padding-bottom: 5px; color: #f7fff9; font-size: 13px; font-weight: 700; text-decoration: none; }
.hm-hero-link:hover { color: #d9eac3; }
.hm-hero-art { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 210px; }
.hm-hero-art-line { position: absolute; width: 195px; height: 195px; border: 1px solid #a6d0bc80; transform: rotate(17deg); }
.hm-hero-art-square { display: grid; place-items: center; width: 152px; height: 152px; border: 1px solid #c3e6d799; border-radius: 8px; background: var(--hm-sem-bg-brand); box-shadow: 16px 21px 0 #001a1255; color: #d8ecda; transform: rotate(-8deg); }
.hm-hero-art-pill { position: absolute; bottom: 15px; right: 2px; display: flex; gap: 7px; border: 1px solid #8ab6a7; border-radius: 30px; background: #174335; padding: 10px 13px; }
.hm-hero-art-pill span { width: 7px; height: 7px; border-radius: 50%; background: #c8e4d5; }
.hm-hero-art-pill span:nth-child(2) { background: #74bd98; }
.hm-hero-art-pill span:nth-child(3) { background: #477b5a; }
.hm-section-kicker { margin: 0 0 6px; color: #6b715f; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hm-section-heading h2 { margin: 0; color: var(--hm-ink); font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.hm-section-heading p:not(.hm-section-kicker) { margin: 7px 0 0; color: var(--hm-muted); font-size: 13px; }
.hm-count { border: 1px solid #d4cfc2; border-radius: 20px; padding: 6px 10px; color: #6e6759; font-size: 11px; white-space: nowrap; }
.hm-panel { gap: 0; --card-spacing: 16px; }
.hm-panel-header { display: grid; grid-template-columns: 34px 1fr; column-gap: 11px; align-items: center; border-bottom: 1px solid #ede9df; padding: 22px 23px 17px; }
.hm-panel-icon { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: #e7f1ec; color: var(--hm-green); }
.hm-panel-header [data-slot="card-title"] { font-size: 15px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.hm-panel-header [data-slot="card-description"] { margin-top: 2px; color: var(--hm-muted); font-size: 11px; }
.hm-panel-content { padding: 23px; }
.hm-control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hm-component-note { margin: 20px 0 0; color: #7b766e; font-size: 11px; line-height: 1.6; }
.hm-swatch-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.hm-swatch { min-width: 0; }
.hm-swatch-color { display: block; height: 65px; border: 1px solid #d5cfc3; border-radius: 4px; }
.hm-swatch-color--dark { border-color: #1e3b31; }
.hm-swatch-name { display: block; margin-top: 8px; color: var(--hm-ink); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.hm-swatch-value { color: #8b857a; font-size: 10px; }
.hm-field { display: grid; gap: 8px; }
.hm-field label { font-size: 12px; font-weight: 600; }
.hm-form-footer { border-top: 1px solid #eee9e0; padding-top: 18px; }
.hm-form-footer p { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--hm-muted); font-size: 11px; }
.hm-form-footer p svg { color: #1a7551; }
.hm-inner-card { border: 1px solid #d8d2c5; border-radius: 4px; background: #faf8f3; padding: 21px; }
.hm-inner-card-label { color: #798f7c; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.hm-inner-card h3 { margin: 13px 0 7px; color: var(--hm-ink); font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.hm-inner-card p { max-width: 340px; margin: 0 0 19px; color: var(--hm-muted); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.hm-dialog-summary { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin: 8px 0 14px; border-top: 1px solid #dedbd2; border-bottom: 1px solid #dedbd2; padding: 16px 0; font-size: 13px; }
.hm-dialog-summary span { color: var(--hm-muted); }
.hm-dialog-summary strong { font-weight: 600; }
.hm-footer { border-top: 1px solid #d7d1c5; padding-top: 19px; color: #7b7468; }
@media (max-width: 700px) {
.hm-container { width: min(100% - 30px,1180px); }
.hm-topbar-status,.hm-hero-art { display: none; }
.hm-hero { min-height: auto; }
.hm-swatch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hm-panel-header,.hm-panel-content { padding-inline: 18px; }
}