Skip to content

Commit c6662e3

Browse files
committed
✨ New token for tabs
1 parent 24fc129 commit c6662e3

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

config/theme.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ color/accent/primary/deemphasized:
3131
Dark: 'rgba(0, 202, 219, 0.08)'
3232
HCM: '{HCM Theme$SelectedItem}'
3333

34+
### Tabs
3435
# BACKGROUND
3536
tab/background/color:
3637
Light: '{Theme$button/background/color/ghost}'
@@ -44,7 +45,10 @@ tab/background/color/active:
4445
Light: '{Colors$color/white}'
4546
Dark: '#52525E'
4647
HCM: '{HCM Theme$ButtonFace}'
47-
48+
tab/background/color/pinned:
49+
Light: '{Theme$button/background/color}'
50+
Dark: '{Theme$button/background/color}'
51+
HCM: 'transparent'
4852
# BORDER
4953
tab/border/color:
5054
Light: 'transparent'
@@ -58,7 +62,6 @@ tab/border/color/active:
5862
Light: 'transparent'
5963
Dark: 'transparent'
6064
HCM: '{HCM Theme$SelectedItem}'
61-
6265
# TEXT
6366
tab/text/color:
6467
Light: '{Theme$text/color}'

dist/mozilla/central-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function replaceTextColor(tokens) {
7070
return Config.centralCurrentColorAlias;
7171
}
7272
if (colorMixTf.isColorMix(value)) {
73-
if ((mode === 'Light' || mode === 'Dark')) {
73+
if (mode === 'Light' || mode === 'Dark') {
7474
return colorMixTf.replaceColorMix(mode, value);
7575
}
7676
throw new Error(`When trying to replace color mix: Color mix '${value}' is not supported in mode '${mode}'`);

src/mozilla/central-import.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { customParse, Color, formatHex8 } from '../color.js'
22
import Config from '../Config.js'
33
import { THEME_MAP } from '../imports.js'
44
import { extractVdReference } from '../vd.js'
5-
import util from 'node:util'
65

76
type RawPrimitiveValue = string | number | boolean
87
type RawThemeValue =

0 commit comments

Comments
 (0)