Thursday, November 30, 2017

Published 1:46 PM by with 0 comment

So, Can We Use CSS Variables Yet?

With all the talk lately of finally being able to use CSS Grid, it got me thinking: What other amazing CSS features can I use now? CSS Variables was the one that instantly sprung to mind.
It’s been a while since I’ve heard anything about CSS Variables and it adds a whole new toolset and way of thinking to front end development that excites me.

A REFRESHER ON CSS VARIABLES

CSS Variables have been knocking around for a few years now but don’t seem to be in wide usage. With the popularity of pre-processors such as Sass, frontend developers scratched that variable itch a long time ago.
I was first excited by CSS Variables in around 2014 and since then they’ve dipped in and out of my interest sphere. I’m only now considering getting them into production sites and I’m going to show you how simple and easy they are to use.

DECLARING THE VARIABLE

Declaring the custom property is simple: We need only create the property we want and append two dashes to the beginning of it. These can be declared anywhere but adding them to :root seems to be a good approach at the moment.
--my-reusable-value: 20px;

ACCESSING THE VARIABLE

Using the property is pretty simple as well. We access it through the var() function and use the property we declared above.
padding: var(--my-reusable-value);
Isn’t that simple and glorious?
CSS Variables are straightforward to use and pretty easy to remember. The biggest challenge with CSS Variables (as with most CSS) is knowing the right time and place to use them. Throwing them in haphazardly is a sure fire way to create a mess of a stylesheet and with these variables thrown in debugging will probably become more difficult.
Proper use cases and strategies for using them should be considered and this is where the majority of your effort should be focused.

AN INTERESTING USE CASE : RESPONSIVE MODULES

In the following example I’m going to show you a basic example of how I currently build a responsive component using Sass variables. Then I will show you how it could be improved upon with CSS Variables in a way that’s not possible with a pre-processor. This is a specific use case which does not apply to every way variables are used but is to show how CSS Variables can be used differently.

SASS EXAMPLE

When using Sass there are a few different methodologies I’ve tried. My current go to version is placing media queries within the CSS blocks I want to change. In here I can use a variable, standard CSS, mixin or an extend to modify this element without scattering the styles for the component everywhere.
One problem with this is having multiple media queries and lots of variables which are kind of related but not. I could use maps for the variables which would give more organisation but I think the main issue is that we’re using a multiple variables to define one property. This just feels wrong.
Sass variables are used ahead of time which means we have to plan every way we’re going to use them. They make developing easier but technically don’t provide us with any new superpowers.

CSS VARIABLES TO THE RESCUE

CSS Variables do not need to be declared up front, they are dynamic. This is useful in a very different way. We can now conditionally change variables from anywhere and in specific contexts such as media queries.
By serving our media query styles right up from we can reduce the amount of media queries scattered around for responsive styling. It also gives a really nice and clean way to see general spacing and typography styling across different formats.
I think responsive designs and theming are two excellent use cases for CSS Variables but there are so many possibilities.

HOW ARE CSS VARIABLES DIFFERENT FROM SASS VARIABLES?

Sass Variables and CSS Variables are two different beasts, each with their own pro’s and con’s.

SASS VARIABLES CAN BE ORGANISED BETTER

Due to the popularity of Sass and the more programmatical nature of Sass, more in depth organisation patterns have evolved over time. I particularly like sass maps and combining similar type variables into the maps. Colors, sizes and shortcuts for paths seem to be popular choices for including in maps.
Because of the relatively smaller usage of CSS Variables the best practices have yet to evolve. Maps and arrays are not possible in the same way in CSS so these new organisational patterns will have to innovative and solve the problems in a different way to Sass.

CSS VARIABLES CAN BE DYNAMICALLY CHANGED

CSS Variables are handled dynamically by the browser at runtime whereas Sass Variables are used when the CSS is compiled.
This is the core selling point of CSS Variables for me. It will be interesting to see how people use this feature over time and whether it will live up to its potential.

CSS VARIABLES ARE A STANDARD BROWSER FEATURE

I’m personally of the opinion that the more things we can remove from Webpack, Gulp, and whatever-new-framework-is-out-now, the better. Having interesting new browser features means we don’t have to rely on compilation and JavaScript frameworks to do things developers feel are essential. I would hazard a guess that a high percentage of frontend developers use variables in their CSS in one way or another, so everyone using this a core feature seems like a sensible thing to do. It means one less thing in the build step (which I think we can all agree is getting pretty immense these days) and more consistency across the web.

WHAT IS THE SUPPORT LOOKING LIKE?

The support is looking remarkable good with one glaring exception: IE 11. Most modern browsers support CSS Variables with Edge having a few bugs.
At 78.11% this is higher than CSS Grid (at the time of writing) but that IE11 support could be a problem.

SO, CAN WE USE CSS VARIABLES YET?

I think the time is now. That IE11 support is not going to get any better, and we know from previous versions of Windows that it takes a long time for some people to upgrade. But the support across modern browsers is great which means we should be looking to CSS Variables and experimenting with the possibilities.
That doesn’t mean we shouldn’t forget about our responsibility to older browser support though. A basic fallback system using a supports tag, or even a polyfill, for older browsers should be considered, even more so if your actual site usage is a lot more skewed to older browsers.
It’s an exciting time for front end development, and I for one can’t wait to be using more of these technologies in my production sites.
 By Jake  Adam Hughes  - Orginal Post: https://www.webdesignerdepot.com/2017/10/so-can-we-use-css-variables-yet/
Read More

      edit
Published 1:17 PM by with 0 comment

Top 10 Web Design & UX Conferences Worldwide

If you’re thinking of launching a design conference or attending one yourself this list should be all you need to get started.
Out of many annual conferences I’ve curated my 10 picks for the top conferences on web and UX design. These each feature something a little different and they all have their appealing specialties. So whether you’re looking to grab a ticket or design a site for your own conference I think you’ll find something in here to grab your attention.

1. REASONS TO

Reasons to is very much a creative conference discussing all things design and code. It’s an event for creators whether that means building webapps, mobile apps, websites or anything similar. It’s an international conference giving special attention to people who make things. Coders, animators, filmmakers, artists, you name it.
This may not relate directly to design but it does cover a lot of the design industry. Many speakers come directly from a UI/UX background and many others have worked at big companies like Adobe or Google.
Great atmosphere for the price and a nice conference if you wanna meet face-to-face with more creatives.
01-reasons-to-conf-website

2. UX LONDON

As the name suggests, UX London is all UX design without the fuss.
It features plenty of talented speakers along with workshops teaching modern UX design tips. You’ll learn from all kinds of industry experts ranging from brand strategists to technical UX leads on mobile app projects.
This conference runs for 3 days and each day focuses on a specific area. The most recent conference ran topics on product design, service design, and experience design.
If you’re curious to learn more check out the site and try grabbing earlybird tickets if you can.
02-ux-london-website

3. UX AUSTRALIA

The umbrella of UX Australia houses two different conferences across the country.
The two most recent events include Managing Design for companies & organizations, plus the default UX Australia conference. These ran in Melbourne and Sydney respectively.
UX Australia is typically a 4-day conference and it’s probably the largest gathering for UX information down under. With a huge list of speakers and many workshops covering lots of different topics you’re bound to find something you like here.
Note the workshops typically run for 2 days and the talks/meetups run for another 2 days. So you can buy a ticket for just one part of the conference if you’re hoping to save money.
03-ux-australia-confs

4. UXDX

Here’s another fantastic UX conf with its home in Dublin, Ireland.
UXDX combines two different areas with content on typical user experience(UX) along with developer experience(DX) for coding webapps or microservices.
Anyone who’s big into the UX or DX industry will find something here. It’s a great resource for anyone getting into DevOps or anyone trying to learn more about either side.
Large brands also frequently take the stage with representatives from companies like Slack, Amazon, and Barclay.
04-uxdx-conf-website

5. DESIGN & CONTENT CONF

Design is just aesthetics without content; writing is just words without design.
These two areas overlap quite a bit so it makes sense for content strategists to care about UX and vice-versa.
The Design & Content Conf is a magical meetup for merging the discussion of content with user experience design. The conference recently hosted in Vancouver and featured a huge lineup of content strategists with practical tips.
It’s a great resource for freelancers and agencies alike who want to plan their content for greater user engagement.
05-design-content-conference

6. AN EVENT APART

A List Apart first launched in 1999 as a newsletter and has since grown into a massive brand. It features books and many events annually branded under An Event Apart.
These events usually run 2-3 times per year within the continental US.
When it comes to discussion topics the sky’s the limit with speakers covering absolutely everything related to great web design. This includes general user experience along with coding trends, frontend frameworks, content strategies, branding, design tools and so much more.
06-an-event-apart

7. UX WEEK

The UX Week event is a very pricey conference but if you’re serious about learning it’s worth the entry fee.
It’s a 4-day event where UX professionals from around the world gather together and share tips, inspiration, industry news, and advice for the upcoming year.
As of writing this post UX Week just celebrated its 15th year running which is a huge milestone. Considering the rapidly advancing UX industry I think it’s safe to say this conference will be around for many years to come & it’s one of the more practical UX conferences you can attend.
07-ux-week-conference

8. UX STRAT

The UX Strat event is all about growth and practical skills. It runs twice a year with one event in the US and another in Europe.
Both events host a number of workshops and teaching sessions with industry leaders to help eager designers catch up with the latest trends. Topics include data-driven UX design, A/B testing, and business-oriented UX strategies.
You can learn more on the main site but also try subscribing to the UX Strat newsletter. It shares relevant tips and upcoming info on the latest industry trends.
08-ux-strat-website

9. UX SOFIA

UX Sofia runs annually in the city of Sofia, Bulgaria in eastern Europe. It’s quite a flexible conference with an optional timeframe of 5 days hosting speakers, workshops, and networking. The conference technically runs for 3 days but the organizers stick around for 1-2 days afterwards for an optional tour around Sofia.
This is a great way to meet other UX designers and build connections before you head back home.
I can’t say this is the largest UX conference but it’s definitely a big one. Especially if you already live near Bulgaria and could catch a plane ticket for cheap.
09-ux-sofia-conference

10. PUSH CONFERENCE

The vaguely named Push Conference unites creatives from all over the world who share a similar vision of the future.
It’s a tech conference with a focus on people who create apps, websites, and fascinating technology with a compelling user experience.
Push has run for over 5 years with a long list of professional speakers and successful workshops. Most of the speakers come from diverse backgrounds so it’s truly a conference for everyone. If you’re enamoured with building awesome products then Push Conference is worth attending at least once to see what you think.
By Jake Rocheleau  - Orginal Post: https://www.webdesignerdepot.com/2017/10/top-10-web-design-ux-conferences-worldwide/
10-push-conf-website
Read More
      edit