Implement Web Assets' theme system and selection, and add 'light' theme #118

Merged
Márton Lente merged 97 commits from martonlente/extensions-website:ui/theme-light into main 2024-05-08 14:20:07 +02:00
6 changed files with 9 additions and 3 deletions

View File

@ -27,7 +27,7 @@
.hero-overlay .hero-overlay
background-color: transparent background-color: transparent
background-image: linear-gradient(0deg, var(--color-bg), hsla(213, 10%, 14%, 0)) background-image: linear-gradient(0deg, hsl(213, 10%, 12%), hsla(213, 10%, 14%, 0)) // --color-bg theme dark
&.extension-review &.extension-review
--hero-min-height: 21.0rem --hero-min-height: 21.0rem

View File

@ -6,6 +6,8 @@
--hero-max-height: 0 --hero-max-height: 0
--hero-min-height: 24.0rem --hero-min-height: 24.0rem
background: transparent background: transparent
color: var(--color-text)
text-shadow: none
.hero-content .hero-content
margin-top: initial margin-top: initial

View File

@ -12,7 +12,7 @@
.list-filters .list-filters
+box-card +box-card
background-color: var(--color-bg-tertiary) background-color: var(--color-bg-primary)
+padding(3) +padding(3)
h3 h3

View File

@ -9,6 +9,7 @@ $container-width: map-get($container-max-widths, 'xl')
/* Web Assets. */ /* Web Assets. */
@import '../../../../assets_shared/src/styles/main.sass' @import '../../../../assets_shared/src/styles/main.sass'
@import '../../../../assets_shared/src/styles/_theme_system.sass'
/* Extension Platform specific styling. */ /* Extension Platform specific styling. */
@import '_mixins.sass' @import '_mixins.sass'

View File

@ -107,6 +107,9 @@
</ul> </ul>
<ul class="nav-global-links-right"> <ul class="nav-global-links-right">
<li>
<button class="js-toggle-theme-btn px-2"><i class="js-toggle-theme-btn-icon i-adjust"></i></button>
</li>
<li> <li>
<search> <search>
<form action="{% url "extensions:search" %}" method="GET" class="navbar-search"> <form action="{% url "extensions:search" %}" method="GET" class="navbar-search">

View File

@ -1,5 +1,5 @@
\:root \:root
--stars-bg: hsla(213, 40%, 100%, .2) --stars-bg: var(--color-bg-secondary)
--stars-bg-highlight: hsl(42, 86%, 48%) --stars-bg-highlight: hsl(42, 86%, 48%)
--stars-bg-hover: hsl(42, 86%, 54%) --stars-bg-hover: hsl(42, 86%, 54%)