diff --git a/src/styles.ts b/src/styles.ts index 4754b24..56bad72 100644 --- a/src/styles.ts +++ b/src/styles.ts @@ -32,6 +32,10 @@ export function addClassesForAllSizes( } export function attachAllStyles() { + if (typeof document === 'undefined') { + return; + } + // Create