Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"next": "14.2.3",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwindcss": "^4.1.4",
"tailwindcss": "^4.1.11",
"viem": "^2.28.1",
"wagmi": "^2.15.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-router-dom": "^7.5.3",
"tailwindcss": "^4.1.4",
"tailwindcss": "^4.1.11",
"typescript": "^5.8.3",
"viem": "^2.28.1",
"wagmi": "^2.15.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
"@0xsequence/provider": "^2.3.10",
"@0xsequence/utils": "^2.3.10",
"@0xsequence/waas": "^2.3.10",
"@tailwindcss/cli": "^4.1.4",
"@tailwindcss/cli": "^4.1.11",
"clsx": "^2.1.1",
"fuse.js": "^7.1.0",
"motion": "^12.9.2",
"tailwindcss": "^4.1.4",
"tailwindcss": "^4.1.11",
"uuid": "^10.0.0"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/connect/src/components/ShadowRoot/ShadowRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import { ThemeProvider, type Theme } from '@0xsequence/design-system'
import { useEffect, useRef, useState, type ReactNode } from 'react'
import { createPortal } from 'react-dom'

import { styleProperties } from '../../styleProperties.js'
import { styles } from '../../styles.js'

// Create a stylesheet which is shared by all ShadowRoot components
let sheet: CSSStyleSheet
const getCSSStyleSheet = (customCSS?: string) => {
if (!sheet) {
sheet = new CSSStyleSheet()
sheet.replaceSync(styles + (customCSS ? `\n\n${customCSS}` : ''))
sheet.replaceSync(styles + styleProperties + (customCSS ? `\n\n${customCSS}` : ''))
}

return sheet
Expand Down
66 changes: 66 additions & 0 deletions packages/connect/src/styleProperties.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
export const styleProperties = `
@layer properties {
*, ::before, ::after, ::backdrop {
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-translate-z: 0;
--tw-rotate-x: initial;
--tw-rotate-y: initial;
--tw-rotate-z: initial;
--tw-skew-x: initial;
--tw-skew-y: initial;
--tw-border-style: solid;
--tw-leading: initial;
--tw-font-weight: initial;
--tw-tracking: initial;
--tw-shadow: 0 0 #0000;
--tw-shadow-color: initial;
--tw-shadow-alpha: 100%;
--tw-inset-shadow: 0 0 #0000;
--tw-inset-shadow-color: initial;
--tw-inset-shadow-alpha: 100%;
--tw-ring-color: initial;
--tw-ring-shadow: 0 0 #0000;
--tw-inset-ring-color: initial;
--tw-inset-ring-shadow: 0 0 #0000;
--tw-ring-inset: initial;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-offset-shadow: 0 0 #0000;
--tw-outline-style: solid;
--tw-blur: initial;
--tw-brightness: initial;
--tw-contrast: initial;
--tw-grayscale: initial;
--tw-hue-rotate: initial;
--tw-invert: initial;
--tw-opacity: initial;
--tw-saturate: initial;
--tw-sepia: initial;
--tw-drop-shadow: initial;
--tw-drop-shadow-color: initial;
--tw-drop-shadow-alpha: 100%;
--tw-drop-shadow-size: initial;
--tw-backdrop-blur: initial;
--tw-backdrop-brightness: initial;
--tw-backdrop-contrast: initial;
--tw-backdrop-grayscale: initial;
--tw-backdrop-hue-rotate: initial;
--tw-backdrop-invert: initial;
--tw-backdrop-opacity: initial;
--tw-backdrop-saturate: initial;
--tw-backdrop-sepia: initial;
--tw-duration: initial;
--tw-ease: initial;
--tw-content: "";
--tw-gradient-position: initial;
--tw-gradient-from: #0000;
--tw-gradient-via: #0000;
--tw-gradient-to: #0000;
--tw-gradient-stops: initial;
--tw-gradient-via-stops: initial;
--tw-gradient-from-position: 0%;
--tw-gradient-via-position: 50%;
--tw-gradient-to-position: 100%;
}
}`
2 changes: 1 addition & 1 deletion packages/connect/src/styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const styles = String.raw`
/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
Expand Down
Loading