Skip to content

Commit

Permalink
feat: generate transition property types from theme
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Jun 24, 2020
1 parent 5177a09 commit 822414c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/generation/ClassesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export class ClassesGenerator implements IClassesGenerator {
public transitions = (): string => {
const Transitions = {
...defaultTransitions,
transitionProperty: Object.keys(this.configScanner.themeConfig.transitionProperty).map(
property => 'transition-' + property,
),
};

this.allGeneratedClasses.Transitions = Transitions;
Expand Down

0 comments on commit 822414c

Please sign in to comment.