Change the content on your page based on the light level in the room using the Ambient Light API. You can play around with the sensor.illuminance value in the pen to switch at different levels.
Give it a try:
See the code:
When I started my first job as a Front End Developer I was also doing design work. Less than a year in I got a new boss, he told me I had to choose between design or development, I wasn't allowed to do both.
Don't be that guy.
The struggle with loving CSS & HTML is that designers don’t accept you because you’re “not a designer” and the developers don’t accept you because you’re “not a developer”.
It can be a lonely place on the front end!
I wanted to make this for ages, I finally got around to it! It detects the Device orientation and updates the variable font weight axis (plus a transform)
Also using the Google Fonts V2 API
#variablefonts
Code:
Test:
😄
Check out the code for modifying your typography based on the Ambient Light Sensor (needs a flag turned on to work atm)
(If you want to test it you need to open in debug mode)
Post also available here:
My new site will share resources for developers to use variable fonts on the web.
I'll be adding more examples and resources over time but it's also on Github if you would like to contribute
Hey folks, if you find CSS Specificity confusing, don't worry.
Batman to the rescue.
<--- I made this a couple of years ago and totally forgot about it 😂
I want to talk about this image because when I look at it I think I see something different.
You might laugh and think it's the perfect example of how CSS Sucks. But let me tell you what I see...
Does anyone else get irrationally annoyed when people write webpage content in uppercase when you already have CSS in place that styles it accordingly.
😒 Just me?
A really simple demo using the Device Orientation API to control the background gradient and create an interactive split colour layout effect.
View the code:
Play with the demo on your device:
If you are working on a codebase where the CSS is easy to work with, appreciate the person who put in all the time, hard work and effort to set it up to make it easy for you.
It doesn’t happen by accident.
When you meet a person at a Conf you look up to, remember they are just doing their thing, they probably don’t feel important or cool & they might be super awkward!
If you liked their talk, tell them, because they are probably worried that no one liked it or they did a bad job!
Using the device motion api to adjust the width & slant axis on horizontal tilt with splitting.js to animate characters. Enjoy.
Font is Kairos Sans Variable by
@typeterrance
Code:
Need to view in debug mode on Codepen for iOS
The Three Steps of learning
@typescriptlang
Step 1: TYPESCRIPT JUST GETS IN THE WAY OF PRODUCTIVITY 😩
Step 2: oh...well..errr...thanks typescript...you saved me there..i guess 😒
Step 3: HOW DID I EVER LIVE WITHOUT YOU TYPESCRIPT, NEVER LEAVE ME😚
Learning CSS is like learning literally every other code language - it gets easier the more you know and the more experience you have. How you learn is up to you (vanilla, frameworks etc), but we shouldn’t pretend it’s somehow “a different process” because it really isn’t.
To reiterate from my original article:
“I love CSS, I love HTML and I love JavaScript. They are all important and all valuable in the front end space. What I don’t love, is the constant infighting and devaluing. Let’s stop that and appreciate all the things.”
It's been a while since I did a ramble, and as i've been on a bit of a Semantic HTML binge lately, I have some things to say!
Semantic HTML, it matters and it's important for creating a functional website.
Now that I have discovered
@Netlify
and
@eleven_ty
I find myself in a weird situation where the biggest blocker for me getting a side project out...is figuring out the design!?
I am confused by this and I don't know who I am anymore.
You know what makes HTML so great? It's not just using elements in isolation, it's how we combine them for better semantics and meaning!
Here is a post I wrote for CSSTricks about it, (featuring Voltron!)
@css
If you think keyboard shortcuts and controls in your dev tooling is awesome, why not be more awesome and make your websites easy to navigate with a keyboard as well!
Once I was stopped at airport security and asked where my parent/guardian was...I was so confused until I realised he thought I was a child...I looked at him and said “dude, I’m 30”. He was so embarrassed...
Moral of this story is that Adults wear batman hoodies too!
I can’t sleep I’m thinking about variable fonts and how cool they are.
I just want to talk to people about variable fonts! I have slides, will make demos. I want you all to know how awesome they are. 😄❤️🌟
My friend
@niaalist
suggested I create an animation of my editable layered fonts to show the different layers. So here it is.
This is five versions of Rig Shaded by
@JamieClarkeType
layered on top of each other.
Rant incoming:
Just because Perth is far away from you does not mean we don't know how to do our jobs, the Perth dev community is incredible.
There are incredible devs everywhere, being in a big city does not make you better than other people. 😒
I’m more convinced than ever that variable fonts are an important part of the future of web design so I wrote this article for designers about the benefits! 🌟
Creating a collection of text effects taught me a bunch of stuff about CSS. Creating a body of work with any language, even if it's something that seems trivial helps you learn and gain a deeper understanding.
MAKE ALL THE THINGS PEOPLE!
There are so many incredible women presenting and tech conferences, in fact, 9/10 of my fav talks were given by women.
Someone tell me how some conferences find it hard to find women to present—because they are everywhere and they are exceptional.
The "divs everywhere" problem doesn't go away if you stop using JS frameworks. Conflating the two is a misrepresentation & hides the real opportunity - which is to encourage each other to learn & understand which HTML elements best represent our content for current & future tech.
Now that all modern browsers support SVG favicons, here's how to turn any emoji into a favicon.svg:
<svg xmlns="" viewBox="0 0 100 100">
<text y=".9em" font-size="90">💩</text>
</svg>
Useful for quick apps when you can't be bothered to design a favicon!
I am really struggling to find conferences that take CSS talks, Ive looked through the github repos etc of conferences but it's all JS. Where are the CSS conferences? I want to talk about variable fonts 😀
For 2020, I'm looking for a JavaScript & React mentor. I've spent the last ~1.5-2yrs managing a team and not properly working on my dev skills. I'd love to get some support from someone. If you think you can help me, please let me know.
.
@BlackMilkTweets
I think you need to bring back the Mermaid Ocean Pants. Every time I wear them at a conference people want them. Also I need to purchase back up pairs so I can wear them forever!!! 💜🧜♀️💚✨💙
Everybody needs "Professional mermaid pants", just saying.
I embraced Formal Friday as proposed by
@georgiecel
, not having to commute to work definitely gave me more time to get it right this time. ✨
(I might be running out of toilet paper but I’ve got a wardrobe full of costumes)
Heh, there is so many things here that made me laugh.
"The famous javascript"
"I learned this in gloomy compulsory education"
"You're great at the internets"
LOOOL
Try this with tech instead: "I'm quitting tech to become" and then let predictive text decide your new career path.
I'm quitting tech to become the most popular man in the world
It's official! I'm coming to Austin for Smashing Conf next year. 🤩 I can't wait!! I feel so lucky!
Come along and join us, the other speakers are amazing! Check out the thread!
And all the way from Perth Australia, the lovely and lively
@Mandy_Kerr
is a variable font expert and knows a thing or two about APIs as well. We can’t wait to see her speak!
This picture of me from
@viewsourceconf
is hilarious. I can honestly say I have no recollection of this moment. What was I doing?
Thanks for the great pic
@paul_clarke
#ViewSource
Today I’m officially no longer working until next year! I slept in, listened to music, watched anime in my pjs, I’ve gone shopping, and now I’m eating Ice cream.
Frankly, it’s the best fucking day ever 😄
On trend of sharing my awkward stage poses with everyone, please enjoy these two photos, the first from
@webdirections
featuring a Pegasus Pants strut and the second from
@FronteersConf
as some kind of air grab... 🤦♀️
👍 Nailed it 😄
Part of being a good developer is acknowledging & recognising when people have helped you! If you give talks, write articles or demos include references to the code, articles, people that helped you accomplish it
We all build upon work, be sure to share that part of the journey!
I had a play with the Google Fonts V2 Beta API. There are a couple of changes but it's still simple to use!
I wrote a short post:
@jpamental
also wrote a great post about it
#variablefonts
I was playing around with the viewport and variable font sizing on the weekend. Check out the Codepen using Voto Serif GX by Adam Twardoch
(Optical sizing can be hard to see in the video)
Control your variable fonts using media queries like prefers-color-scheme
This is a silly example, but in all seriousness you could create improved contrast, readability and legibility based on user preferences!
#variablefonts
Using Chee by
@OHnoTypeCo