Skip to content

Commit

Permalink
syncen colours
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Dec 5, 2024
1 parent 36ecfbb commit b0f9430
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 64 deletions.
4 changes: 2 additions & 2 deletions packages/libs/kode-ui/src/components/Table/Table.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const tableDataCell = recipe({
border: 'hairline',
}),
{
backgroundColor: token('color.background.layer.default'),
backgroundColor: token('color.background.table.row.default'),
backdropFilter: 'blur(18px)',
borderInlineWidth: '0!important',
selectors: {
Expand All @@ -259,7 +259,7 @@ export const tableDataCell = recipe({
borderInlineEndWidth: `${token('border.width.hairline')}!important`,
},
[`${tableRow}[data-hovered] &`]: {
backgroundColor: token('color.neutral.n1@alpha80'),
backgroundColor: token('color.background.table.row.@hover'),
},
},
},
Expand Down
86 changes: 50 additions & 36 deletions packages/libs/kode-ui/src/styles/tokens/contract.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,42 @@ export const tokens = createThemeContract({
*/
toast: '',
},
effect: {
shadow: {
/**
* This is the shadow 1 description
* @light `"4px 0.5rem tokens.kda.foundation.size.n2 4px #000000"`
* @dark `"4px 0.5rem tokens.kda.foundation.size.n2 4px #000000"`
*/
level1: '',
/**
* This is the shadow 2 description
* @light `"4rem 4rem tokens.kda.foundation.size.n2 2rem #000000"`
* @dark `"4rem 4rem tokens.kda.foundation.size.n2 2rem #000000"`
*/
level2: '',
/**
* This is the shadow 3 description updated
* @light `"0px 0px tokens.kda.foundation.size.n2 24px #000000"`
* @dark `"0px 0px tokens.kda.foundation.size.n2 24px #000000"`
*/
level3: '',
},
},
layout: {
content: {
/**
* @light `"33.75rem"`
* @dark `"33.75rem"`
*/
minWidth: '',
/**
* @light `"42.5rem"`
* @dark `"42.5rem"`
*/
maxWidth: '',
},
},
color: {
accent: {
/**
Expand Down Expand Up @@ -1593,6 +1629,20 @@ export const tokens = createThemeContract({
*/
default: '',
},
table: {
row: {
/**
* @light {@link tokens.kda.foundation.color.background.layer.default}
* @dark {@link tokens.kda.foundation.color.background.layer.default}
*/
default: '',
/**
* @light {@link tokens.kda.foundation.color.neutral.n1@alpha80}
* @dark {@link tokens.kda.foundation.color.neutral.n10@alpha80}
*/
'@hover': '',
},
},
},
border: {
base: {
Expand Down Expand Up @@ -5041,28 +5091,6 @@ export const tokens = createThemeContract({
},
},
},
effect: {
shadow: {
/**
* This is the shadow 1 description
* @light `"4px 0.5rem tokens.kda.foundation.size.n2 4px #000000"`
* @dark `"4px 0.5rem tokens.kda.foundation.size.n2 4px #000000"`
*/
level1: '',
/**
* This is the shadow 2 description
* @light `"4rem 4rem tokens.kda.foundation.size.n2 2rem #000000"`
* @dark `"4rem 4rem tokens.kda.foundation.size.n2 2rem #000000"`
*/
level2: '',
/**
* This is the shadow 3 description updated
* @light `"0px 0px tokens.kda.foundation.size.n2 24px #000000"`
* @dark `"0px 0px tokens.kda.foundation.size.n2 24px #000000"`
*/
level3: '',
},
},
icon: {
size: {
/**
Expand Down Expand Up @@ -5102,20 +5130,6 @@ export const tokens = createThemeContract({
xxl: '',
},
},
layout: {
content: {
/**
* @light `"33.75rem"`
* @dark `"33.75rem"`
*/
minWidth: '',
/**
* @light `"42.5rem"`
* @dark `"42.5rem"`
*/
maxWidth: '',
},
},
typography: {
family: {
/**
Expand Down
32 changes: 19 additions & 13 deletions packages/libs/kode-ui/src/styles/tokens/dark.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,19 @@ export const darkThemeValues = {
sticky: '100',
toast: '10000',
},
effect: {
shadow: {
level1: `4px 0.5rem ${tokens.kda.foundation.size.n2} 4px #000000`,
level2: `4rem 4rem ${tokens.kda.foundation.size.n2} 2rem #000000`,
level3: `0px 0px ${tokens.kda.foundation.size.n2} 24px #000000`,
},
},
layout: {
content: {
minWidth: '33.75rem',
maxWidth: '42.5rem',
},
},
color: {
accent: {
blue: tokens.kda.foundation.color.palette.blue.n50,
Expand Down Expand Up @@ -449,6 +462,12 @@ export const darkThemeValues = {
skeleton: {
default: tokens.kda.foundation.color.neutral['n20@alpha80'],
},
table: {
row: {
default: tokens.kda.foundation.color.background.layer.default,
'@hover': tokens.kda.foundation.color.neutral['n10@alpha80'],
},
},
},
border: {
base: {
Expand Down Expand Up @@ -1309,13 +1328,6 @@ export const darkThemeValues = {
},
},
},
effect: {
shadow: {
level1: `4px 0.5rem ${tokens.kda.foundation.size.n2} 4px #000000`,
level2: `4rem 4rem ${tokens.kda.foundation.size.n2} 2rem #000000`,
level3: `0px 0px ${tokens.kda.foundation.size.n2} 24px #000000`,
},
},
icon: {
size: {
xxs: tokens.kda.foundation.size.n3,
Expand All @@ -1327,12 +1339,6 @@ export const darkThemeValues = {
xxl: tokens.kda.foundation.size.n16,
},
},
layout: {
content: {
minWidth: '33.75rem',
maxWidth: '42.5rem',
},
},
typography: {
family: {
primaryFont: 'Inter',
Expand Down
32 changes: 19 additions & 13 deletions packages/libs/kode-ui/src/styles/tokens/light.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,19 @@ export const lightThemeValues = {
sticky: '100',
toast: '10000',
},
effect: {
shadow: {
level1: `4px 0.5rem ${tokens.kda.foundation.size.n2} 4px #000000`,
level2: `4rem 4rem ${tokens.kda.foundation.size.n2} 2rem #000000`,
level3: `0px 0px ${tokens.kda.foundation.size.n2} 24px #000000`,
},
},
layout: {
content: {
minWidth: '33.75rem',
maxWidth: '42.5rem',
},
},
color: {
accent: {
blue: tokens.kda.foundation.color.palette.blue.n50,
Expand Down Expand Up @@ -449,6 +462,12 @@ export const lightThemeValues = {
skeleton: {
default: tokens.kda.foundation.color.neutral.n10,
},
table: {
row: {
default: tokens.kda.foundation.color.background.layer.default,
'@hover': tokens.kda.foundation.color.neutral['n1@alpha80'],
},
},
},
border: {
base: {
Expand Down Expand Up @@ -1309,13 +1328,6 @@ export const lightThemeValues = {
},
},
},
effect: {
shadow: {
level1: `4px 0.5rem ${tokens.kda.foundation.size.n2} 4px #000000`,
level2: `4rem 4rem ${tokens.kda.foundation.size.n2} 2rem #000000`,
level3: `0px 0px ${tokens.kda.foundation.size.n2} 24px #000000`,
},
},
icon: {
size: {
xxs: tokens.kda.foundation.size.n3,
Expand All @@ -1327,12 +1339,6 @@ export const lightThemeValues = {
xxl: tokens.kda.foundation.size.n16,
},
},
layout: {
content: {
minWidth: '33.75rem',
maxWidth: '42.5rem',
},
},
typography: {
family: {
primaryFont: 'Inter',
Expand Down

0 comments on commit b0f9430

Please sign in to comment.