SPB Git

Repository Public

kit3.css 3.8 KB 41 lines css

1/*2 * SP CLIP scene kit 3 — compléments de style : thème du projet (mémoire visuelle), monde de la caméra, équations, canvas.3 * Chargé après kit.css ; n'affecte que les scènes v3 (les variables --t-* sont posées par kit3.js à partir de window.__SCENE.theme).4 */5:root { --p: var(--teal); --p-hi: var(--teal-hi); --p-lo: var(--teal-lo); --s: var(--violet); --s-hi: var(--violet-hi); --s-lo: var(--violet-lo);6  --t-ink: #12141a; --t-surface: rgba(255, 255, 255, .06); --t-line: rgba(255, 255, 255, .22); --t-radius: calc(1.6 * var(--u)); --t-stroke: calc(.42 * var(--u)); --t-grain: .42; --mono: ui-monospace, "SF Mono", Menlo, monospace; }7/* décor du projet : une seule ambiance pour toute la vidéo, modulée scène par scène par data-tone */8.scene[data-bg="theme"] { --base-a: var(--t-bg-a, #1d2130); --base-b: var(--t-bg-b, #0b0c0f); --g1: var(--t-glow-1, rgba(232, 194, 122, .2)); --g2: var(--t-glow-2, rgba(86, 122, 184, .24));9  --d1: var(--t-d1, #262b3b); --d2: var(--t-d2, #1b1f2c); --d3: var(--t-d3, #11131b); --dl: var(--t-dl, #f8e6bd); }10.scene[data-bg="theme"]::after { opacity: var(--t-grain); }11.scene[data-bg="theme"][data-tone="deep"] { filter: brightness(.86) saturate(1.05); }12.scene[data-bg="theme"][data-tone="lift"] { filter: brightness(1.1) saturate(1.04); }13.scene[data-bg="theme"][data-tone="warm"]::before { filter: hue-rotate(-18deg) saturate(1.2); }14.scene[data-bg="theme"][data-tone="cool"]::before { filter: hue-rotate(22deg) saturate(1.1); }15.scene[data-bg="flat"] { background: var(--bg); } .scene[data-bg="flat"]::before { display: none; } .scene[data-bg="flat"]::after { opacity: calc(var(--t-grain) * .6); }16/* thème clair (éditorial) : texte sombre, surfaces papier */17.t-light .scene::after { mix-blend-mode: multiply; }18.t-light .sk-card { background: rgba(255, 255, 255, .7); border-color: rgba(0, 0, 0, .08); color: var(--text); }19/* classes de couleur du projet */20.f-p { fill: var(--p); } .f-p-hi { fill: var(--p-hi); } .f-p-lo { fill: var(--p-lo); } .f-s { fill: var(--s); } .f-s-hi { fill: var(--s-hi); } .f-s-lo { fill: var(--s-lo); }21.s-p { stroke: var(--p); } .s-s { stroke: var(--s); } .f-accent { fill: var(--gold); } .s-accent { stroke: var(--gold); } .f-ink { fill: var(--t-ink); } .f-surface { fill: var(--t-surface); } .s-line { stroke: var(--t-line); }22.c-p { color: var(--p); } .c-s { color: var(--s); } .c-accent { color: var(--gold); }23/* monde de la caméra : calques de profondeur plein cadre */24.sk-world { position: absolute; inset: 0; }25.sk-world > [data-depth] { position: absolute; inset: 0; width: 100%; height: 100%; }26.sk-world > svg[data-depth] { display: block; overflow: visible; }27.scene > .sk-world { position: absolute; z-index: 2; }28.scene > .sk-ui { position: absolute; inset: 0; z-index: 22; pointer-events: none; }29/* équations */30.sk-tex { font-size: calc(5.2 * var(--u)); color: var(--text); line-height: 1.2; }31.sk-tex .katex { font-size: 1em; }32.sk-tex .katex-display { margin: 0; }33.sk-tex .hl, .sk-tex .t-hl { color: var(--gold); }34.sk-mono { font-family: var(--mono); font-feature-settings: "tnum"; }35.sk-tnum { font-variant-numeric: tabular-nums; }36/* polices supplémentaires des directions artistiques (toutes sous licence SIL OFL, fichiers dans assets/fonts) */37@font-face { font-family: "Space Grotesk"; font-weight: 300 700; src: url(fonts/SpaceGrotesk-Variable.ttf) format("truetype"); font-display: block; }38@font-face { font-family: "Sora"; font-weight: 100 800; src: url(fonts/Sora-Variable.ttf) format("truetype"); font-display: block; }39@font-face { font-family: "Fraunces"; font-weight: 100 900; src: url(fonts/Fraunces-Variable.ttf) format("truetype"); font-display: block; }40@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; src: url(fonts/JetBrainsMono-Variable.ttf) format("truetype"); font-display: block; }41
Files main
Menu

Theme