@cirrus@mstdn.social
@cirrus@mstdn.social avatar

cirrus

@cirrus@mstdn.social

#DesignSystems aficionado. Classically trained #webmaster. Slayer of pixels. DTCG spec editor.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Does anyone have any #WebComponents “gotchas” that they wish they knew when getting into them?

cirrus,
@cirrus@mstdn.social avatar

@DavidDarnes ...run anywhere, then it's good to be aware of framework limitations like that up front.

cirrus,
@cirrus@mstdn.social avatar

@DavidDarnes Yes: Despite what https://custom-elements-everywhere.com says, compatibility with Angular is not great. While custom elements will work when you set CUSTOM_ELEMENTS_SCHEMA, it also disables type checking (and IDE autocomplete) for your Angular templates. So the developer experience is seriously degraded. See: https://manuel-rauber.com/2021/02/23/youre-using-custom_elements_schema-wrong/

That's totally an Angular problem, and not the fault of web components. But if, like me, your motivation is to build a bunch of UI components once and have them...

cirrus, (edited ) to accessibility
@cirrus@mstdn.social avatar

I've got a question for all you #a11y experts:

I know all web pages should have a sensible heading outline and that there should be a single H1, which should be used for the page title.

Now consider this common site layout: Every page has a common header, typically featuring the site/company name (e.g. as a logo in the top left).

Most pages would have the page title in the body below as an H1. E.g. a contact page might have "Contact us" just below the page header.

But what about...

cirrus, to random
@cirrus@mstdn.social avatar

Current status:
git commit -m "make CI pipeline work... maybe? hopefully? for real this time, honest guv"
git push
🤞

cirrus, to UX
@cirrus@mstdn.social avatar

Begun moving my old Medium blog posts to my personal website and just noticed that all links from a Medium post to other sites have target="_blank" to force them to open in a new tab.

Yuk! Yuk! Yuk!!! :vomit:

That is one of my pet peeves and has been proven time and time again to be bad for #UX and #a11y (see https://www.nngroup.com/articles/new-browser-windows-and-tabs/ https://www.smashingmagazine.com/2008/07/should-links-open-in-new-windows/ https://css-tricks.com/use-target_blank/)

Can't wait to get those posts rehomed on my own site where those links will definitely open in the same tab!

zachleat, (edited ) to random
@zachleat@zachleat.com avatar

google.com search results (on a desktop web browser) have a horizontal scrollbar < 1162px viewport width and don’t use responsive design.

Sometimes the biggest web properties in the world make decisions with a completely different set of priorities, goals, budget (etc.) and those decisions wouldn’t make sense to apply to your project (with your own goals, team, and tech stack).

Their best practices are not your best practices!

cirrus,
@cirrus@mstdn.social avatar

@zachleat ...because who would ever resize their browser window? That would be madness! 🙄

cirrus, to Figma
@cirrus@mstdn.social avatar

Once again facing that classic #designsystem conundrum: Theme and/or customize a 3rd party component library, or build one from scratch.

Actually, we need two component libs: A #WebComponent one for web products and a #ReactNative one for iOS & Android apps. We already have designs in #Figma and want to have parity in terms of design & naming across Figma, web & RN.

My gut and past experiences make me lean towards building from scratch.

What would you do and why?

cirrus, to random
@cirrus@mstdn.social avatar

Deleted my Instagram account earlier today. I was barely using it.

Had been considering deleting my Twitt... X account too. But, decided to just keep it dormant (for now). My profile and pinned tweet basically just link here, so it's essentially just a promo for my Mastodon account 🙂.

Gotta say, I was a bit disappointed to see so many friends being very active on X, when I briefly logged in to update my profile. I had really hoped most of that community would have migrated here.

cirrus, to random
@cirrus@mstdn.social avatar

In other #DesignTokens news, Sketch recently added a direct export to DTCG files: https://www.sketch.com/updates/design-tokens/ ❤️

As one of the spec editors, I really love seeing support for the DTCG file format ( https://tr.designtokens.org/ ) appearing in tools. The dream of seamless interoperability for design tokens edges a step closer each time.

Have you made a tool / lib / thing that supports the format too? Share it with the community here: https://github.com/design-tokens/community-group/issues/211

cirrus,
@cirrus@mstdn.social avatar

@nhoizey Yup, I'm aware. Bring on Style Dictionary v4! 💪

cirrus, to javascript
@cirrus@mstdn.social avatar

Grumble. is doing my head in. Why do Angular packages create a new package.json in the dist folder and expect you to cd into there before running npm publish?!?!

I have a monorepo with lots of other non-Angular packages. I use Changesets to manage versioning and releases.

Now, because Angular can't just use npm like it's meant to be used, I'm stuck.

cirrus, (edited ) to random
@cirrus@mstdn.social avatar

The setup I think other people have when they present at online conferences, versus mine... 😅

(if that hasn't put you off, maybe see you at https://www.specifyapp.com/connect in 15mins to hear me nerd out about #DesignTokens with Matt and Louis?)

cirrus, to random
@cirrus@mstdn.social avatar

Starting a new job as #DesignSystem Engineer at Investec today. 🚀

Sloshed some coffee on my sleeve twice already and haven't even made it to the office yet. Off to a good start then... 😜

cirrus, to random
@cirrus@mstdn.social avatar

Current status:

cirrus, to webdev
@cirrus@mstdn.social avatar

Curious if there are #ProgressiveEnhancent approaches people are using to recent #CSS features like cascade layers, nesting and proposed ones like scope.

I get that older browsers will just ignore @ rules they don't support and you can probably feature detect some of this via supports.

But, these aren't new properties for adding some optional visual flourish. These fundamentally alter how you organise your CSS code.

I struggle to see how one might use them in a way that there's enough...

cirrus, to random
@cirrus@mstdn.social avatar

Nice summary by @donnie of some of the #DesignTokens formats that are currently out there: https://blog.damato.design/posts/spicy-specifications/

FWIW, an analogy the #DTCG editors have used in the past is vector graphics formats:

The #DTCG format aims to be to tokens what SVG is to vector graphics. Standardised, widely supported as an import/export format and (somewhat) human editable.

However, lots of design tools also have their own, proprietary formats - e.g. Illustrator has .ai files. These may have additional...

cirrus, (edited ) to random
@cirrus@mstdn.social avatar

I have a few ideas for blog posts relating to #DesignSystems & #DesignTokens, but my personal website design is extremely crusty and old (still using XHTML!!), so I worry folks might be turned off by that and not read the posts.

Should I...

cirrus, to random
@cirrus@mstdn.social avatar

Just shutdown my Twitter/X account.

I had it for almost 15 years. I had a lot of fun there, learned a lot and met some great people. But, after barely using it since Elon took over, I've come to the conclusion that I'll never go back.

I grabbed an archive of all my tweets before closing my account, so perhaps I'll rehost them ony site one day.

cirrus, to random
@cirrus@mstdn.social avatar

I know it's been done a million times (incl. a few by my past self), but it still feels like magic when demoing a #DesignToken pipeline.

In our case, the demo was:

  • Static HTML, React & Angular web apps are all open in browser windows, displaying some of p
    our #DesignSystem components
  • An Android emulator running a React Native app, also using DS components, is open too.
  • I open a Figma library, edit the color of a variable
    ...
cirrus, to random
@cirrus@mstdn.social avatar

Despite frequently seeing code snippets that evoque a "WTF were they thinking?!" reaction, I quite enjoy refactoring and tidying up "old" code.

cirrus, to random
@cirrus@mstdn.social avatar

Oh dear. My phone is "struggles to last to the evening before the battery runs out" years old.

Also, the wireless charging broke yonks ago (I dropped it one too many times) and lately cables keep slipping out the USB-C socket. I tried to clean it, so don't think it's clogged with lint. Maybe something's a bit bent in there?

Was planning to wait for next year's Samsung S-series line-up, but not so sure it'll last until then. 😞

cirrus, to random
@cirrus@mstdn.social avatar

Due to all the streaming services, we had barely been using our DVDs and BluRays for a long time. So, to free up shelf space, we packed them away into boxes and put them in the loft.

Literally minutes later our broadband provider had an outage. No Netflix / Prime Video / Disney+ 🤦‍♂️

cirrus, to random
@cirrus@mstdn.social avatar

Our #DesignSystem's #DesignToken pipeline has become more of a hydra...

Figma vars & styles
|
+-> DTCG file
|
+-> CSS custom properties
+-> CSS utility classes
+-> Storybook stories for util classes
+-> TS code
+-> TS interface

...and there's more to come: React Native components, docs, etc.

Also, longterm I want to make Figma an output from the DTCG file (or have some kind of 2 way sync), rather than it being the source.

cirrus, to webdev
@cirrus@mstdn.social avatar

Started writing a decision log for our #DesignSystem. Documenting why we chose to build plain ol' #HTML and #CSS where we can and #WebComponents where client-side #JS is needed is turning into a bit of a manifesto. Essentially we're using (and encouraging others to use) #ProgressiveEnhancement 😉

cirrus, to random
@cirrus@mstdn.social avatar

Spent this afternoon wrangling NPM dependencies in our #DesignSystem's monorepo. Managed to nuke a few and also eliminate all the vulnerable package versions being reported by npm audit.

I am so ready for the weekend!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • Leos
  • provamag3
  • cisconetworking
  • lostlight
  • All magazines