Skip to content

Commit

Permalink
feat: introduce hover brightness token (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Aug 29, 2024
1 parent 2e36a7d commit 84d08ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions designTokens/hover.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { DesignToken, DesignTokens } from 'style-dictionary';

const attributes = (group: string): Partial<DesignToken> => ({
attributes: {
group,
},
});

export const hover: DesignTokens = {
image: {
brightness: {
value: 1.075,
...attributes('hover'),
},
},
};
3 changes: 2 additions & 1 deletion designTokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { border } from './border';
import { breakpoint } from './breakpoint';
import { color } from './color';
import { focus } from './focus';
import { hover } from './hover';
import { layout } from './layout';
import { shadow } from './shadow';
import { size } from './size';
import { spacing } from './spacing';
import { typo } from './typo';

export { animation, border, breakpoint, color, focus, layout, shadow, size, spacing, typo };
export { animation, border, breakpoint, color, focus, hover, layout, shadow, size, spacing, typo };

0 comments on commit 84d08ec

Please sign in to comment.