Go all-in on CSS custom properties for themes, remove Sass variables

Aperta
#982 2 commenti 3 reazioni 1 assegnatario Vedi su GitHub

@stephaniehobson ci sta già lavorando.

Dal 13/3/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Much of the preliminary work we've done in bedrock for the new Mozilla branding has hinged on custom properties and eschewed Sass variables. And frankly it simplified SO MUCH. It makes theme-switching and color modes much easier to implement without worrying about Sass compile errors or importing things in the right order.

We semi-recently converted Protocol to use custom properties for theming but preserved the Sass variables as fallbacks for older browsers. But looking at support levels and browser usage stats, I've been thinking it's time to embrace the future of CSS and remove those legacy Sass variables (at least for all the theme-level properties; some things can/should remain as Sass variables and mixins).

Lingua principale
SCSS
Stelle
298
Fork
83
Merge medio
8g 2h
PR unite (30g)
5

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/protocol

Tutte le issue di mozilla/protocol

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.