Font Awesome Build Awesome
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Search this website ⌘KCtrl+K Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme View Project on GitHub Star Project on GitHub
Start Components Docs Help
Web Awesome Font Awesome Build Awesome
Search this site… /
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme

Getting Started

  • Installation
  • Usage
  • Forms
  • Localization
  • Frameworks
  • Using with AI
  • Figma Design Kit ProThis requires access to Web Awesome Pro
  • Server Rendering

Resources

  • Accessibility
  • Browser Support
  • Contributing
  • Patterns ProPatterns require access to Web Awesome Pro
  • Migrating from Shoelace
  • Visual Tests
  • Changelog
  • Help & Support

Theming & Utilities

  • Overview
  • Built-in Themes
  • Color Palettes
  • Design Tokens
  • Customizing & Theming
  • CSS Utilities

Actions

  • Button
  • Button Group
  • Copy Button
  • Dropdown
    • Dropdown Item

Forms

  • Checkbox
  • Checkbox Group
  • Color Picker
  • Input
  • Known Date
  • Number Input
  • Radio Group
    • Radio
  • Rating
  • Select
    • Option
  • Slider
  • Switch
  • Textarea
  • Time Input
  • Data Grid Planned A Web Awesome Kickstarter stretch goal!

Layout

  • Accordion
    • Accordion Item
  • Card
  • Details
  • Dialog
  • Divider
  • Drawer
  • Page
  • Scroller
  • Split Panel

Navigation

  • Breadcrumb
    • Breadcrumb Item
  • Tab Group
    • Tab
    • Tab Panel
  • Tree
    • Tree Item

Feedback

  • Badge
  • Callout
  • Progress Bar
  • Progress Ring
  • Skeleton
  • Spinner
  • Tag
  • Tooltip

Media

  • Animated Image
  • Avatar
  • Carousel
    • Carousel Item
  • Comparison
  • Icon
  • Markdown
  • QR Code
  • Zoomable Frame

Data Viz

  • Advanced Usage

Helpers

  • Animation
  • Format Bytes
  • Format Date
  • Format Number
  • Include
  • Intersection Observer
  • Mutation Observer
  • Popover
  • Popup
  • Random Content
  • Relative Time
  • Resize Observer

Build Awesome (11ty)

  • Installation
  • Usage
  • Copy the Assets
  • Load the Styles & Loader
  • Server-Side Rendering
  • Install the Plugin
  • Register the Plugin
  • Swap in the SSR Loader
  • See It in Action
  • Next Steps
On This Page...
  • Installation
  • Usage
  • Copy the Assets
  • Load the Styles & Loader
  • Server-Side Rendering
  • Install the Plugin
  • Register the Plugin
  • Swap in the SSR Loader
  • See It in Action
  • Next Steps
Frameworks Build Awesome (11ty)

Build Awesome (11ty)

Build Awesome (11ty) is relatively unopinionated, so there are several ways to add Web Awesome — the simplest is via npm, which your project most likely already uses.

Installation

Link to This Section

To add Web Awesome to your Build Awesome site, install the package from npm.

npm install @awesome.me/webawesome

Usage

Link to This Section

Copy the Assets

Link to This Section

Web Awesome's assets must be available to the browser. Add addPassthroughCopy to your eleventy.config.js to copy them into your build output — create the file if you don't have one yet:

// eleventy.config.js

const webawesomeDir = './node_modules/@awesome.me/webawesome';

export default async function (eleventyConfig) {
  eleventyConfig.addPassthroughCopy({
    webawesomeDir: 'webawesome',
  });
}

export const config = {
  markdownTemplateEngine: 'njk',
  dir: {
    input: 'pages',
    includes: '_includes',
    layouts: '_layouts',
  },
  templateFormats: ['njk', 'md'],
};

Load the Styles & Loader

Link to This Section

Add the stylesheet and component loader to your layout's <head>:

<head>
  <link href="/webawesome/dist-cdn/styles/webawesome.css" rel="stylesheet">
  <script type="module" src="/webawesome/dist-cdn/webawesome.loader.js"></script>
</head>

Web Awesome is ready to use.
Want server-side rendering too?

Add SSR

Server-Side Rendering

Link to This Section

With server-side rendering, your Web Awesome components render to HTML on the server, so pages display fully styled before client-side JavaScript loads. Learn more in the SSR docs.

To add SSR support to Build Awesome (11ty), follow the steps below.

Install the Plugin

Link to This Section

Install the @lit-labs/eleventy-plugin-lit plugin from npm:

npm install @lit-labs/eleventy-plugin-lit

Register the Plugin

Link to This Section

Once installed, register the plugin in your eleventy.config.js file.

// eleventy.config.js

import litPlugin from '@lit-labs/eleventy-plugin-lit';
import * as fs from 'node:fs';
import * as path from 'node:path';

const webawesomeDir = './node_modules/@awesome.me/webawesome';
const webawesomeComponentsDir = path.join(webawesomeDir, 'dist', 'components');
const webawesomeComponents = fs.readdirSync(webawesomeComponentsDir).map(componentName => {
  return path.join(webawesomeComponentsDir, componentName, componentName + '.js');
});

export default async function (eleventyConfig) {
  eleventyConfig.addPlugin(litPlugin, {
    mode: 'worker',
    componentModules: webawesomeComponents,
  });

  eleventyConfig.addPassthroughCopy({
    webawesomeDir: 'webawesome',
  });
}

export const config = {
  markdownTemplateEngine: 'njk',
  dir: {
    input: 'pages',
    includes: '_includes',
    layouts: '_layouts',
  },
  templateFormats: ['njk', 'md'],
};

Swap in the SSR Loader

Link to This Section

Update your layout to use the SSR loader instead of the default loader:

<head>
  <link href="/webawesome/dist-cdn/styles/webawesome.css" rel="stylesheet">
  <script type="module" src="/webawesome/dist-cdn/webawesome.ssr-loader.js"></script>
</head>

See It in Action

Link to This Section

Need an example of a complete Build Awesome (11ty) SSR project using Web Awesome?

Example Repository

A complete Build Awesome (11ty) SSR project using Web Awesome.

Live Demo

See the 11ty SSR example deployed and running.

Next Steps

Link to This Section
Components

Start building your interface.

CSS Utilities

Lay out and style without custom CSS.

Theming

Match Web Awesome to your brand.

Build Awesome (11ty) Docs

The official Build Awesome (11ty) documentation.

Using Web Awesome with Build Awesome (11ty)?
Found a bug or have a suggestion? Help make things more awesome!

Share feedback
Go Make Something Awesome
Version 3.10.0 © Fonticons, Inc.
  • Terms
  • Privacy
  • Refunds
  • Core License
  • Pro License

Quick Links

  • Components
  • CSS Utilities
  • Theming
  • Using with AI
  • Changelog
  • Help & Support

Recent Searches

    D'oh! No results for “”

    Suggest on GitHub Ask on Discord
    Navigate Select
    Close Esc