Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Gridfinity Color Schemes</title>
- <style>
- u/import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@400;600&display=swap');
- * { margin: 0; padding: 0; box-sizing: border-box; }
- body {
- background: #111;
- color: #eee;
- font-family: 'IBM Plex Mono', monospace;
- padding: 40px 24px;
- }
- h1 {
- font-family: 'Bebas Neue', sans-serif;
- font-size: 2.8rem;
- letter-spacing: 0.1em;
- color: #fff;
- margin-bottom: 4px;
- }
- .subtitle {
- color: #555;
- font-size: 0.7rem;
- margin-bottom: 8px;
- letter-spacing: 0.05em;
- }
- .legend {
- display: flex;
- gap: 20px;
- margin-bottom: 36px;
- font-size: 0.65rem;
- color: #666;
- flex-wrap: wrap;
- }
- .legend-item { display: flex; align-items: center; gap: 6px; }
- .legend-dot { width: 14px; height: 14px; border-radius: 2px; background: #111; }
- .grid-outer {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: 32px;
- }
- .scheme {
- background: #161616;
- border: 1px solid #222;
- border-radius: 6px;
- padding: 20px;
- }
- .scheme-num {
- font-size: 0.6rem;
- color: #444;
- letter-spacing: 0.15em;
- margin-bottom: 4px;
- }
- .scheme-name {
- font-family: 'Bebas Neue', sans-serif;
- font-size: 1.4rem;
- letter-spacing: 0.06em;
- margin-bottom: 14px;
- }
- .ratio-bar {
- display: flex;
- height: 48px;
- border-radius: 3px;
- overflow: hidden;
- margin-bottom: 12px;
- }
- .ratio-bar .seg {
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 0.6rem;
- font-weight: 600;
- letter-spacing: 0.08em;
- }
- .swatches {
- display: flex;
- gap: 8px;
- margin-bottom: 12px;
- }
- .swatch { display: flex; flex-direction: column; align-items: center; gap: 3px; }
- .swatch-box { width: 40px; height: 40px; border-radius: 3px; }
- .swatch-role { font-size: 0.55rem; color: #777; }
- .drawer {
- background: #0d0d0d;
- border: 1px solid #222;
- border-radius: 4px;
- padding: 8px;
- display: grid;
- grid-template-columns: repeat(10, 1fr);
- grid-template-rows: repeat(3, 22px);
- gap: 2px;
- margin-bottom: 10px;
- }
- .cell {
- border-radius: 2px;
- background: #111;
- border: 1px solid transparent;
- }
- .description {
- font-size: 0.65rem;
- color: #555;
- line-height: 1.6;
- }
- .star { color: #e07800; margin-right: 4px; }
- </style>
- </head>
- <body>
- <h1>GRIDFINITY · 10 SCHEMES</h1>
- <p class="subtitle">black squares · left 2/3 = cat A outline · right 1/3 = cat B outline · missing = pocket color outline</p>
- <div class="legend">
- <div class="legend-item"><div class="legend-dot" style="border:1px solid #e03030"></div>Cat A border (left 2/3)</div>
- <div class="legend-item"><div class="legend-dot" style="border:1px solid #e07800"></div>Cat B border (right 1/3)</div>
- <div class="legend-item"><div class="legend-dot" style="border:1px solid #00c8b0"></div>Missing tool (pocket color)</div>
- </div>
- <div class="grid-outer" id="schemes"></div>
- <script>
- const schemes = [
- {
- num:'01', star:true, name:'PURPLE / TEAL / RED',
- colors: { bin:'#1a1a1a', a:'#8b35cc', b:'#00b8a0', pocket:'#e03030' },
- ratios: [65, 18, 10, 7],
- desc: 'Cool and distinctive. Red missing is an instant alarm — hard to ignore.'
- },
- {
- num:'02', name:'RED / ORANGE / TEAL',
- colors: { bin:'#1a1a1a', a:'#e03030', b:'#e07800', pocket:'#00b8a0' },
- ratios: [65, 18, 10, 7],
- desc: 'Red=metric, orange=SAE, teal shadow screams missing.'
- },
- {
- num:'03', name:'RED / PURPLE / TEAL',
- colors: { bin:'#1a1a1a', a:'#e03030', b:'#8b35cc', pocket:'#00c8b0' },
- ratios: [65, 18, 10, 7],
- desc: 'Purple is rare in workshops. Teal pops hard against both accents.'
- },
- {
- num:'04', name:'CRIMSON / ELECTRIC BLUE / LIME',
- colors: { bin:'#1a1a1a', a:'#c0152a', b:'#1565ff', pocket:'#a0e000' },
- ratios: [65, 18, 10, 7],
- desc: 'High-voltage contrast. Lime missing is almost neon.'
- },
- {
- num:'05', name:'AMBER / VIOLET / CYAN',
- colors: { bin:'#1a1a1a', a:'#e08800', b:'#7020d0', pocket:'#00d4ff' },
- ratios: [65, 18, 10, 7],
- desc: 'Warm/cool split. Cyan missing is ice cold against amber.'
- },
- {
- num:'06', name:'CORAL / TEAL / YELLOW',
- colors: { bin:'#1a1a1a', a:'#e84040', b:'#00a898', pocket:'#f5d000' },
- ratios: [65, 18, 10, 7],
- desc: 'Warm coral vs cool teal. Yellow missing pops like a warning light.'
- },
- {
- num:'07', name:'HOT PINK / COBALT / ORANGE',
- colors: { bin:'#1a1a1a', a:'#e0208a', b:'#1848c8', pocket:'#e07800' },
- ratios: [65, 18, 10, 7],
- desc: 'Loud and unapologetic. Orange missing is instantly obvious.'
- },
- {
- num:'08', name:'GOLD / INDIGO / RED',
- colors: { bin:'#1a1a1a', a:'#c89000', b:'#3828b8', pocket:'#e03030' },
- ratios: [65, 18, 10, 7],
- desc: 'Rich and regal. Red missing reads as urgent.'
- },
- {
- num:'09', name:'LIME / MAGENTA / TEAL',
- colors: { bin:'#1a1a1a', a:'#78cc00', b:'#d020a0', pocket:'#00c8b0' },
- ratios: [65, 18, 10, 7],
- desc: 'Maximum saturation. Not subtle, very findable.'
- },
- {
- num:'10', name:'SKY BLUE / ORANGE / PURPLE',
- colors: { bin:'#1a1a1a', a:'#1890e0', b:'#e06800', pocket:'#9040cc' },
- ratios: [65, 18, 10, 7],
- desc: 'Sky and sunset split. Purple missing has a moody quality.'
- },
- {
- num:'11', name:'VERMILLION / MINT / GOLD',
- colors: { bin:'#1a1a1a', a:'#e03818', b:'#00c880', pocket:'#c89000' },
- ratios: [65, 18, 10, 7],
- desc: 'Warm red-orange vs cool mint. Gold missing is subtle but readable.'
- },
- {
- num:'12', name:'ELECTRIC GREEN / RED / CYAN',
- colors: { bin:'#1a1a1a', a:'#20d840', b:'#d42020', pocket:'#00d4ff' },
- ratios: [65, 18, 10, 7],
- desc: 'Terminal-green energy. Cyan missing feels digital.'
- },
- {
- num:'13b', name:'RUST / ICE BLUE / LIME',
- colors: { bin:'#1a1a1a', a:'#c04820', b:'#60b8e0', pocket:'#a0e000' },
- ratios: [65, 18, 10, 7],
- desc: 'Earthy rust vs cold blue. Lime missing is jarring in the best way.'
- },
- {
- num:'14', name:'DEEP ORANGE / COBALT / MINT',
- colors: { bin:'#1a1a1a', a:'#d45000', b:'#1a50c8', pocket:'#00e0a0' },
- ratios: [65, 18, 10, 7],
- desc: 'Fiery and cold. Mint missing is clean and fresh.'
- },
- {
- num:'15', name:'FUCHSIA / NAVY / GOLD',
- colors: { bin:'#1a1a1a', a:'#c8189a', b:'#1a2880', pocket:'#d4a000' },
- ratios: [65, 18, 10, 7],
- desc: 'Bold fuchsia anchored by deep navy. Gold missing is warm and rich.'
- },
- {
- num:'16', name:'OLIVE / CRIMSON / CYAN',
- colors: { bin:'#1a1a1a', a:'#8a9a00', b:'#c01020', pocket:'#00d0e8' },
- ratios: [65, 18, 10, 7],
- desc: 'Muted olive softened by vivid partners. Cyan missing is striking.'
- },
- {
- num:'17', name:'VIOLET / AMBER / LIME',
- colors: { bin:'#1a1a1a', a:'#6020c0', b:'#d48000', pocket:'#90e000' },
- ratios: [65, 18, 10, 7],
- desc: 'Deep violet meets warm amber. Lime missing is electric.'
- },
- {
- num:'18', name:'SALMON / TEAL / PURPLE',
- colors: { bin:'#1a1a1a', a:'#e06050', b:'#009888', pocket:'#8830c0' },
- ratios: [65, 18, 10, 7],
- desc: 'Soft salmon against cool teal. Purple missing is unexpected and memorable.'
- },
- {
- num:'19', name:'CHARTREUSE / INDIGO / RED',
- colors: { bin:'#1a1a1a', a:'#a0d000', b:'#2828a8', pocket:'#e02828' },
- ratios: [65, 18, 10, 7],
- desc: 'Chartreuse is polarizing and impossible to miss. Red missing urgent.'
- },
- {
- num:'20', name:'ICE BLUE / ORANGE / MAGENTA',
- colors: { bin:'#1a1a1a', a:'#50b8e0', b:'#e07000', pocket:'#d020a0' },
- ratios: [65, 18, 10, 7],
- desc: 'Cool ice vs warm fire. Magenta missing is pure signal.'
- },
- {
- num:'21', name:'FOREST GREEN / GOLD / CORAL',
- colors: { bin:'#1a1a1a', a:'#2a8040', b:'#c89000', pocket:'#e85040' },
- ratios: [65, 18, 10, 7],
- desc: 'Natural palette gone workshop. Coral missing reads warm and urgent.'
- },
- {
- num:'22', name:'STEEL BLUE / VERMILLION / LIME',
- colors: { bin:'#1a1a1a', a:'#3868b0', b:'#d83818', pocket:'#80d800' },
- ratios: [65, 18, 10, 7],
- desc: 'Industrial blue anchored by hot vermillion. Lime missing is vivid.'
- },
- {
- num:'23', name:'ROSE / SLATE / YELLOW',
- colors: { bin:'#1a1a1a', a:'#d03070', b:'#5878a0', pocket:'#e8c800' },
- ratios: [65, 18, 10, 7],
- desc: 'Rose and slate are a rare pairing. Yellow missing cuts through both.'
- },
- {
- num:'24', name:'TANGERINE / VIOLET / TEAL',
- colors: { bin:'#1a1a1a', a:'#e86000', b:'#7030c0', pocket:'#00b8a8' },
- ratios: [65, 18, 10, 7],
- desc: 'Warm tangerine vs cool violet. Teal missing ties it together.'
- },
- ];
- // 10 cols: cols 0-6 = left 2/3 (cat A), cols 7-9 = right 1/3 (cat B)
- // Missing: a few fixed positions
- const MISSING = [[0,3],[1,8],[2,5]];
- function isMissing(r, c) {
- return MISSING.some(([mr,mc]) => mr===r && mc===c);
- }
- const isLight = (hex) => {
- const r=parseInt(hex.slice(1,3),16), g=parseInt(hex.slice(3,5),16), b=parseInt(hex.slice(5,7),16);
- return (r*299+g*587+b*114)/1000 > 150;
- };
- const container = document.getElementById('schemes');
- schemes.forEach(s => {
- const el = document.createElement('div');
- el.className = 'scheme';
- el.innerHTML = `
- <div class="scheme-num">SCHEME ${s.num}${s.star ? ' ★ RECOMMENDED' : ''}</div>
- <div class="scheme-name" style="color:${s.colors.a}">${s.name}</div>
- <div class="ratio-bar">
- <div class="seg" style="flex:${s.ratios[0]};background:${s.colors.bin};color:#444;border:1px solid #2a2a2a">BIN</div>
- <div class="seg" style="flex:${s.ratios[1]};background:${s.colors.a};color:${isLight(s.colors.a)?'#111':'#fff'}">CAT A</div>
- <div class="seg" style="flex:${s.ratios[2]};background:${s.colors.b};color:${isLight(s.colors.b)?'#111':'#fff'}">CAT B</div>
- <div class="seg" style="flex:${s.ratios[3]};background:${s.colors.pocket};color:#111">MISS</div>
- </div>
- <div class="swatches">
- <div class="swatch"><div class="swatch-box" style="background:#111;border:1px solid ${s.colors.a}"></div><div class="swatch-role">Cat A</div></div>
- <div class="swatch"><div class="swatch-box" style="background:#111;border:1px solid ${s.colors.b}"></div><div class="swatch-role">Cat B</div></div>
- <div class="swatch"><div class="swatch-box" style="background:#111;border:1px solid ${s.colors.pocket}"></div><div class="swatch-role">Missing</div></div>
- </div>
- <div class="drawer" id="drawer-${s.num}"></div>
- <div class="description">${s.star?'<span class="star">★</span>':''}${s.desc}</div>
- `;
- container.appendChild(el);
- const drawer = el.querySelector(`#drawer-${s.num}`);
- for(let r=0; r<3; r++) {
- for(let c=0; c<10; c++) {
- const d = document.createElement('div');
- d.className = 'cell';
- if(isMissing(r, c)) {
- d.style.background = s.colors.pocket;
- d.style.borderColor = c <= 6 ? s.colors.a : s.colors.b;
- d.style.boxShadow = `inset 0 0 0 2px rgba(0,0,0,0.4)`;
- } else if(c <= 6) {
- d.style.borderColor = s.colors.a;
- } else {
- d.style.borderColor = s.colors.b;
- }
- drawer.appendChild(d);
- }
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment