Skip to content

SMHI Dark (Ten day forecast) by aruncveli

Imported and mirrored from https://github.com/aruncveli/userstyles/raw/main/smhi/smhi.user.styl

Screenshot of SMHI Dark (Ten day forecast)

Details

Authoraruncveli

LicenseMIT

Categorysmhi.se

Created

Updated

Size4.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Dark theme for SMHI's ten day forecast page

Notes

SMHI is the Swedish government agency for weather forecasts.

Source code

/* ==UserStyle==
@name           SMHI Dark (Ten day forecast)
@namespace      github.com/aruncveli/userstyles
@version        24.11.23
@description    Dark theme for SMHI's ten day forecast page
@author         Arun Chandanaveli <aruncveli@gmail.com> (https://github.com/aruncveli)
@homepageURL    https://github.com/aruncveli/userstyles
@supportURL     https://github.com/aruncveli/userstyles/issues
@license        MIT
@preprocessor   stylus
@var	color	fg	        "Foreground"	            white
@var  color fg5         "Foreground darkened 5"   #aaaaaa
@var	color	bg	        "Background"	            black
@var	color	bg1	        "Background lightened 1"	#111111
@var	color	bg2	        "Background lightened 2"	#222222
==/UserStyle== */

set-bg(var = bg)
  background var

set-bg1()
  set-bg(bg1)

set-bg2()
  set-bg(bg2)

set-fg()
  color fg

@-moz-document url-prefix("https://www.smhi.se/en/weather/forecasts/ten-day-forecast/")
  :root
    color-scheme dark

  a:hover
  ._expandedData_330y8_57
  ._labelDate_et9mg_152
  ._forecastIssued_1tq7k_1
    set-fg()

  .nextgen
    set-fg()
    &
    #headcontent
      set-bg()
      border-bottom-color bg
    .smhialternating
      set-bg()
    .breadcrumbs ul a
      color #0c6bc4

  #mainLogo
  ._legendSwatch_et9mg_264 img
    filter invert(1)

  a._warningTextContainer_2n9on_1._warningTextContainer_2n9on_1
    span
    svg
      set-fg()

  #top-menu .nav-drop
    &:hover
      set-bg()
    &.active-page
      &
      &:hover
        set-bg()

  #leftmenu.leftnav-nextgen
    set-bg()
    a
      set-fg()
    .next-nav-main li
      border-bottom-color bg
      &:first-of-type
      li:first-of-type
        border-top-color bg
    .overview-link
    .navigation-heading-wrapper
      set-bg()
      &:hover
        set-bg1()
      .expand-button-symbol svg
        fill fg
    .active-page.active-page
      set-bg1()
      a
        set-fg()
    .active-page-leaf a:hover
      set-bg1()
    .leaf .leaf
      set-bg()
      set-fg()

  // search and select location
  ._autocomplete_1sluo_126
    set-bg()
    &:hover
    &:focus-within
      set-bg1()
  ._eosMenuItem_13wan_1
    set-bg1()
    set-fg()
    &:hover
      set-bg2()
    &:active
    &._active_13wan_13
      set-bg1()
    ._text_13wan_31 ._typeText_13wan_35
      color fg5
  ._list_1sluo_219 ._favoritesHeader_1sluo_222
    set-bg1()
    set-fg()

  ._card_1en0v_1 // day
    set-bg()
    set-fg()
    &._largeCard_1en0v_200 ._cardContent_1en0v_140 ._block_1en0v_153 ._valueCol_1en0v_161 > :first-child
      set-fg()
    ._windDirection_1en0v_92 img
      filter invert(1)
    &:hover
      set-bg1()

  ._card_330y8_1
    set-fg()
    &._largeCard_330y8_200 ._cardContent_330y8_140 ._block_330y8_153
      ._valueCol_330y8_161>*:first-child
        set-fg()
      &._dayCell_330y8_1
        border-right-color bg
        &:hover
          border-right-color bg1

  ._windDirection_1cjv5_1 img
    filter invert(1)

  .aurora-root-module_root__QHlfl
    --color10 #022440
    --colorCloud100 fg
    --colorCloud70 fg
    --colorCloud10 bg1
    --colorSky10 bg1
    --colorZenith bg
    --hoverFillColor bg1
    --selectedHoverFillColor bg1
    --activeFillColor bg1
    --selectedActiveFillColor bg1
    --colorNadir fg
    --borderColor bg
    --borderColorSecondary bg

  .tab-module_tab__dWFgU:hover:not(:disabled):not(.tab-module_selected__x8WYO)
  .SimpleSelect-module_select__VWv7m .SimpleSelect-module_toggleButton__XNSud:hover:not([disabled]):not(.SimpleSelect-module_disabled__LDaMe)
    set-bg1()

  ._placeContainer_114oc_2
  ._forecastContainer_om9tb_1
    ._markerContent_om9tb_18 ._markerLabel_om9tb_30
      text-shadow none
      color bg

  // Charts
  .highcharts-
    &background
      fill bg
    &root image[width="16"]
      filter invert(1)


  ._label_
    &y73h5
    &et9mg
      &_127
        set-fg()
  ._gale_
    &et9mg_200
    &y73h5_187
      set-fg()
  ._temperatureAxisTitle_
    &y73h5_198
    &et9mg_211
      &::before
        set-fg()
  ._windAxisTitle_
    &y73h5_213
    &et9mg_226
      &::before
        set-fg()
  ._precipitationAxisTitle_
    &y73h5_206
    &et9mg_219
      &::before
        set-fg()
  ._tooltip_et9mg_234
    span
      set-bg()
      color fg !important

  .tabs-module_tabs__4BiXZ .tabs-module_tabsHeader__g7zIj .tabs-module_tabsWrapper__tN17g:not(.tabs-module_noBottomBorder__CBn3H):before
  ._tableContainer_u7j8u_140 table tr
    border-bottom-color bg

  .button-module_button__V-oN8.button-module_buttonSecondary__csP-q
  .card-module_card__CJdzk .card-module_cardWrapper__iNImr
  .badge-module_badge__FqSIG.badge-module_badgeInformative__cL3rv
    border-color bg

Reviews

No reviews yet.