Add base conversions and refresh palette theme

This commit is contained in:
Codex
2026-03-07 21:13:37 +00:00
parent 82dd971200
commit 16ca847d55
5 changed files with 144 additions and 9 deletions

View File

@@ -350,9 +350,6 @@ a:hover {
.palette-dot:hover {
transform: translateY(-1px);
}
.palette-dot.active {
order: -1;
}
.palette-dot.active,
.palette-dot:focus-visible {
border-color: var(--accent);
@@ -368,6 +365,9 @@ a:hover {
opacity: 0;
pointer-events: none;
}
.floating-palette-controls:not(:hover):not(:focus-within) .palette-dot.active {
order: -1;
}
.floating-palette-controls:hover .palette-dots,
.floating-palette-controls:focus-within .palette-dots {
max-width: 360px;

View File

@@ -545,6 +545,46 @@ export const calculators: CalculatorDef[] = [
{"slug": "octal-to-binary", "name": "Octal to Binary", "category": "number-systems", "type": "standard", "teaser": "Convert base-8 numbers into binary digits.", "labels": {"in1": "Octal", "in2": "Binary"}, "hidden": true},
{"slug": "octal-to-decimal", "name": "Octal to Decimal", "category": "number-systems", "type": "standard", "teaser": "Convert base-8 digits into decimal values.", "labels": {"in1": "Octal", "in2": "Decimal"}, "hidden": true},
{"slug": "octal-to-hex", "name": "Octal to Hex", "category": "number-systems", "type": "standard", "teaser": "Express octal numbers as hexadecimal.", "labels": {"in1": "Octal", "in2": "Hex"}, "hidden": true},
{"slug": "base-2-to-base-3", "name": "Base 2 to Base 3", "category": "number-systems", "type": "base", "teaser": "Translate binary digits into ternary format for alternate radix comparisons.", "labels": {"in1": "Base 2", "in2": "Base 3"}, "fromBase": 2, "toBase": 3},
{"slug": "base-2-to-base-4", "name": "Base 2 to Base 4", "category": "number-systems", "type": "base", "teaser": "Group binary bits into quaternary digits for compact notation.", "labels": {"in1": "Base 2", "in2": "Base 4"}, "fromBase": 2, "toBase": 4},
{"slug": "base-2-to-base-5", "name": "Base 2 to Base 5", "category": "number-systems", "type": "base", "teaser": "Reframe base-2 quantities as base-5 digits when analyzing quinary systems.", "labels": {"in1": "Base 2", "in2": "Base 5"}, "fromBase": 2, "toBase": 5},
{"slug": "base-2-to-base-6", "name": "Base 2 to Base 6", "category": "number-systems", "type": "base", "teaser": "Express binary numbers as base-6 figures for seximal conversions.", "labels": {"in1": "Base 2", "in2": "Base 6"}, "fromBase": 2, "toBase": 6},
{"slug": "base-2-to-base-7", "name": "Base 2 to Base 7", "category": "number-systems", "type": "base", "teaser": "Compare binary data with septenary digits by converting between the bases.", "labels": {"in1": "Base 2", "in2": "Base 7"}, "fromBase": 2, "toBase": 7},
{"slug": "base-2-to-base-9", "name": "Base 2 to Base 9", "category": "number-systems", "type": "base", "teaser": "Translate binary magnitudes into base-9 representation for cultural numeral work.", "labels": {"in1": "Base 2", "in2": "Base 9"}, "fromBase": 2, "toBase": 9},
{"slug": "base-2-to-base-11", "name": "Base 2 to Base 11", "category": "number-systems", "type": "base", "teaser": "Switch binary values into base-11 to explore undecimal patterns.", "labels": {"in1": "Base 2", "in2": "Base 11"}, "fromBase": 2, "toBase": 11},
{"slug": "base-2-to-base-12", "name": "Base 2 to Base 12", "category": "number-systems", "type": "base", "teaser": "Re-express bits as duodecimal digits for dozenal studies.", "labels": {"in1": "Base 2", "in2": "Base 12"}, "fromBase": 2, "toBase": 12},
{"slug": "base-2-to-base-13", "name": "Base 2 to Base 13", "category": "number-systems", "type": "base", "teaser": "Convert binary into tridecimal digits for creative numeral experiments.", "labels": {"in1": "Base 2", "in2": "Base 13"}, "fromBase": 2, "toBase": 13},
{"slug": "base-2-to-base-14", "name": "Base 2 to Base 14", "category": "number-systems", "type": "base", "teaser": "Translate binary streams into tetradecimal digits for base-14 comparisons.", "labels": {"in1": "Base 2", "in2": "Base 14"}, "fromBase": 2, "toBase": 14},
{"slug": "base-3-to-base-2", "name": "Base 3 to Base 2", "category": "number-systems", "type": "base", "teaser": "Return ternary digits back into binary for systems that rely on base-2 processors.", "labels": {"in1": "Base 3", "in2": "Base 2"}, "fromBase": 3, "toBase": 2, "hidden": true},
{"slug": "base-3-to-base-4", "name": "Base 3 to Base 4", "category": "number-systems", "type": "base", "teaser": "Convert ternary values into quaternary digits for cross-radix conversions.", "labels": {"in1": "Base 3", "in2": "Base 4"}, "fromBase": 3, "toBase": 4},
{"slug": "base-3-to-base-5", "name": "Base 3 to Base 5", "category": "number-systems", "type": "base", "teaser": "Express base-3 magnitude as base-5 digits to bridge different numeral pools.", "labels": {"in1": "Base 3", "in2": "Base 5"}, "fromBase": 3, "toBase": 5},
{"slug": "base-3-to-base-6", "name": "Base 3 to Base 6", "category": "number-systems", "type": "base", "teaser": "Convert ternary numbers into base-6 to align with seximal systems.", "labels": {"in1": "Base 3", "in2": "Base 6"}, "fromBase": 3, "toBase": 6},
{"slug": "base-3-to-base-7", "name": "Base 3 to Base 7", "category": "number-systems", "type": "base", "teaser": "Translate ternary digits into septenary notation for niche radices.", "labels": {"in1": "Base 3", "in2": "Base 7"}, "fromBase": 3, "toBase": 7},
{"slug": "base-3-to-base-8", "name": "Base 3 to Base 8", "category": "number-systems", "type": "base", "teaser": "Encode base-3 values as octal digits for legacy computing contexts.", "labels": {"in1": "Base 3", "in2": "Base 8"}, "fromBase": 3, "toBase": 8},
{"slug": "base-3-to-base-9", "name": "Base 3 to Base 9", "category": "number-systems", "type": "base", "teaser": "Reframe ternary numbers as base-9 digits for nonary comparisons.", "labels": {"in1": "Base 3", "in2": "Base 9"}, "fromBase": 3, "toBase": 9},
{"slug": "base-3-to-base-10", "name": "Base 3 to Base 10", "category": "number-systems", "type": "base", "teaser": "Bring ternary measurements into decimal for common calculations.", "labels": {"in1": "Base 3", "in2": "Base 10"}, "fromBase": 3, "toBase": 10},
{"slug": "base-4-to-base-2", "name": "Base 4 to Base 2", "category": "number-systems", "type": "base", "teaser": "Collapse quaternary digits back into binary bits for digital systems.", "labels": {"in1": "Base 4", "in2": "Base 2"}, "fromBase": 4, "toBase": 2, "hidden": true},
{"slug": "base-4-to-base-3", "name": "Base 4 to Base 3", "category": "number-systems", "type": "base", "teaser": "Convert quaternary values into ternary digits for culture-specific bases.", "labels": {"in1": "Base 4", "in2": "Base 3"}, "fromBase": 4, "toBase": 3, "hidden": true},
{"slug": "base-4-to-base-5", "name": "Base 4 to Base 5", "category": "number-systems", "type": "base", "teaser": "Express base-4 digits as base-5 to compare across radices.", "labels": {"in1": "Base 4", "in2": "Base 5"}, "fromBase": 4, "toBase": 5},
{"slug": "base-4-to-base-7", "name": "Base 4 to Base 7", "category": "number-systems", "type": "base", "teaser": "Translate base-4 magnitudes into septenary notation for space exploration contexts.", "labels": {"in1": "Base 4", "in2": "Base 7"}, "fromBase": 4, "toBase": 7},
{"slug": "base-4-to-base-8", "name": "Base 4 to Base 8", "category": "number-systems", "type": "base", "teaser": "Convert quaternary streams into octal digits for computing artifacts.", "labels": {"in1": "Base 4", "in2": "Base 8"}, "fromBase": 4, "toBase": 8},
{"slug": "base-4-to-base-10", "name": "Base 4 to Base 10", "category": "number-systems", "type": "base", "teaser": "Bring quaternary numbers into decimal across human-friendly radices.", "labels": {"in1": "Base 4", "in2": "Base 10"}, "fromBase": 4, "toBase": 10},
{"slug": "base-5-to-base-2", "name": "Base 5 to Base 2", "category": "number-systems", "type": "base", "teaser": "Decompose quinary digits into binary bits for digital translation.", "labels": {"in1": "Base 5", "in2": "Base 2"}, "fromBase": 5, "toBase": 2, "hidden": true},
{"slug": "base-5-to-base-3", "name": "Base 5 to Base 3", "category": "number-systems", "type": "base", "teaser": "Turn quinary values into ternary digits for alternate radices.", "labels": {"in1": "Base 5", "in2": "Base 3"}, "fromBase": 5, "toBase": 3, "hidden": true},
{"slug": "base-5-to-base-6", "name": "Base 5 to Base 6", "category": "number-systems", "type": "base", "teaser": "Express base-5 data as base-6 digits for seximal comparisons.", "labels": {"in1": "Base 5", "in2": "Base 6"}, "fromBase": 5, "toBase": 6},
{"slug": "base-5-to-base-10", "name": "Base 5 to Base 10", "category": "number-systems", "type": "base", "teaser": "Convert quinary counts into decimals for everyday math.", "labels": {"in1": "Base 5", "in2": "Base 10"}, "fromBase": 5, "toBase": 10},
{"slug": "base-6-to-base-2", "name": "Base 6 to Base 2", "category": "number-systems", "type": "base", "teaser": "Recast sextimal digits into binary for electronics.", "labels": {"in1": "Base 6", "in2": "Base 2"}, "fromBase": 6, "toBase": 2, "hidden": true},
{"slug": "base-6-to-base-5", "name": "Base 6 to Base 5", "category": "number-systems", "type": "base", "teaser": "Translate base-6 magnitudes into quinary digits for cultural math.", "labels": {"in1": "Base 6", "in2": "Base 5"}, "fromBase": 6, "toBase": 5, "hidden": true},
{"slug": "base-6-to-base-10", "name": "Base 6 to Base 10", "category": "number-systems", "type": "base", "teaser": "Express seximal data in decimal for typical calculators.", "labels": {"in1": "Base 6", "in2": "Base 10"}, "fromBase": 6, "toBase": 10},
{"slug": "base-7-to-base-2", "name": "Base 7 to Base 2", "category": "number-systems", "type": "base", "teaser": "Break down septenary digits into binary bits for processors.", "labels": {"in1": "Base 7", "in2": "Base 2"}, "fromBase": 7, "toBase": 2, "hidden": true},
{"slug": "base-7-to-base-5", "name": "Base 7 to Base 5", "category": "number-systems", "type": "base", "teaser": "Convert septenary numbers into base-5 digits for quinary comparisons.", "labels": {"in1": "Base 7", "in2": "Base 5"}, "fromBase": 7, "toBase": 5},
{"slug": "base-7-to-base-8", "name": "Base 7 to Base 8", "category": "number-systems", "type": "base", "teaser": "Re-express base-7 values as octal digits for digital gear.", "labels": {"in1": "Base 7", "in2": "Base 8"}, "fromBase": 7, "toBase": 8},
{"slug": "base-7-to-base-10", "name": "Base 7 to Base 10", "category": "number-systems", "type": "base", "teaser": "Translate septenary magnitudes into decimal for general audiences.", "labels": {"in1": "Base 7", "in2": "Base 10"}, "fromBase": 7, "toBase": 10},
{"slug": "base-8-to-base-3", "name": "Base 8 to Base 3", "category": "number-systems", "type": "base", "teaser": "Turn octal digits into ternary numbers for unique radices.", "labels": {"in1": "Base 8", "in2": "Base 3"}, "fromBase": 8, "toBase": 3, "hidden": true},
{"slug": "base-8-to-base-5", "name": "Base 8 to Base 5", "category": "number-systems", "type": "base", "teaser": "Express octal values as base-5 digits to cross-check radices.", "labels": {"in1": "Base 8", "in2": "Base 5"}, "fromBase": 8, "toBase": 5},
{"slug": "base-8-to-base-7", "name": "Base 8 to Base 7", "category": "number-systems", "type": "base", "teaser": "Convert octal numbers into septenary digits for base-7 models.", "labels": {"in1": "Base 8", "in2": "Base 7"}, "fromBase": 8, "toBase": 7, "hidden": true},
{"slug": "base-8-to-base-9", "name": "Base 8 to Base 9", "category": "number-systems", "type": "base", "teaser": "Translate octal digits into base-9 notation for nonary math.", "labels": {"in1": "Base 8", "in2": "Base 9"}, "fromBase": 8, "toBase": 9},
{"slug": "base-8-to-base-10", "name": "Base 8 to Base 10", "category": "number-systems", "type": "base", "teaser": "Reframe octal quantities in decimal for common use.", "labels": {"in1": "Base 8", "in2": "Base 10"}, "fromBase": 8, "toBase": 10},
{"slug": "watts-to-amps", "name": "Watts to amps", "category": "power", "type": "3col", "labels": {"in1": "Watts", "in2": "amps", "in3": "Volts"}, "hidden": true},
{"slug": "volts-to-amps", "name": "Volts to amps", "category": "electrical", "type": "3col", "labels": {"in1": "Volts", "in2": "amps", "in3": "Result"}, "hidden": true},
{"slug": "volts-to-abvolts", "name": "Volts to Abvolts", "category": "electrical", "type": "standard", "teaser": "Convert SI volts into CGS abvolts.", "labels": {"in1": "Volts", "in2": "Abvolts"}, "factor": 100000000.0},

View File

@@ -225,12 +225,12 @@
'input-bg': '#fff4d8',
'hover-bg': '#ffeec1',
'border': 'rgba(250, 204, 21, 0.25)',
'text': '#2b2509',
'text-muted': '#6d5f2a',
'accent': '#facc15',
'accent-dark': '#b45309',
'accent-glow': 'rgba(250, 204, 21, 0.2)',
'accent-gradient': 'linear-gradient(135deg, #facc15, #f97316)',
'text': '#1f1505',
'text-muted': '#5b4a1e',
'accent': '#fbbf24',
'accent-dark': '#c2410c',
'accent-glow': 'rgba(250, 204, 21, 0.3)',
'accent-gradient': 'linear-gradient(135deg, #fbbf24, #d97706)',
'header-bg': 'rgba(255, 255, 255, 0.98)',
},
dark: {