Craft CMS has the ability to accept environment variables as well as aliases. It can be worthwhile understanding how these two seemingly similar concepts differ, and when you might want to use one over the other.
Josh breaks down why and how you can use CSS
variables more easily in React, specifically using
styled-components. Honestly it feels a little terrifying how much
is needed just to get basic β¦
var is globally scoped and hoisted, which can lead to unintended
side effects. let is block-scoped and can never be redeclared
within that scope β much harder to break, but need to be careful
about β¦
An interesting overview of the history of note-taking,
specifically as it relates to the concept of a commonplace
book and the myriad related forms, including the most recent
idea of a β¦
An interesting approach to using data attributes to drive CSS
utility classes. I'm not sure I like the overly granular control
(it feels like it falls into the same category as Tailwind, but now
with β¦
π
Pass API Data to the Stylesheet with CSS Variables
I keep running into the same problem: how to set a style attribute in the CMS and have that be dynamically rendered on the front-end, without relying on inline styles. Turns out it's a great use case for CSS variables!
CSS variables (aka CSS custom properties) do not have
access to the cascade. That means they can't fall back to earlier
rules, so if your variable is invalid, the browser will simply
unset β¦
A playful and fun new variable font, which lets you control the
amount of thickness in three novel ways: ink trap, ballooning, and
curve. The result are letterforms that almost seem to disassemble
as β¦
Migrating assets to a new CMS can be a complete pain, but working out which files go with each page or article on a website doesn't have to be a nightmare if you start with a solid foundation. For me, that means tightly coupling my folder structure on the server with my content structure on the website, a workflow that Craft is particularly nifty at automating.
Jeremy has been updating The Session to use variable font sizes
with the new CSS clamp() property. He offers some interesting ideas
on how best to do β¦
Max has a pretty brilliant colour theme switcher on his website.
I agree with him that "dark mode" is only the tip of the iceberg
and with CSS variables we can now theme sites very easily. There
are β¦
I'm always interested to see how other people utilise
styled-components and the tips Josh shares offer exactly that kind
of insight. I fundamentally disagree with his take on descendent
selectors β¦
Heydon's video is an excellent overview of their much-loved owl
selector and "stack" layout pattern. I actually didn't realise that
Heydon was the original "inventor" of the owl, though it makes
a β¦
I've always thought the utility of Tailwind was
promising, but it bugged me that the way it worked was so counter
to both best practices and the web stack's architecture. Well,
introducing β¦
Today we returned to Dartington Hall for a longer sampling of
the myriad topics on offer from Ways With Words. From
holocaust miracle babies to disruptive political leaders, our day
was β¦
The RICG has a new fight: CSS container queries. The article's
ignited discussion, beneficially. The problem is legitimate, the
reasoning well argued and the solution intriguing. But something's
β¦
Zurb have released a great breakdown of their redesign for The
Next Web. The article jumps between people's perspectives; it's a
neat way to present main goals whilst highlighting the variety of
folk β¦
Today we boated from Exmouth to West Bay, whilst a(nother)
geologist talked us through 200 million years of geological
history. Apparently, the South Coast of Britain is one of the only
places in the β¦
Toshl is one of those weird little apps that, on paper, appear
extremely useful but which I've never quite clicked with. On at
least three separate occasions over the past year I've signed up
for a β¦
So I've owned a set of Logitech z4 2.1 desk speakers for about
five years now, ever since a good friend of mine effectively gave
them to me because they couldn't fit in his car. They remain one of
β¦
Month in media is an archived project, now with a permanent home in the Reviews section. Films, TV shows, books, video games, and other media watched, read, or played in May 2016.
I've just noticed that it's been over a week since my last post.
In and of itself, that isn't an issue. There are no schedules here;
I have no binding commitments to theAdhocracy. Entire months or
β¦
CSS? Fonts? Italics? Sidebars? What witchcraft is this?
Is this not theAdhocracy, the home of plain HTML and nothing more
(despite the clear problems associated with that)? Well: yes! But
at β¦
The concept of "card based" web design has been around for at
least three years now. So why is it that the following quote from
Khoi Vinh, written back in 2014, still appears to be a fundamental
β¦
Month in media is an archived project, now with a permanent home in the Reviews section. Films, TV shows, books, video games, and other media watched, read, or played in January 2017.
How do you determine quantitative worth for a de facto
subjective experience? Is there even any point? Can you make
related "values" actually relatable if those "values" are arguably
β¦