fix: Fixed including zen design tokens from the dist output, b=no-bug, c=no-component

This commit is contained in:
mr. m
2026-01-12 22:41:04 +01:00
parent bc24c2b11d
commit 902651a196
3 changed files with 15 additions and 1 deletions

2
.gitignore vendored
View File

@@ -22,3 +22,5 @@ target/
.vscode/
locales/firefox-l10n/
!src/toolkit/themes/shared/design-system/dist/

View File

@@ -6,7 +6,6 @@
# Styles used all over the browser
<linkset>
<link rel="stylesheet" type="text/css" href="chrome://browser/content/zen-styles/zen-theme.css" />
<link rel="stylesheet" type="text/css" href="chrome://browser/content/zen-styles/zen-animations.css" />
<link rel="stylesheet" type="text/css" href="chrome://browser/content/zen-styles/zen-sidebar.css" />
<link rel="stylesheet" type="text/css" href="chrome://browser/content/zen-styles/zen-buttons.css" />

View File

@@ -0,0 +1,13 @@
diff --git a/toolkit/themes/shared/design-system/dist/tokens-shared.css b/toolkit/themes/shared/design-system/dist/tokens-shared.css
index 8ab12bd5ede2ab7aded356cd9dd94b0fecf34520..bddee8387dcf217109b227539b92cbe87014fd02 100644
--- a/toolkit/themes/shared/design-system/dist/tokens-shared.css
+++ b/toolkit/themes/shared/design-system/dist/tokens-shared.css
@@ -5,6 +5,8 @@
/* DO NOT EDIT this file directly, instead modify design-tokens.json
* and run `npm run build` to see your changes. */
+@import url("chrome://browser/content/zen-styles/zen-theme.css");
+
@layer tokens-foundation, tokens-prefers-contrast, tokens-forced-colors;
@layer tokens-foundation {