Web Awesome
Web Awesome is an open source library of framework-agnostic UI components. They are similar to self-contained web components.
Depending on the component you are using, they too will be composed of HTML, CSS, and maybe some JavaScript.
Further, WA free and paid themes give your site an unified appearance and feel across the whole Web Awesome library.
Web Awesome is part of the "Awesome" family of web development products that includes Font Awesome (which are actually icons) and Build Awesome, a website builder that is a new version of 11ty. They all have free and pro versions.
This is the fifth article in our "how to" series of building your Bear site / blog. The first four explore Markdown, CSS, HTML, and JavaScript. We have covered them in order of most to least used tool. And this is the first article about an opinionated library as opposed to web native tools.
With WA you can boost the sophistication of your Bear blog’s design. And it’s not that difficult.
Pull from a CDN Script
In Bear you will need to access these components via a Code Delivery Network. And since they may use JS and definitely use JavaScript in the CDN script below you will need a Bear Pro subscription.
To access the CDN you will need to use the link above and copy / paste this (or the most recent equivalent) into your header:
<link rel="stylesheet" href="https://ka-f.webawesome.com/webawesome@3.15.0/styles/themes/default.css">
<script type="module" src="https://ka-f.webawesome.com/webawesome@3.15.0/webawesome.loader.js"></script>If you really know CSS, there are two additional scripts you could use for CSS utility classes and a CSS reset. But, those uses are neither KISS nor Bearlike.
UI Components
After inserting your CDN script, you are ready to use any of Web Awesome's 80 free or 18 pro aka paid components in your site pages and posts. There some experimental ones in both categories.
On our Bear site we use four free components with the default theme:
Card
Copy Button
Button
Icon
To use them for yourself you would need to visit the links below and copy and paste the relevant code into your pages or posts.
Some components are very simple while others have many options for you to choose from.
So, explore, select, customize the provided component code, and insert away.
Card
The Card component is used for our Bear blog's “follow us on open social” cards. It includes HTML for an image, a few paragraphs, and a CTA header.
As you probably know, a card places related content and actions inside a container. Its border among other design details can be controlled via CSS. For example our border is hidden, the header is the same color as the page background, and the text background is an orangish color as part of our customization of the component.
Copy Button
The Copy Button component is also used for our “follow us on open social” cards to allow you to copy and paste our relevant handle into your Fediverse or Atmosphere app’s search field.
Button
The Button component is used at the bottom of our posts to allow you to share them via open social.
Icon
The Icon component is used to place one Font Awesome icon into our “share via open social” button.
Icons (as opposed to emojis) are scalable vector symbols that can indicate actions, content, status, etc. anywhere in your Bear website.
Web Awesome comes with more than 2,000 free icons from Font Awesome. They are part of the default FA library. Font Awesome Pro users can use even more and better icons.
Copy, paste, and insert your heart out.
Wrapping it Up
A quick note, some people turn off JavaScript in their browser. Which is fine as your WA components will fall back to using vanilla HTML and CSS. Your information will still show up.
So, this is pretty simple. Similar to your use of Javascript in Bear you have to paste a script into your header (as opposed to the footer for Bear extensions). And compared to any vanilla HTML you would write for your site’s structure, here you are pasting Web Awesome HTML and possibly a CSS script into the body of your pages and posts for interactivity. You can customize the component provided HTML and CSS as needed.
Thanks for reading and burnish your Bear site with a pinch of componentized sophistication from the Web Awesome UI library.
Explore More
CTAs
Please share this article.
Follow us on Surf or at @thefulcrum@thefulcrum.dev on the Fediverse or at @thefulcrum.eurosky.social on the Atmosphere for daily coverage.
Read, live, and share The Techno Anarchist Manifesto!
Escape techshit with the LESS Stack.
And please build something for a community! We're promoting the LESS stack via our Manade project.