Skip to content

Commit

Permalink
feat: Add icon tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Anton committed Jun 4, 2024
1 parent 9ee9115 commit f5b1d34
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libs/novui/src/tokens/semanticColors.tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ export const LEGACY_COLOR_SEMANTIC_TOKENS = defineSemanticTokens.colors({
},
},
},
icon: {
main: {
value: { base: '{colors.legacy.B60}', _dark: '{colors.legacy.B60}' },
type: 'color',
},
},
});

export const COLOR_SEMANTIC_TOKENS = defineSemanticTokens.colors({
Expand Down Expand Up @@ -171,4 +177,10 @@ export const COLOR_SEMANTIC_TOKENS = defineSemanticTokens.colors({
type: 'color',
},
},
icon: {
main: {
value: { base: '{colors.mauve.20.light}', _dark: '{colors.mauve.20.dark}' },
type: 'color',
},
},
});
14 changes: 14 additions & 0 deletions libs/novui/src/tokens/semanticSizes.tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,18 @@ export const SEMANTIC_SIZES_TOKENS = defineSemanticTokens.sizes({
},
},
},
icon: {
'16': {
value: '{sizes.100}',
type: 'sizes',
},
'20': {
value: '{sizes.125}',
type: 'sizes',
},
'24': {
value: '{sizes.150}',
type: 'sizes',
},
},
});

0 comments on commit f5b1d34

Please sign in to comment.