Download frontend/src/components/landing/base.css from tamgaa/app: direct link, hf CLI and curl.
- Browser
- Download file 6.56 kB
-
https://huggingface.co/spaces/tamgaa/app/resolve/main/frontend/src/components/landing/base.css
- Command line
-
hf download hf://spaces/tamgaa/app/frontend/src/components/landing/base.css
-
curl -L -o base.css https://huggingface.co/spaces/tamgaa/app/resolve/main/frontend/src/components/landing/base.css
6.56 kB
| /* ============================================================ | |
| Tamga studio landing β foundation (SHARED CONTRACT) | |
| Scope: everything lives under .studio-lp so the app UI keeps Geist. | |
| Palette: ink #051A24 Β· secondary #0D212C Β· muted #273C46 | |
| light-on-dark #F6FCFF / #E0EBF0 Β· background white. | |
| ============================================================ */ | |
| /* ---------- Fonts ---------- */ | |
| /* NOTE (license): PP Neue Montreal is a commercial Pangram Pangram font and is | |
| NOT in the repo. Drop the licensed files into | |
| frontend/public/PPNeueMontreal-Book.woff2 and | |
| frontend/public/PPNeueMontreal-Medium.woff2 β until then the body gracefully | |
| falls back to the system sans stack. No third-party hotlinking. */ | |
| @font-face { | |
| font-family: "PP Neue Montreal"; | |
| src: url("/PPNeueMontreal-Book.woff2") format("woff2"); | |
| font-weight: 400; | |
| font-style: normal; | |
| font-display: swap; | |
| } | |
| @font-face { | |
| font-family: "PP Neue Montreal"; | |
| src: url("/PPNeueMontreal-Medium.woff2") format("woff2"); | |
| font-weight: 500; | |
| font-style: normal; | |
| font-display: swap; | |
| } | |
| /* NOTE (license): PPMondwest-Regular.woff2 is NOT in the repo yet. | |
| Drop the licensed file into frontend/public/PPMondwest-Regular.woff2 β | |
| until then the serif stack gracefully falls back to | |
| "Playfair Display Variable" / Georgia / serif. */ | |
| @font-face { | |
| font-family: "PP Mondwest"; | |
| src: url("/PPMondwest-Regular.woff2") format("woff2"); | |
| font-weight: 400; | |
| font-style: normal; | |
| font-display: swap; | |
| } | |
| /* ---------- Root ---------- */ | |
| .studio-lp { | |
| background: #ffffff; | |
| color: #051a24; | |
| /* Geist Variable (already self-hosted by the app) carries the type until the | |
| licensed PP Neue Montreal is dropped in β a designed sans, never Segoe UI. */ | |
| font-family: "PP Neue Montreal", "Geist Variable", -apple-system, | |
| BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; | |
| font-weight: 400; | |
| line-height: 1.5; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| /* Marketing UI text is not a document β don't let it read as selectable/removable. */ | |
| -webkit-user-select: none; | |
| user-select: none; | |
| } | |
| .studio-lp input, | |
| .studio-lp textarea, | |
| .studio-lp [contenteditable="true"] { | |
| -webkit-user-select: text; | |
| user-select: text; | |
| } | |
| .studio-lp * { | |
| box-sizing: border-box; | |
| } | |
| .studio-lp img { | |
| max-width: 100%; | |
| } | |
| /* Serif accent (PP Mondwest with graceful fallback) */ | |
| .st-serif { | |
| font-family: "PP Mondwest", "Playfair Display Variable", Georgia, serif; | |
| font-weight: 400; | |
| } | |
| /* Monospace accent (hero tagline etc.) */ | |
| .st-mono { | |
| font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, | |
| "Liberation Mono", monospace; | |
| } | |
| /* ---------- Accessibility: skip-link + focus rings ---------- */ | |
| .st-skip-link { | |
| position: absolute; | |
| left: -9999px; | |
| top: 0; | |
| z-index: 100; | |
| background: #051a24; | |
| color: #f6fcff; | |
| padding: 10px 20px; | |
| border-radius: 0 0 12px 0; | |
| font-size: 14px; | |
| text-decoration: none; | |
| } | |
| .st-skip-link:focus { | |
| left: 0; | |
| } | |
| .studio-lp a:focus-visible, | |
| .studio-lp button:focus-visible, | |
| .st-skip-link:focus-visible { | |
| outline: 2px solid #051a24; | |
| outline-offset: 2px; | |
| } | |
| /* Focus ring must stay visible on dark surfaces */ | |
| .studio-lp .st-btn--primary:focus-visible { | |
| outline: 2px solid #051a24; | |
| outline-offset: 3px; | |
| } | |
| /* ---------- Buttons (spec shadows verbatim) ---------- */ | |
| .st-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| padding: 12px 28px; | |
| border: none; | |
| border-radius: 9999px; | |
| font-family: inherit; | |
| font-size: 14px; | |
| font-weight: 500; | |
| line-height: 1.2; | |
| letter-spacing: 0.01em; | |
| cursor: pointer; | |
| text-decoration: none; | |
| white-space: nowrap; | |
| transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; | |
| } | |
| .st-btn--primary { | |
| background: #051a24; | |
| color: #f6fcff; | |
| box-shadow: | |
| 0 1px 2px 0 rgba(5, 26, 36, 0.1), | |
| 0 4px 4px 0 rgba(5, 26, 36, 0.09), | |
| 0 9px 6px 0 rgba(5, 26, 36, 0.05), | |
| 0 17px 7px 0 rgba(5, 26, 36, 0.01), | |
| 0 26px 7px 0 rgba(5, 26, 36, 0), | |
| inset 0 2px 8px 0 rgba(255, 255, 255, 0.5); | |
| } | |
| .st-btn--primary:hover { | |
| transform: translateY(-1px); | |
| } | |
| .st-btn--secondary { | |
| background: #ffffff; | |
| color: #051a24; | |
| box-shadow: | |
| 0 0 0 0.5px rgba(0, 0, 0, 0.05), | |
| 0 4px 30px rgba(0, 0, 0, 0.08); | |
| } | |
| .st-btn--secondary:hover { | |
| transform: translateY(-1px); | |
| } | |
| /* Tertiary: white bg + combined (primary layers + secondary) shadow */ | |
| .st-btn--tertiary { | |
| background: #ffffff; | |
| color: #051a24; | |
| box-shadow: | |
| 0 0 0 0.5px rgba(0, 0, 0, 0.05), | |
| 0 4px 30px rgba(0, 0, 0, 0.08), | |
| 0 1px 2px 0 rgba(5, 26, 36, 0.1), | |
| 0 4px 4px 0 rgba(5, 26, 36, 0.09), | |
| 0 9px 6px 0 rgba(5, 26, 36, 0.05), | |
| 0 17px 7px 0 rgba(5, 26, 36, 0.01), | |
| 0 26px 7px 0 rgba(5, 26, 36, 0), | |
| inset 0 2px 8px 0 rgba(255, 255, 255, 0.5); | |
| } | |
| .st-btn--tertiary:hover { | |
| transform: translateY(-1px); | |
| } | |
| .st-btn:active { | |
| transform: translateY(0); | |
| } | |
| /* ---------- Scroll-reveal (useInViewAnimation consumers) ---------- */ | |
| .st-hidden { | |
| opacity: 0; | |
| } | |
| @keyframes st-fade-in-up { | |
| 0% { | |
| opacity: 0; | |
| transform: translateY(30px); | |
| } | |
| 100% { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .st-fade-up { | |
| animation: st-fade-in-up 0.8s ease-out forwards; | |
| opacity: 0; | |
| } | |
| /* ---------- Marquee (translateX 0 -> -50%; 10s mobile / 30s desktop) ---------- */ | |
| @keyframes st-marquee { | |
| from { | |
| transform: translateX(0); | |
| } | |
| to { | |
| transform: translateX(-50%); | |
| } | |
| } | |
| .st-marquee { | |
| overflow: hidden; | |
| width: 100%; | |
| } | |
| .st-marquee__track { | |
| display: flex; | |
| width: max-content; | |
| animation: st-marquee 10s linear infinite; | |
| will-change: transform; | |
| } | |
| @media (min-width: 768px) { | |
| .st-marquee__track { | |
| animation-duration: 30s; | |
| } | |
| } | |
| /* ---------- Reduced motion: kill ALL landing animation ---------- */ | |
| @media (prefers-reduced-motion: reduce) { | |
| .studio-lp *, | |
| .studio-lp *::before, | |
| .studio-lp *::after { | |
| animation-duration: 0.01ms ; | |
| animation-iteration-count: 1 ; | |
| transition-duration: 0.01ms ; | |
| scroll-behavior: auto ; | |
| } | |
| /* Content revealed by useInViewAnimation must never stay invisible */ | |
| .studio-lp .st-hidden { | |
| opacity: 1; | |
| } | |
| .studio-lp .st-fade-up { | |
| animation: none ; | |
| opacity: 1; | |
| transform: none; | |
| } | |
| .studio-lp .st-marquee__track { | |
| animation: none ; | |
| transform: none; | |
| } | |
| .studio-lp .st-btn:hover, | |
| .studio-lp .st-btn:active { | |
| transform: none; | |
| } | |
| } | |