Files
tiennm99 b719ba0cc8 feat: add GitLab Linguist as a second color source
GitLab maintains its own Linguist fork with materially different colors
(JavaScript orange instead of yellow, Go olive instead of cyan, ...).
Added a segmented GitHub | GitLab toggle next to the view toggle in the
modern panel. Switching reloads the data and re-classifies on the fly.

- data/gitlab-colors.json: 91 entries, 2.9KB, converted from gitlab-org/linguist YAML
- js/main.js: refactored render path into loadAndRender(sourceKey)
- js/render-elements.js: new mountSourceToggle helper (tablist + arrow keys)
- index.html: source-toggle slot, source-tag in h2, updated disclaimer
- style.css: pill-segmented .source-toggle styling
2026-04-27 10:29:32 +07:00

275 lines
2.9 KiB
JSON

{
"ASP":{
"color":"#6a40fd"
},
"ActionScript":{
"color":"#e3491a"
},
"Ada":{
"color":"#02f88c"
},
"Arc":{
"color":"#ca2afe"
},
"Arduino":{
"color":"#bd79d1"
},
"Assembly":{
"color":"#a67219"
},
"AutoHotkey":{
"color":"#6594b9"
},
"Boo":{
"color":"#d4bec1"
},
"C#":{
"color":"#5a25a2"
},
"C++":{
"color":"#f34b7d"
},
"CSS":{
"color":"#1f085e"
},
"Clojure":{
"color":"#db5855"
},
"CoffeeScript":{
"color":"#244776"
},
"ColdFusion":{
"color":"#ed2cd6"
},
"Common Lisp":{
"color":"#3fb68b"
},
"D":{
"color":"#fcd46d"
},
"Dylan":{
"color":"#3ebc27"
},
"Ecl":{
"color":"#8a1267"
},
"Eiffel":{
"color":"#946d57"
},
"Elixir":{
"color":"#6e4a7e"
},
"Emacs Lisp":{
"color":"#c065db"
},
"Erlang":{
"color":"#0faf8d"
},
"F#":{
"color":"#b845fc"
},
"FORTRAN":{
"color":"#4d41b1"
},
"Factor":{
"color":"#636746"
},
"Fancy":{
"color":"#7b9db4"
},
"Fantom":{
"color":"#dbded5"
},
"Forth":{
"color":"#341708"
},
"Go":{
"color":"#a89b4d"
},
"Gosu":{
"color":"#82937f"
},
"Groovy":{
"color":"#e69f56"
},
"Haskell":{
"color":"#29b544"
},
"Haxe":{
"color":"#346d51"
},
"Io":{
"color":"#a9188d"
},
"Ioke":{
"color":"#078193"
},
"Java":{
"color":"#b07219"
},
"JavaScript":{
"color":"#f15501"
},
"LFE":{
"color":"#004200"
},
"Lasso":{
"color":"#2584c3"
},
"LiveScript":{
"color":"#499886"
},
"Lua":{
"color":"#fa1fa1"
},
"Matlab":{
"color":"#bb92ac"
},
"Max":{
"color":"#ce279c"
},
"Mirah":{
"color":"#c7a938"
},
"Nemerle":{
"color":"#0d3c6e"
},
"Nimrod":{
"color":"#37775b"
},
"Nu":{
"color":"#c9df40"
},
"OCaml":{
"color":"#3be133"
},
"Objective-C":{
"color":"#438eff"
},
"Objective-J":{
"color":"#ff0c5a"
},
"Omgrofl":{
"color":"#cabbff"
},
"PHP":{
"color":"#6e03c1"
},
"Parrot":{
"color":"#f3ca0a"
},
"Pascal":{
"color":"#b0ce4e"
},
"Perl":{
"color":"#0298c3"
},
"Pike":{
"color":"#066ab2"
},
"PogoScript":{
"color":"#d80074"
},
"Processing":{
"color":"#2779ab"
},
"Prolog":{
"color":"#74283c"
},
"Puppet":{
"color":"#cc5555"
},
"Pure Data":{
"color":"#91de79"
},
"Python":{
"color":"#3581ba"
},
"R":{
"color":"#198ce7"
},
"Racket":{
"color":"#ae17ff"
},
"Ragel in Ruby Host":{
"color":"#ff9c2e"
},
"Rebol":{
"color":"#358a5b"
},
"Rouge":{
"color":"#cc0088"
},
"Ruby":{
"color":"#701516"
},
"Rust":{
"color":"#dea584"
},
"Scala":{
"color":"#7dd3b0"
},
"Scheme":{
"color":"#1e4aec"
},
"Self":{
"color":"#0579aa"
},
"Shell":{
"color":"#5861ce"
},
"Slash":{
"color":"#007eff"
},
"Smalltalk":{
"color":"#596706"
},
"Standard ML":{
"color":"#dc566d"
},
"SuperCollider":{
"color":"#46390b"
},
"Tcl":{
"color":"#e4cc98"
},
"Turing":{
"color":"#45f715"
},
"TypeScript":{
"color":"#31859c"
},
"Unified Parallel C":{
"color":"#755223"
},
"VHDL":{
"color":"#543978"
},
"Vala":{
"color":"#ee7d06"
},
"Verilog":{
"color":"#848bf3"
},
"VimL":{
"color":"#199c4b"
},
"Visual Basic":{
"color":"#945db7"
},
"Volt":{
"color":"#0098db"
},
"XQuery":{
"color":"#2700e2"
},
"edn":{
"color":"#db5855"
},
"ooc":{
"color":"#b0b77e"
},
"wisp":{
"color":"#7582D1"
}
}