Skip to content

Commit

Permalink
Handle an async design system (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace authored Aug 9, 2024
1 parent 65f70e4 commit eea9f59
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export async function loadDesignSystem(
let resolved = await resolveCssImports().process(css, { from: filepath })

// Step 3: Take the resolved CSS and pass it to v4's `loadDesignSystem`
let design = tailwindcss.__unstable__loadDesignSystem(resolved.css) as DesignSystem
let design: DesignSystem = await tailwindcss.__unstable__loadDesignSystem(resolved.css, {
loadPlugin() {
return () => {}
},
})

// Step 4: Augment the design system with some additional APIs that the LSP needs
Object.assign(design, {
Expand Down

0 comments on commit eea9f59

Please sign in to comment.