Skip to main content

Overview

Enhance your projects by adding:
  • External Scripts - JavaScript libraries from CDNs
  • External Stylesheets - CSS frameworks and themes
  • Web Fonts - Google Fonts and custom fonts
  • CSS Presets - Popular CSS frameworks

Adding External Resources

1

Open Resources Panel

Click MenuExternal Resources
2

Add URLs

Enter CDN URLs for scripts or stylesheets (one per line)
3

Apply

Click Load Resources to apply changes
External resources are loaded before your code runs, ensuring libraries are available when needed.

External Scripts

Add JavaScript libraries:
https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js
Access in your code:
// jQuery is now available globally
$('button').on('click', () => {
  console.log('Clicked!');
});

// Lodash utilities
const unique = _.uniq([1, 2, 2, 3]);

// Axios for HTTP requests
axios.get('/api/data').then(console.log);
External scripts add global variables. For ES modules, use module imports instead.

External Stylesheets

Add CSS frameworks and styles:
https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css
https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css
https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap
Styles are applied immediately:
<button class="btn btn-primary">Bootstrap Button</button>
<h1 class="animate__animated animate__bounce">Animated Title</h1>
<p style="font-family: 'Roboto', sans-serif">Custom Font</p>

CSS Presets

Quickly add popular CSS frameworks:

Normalize.css

CSS reset for consistency
Preset: Normalize.css

Reset CSS

Minimal CSS reset
Preset: Reset CSS

GitHub Markdown

GitHub-style markdown rendering
Preset: GitHub Markdown CSS

Selecting Presets

1

Open External Resources

Navigate to MenuExternal Resources
2

Choose Preset

Select from available CSS presets
3

Apply

The preset CSS is automatically loaded
Search and add packages directly from npm:
1

Search

In the External Resources panel, use the search box:
Search: bootstrap
2

Browse Results

See package details, versions, and available files
3

Add Files

Click JS or CSS to add to your project:
  • JS files → External Scripts
  • CSS files → External Stylesheets
The search shows the default CSS and JS files from jsDelivr for each package.

Google Fonts

Add web fonts easily:
1

Select Font

In External Resources, open the Fonts section
2

Choose from Dropdown

Select from popular Google Fonts:
  • Roboto
  • Open Sans
  • Lato
  • Montserrat
  • And many more…
3

Add to Project

Click Add to include the font stylesheet
4

Use in CSS

body {
  font-family: 'Roboto', sans-serif;
}

Custom Font URLs

Add any font stylesheet URL:
https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap
https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap

Common Libraries

UI Frameworks

CSS: https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css
JS:  https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js

Utility Libraries

https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js

Animation Libraries

Animate.css:
https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css

GSAP:
https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js

Anime.js:
https://cdn.jsdelivr.net/npm/[email protected]/lib/anime.min.js

Icon Libraries

https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css

Load Order

External resources are loaded in this order:
1

Stylesheets First

All external stylesheets are loaded in the <head>
2

Then Scripts

External scripts are loaded before your code
3

Your Code Last

Your markup, styles, and scripts run after external resources
This ensures all libraries and styles are available when your code executes.

Configuration

External resources in project config:
{
  "stylesheets": [
    "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
    "https://fonts.googleapis.com/css2?family=Roboto&display=swap"
  ],
  "scripts": [
    "https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js",
    "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
  ],
  "cssPreset": "normalize.css"
}

Best Practices

1

Use CDN URLs

Prefer reliable CDNs like jsDelivr, cdnjs, or unpkg
2

Pin Versions

Specify exact versions for consistency:
.../[email protected]/file.js  ✓
.../package/file.js        ✗ (unpredictable)
3

HTTPS Only

Always use HTTPS URLs for security
4

Minimize Resources

Only add what you actually use
Too many external resources can slow down your project. Use ES module imports when possible.

Troubleshooting

  • Check URL is correct and accessible
  • Verify HTTPS (not HTTP)
  • Check browser console for errors
  • Try different CDN
  • Ensure script is in External Scripts (not ES module)
  • Check load order
  • Verify global variable name
  • Verify CSS URL is correct
  • Check for CSS conflicts
  • Inspect element to see applied styles

Build docs developers (and LLMs) love