feat(palette): call the China palette's light and dark modes day and night shift

This commit is contained in:
Zakk committed 2026-09-29 21:40:47 +10:00
1 parent 896a1065b6
commit caec3de011
6 files changed
+18 -6

No files matched your search

+3 -1
View File
@@ -1183,8 +1183,10 @@
"palette.nordVariants": "Snow Storm / Polar Night",
"palette.qiangguo": "China",
"palette.qiangguoBad": "Severe test",
"palette.qiangguoDark": "Night shift",
"palette.qiangguoGood": "Improving",
"palette.qiangguoModes": "Clock-in / All-nighter",
"palette.qiangguoLight": "Day shift",
"palette.qiangguoModes": "Day shift / Night shift",
"palette.rosePine": "Rosé Pine",
"palette.semi": "Semi Design",
"policy.actionFailed": "Could not complete the action on {name}: {error}",
+3 -1
View File
@@ -1012,8 +1012,10 @@
"palette.nordVariants": "Snow Storm / Polar Night",
"palette.qiangguo": "中国",
"palette.qiangguoBad": "严峻挑战",
"palette.qiangguoDark": "夜班",
"palette.qiangguoGood": "稳中向好",
"palette.qiangguoModes": "打卡版/通宵版",
"palette.qiangguoLight": "白班",
"palette.qiangguoModes": "白班/夜班",
"palette.rosePine": "Rosé Pine",
"palette.semi": "Semi Design",
"policy.actionFailed": "无法完成 {name} 的操作:{error}",
+3 -1
View File
@@ -1012,8 +1012,10 @@
"palette.nordVariants": "Snow Storm / Polar Night",
"palette.qiangguo": "中國",
"palette.qiangguoBad": "嚴峻挑戰",
"palette.qiangguoDark": "夜班",
"palette.qiangguoGood": "穩中向好",
"palette.qiangguoModes": "打卡版/通宵版",
"palette.qiangguoLight": "白班",
"palette.qiangguoModes": "白班/夜班",
"palette.rosePine": "Rosé Pine",
"palette.semi": "Semi Design",
"policy.actionFailed": "無法完成 {name} 的操作:{error}",
+4
View File
@@ -21,6 +21,10 @@ it('reads the China palette words for its statuses and the catalogue words under
expect(render('zh-TW', 'qiangguo/qiangguo', 'act.good')).toBe(translate('zh-TW', 'palette.qiangguoGood'));
expect(render('zh-CN', 'qiangguo/qiangguo', 'lifecycle.degraded')).toBe(translate('zh-CN', 'palette.qiangguoBad'));
expect(render('en', 'qiangguo/qiangguo', 'lifecycle.failed')).toBe('Failed');
expect(render('en', 'qiangguo/qiangguo', 'theme.light')).toBe('Day shift');
expect(render('en', 'qiangguo/qiangguo', 'theme.dark')).toBe('Night shift');
expect(render('zh-TW', 'qiangguo/qiangguo', 'theme.dark')).toBe(translate('zh-TW', 'palette.qiangguoDark'));
expect(render('en', DEFAULT_PALETTE, 'theme.light')).toBe('Light');
expect(render('en', DEFAULT_PALETTE, 'lifecycle.running')).toBe('Running');
expect(render('en', DEFAULT_PALETTE, 'act.unavailable')).toBe('Unavailable');
expect(render('zh-TW', DEFAULT_PALETTE, 'act.good')).toBe(translate('zh-TW', 'act.good'));
+3 -1
View File
@@ -27,7 +27,9 @@ export const palettes = [
'act.good': 'palette.qiangguoGood',
'lifecycle.running': 'palette.qiangguoGood',
'act.unavailable': 'palette.qiangguoBad',
'lifecycle.degraded': 'palette.qiangguoBad'
'lifecycle.degraded': 'palette.qiangguoBad',
'theme.light': 'palette.qiangguoLight',
'theme.dark': 'palette.qiangguoDark'
}
}
] as const satisfies ReadonlyArray<{id: `${string}/${string}`; group: Key; label: Key; desc: Key; words?: Rewording}>;
+2 -2
View File
@@ -1,7 +1,7 @@
/* A parody palette with no upstream, so the official-values rule does not apply.
Clock-in (light) follows a patriotic proxy app: a flag-red hero at the top of the page fading into pale rice paper,
Day shift (light) follows a patriotic proxy app: a flag-red hero at the top of the page fading into pale rice paper,
and white cards with a landmark faint in a corner: the Great Wall, Mount Tai, the Three Gorges or Sun Moon Lake.
All-nighter (dark) is a red and gold poster after midnight, with the same hero at night. */
Night shift (dark) is a red and gold poster after midnight, with the same hero at night. */
:root[data-family='qiangguo'] {
--rp-base: #fffaf6;
--rp-surface: #f8ebe5;