Skip Navigation

Is there an official color palette with hex codes for the cosmic desktop?

I ask because I maintain a VS code theme based on Pop OS and I'd like to support the new cosmic theme in addition to the older ones.

https://codeberg.org/ArtisanByteCrafter/VSCodePopTheme

4
4 comments
  • They have the RGB values as decimals in the light.ron and dark.ron files here: https://github.com/pop-os/libcosmic/blob/master/cosmic-theme/src/model/

    You would need to convert the numbers to hexadecimal manually.

    • I wrote a Python script to parse the data and convert into RGB values. Here are the light mode values:

                  blue 00496c
                   red a0252b
                 green 3b6e43
                yellow 966800
          bright_green 00572c
            bright_red 880418
         bright_orange 782c00
         ext_warm_grey 9b8e8a
            ext_orange fab86c
            ext_yellow f6e062
              ext_blue 6acad8
            ext_purple d48cff
              ext_pink ff9bdd
            ext_indigo 95c4fc
           accent_blue 00525a
            accent_red 78292e
          accent_green 185529
      accent_warm_grey 554742
         accent_orange 624000
         accent_yellow 534800
         accent_purple 68217b
           accent_pink 860439
         accent_indigo 2e496c
      

      Here are the dark mode values:

                  blue 94ebeb
                   red ffb5b5
                 green abf6d1
                yellow fff19e
          bright_green 5edb8c
            bright_red ffa090
         bright_orange ffa37d
         ext_warm_grey 9b8e8a
            ext_orange ffad00
            ext_yellow fddb40
              ext_blue 48b9c7
            ext_purple ce7dff
              ext_pink f93983
            ext_indigo 3e88ff
           accent_blue 63d0de
            accent_red fca1a0
          accent_green 92ce9b
      accent_warm_grey cabab4
         accent_orange ffad00
         accent_yellow f6e062
         accent_purple e79bfd
           accent_pink ff9bb1
         accent_indigo a1c0eb
      
    • Perfect, thanks!