Skip to content

Commit 65a34f5

Browse files
authored
chore: adjust color tokens v0.0.5.1 (AppFlowy-IO#13)
* chore: import json * chore: generate css variables * chore: adjust toast and tooltip
1 parent fd2e663 commit 65a34f5

File tree

7 files changed

+7
-18
lines changed

7 files changed

+7
-18
lines changed

scripts/system-token/semantic.dark.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,6 @@
426426
"$type": "color",
427427
"$value": "{Neutral.800}"
428428
},
429-
"secondary": {
430-
"$type": "color",
431-
"$value": "{Neutral.800}"
432-
},
433429
"overlay": {
434430
"$type": "color",
435431
"$value": "{Neutral.alpha-black-60}"
@@ -1024,7 +1020,7 @@
10241020
"Other_Colors": {
10251021
"text-highlight": {
10261022
"$type": "color",
1027-
"$value": "{Blue.200}"
1023+
"$value": "{Blue.1000}"
10281024
},
10291025
"icon-shared": {
10301026
"$type": "color",

scripts/system-token/semantic.light.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,6 @@
426426
"$type": "color",
427427
"$value": "{Neutral.1000}"
428428
},
429-
"secondary": {
430-
"$type": "color",
431-
"$value": "{Neutral.1000}"
432-
},
433429
"overlay": {
434430
"$type": "color",
435431
"$value": "{Neutral.alpha-black-60}"

src/components/ui/sonner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
1616
visibleToasts={1}
1717
toastOptions={{
1818
className:
19-
'!shadow-toast px-4 py-2 max-w-[360px] w-fit gap-2 bg-surface-secondary border-none text-text-on-fill rounded-400',
19+
'!shadow-toast px-4 py-2 max-w-[360px] w-fit gap-2 bg-surface-inverse border-none text-text-on-fill rounded-400',
2020
classNames: {
2121
actionButton: '!text-text-action font-semibold !px-2 hover:!text-text-action-hover bg-transparent hover:bg-transparent',
2222
},

src/components/ui/tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function TooltipContent ({
4848

4949
// Styling and layout
5050
'shadow-tooltip max-w-[360px] z-50 origin-[--radix-tooltip-content-transform-origin]',
51-
'w-fit rounded-400 bg-surface-secondary px-3 py-2 text-sm text-text-on-fill',
51+
'w-fit rounded-400 bg-surface-inverse px-3 py-2 text-sm text-text-on-fill',
5252
'flex flex-col whitespace-pre-wrap break-all',
5353

5454
className,

src/styles/variables/semantic.dark.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
44
*
55
* Generated from: semantic.dark.json
6-
* Generated time: 2025-06-17T06:26:25.623Z
6+
* Generated time: 2025-06-24T06:01:38.064Z
77
*
88
* To modify these values, edit the source JSON files and run the token conversion script:
99
* node scripts/system-token/convert-tokens.cjs
@@ -111,7 +111,6 @@
111111
--surface-layer-04: #363845;
112112
--surface-layer-04-hover: #3d404f;
113113
--surface-inverse: #3d404f;
114-
--surface-secondary: #3d404f;
115114
--surface-overlay: #00000099;
116115
--surface-container-layer-00: #272930;
117116
--surface-container-layer-01: #32343f;
@@ -247,7 +246,7 @@
247246
--brand-golden: #f7931e;
248247
--brand-amber: #ffbd00;
249248
--brand-lemon: #ffce00;
250-
--other-colors-text-highlight: #a9e2ff;
249+
--other-colors-text-highlight: #003c77;
251250
--other-colors-icon-shared: #9ab6ed;
252251
--spacing-spacing-0: 0px;
253252
--spacing-spacing-xs: 4px;

src/styles/variables/semantic.light.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
44
*
55
* Generated from: semantic.light.json
6-
* Generated time: 2025-06-17T06:26:25.620Z
6+
* Generated time: 2025-06-24T06:01:38.059Z
77
*
88
* To modify these values, edit the source JSON files and run the token conversion script:
99
* node scripts/system-token/convert-tokens.cjs
@@ -111,7 +111,6 @@
111111
--surface-layer-04: #ffffff;
112112
--surface-layer-04-hover: #f8faff;
113113
--surface-inverse: #21232a;
114-
--surface-secondary: #21232a;
115114
--surface-overlay: #00000099;
116115
--surface-container-layer-00: #f8faff;
117116
--surface-container-layer-01: #f8faff;

tailwind/new-colors.cjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
44
*
55
* This file is auto-generated by convert-tokens.cjs script
6-
* Generation time: 2025-06-17T06:26:25.623Z
6+
* Generation time: 2025-06-24T06:01:38.065Z
77
*
88
* To modify these colors, edit the source JSON files and run the token conversion script:
99
* node scripts/system-token/convert-tokens.cjs
@@ -130,7 +130,6 @@ module.exports = {
130130
"layer-04": "var(--surface-layer-04)",
131131
"layer-04-hover": "var(--surface-layer-04-hover)",
132132
"inverse": "var(--surface-inverse)",
133-
"secondary": "var(--surface-secondary)",
134133
"overlay": "var(--surface-overlay)",
135134
"container-layer-00": "var(--surface-container-layer-00)",
136135
"container-layer-01": "var(--surface-container-layer-01)",

0 commit comments

Comments
 (0)