Ornament 3.0.1: one less #TypeScript annoyance
Ornament 3.0.1: one less #TypeScript annoyance
What's the best way to provide default styles for a web component?
like: most web components do have `display: inline` but sometimes a display: block; would be better.
I guess my approach would be to never set any styles at all in the JS and say: the defaults are what the user agent gives you. But I did wonder if I can say somehow: "this element is a block element and not an inline element", without having a FOUC (Flash of Unstyled Content). #WebComponents
What is the most modern and bestest lightweight barcode reader (just the regular kind of barcodes, no need for anything fancy) #javascript #typescript #browser #WebComponents
#Development #Guides
Simplify sharing · How to make content sharing effortless on your website https://ilo.im/16350b
_____
#Sharing #Content #Webpage #ProgressiveEnhancement #WebComponents #WebDev #Frontend #HTML #CSS #JavaScript
Ornament 3.0: https://www.npmjs.com/package/@sirpepe/ornament
Had to fix a few API brain farts, which means breaking changes, which means a major release with next to zero material changes. Semver
#Development #Pitfalls
The burden of custom form validations · When over-engineered form validations backfire https://ilo.im/16327e
_____
#Form #Validation #Browser #Library #Framework #WebComponents #DesignSystems #WebDev #Frontend #HTML
Has anyone created a WebComponents-powered data viz library? #WebDev #WebComponents
Is there a CSS equivolent to JSDoc? It would be really nice to co-locate my docs next to my CSS variables in my web components.
Web Component Base (WCB) by Ayo Ayco (@ayo) | https://ayos.blog/wcb/
Web Components vs. Framework Components: What’s the Difference?, by @thedocwhocodes@x.com (@smashingmag):
https://www.smashingmagazine.com/2025/03/web-components-vs-framework-components/
So…whether you like generative images or not (heck, I’m not sure if I like generative images, especially not this way) we made a thing at my new(-ish) gig: https://preview.reve.art/ It’s the ways of making images AFTER this first foray that I’m most excited about, but “any sufficiently complex system…”. Check it out as you will and share what you’re able to bring to live?
Today, I'm excited to release the CEM Validator for your #webcomponents!
This is designed to be an automated check before your components go to production. I know there is a ton of stuff that can be added to this, but I decided to start small. Features include:
package.json validation
module and definition path validation
a check to ensure you are exporting all types for your APIs
a check to make sure the tag name is present for your components
Thanks to everyone who came to my "Future-proof your Web Apps with #WebComponents and #Lit" talk at #Frontrunners (https://frontrunners.tech)! You can find the mindmap and demo code here: https://kitomann.com/#/sessions/14/future-proof-your-web-apps-with-web-components-and-lit . #javascript #typescript
If you build a custom element and it uses a child element with a CSS shadow part to expose its base styling, e.g. ::part(base), then this will be ignored if the custom element has content-visibility: auto.
So, if you want cards with box-shadow, the shadow styling has to be on the custom element itself, or :host, not the ::part() pseudo selector.
I'm looking forward to speaking about #lit and #webcomponents at the Frontrunners conference on Friday, March 21st in Washington, DC. It's a nice, one-day event. If you're local, check it out! https://frontrunners.tech/.
Web Components Demystified course review. #WebComponents
https://css-tricks.com/web-components-demystified/?utm_source=flipboard&utm_medium=activitypub
Posted into Responsive Design, UX, UI, and more @responsive-design-ux-ui-and-more-mobileatom
In the DC area or close by? Come see my session "Future-proof your Web Apps with #WebComponents and #Lit" at #Frontrunners next Friday, March 21st. https://frontrunners.tech/ #typescript #javascript
Should a <light-dark-mode-switch> web component be a form control? Form-associated, submittable, all that jazz...
@nilshoerrmann I heard about this #WebComponents project but haven’t tried it personally.