Skip to content

Commit

Permalink
feat: add new outline utilites
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Dec 12, 2021
1 parent b92a42a commit 07da44a
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 252 deletions.
6 changes: 5 additions & 1 deletion src/cli/core/ClassnamesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ export class ClassnamesGenerator {
ringOpacity: this.getGeneratedClassesWithOpacities().ringOpacities,
ringOffsetColor: this.generateClassesWithColors('ringOffsetColor'),
ringOffsetWidth: Object.keys(this._theme.ringOffsetWidth).map(x => 'ring-offset-' + x),
outlineOffset: Object.keys(this._theme.outlineOffset).map(x => 'outline-' + x),
outlineWidth: Object.keys(this._theme.outlineWidth).map(x => 'outline-' + x),
outlineColor: this.generateClassesWithColors('outlineColor'),
};
};

Expand Down Expand Up @@ -523,7 +526,8 @@ type ClassesWithColors =
| 'ringColor'
| 'ringOffsetColor'
| 'gradientColorStops'
| 'boxShadowColor';
| 'boxShadowColor'
| 'outlineColor';

type ClassesWithOpacities = {
opacities: string[];
Expand Down

0 comments on commit 07da44a

Please sign in to comment.