Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1459932

    Something that also passed me by without a trace – you can change the background color using accent-color
    It has always bothered me that you have to accept this bright blue color.

    input[type=checkbox] {
      accent-color: red;
    }
    
    input[type=radio] {
      accent-color: green;
    }

    besides that – you can influence range (f.e.: for Audio-Volume) or progress (f.e.: for download-process)

    input[type=range] {
      accent-color: blue;
    }
    
    progress {
      accent-color: aquamarine;
    }

    _______________________
    Allowed values

    • auto: The color setting of color is adopted
    • transparent
    • currentColor
    • #900 any Color specification

    and : Inheritance controlling values

    • inherit,
    • initial,
    • unset
    • revert
    #1459966

    Hey,

    Thanks for sharing @guenni007 :-)

    Best regards,
    Rikard

    #1464475

    by the way – in this css about browser preset colors the scrollbar could influenced too:
    for example for body

    
    selector {
       scrollbar-color: #7bb0e7 #ddd;
    }

    but it has no good browser support ( f.e. Safari) https://caniuse.com/?search=scrollbar-color

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.