Skip to content

Commit

Permalink
feat: support accent-color utilities
Browse files Browse the repository at this point in the history
Fixes #328
  • Loading branch information
muhammadsammy committed Dec 17, 2021
1 parent 543e868 commit b343833
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/cli/core/ClassnamesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export class ClassnamesGenerator {
cursor: Object.keys(this._theme.cursor).map(x => 'cursor-' + x),
caretColor: this.generateClassesWithColors('caretColor'),
willChange: Object.keys(this._theme.willChange).map(x => 'will-change-' + x),
accentColor: this.generateClassesWithColors('accentColor'),
};
};

Expand Down Expand Up @@ -540,7 +541,8 @@ type ClassesWithColors =
| 'gradientColorStops'
| 'boxShadowColor'
| 'outlineColor'
| 'textDecorationColor';
| 'textDecorationColor'
| 'accentColor';

type ClassesWithOpacities = {
opacities: string[];
Expand Down
3 changes: 2 additions & 1 deletion src/cli/types/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ type TInteractivityCategoryItem =
| 'resize'
| 'userSelect'
| 'caretColor'
| 'willChange';
| 'willChange'
| 'accentColor';

type TLayoutCategoryItem =
| 'display'
Expand Down

0 comments on commit b343833

Please sign in to comment.