Skip to content

Commit

Permalink
fix: revert adding themes to style object (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredLunde committed Oct 28, 2022
1 parent fb7b308 commit 0712080
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/create-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export function createStyles<
dash,
hash,
tokens,
themes,
};

Object.defineProperty(styles, "tokens", {
Expand All @@ -247,12 +246,6 @@ export function createStyles<
},
configurable: false,
});
Object.defineProperty(styles, "themes", {
get() {
return themes;
},
configurable: false,
});
styles.insertTokens(options.tokens || emptyObj);
styles.insertThemes(options.themes || emptyObj);
return typeof process !== "undefined" && process.env.NODE_ENV !== "production"
Expand Down Expand Up @@ -592,10 +585,6 @@ export interface Styles<
* The CSS tokens currently defined in the instance
*/
tokens: TokensUnion<Tokens, Themes>;
/**
* The themes defined in the instance
*/
themes: Themes;
/**
* A hashing function for creating unique selector names
*
Expand Down

0 comments on commit 0712080

Please sign in to comment.