Skip to content

Commit 24d5061

Browse files
committed
feat: new colors * 5
1 parent 318d599 commit 24d5061

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/components/content/CopyPasteBlock/CopyPasteBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const CopyPasteBlockElement = tasty(Card, {
4545
qa: 'CopyPasteBlock',
4646
styles: {
4747
display: 'grid',
48-
fill: '#grey-light',
48+
fill: '#dark-bg',
4949
radius: '1r',
5050
padding: {
5151
'': '0 1px',

src/components/content/CopySnippet/CopySnippet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const CopySnippetElement = tasty(Card, {
9494
styles: {
9595
display: 'grid',
9696
gridRows: 'minmax(0, 1fr)',
97-
fill: '#grey-light',
97+
fill: '#dark-bg',
9898
border: 0,
9999
padding: 0,
100100
preset: 'default',

src/components/navigation/LegacyTabs/LegacyTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const StyledTabsPanelElement = styled(TabsPanelElement)`
9696
white-space: nowrap;
9797
9898
::-webkit-scrollbar-track {
99-
background: var(--grey-light-color);
99+
background: var(--dark-bg-color);
100100
}
101101
102102
::-webkit-scrollbar-thumb {

src/tokens.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ const colors = {
1717
'dark-03': '115 114 139',
1818
'dark-04': '161 161 178',
1919
'dark-05': '213 213 222',
20-
'dark-bg': '248 248 249',
21-
'grey-light': '248 248 249',
20+
'dark-bg': '249 249 251',
2221
light: '246 246 248',
2322
white: '255 255 255',
2423
black: '0 0 0',
25-
'light-grey': '248 248 249',
2624
danger: '227 70 75',
2725
'danger-text': '208 57 56',
2826
'danger-bg': '253 237 235',
@@ -35,6 +33,8 @@ const colors = {
3533
'note-text': '150 112 8',
3634
'note-bg': '251 239 219',
3735
'note-icon': '181 140 44',
36+
border: '227 227 233',
37+
'light-border': '238 238 241',
3838
};
3939

4040
function color(name, opacity = 1) {
@@ -60,7 +60,6 @@ const TOKENS = {
6060
transition: '80ms',
6161
'min-dialog-size': 'min(288px, calc(100vw - (2 * var(--gap))))',
6262
'clear-color': 'transparent',
63-
'border-color': color('dark', 0.1),
6463
'border-opaque-color': 'rgb(227 227 233)',
6564
'shadow-color': color('dark-03', 0.1),
6665
'draft-color': color('dark', 0.2),
@@ -247,7 +246,7 @@ const TOKENS = {
247246
'scrollbar-radius': '1.5r',
248247
'scrollbar-thumb-color': 'rgb(var(--text-color-rgb) / .5)',
249248
'scrollbar-outline-color': 'var(--clear-color)',
250-
'scrollbar-bg-color': 'var(--grey-light-color)',
249+
'scrollbar-bg-color': 'var(--dark-bg-color)',
251250
'scrollbar-corner-color': 'var(--clear-color)',
252251
};
253252

0 commit comments

Comments
 (0)