PUXL, the Accessibility-First Framework: What is it and How Does it Work? | Accessibility NYC Meetup Recap

On September 12, Accessibility New York City hosted a meetup entitled “PUXL, the Accessibility-First Framework: What is it and How Does it Work?“. The presentation was led by Iñigo Garcia, the creator and co-founder of the PUXL Framework. This framework is a free and open-source and eco-friendly library to create front-end Web interfaces.

Here are some of our highlights from the presentation:

Transcript: A11yNYC Sep 12 2019 - PUXL, the Accessibility-First Framework: - Iñigo Garcia

Well, good evening, everyone. Welcome to Accessibility NYC, and thank you so much for braving the elements to join us here tonight. On behalf of our core organizers, I would like to welcome you and to also those of you that are watching out on the internet, on our live stream, I would like to say hello to you as well. Before we get started, I would like to thank our generous sponsors, Equal Entry, contributing to a more accessible world, Adobe, Level Access, and Thoughtbot, who are also providing the lovely meetup space that we're in tonight.

These meetups are very much a team effort. I would also like to thank in addition to my co-organizers, I would like to thank Joly MacFie, who is producing tonight's live stream, and Mirabai Knight from White Coat Captioning, who is making all the lovely captions happen tonight. I invite you all that are here to stick around after the presentation, to mingle and to chat and to maybe have a one on one conversation with our presenters.

We'll have some Q and A at the end of the presentation, but if you have some additional questions and follow-up, please stick around. This is a meetup, after all. So there's a social element to it. So please, you know, interact, and with that, without further ado, I'll hand it over to tonight's presenter.

All the way from Spain, tonight. PUXL Framework.

INIGO: Thank you for coming. Okay. Okay? Better sound?

Okay. So... Thank you again very much for coming. For sharing your time with us.

It's an honor to be here for us. And before I begin, I would like to say hello to some people that couldn't come. We are a team of five now. And we were supposed to be three here in New York City.

But we only managed to come, two of us. So we would like to say hello to Javier, our CEO. He's a nice guy. He -- as a joke, he just, to call people fluffy toys, or in Spanish, it's peluche.

So Hola, peluche. Because he couldn't come with us, we did take him with us. And we printed out the face of Javier. And he's so nice in here.

There you go, Javier. You are with us in New York. And also, I would like to say hello to mom and dad. Mucho amor.

And I will begin! So I don't want to miss anything. I'm a designer, human developer, I am not a good presenter, so I will stick to the script. Because I don't want to miss anything.

I hope not to be boring, reading in a language that is foreign for me. So I will speak in two parts. The problem and the solution. Because we come here principally to propose a solution.

The first part is for those who are watching and still don't know the web development industry. The second is called what is PUXL framework and how does it work. It's more technical. And more appropriate for this audience.

To the end, I will show a demo of the tools we want to introduce today. Okay? So this is Javier with us, in Times Square. And...

Okay. The web is made of a complex mess of technologies and programming languages, constantly evolving. The main languages used to build the web are HTML, to give websites structure and content, CSS for appearance and design, and JavaScript or JS for interaction and behavior. HTML language is the baseline of all the web to build...

Excuse me. Is the base of all websites. It's very flexible and has a particular feature. It can work even if it has coding errors in it.

And web browsers do a great job rendering that code, even if it's incorrect or incomplete. If HTML code is not properly written, it can become a technological barrier to do things on the web. The web is built by the developer community. That writes code in this and other languages.

In this community, there are professionals, semi-professionals, amateurs, newbies, and everything in between. Not every one of us have the same skill set or good coding practices. At the beginning we had no idea, then we learned, and we had to learn from others, good or bad, in our field. It can be very easy to follow trends from others, and inadvertently inherit bad habits, restrictive ideas, ignorance, or simply tiny human mistakes of other developers, without ever realizing.

So web development is so complex. For many, it's impossible to be good at everything a website may require in all stages. Usually by mistake or ignorance, bad or not good enough code and hidden errors are published to the web. Depending on the particular conditions of a website, devices, the human browsing it, and the environment in that moment, the access and interactions with that website could be very different.

It's not the same to browse a website from a smartphone outdoors in a sunny day, a computer with a broken mouse, or a tablet attached to a wheelchair, without touching it with fingers. A website must work decently in all these three conditions and many possible more. Sometimes assistive technologies are used to browse the web. Like voice assistance, screen readers, and many more.

But coding websites could provoke friction or impossibility to perform actions under certain conditions. For many of us, it could mean little or no problem. But millions of human fellows with functional diversity -- for them, this is real life still today and has consequences in the day by day basis. In the process of creating a website or application, web accessibility, if known in advance, is often left at the end as an additional feature.

Like an extra work to be done. It's treated like a final revision with potential hard changes in all the work done for weeks or months. By one or many in a team. Leaving accessibility for the end could require to iterate production processes, extend deadlines, and budgets.

That's why it's seen as a threat by many. Web accessibility must be considered at the beginning of any project by all departments involved. Not at the end, when it's too late and expensive in many ways. It's very difficult to write perfect code in a hurry.

With no time to stop for anything. Not stopping to learn about web development because of other important priorities could perpetuate bad code outcomes. To fight it back, we have to be well-educated or bad code will continue to spread. Fortunately, there is a lot of educational help coming from the public and private sector, groups and individuals that do a great job raising awareness, financing and publishing educational materials, and public encounters.

Like this one, for example. We can be overwhelmed with so much work we don't have spare time to invest in learning new topics. Sometimes we don't even know about the new things we need to know. This looks like the recipe of a systemic failure in this industry.

We think some kind of continuous educational assistance is essential. It should happen in the moment of coding. But without the distractions. We'll have the web content accessibility guidelines, or WCAG -- is WCAG in here in English?

You say it WCAG? Okay. So the WCAG -- this is made by the world wide web consortium, or W3C, to guide us all towards a universal web. It's an international reference for coding accessible patterns and a document so long and detailed it's not suitable for everyone.

Therefore not mainstream. We have three versions of WCAG. Version 2.1? 2.0?

Two-point-zero? How you say that? Version two-point-oh in 1999, version 2.0 in 2008, and the current, 2.0, which is an upgrade of 2.0, to reflect the new system of devices that came to the web in recent years. First were smartphones with touch screens.

Then came tablets. They brought new things like screen orientation and gestures using one or more fingers. Countries and governments rely on the WCAG specification to write their legislations, but WCAG itself is not law. These laws are made to protect the human rights to access to information and education and forced to follow accessibility standards to virtually every website of public interest or products or services available to the general public.

Canada adopted WCAG 2.1 and it's a significant source of trade with the USA. In Europe, the European standard for information and communications technologies was updated last year in 2018, including WCAG 2.1 in it. Then the European Union invited all member states to adopt these new standards in its legislations, and Spain headed the trend, adopting the WCAG 2.1, and requiring AA compliance level for websites. In some countries of Latin America, we know there are works in the making to update all government websites to WCAG 2.1 AA standard, in less than two years' time.

At the end of this story, right protection laws come and force websites to be accessible under the threat of administrative or economic punishment to owners of businesses or web developers. For many companies, lawsuits and fines can be a huge problem. Sometimes could mean the end of operations. There are countries like Spain, where it is possible to file a lawsuit against the website even if the website is not required by the law to comply to WCAG 2.1 AA accessibility recommendations.

In the USA, there is section 508. Five-oh-eight? Five-hundred-and-eight? Cool.

You have the section 508, which refers to WCAG 2.0, with a requirement of compliance level of AA. This specification, the 2.0, is 11 years old today. There is also the Americans with Disabilities Act or ADA, and specifically the Title 3 says that websites are an extension of companies, therefore public spaces. Some interpret this as the obligation to refer to WCAG 2.1 AA because it's the last standard.

This uncoordination between laws 508 and ADA is causing an ambiguous legal turmoil around web accessibility issues. The number of lawsuits are increasing in the last years, especially in the State of New York. They cost lots of money, lawsuits and trials, in the public administration and the general public. We think this can be prevented by making WCAG 2.1 compliant websites.

By doing this, they are WCAG 2.0 AA compliant in one shot, so no more section 508 or ADA to worry about. For web development, there are many automated tools to help make an accessible, well written code, like code checkers and browser plugins. They integrate in the development process to measure the quality and interactivity of works, but they work only if they are installed, and most importantly, used. To make life a little easier to developers, there are also a number of frameworks and libraries available.

Usually free and Open Source, to help build web user interfaces. But most of them don't follow the last international web accessibility standards. Some of the most popular frameworks use non-optimized coding patterns, and they do things with much more code than necessary. Then they often depend on other frameworks or libraries, adding even more load to network data requests.

But still are the mainstream tools today. So what if we could get rid of all of this? What if we could forget about legal issues and accessibility standards that we may not understand? Wouldn't it be just great?

If developers were guided when writing code and prevented from delivering non-accessible code in the first place, all the problems mentioned before would be avoided. These problems would no longer be problems for anyone in and out of the web. In the end, one billion humans with some degree of functional diversity is a huge market to invest in. So I'm glad to tell you: We came here not to be pessimistic with this kind of situation, reminding you of problems that many of you already know, but to bring a technological solution to this situation.

Today and for the first time in the USA, we introduce you PUXL framework. PUXL framework is a tool for developers, to help them create modern websites that are accessible by default. It's an easy to use tool, like most popular frameworks, and with preventative measures built in, to deliver WCAG 2.1 AA code. It's a collection of modules of accessible, lightweight code patterns.

They are written in HTML5, CSS 3, using SAS, and JavaScript. The framework is documented and modules are ready to copy and paste. It's free and Open Source, licensed under GPL version 3. It has no dependencies from other frameworks and is totally customizable to fit in virtually any modern web project.

If you know Bootstrap, Foundation, Materialize, you know PUXL framework. Installation is simple and no command line is required. Just include the folder containing PUXL framework in your project, a link to CSS and JavaScript files. All files are compiled in single CSS files.

Modules can be included or excluded from the projects, to optimize the size of the resulting file. And save network load. When creating websites with PUXL framework, if for any reason something important for accessibility is missing in these patterns, the developer is warned immediately. A bold, persistent message is displayed in realtime, right in the frontend, explaining what fails, where is it located in the page, why it fails, and how to solve that particular problem.

Once the code is fixed, the message disappears. It includes automated color management algorithms to help developers do the heavy load of contrast calculations that are so complicated, or simply impossible to many. It works in semantic HTML5 or document structure and patterns are reduced to the minimum necessary. This way, we avoid div soup and span salads and reduce load for data transfer.

Finished. Do you want to see it working? Yeah! It's a bold statement, all of this.

But... We can do it. So... Let me leave this here.

INIGO: Should I continue? Yeah? Okay. So...

I will bring you a little demo of how PUXL framework works. This is a simple website. A usual simple structure. This HTML code was given to us by our client, for example, or our department.

And this is real code with no styles in it. You can see here buttons and SVG images, text with no formatting in it. And it looks like this is a design we have to work on. So the first thing we have to do is to...

Excuse me. Okay. So this is a document. We will include the PUXL framework.

Okay. CSS. I will include the minimized stylesheet of PUXL. And save the document.

No, sorry. Okay. You see the captions now? Okay.

So... I will go to the website. And once it's loaded the website, the stylesheet, let's see if it works. Maybe I didn't save?

Okay. So... Here it is. Here we have the design.

This is trashy. Here we see some red error messages. And even though we have a structure for the page, we have failings in here. So, for example, the first message says that missing attribute... dir, or direction in this HTML tag -- the direction attribute value defines the horizontal direction of the text flow.

It can be left to right or right to left. For example, HTML dir ltr or HTML dir rtl. So once we have this message, we go to the HTML file. We put the dir.

Left to right, for example. Oh, again... No, sorry. Every time I press command-save, it prompts the window for the transcription.

So this is... Saved. Okay. And now...

If I reload the page, the message disappears. So we didn't know anything about direction in HTML. And now in one second, we know what we have to do and why it fails and how can we solve. So if we continue with this, we will see that here you can inspect the element in the code browser...

We will see that... Sorry. There is a style that says that the alt attribute is missing. So we'll go straight down to the code.

Look for the image. I know where is it. I'm not going to bore you. Here it is.

So here we put the alt attribute. It can be filled with text. Or left empty. But it has to be present every time.

So once we have added the missing attribute in the website, it goes. And you can keep following with your design. If we go to the bottom of the page, we will see again a redness of things that are not working. For example, this button.

This button tag must have a type attribute. Use button, reset, or submit, for example. Button type. Button type.

Reset, or button type submit. Such as... This. I'll go to the line in the code.

Not so far. Button. Here it is. So I will type...

Type. And this is part of a form that will send an email address. So we have to use the submit attribute. Submit property.

Sorry. Save. Check. And it's gone.

And the other thing missing is for the label, for the text field. This says that it has no "for" attribute in the label. It has to refer to the id of the element it's controlling. So we go there.

We put here "for". And here we'll paste. We'll copy-paste. The id of the element who it's referring to.

Again, save. Sorry. I'm not used to it. Sorry.

So save.

Can I ask a question while you're doing that?

INIGO: And then the error disappears.

So except for the alt text, which to me seems to be a clear accessibility issue, which you by incident left blank, why is this an accessibility issue? The errors with the buttons or the omissions with the buttons?

INIGO: With the buttons? We didn't specify the function of this button. It's not to perform a generic action like a button should do, or to reset the form or to send it to the server. So we have to specify the function of this button.

Right. But that's sort of a generic HTML coding thing and a mistake that you make. But what is the accessibility issue with that mistake?

INIGO: Maybe some... I don't know, because I didn't test it, but I have read that some screen readers...

Screen readers.

INIGO: Okay. People say it -- okay. Thank you.

What happens is the screen reader... Sorry.

INIGO: No, no worries. Thank you.

What happens is, when the screen reader is reading and you're tabbing through, it'll read "button". But it's not telling the person what type of a button. If you tell the -- you have to specify it so the screen reader can say "it's a submit button" or "a reset button". And that's why you have to do that.

With the images, if the image is not giving you -- if it's not relaying information about it, that's why you leave it empty. But if the image has a specific message that needs to be read, then you write that in the alt.

INIGO: Thank you very much.

Thanks. So I think that these error messages are wonderful. But it also brings a question: Is there a dev and a prod version? For dev, I get these error messages, I go through everything, and for production, it's linear.

Doesn't require giving me all those messages.

INIGO: Excuse me. I didn't understand.

Usually with libraries like these, that are helpful to the developer, there's usually two versions. So there's one that probably has JavaScript, that checks for all these things and gives me messages. And then there will be another one that's much leaner, because it's for production. So I don't require seeing all that functionality.

So I was wondering if that's the case here. Does it only have one version?

INIGO: In this version of PUXL framework, the one you can download today, you have always the message. In the next version, we have a flag to stop the messages while you are in production. Or to put them when you need them.

Sounds good. Thanks.

INIGO: Thank you. By the way, it will be released in the next months, maybe. We will let you know. Okay.

So we are done with the errors on the page. But we have something here missing as well. Here sometimes when we're in production, we know that we will have a menu, and we don't have all the links that the menu will get us to. So here we have a little note saying: Hey!

You're missing the href, because you have the hash? That's the hash, okay? Thank you. So here -- if we go to that link, to that particular link, we will see that here the href has the hash.

And if we put for example... The website of PUXL... Okay. We go to the website.

And this little note disappears. So now we have a code that we didn't know we had to fix. And in a couple of minutes, we know how to fix it. Why.

And by the way we learned why we had some errors. So this is... Information pills right in the moment, to tell you that you need to fix something. And when you have fixed, it goes away, and you can continue with your work.

So that way, you don't have to wait 'til the end to know what is failing in accessibility in your code. So this is basically the thing, how it works. I'm not going to test with screen readers or with other assistive technologies. But I will use the aXe plugin, and I will make a little audit of this particular page.

Analyze. So congratulations. You have zero violations. Nothing to review.

Nothing rejected. Or best practices recommended. So this is for developers. It's for people who write code.

But what if you don't write code? You just publish content to the web, like writers, designers, whatever? We have... We have created a set of tools to accompany, to PUXL framework.

The first one is a set of icons. In SVG. So that they can be... Excuse me.

Okay. Here. They are SVG -- they are scalable. They have the title and description in it.

Each SVG has title and description. And you can use it for free as well. It has -- it's free and Open Source, and it's licensed under GPL version 3. But what if you don't want to mess with code?

Because it's not your job, or it's too difficult for you? We also prepared a solution. We have been working on a WordPress theme, because WordPress is more than a quarter of the web. It's really widespread.

It's not the only focus we have, but this is the first step. So... Sorry, by the way. I will give you the links later, of both PUXL Icons and the WordPress theme.

The WordPress theme we did is something very simple. Sleek. No design. Something you can build something upon.

You can customize it. And it's written from zero, using PUXL framework to deliver an accessible code or an accessible structure. Then the content depends on you. But the beginning of the website is accessible.

It's 2.1. It's WCAG 2.1 compliant. And it's AA compliant. So here's the test.

It's a simple design, as you can see. But if we inspect with aXe again... Okay. Congratulations.

So you're starting clean. And over this, you can customize however you want it. Both... No, sorry.

I missed... Oh, okay. Both PUXL Icons and PUXL Framework and the WordPress theme -- by the way, that is our first theme for WordPress. And it's meant to be for all.

So for all in Latin is said omnibus. And like a little geeky joke, we call it Omnibus Prime, like the Transformers. So you can find it in PUXL.io/puxl-icons... Is it dash?

The character? I have good English. puxl.io/puxl-icons. And the GitHub repository is GitHub.com/PUXL/PUXL-icons.

And Omnibus Prime is PUXL.io/demo, and the repository is GitHub.com/PUXL/WordPress-theme-Omnibus-Prime. So this is what we do. We have a tool to solve some human problems. Because sometimes not being able to deliver good code is a human problem of deadlines.

Not because technology cannot get to that point. And we want to work towards a universal web. And we think this is the way to go. So thank you very much.

With love from Basque Country, the place where we come from. See you at WordCamp New York City, because we will stay you here 'til Monday, and maybe at WordCamp US too. You can use the hashtag #PUXLTour19, because this is one stop of our tour that we've been making in Spain and internationally. So thanks for coming.

And thanks to be here. And I will answer whatever questions. Thank you. (applause)

Thank you so much. So we'll open up for any questions you may have. Just wave me down, and I'll hand you the mic. That also goes for anybody on the internet.

If you chat on the page, we can ask on your behalf.

So... Thanks again. I love how this looks. Especially since it's helpful not just to future end users and clients, but also -- did I get all my links?

That was a great little feature. Sorry. I just thought of my question -- I think I just forgot it. Oh, jeez.

Yeah, I did. That fast. Okay. Let's try one more.

INIGO: No worries!

I'll write it down this time. We can try a different person.

INIGO: Anything else?

Hi. Thank you for the presentation. About the error message that you showed through the framework. Is that customizable?

So say that... What if the look and feel of the error message -- somewhat overlaps with existing styles of the website itself? So maybe it's hard to recognize in that case? So is there a way that you can change the look and feel of the error message style in a way?

INIGO: Do you mean to customize the way error messages are displayed?

For example, the error message that you showed was red background and white text on it. So say... What if the original style of the website has the same red background with white text. In that case, how would you -- how do we alter that look and feel?

Is there any way you can change that?

INIGO: To be true, I didn't think about this case. There's no way to customize yet the error messages. Or when they are displayed. They are built in each coding pattern of the framework, in each module.

But for now -- and this is a great idea, by the way, thank you -- we don't have a way to customize the error message, in case of, for example, the Coca-Cola trademark, which is red. It should happen. That's the case. The red color wouldn't differentiate with the background color of the website or the place it's displayed in.

But you will get the text. So it messes up your design until you solve it. So until you solve it, you cannot go on. If you want to make a website with PUXL framework, you will end up knowing how not to fail again in this website.

Or in this code pattern, particular code pattern. So it wouldn't be differentiated in the color, but you would have the text.

That makes sense. Thank you.

INIGO: Thank you.

All right. I'm back. I wrote it down this time! So my question was: I was looking at the GitHub and I was wondering if there is a reference either now or in the future so I can see exactly what's being tested for.

Maybe I have some edge case and I don't know that it's not going to give me, you know, backup there.

INIGO: For now, we don't have that. We are setting up all the GitHub account to make it collaboratively. Because until now, this project... I was the only one writing the code.

I come from a team. We do different things. But I am the only one responsible for the code, for the moment. So we are setting up the GitHub to give this response to developers like you.

For now, the testing has been made with a Mac. With VoiceOver. And in... Excuse me...

In Firefox, Chrome, Safari. Android phones. iPhones, iPads, and the design is not broken. So it works.

But more testing should be done. And we're looking for what to do, more tests and answers and checks. So for now, we don't have. But for now.

It just brings up one more question. It looks like on the GitHub that's everything that's production -- client-facing. So I was wondering: Is there a different repository or way to help with this Open Source project? Add more documentation?

Help it grow, that sort of thing?

INIGO: I didn't understand the question.

Do you have a system in place already if people want to contribute to this?

INIGO: You mean opening doors for everybody to contribute? I forgot to say that we are an open community. So everyone is welcome. So anything you can bring to the project is really welcome.

And maybe needed.

Okay, thanks.

INIGO: Thank you.

With the PUXL Icons, you didn't show it, but I assume that the icons are displayed on the website? And you said this is for non-developers, right? To use? Is there any type of reporting?

So a non-developer runs the icons -- is there a way to run a report, saying: This is what's on the site? These are the violations on the site?

INIGO: Sorry, I didn't understand the question.

So the icons show violations in the code, correct? No? What do the icons show?

INIGO: They are premade. They are done that way -- they are not meant to be customizable. Of course, you can customize. But they don't show any kind of error in the SVG it.

Oh, so maybe I misunderstood. What do they show? What are the icons showing?

INIGO: The icons is just a collection of icons you can use to craft any modern website.

Oh, okay. Okay. I misunderstood.

INIGO: There's 300 plus icons, and many more coming. But they are premade, just to copy-paste and use it in your project. Scalable with no pixelation and so on. But there is no error detection in the icons.

To the earlier question -- are there test cases that you're not -- for some of the 2.1 stuff where you're testing for mobile... How does PUXL deal with some of those test cases today? Like, mobile orientation or things along those lines?

INIGO: It works. I repeat, it's something that should be more tested by many more people than just me. And I hope it will be that way soon. But for now, all the tests that we have done -- they are working.

Seamlessly. So it's like Bootstrap or Foundation. You use it in your projects, and it goes all the way down to all the devices and orientations and so on without breaking. So if you test it and encounter a fail, please let us know.

It will be really important. Thank you.

This one is a bit more for clarity. It's not like... It's not that I think that the program doesn't work. It's testing me.

Right? So it's saying... Hey, you did this thing wrong and this is how you can fix it. How do I find out exactly what it's checking for?

I guess if that wasn't clear earlier. Is there a reference for that?

INIGO: In which particular line of the code is there the error message?

Is there a way for me, or if it's not the code, is there a document?

INIGO: In any browser, you can go to the code inspector. And here, if I select the image I fixed before... You will see here the line. So with this reference, you can relate to the code in your editor.

Change it. Save. And all done. Maybe that's not the question?

I don't think it's quite what I'm looking for. One thing this tool does is it checks to see if, like, all of my a link hrefs are going through to somewhere. That's something it's testing for. How do I get the reference of all the things it's testing me for?

It shows -- that's the error messages that they show you.

Yeah, so like -- those error messages... Gotcha. For those error messages, there's code saying: I checked for this. And it failed.

What are those checks? What-all is it testing me for? You know?

INIGO: It doesn't display the line...

Not -- my code. Like... What is it doing? I don't know how else...

A list of tests.

So it tests for accessibility errors. Right? So the testing it's doing...

I think the question is: Do you have a list of all the test cases that the tool is actually going through? To verify that you're actually testing for all the accessibility test cases?

INIGO: Unfortunately not yet. Because there is a lot of work to be done. And it's too much for just one guy. But yes, this will be in the future.

The way it works is... Every code pattern, every module that forms PUXL framework should behave somehow. In a very particular way. So if the code is not displayed or it's not written in that particular way, or you miss something, it will tell you: This is failing because this structure, this HTML, should be that way.

If you customize it, and create a new module, PUXL maybe won't recognize the errors you're using. That's why you are making a wide library of modules to be used and interchanged in different ways, to make different projects.

So to be announced, I guess. Cool.

INIGO: Thank you.

So my question to you is: What's the difference between your application and aXe? Because aXe... Isn't that what aXe does also?

INIGO: The difference is: Each module has the set of instructions right in the CSS. So you don't have to test it using JavaScript or server side interactions. That's why it's realtime when displaying and hiding the message. It only displays if the code is not working the way it should work.

So as you're writing the code, the messages come up as you're testing your site?

INIGO: Yeah, right in the moment. As I showed before, we loaded the CSS, and then all the messages just popped out. And while we were solving them, they were disappearing. To integrate in the production process.

And you have to wait 30 seconds to fix a problem, learn why it was a problem, and not repeating it again, and not going to the end of the production line and say... Oh, man. We have 135 error messages. We missed six months ago.

Who wrote this in the team? Whatever. Or yourself. Huh?

I know that feeling!

INIGO: Yeah. That's the way it works. Yes, please?

Yeah. I'm not sure... Maybe I missed that from the demonstration, but... My question is: Is this framework also -- let's say if you have to use a lighter color, lighter background, for the text or something like that -- it doesn't meet the accessibility standards, does it detect that as well?

INIGO: First, a color checker JavaScript library made by Leah Veru, and I found from a guy called... I hope to say the name properly... Pelle Wesman. I don't know the name.

And he made a port of this JavaScript library to SASS. So this checks -- these are algorithms to check contrast. And to... And they were used with his permission, of course.

I have the email. Because I asked for permission. And there are some algorithms that can calculate for you if you use any color, which contrast is better. White or black.

So it will put it for you. There are other algorithms that are more complex. That say: Okay. If you have this background color, which shade of this color, lighter or darker, will get the AA compliance in WCAG 2.1?

This is done automatically. So the process is -- let me show you. This is the CSS file of the project. And PUXL was loaded here.

So we have a set of... Maybe you don't see here. Because it's very small. I will try to make it a little bigger.

No, it's not working. Okay. So you have here the list of folders and files that work with each other to work and so on. So you can go to...

PUXL Light. One file. There is PUXL Dark. And there can be many, many more.

So you can just go to the colors. You have here the list of colors. And you can change the color for whatever color you want for your website. You have here the primary, secondary, success, info, warning, and danger.

These are common names for the industry. So once you have done the change, you go to the stylesheet... Sorry. We cannot see it.

Okay. Here you import the setup file. This setup file manages which modules are loaded and which modules are not loaded. So this gives the instructions to Sass to know what does have to compile and what not.

You change the color. The algorithms take care of the color you used. And they will apply the changes. And the contrast you wanted.

For both black and white or lighter or darker shades of the same color. They will apply to all the websites automatically. All the styles. They will be applied automatically.

For that, you have to compile the Sass again. So in this compile calculations, the algorithm will do the load of hard work for you. To know which contrast do you need. In case you want black or white, you can use one algorithm.

In case you want to use any other shade, contrast, or whatever, you can call to another algorithm that is built in the PUXL framework. You're welcome. By the way, let me show you... In the setup file, you have here some main settings.

This is like the main control panel of your website. You can check and uncheck some flags. Like animation enabled. In case you want animation on the website or not for some people with seizures or any kind of problem with movement.

The focus outline enabled. Focus headline is this thing. When you are in the website -- I will load it again -- you see here, this glowing outline? This is the visual indicator of where the focus is on the page.

So while you're typing, you can see where are you on the website. And this is the focus headline. If you want it or not, you can check it or uncheck it in this flag. Also, dyslexia enabled.

There is a font that's called OpenDyslexic. It's included -- it's Open Source as well -- and it's included in PUXL. If you check this, it will use this font. If not, it will use the regular text of the system.

It will be different in Mac, in Windows, and Linux, but it will be readable code with sans serif font, minimum of 16 pixels of text in all the websites, so you can have a really pleasant and readable experience. The other thing is the grid. 12 columns. How wide is the gap between the columns.

This is the gap between rows. The control box size is the name -- they share the same CSS, so they have border color, and can have a common visual appearance and make your design consistent through the website. So you can here check the full size. It can be xs, s, m, for all sizes.

We can change it here, and once PUXL has calculated, all the sizes will change to that. Also the shape. It can be round. It can be capsule or square.

To have different appearance. I will show you now. Or the look is solid or ghost. The variant.

Is default, primary, secondary, or whatever. For example, in this button here that we have... We can see it there. So we have...

This is not a button. This is a link with an appearance of a button. But with the functionality of a link. Okay?

So it appears like a button only for the eye. But for screen readers, and keyboard interaction, it works like a link. So here we can switch... We can change the classes.

For example, here, we have a class... Maybe if we can see... This is bigger. Oh, yes.

Yes, yes, yes. You see here? Okay. So this has the button class of solid, primary, and md.

If I check the class itself, it will change to the standard, sm size. If I want to be... Instead of with a solid background like the link we have up in the right, the login button, we will just do the ghost class, along with primary. To inherit all the styles.

If it's a button that has to show success or danger, for example, if you write... Success... It will take the colors from the palette that are referenced in the success thing. Now the shape.

The border of the corners is a bit rounded. But if you want to have, like, a Windows appearance that is hard-edged, we can use the square class. And it will have hard edge. That way you can mimic a Windows appearance.

You can customize it just using classes. And... Yeah?

I understand this is a link, a call to action link. I have one quick question. It has the visual aspect of a button. Do you need to add role button to this or not?

INIGO: Not necessarily. First it was included, the role button. But it depends on the function of the link itself. Sometimes you can mimic a button using a link, and in that case, you need to use the role button.

But if it's going to behave like a regular link, with the regular keyboard interactions of the link, you don't need to use the role button. You just give the button appearance for the eye. But not the button functionality. That's why it's not mandatory.

Thank you.

INIGO: You're welcome.

Anyone else?

I just have one quick question in terms of the overhead of using this framework. How much is this gonna be adding to the file size? And how is it gonna affect the page load time?

INIGO: Pardon?

How is this going to affect the file size of the project? And will it have any effect in terms of how quickly the time to interactive?

INIGO: It's...

Or is that a fairly negligible difference? You said it was a pretty minimal framework.

INIGO: Yeah, pretty minimal framework. It weighs less than... I think Material Design. But it's not the most lightweight yet.

We are optimizing the code. And making... I have made some tests. And I think we have 40k reduction.

But now let me see how much it weighs. It's thought to be the baseline of any project. Not you have one project already done and then you load PUXL over it, and it will mess the thing all up.

This is meant to build from the start. Not to be incorporated into existing ones.

INIGO: That's why we have also the Omnibus Prime. That's the starting point. You start clean with WCAG 2.1 AA compliance. And then you forget about any problems.

Captions? Yeah. Sorry. Okay.

Hello. Hello. Okay. So the size of PUXL...

Of this version... The next version will be a bit lighter, I think. Here... PUXL...

No, here, sorry. GitHub. Okay. PUXL framework.

CSS. The minimized CSS is... 244 kbytes.

Pretty tiny.

INIGO: It's pretty tiny. And it will be reduced a little bit. In the next version.

Cool. That answers my question. Thank you.

INIGO: Thank you very much. Sorry for the captions.

So you had the CSS configuration file. Where you are like... Is that available for different Bootstrap components? Or is it only for...

INIGO: Do you mean you want to use Bootstrap along with PUXL framework?

Let's say you had a content box, which you could do like small, medium, right? Do you have, like, other types of components? Like, on the page?

INIGO: Yes, yes, they are. Yeah, sorry. I should explain. The control box is the generic concept that's used in PUXL to calculate the size of elements that may appear in a form such as pattern select or text areas, text fields, and so on.

Of course, you can have more modules that are coming. But not yet. The things that you have available now is... Button, button with icon, and no text, button with icon and text, the check box, and radio button -- by the way, let me show you.

I will put it in here. So I will go to... PUXL.io. PUXL.io.

From here, I will go to documentation. And I will use the element... Check. Okay?

So we have here... I will make it bigger. Okay. You see here?

This is the check box. This check box is drawn with SVG. So it can be the shape that you want for your design. And it will appear the same in all different operating systems, because each operating system renders the same check box in its own way.

So that way you can have a continuous visual design in all the websites. So I will take this one. For example, I will copy it. I can copy here.

But I will copy all the code. So I will use it here. Go to the website. And I will leave it like...

For example... Here. Below the link. Okay?

I paste. I will tidy up a little bit. Okay. So if I save the file...

And go back to the website... And I can see it will show up here, right here. You can see the check box. You can check it and uncheck it.

It will work with tabbing, with a keyboard. If you press space, it will check and check out. Instead of a check box, if you want to use a radio button, you just have to change the attribute here. Of radio.

From check box to radio. Sorry. And it will draw a check box for you. It will appear the same in all different devices that the website may be displayed on.

There are more. There is a label button. Label button is the upload file. But without all the mess of this file, select it, and then the button.

It's rendered like a regular button. Let me show you here. No. Here, check box.

Okay. So you go to label button. And you can here see the upload file. If I click it, it will prompt the dialogue to upload a file.

And it looks like a button. You just have to copy-paste, and it looks like a button. It won't mess any of your forms or displace any other component to another place, messing up your design. And to continue, we have also...

The same label button, but with icon only, or text and icon. The range for sliding on different values or something. The select, the switch, the text area, and the text field. Of course, figure, image, table, and tag as well.

So these are the elements available for the framework. Elements are meant to be objects with just one HTML tag or just one function. We have also the compounds. There are compounds by one or more than one element.

Such as the alert, top bar, like this one, this main bar, that will... Oh, sorry. It will... When you resize it, open and close.

This JavaScript interact is built in vanilla JavaScript. No need to use jQuery or whatever. Once you load the JavaScript... It will work.

In case that JavaScript is not loaded, because our user has a really, really bad bandwidth, or he is very skeptical with privacy, and doesn't want to use JavaScript in the browser... Sorry. Save again. The settings.

Okay. So I just disabled the loading of JavaScript in all the websites. So we have no JavaScript here. And this is the result.

No, sorry. Here is the result. We see here, no changes. But when we make the window smaller and the contents overlapping, you miss the interaction of the button.

But the content is displayed. It's not hidden to the user. Visually, at least. You can access it by screen readers or assistive technologies.

But you wouldn't see it. So it will displace all the content of the page down to the height it needs for hosting all the elements in the text field. So it's prepared for not JavaScript sites as well. For network connections, privacy issues, whatever.

Also we have the breadcrumbs, disclosure for displaying panels or hiding them, the drawer is the menu on the side that is displayed from one side and then slides back to the edge of the browser. The flag is like one picture on the side, and one or two lines of text below. The fly-out. It's like the drop...

It's like... It shows a dropdown.

Accordion?

INIGO: No, it's not the accordion. It's like the select. You click it and it displays down a set of things. Dropdown menu.

Thank you very much. So this is the fly-out. This is a generic name, because you can dropdown or up. So that's why it's called the fly-out.

Because it flies out of the page. Of course, form, group of buttons, and text fields, and selects, and label buttons, for example. You can group them in just one group. With accessibility attributes.

And if you change the class of the group itself, for example, the shape, this class of the shape will apply to all the group. So only the corners of the ending and beginning element will be changed. And the others will be seamlessly attached to one another. The input group is the combo of text field and button.

For example, like search field or whatever. The responsive embed is for videos. When you change the width of videos or embedded content or an image or a map, for example. When they are resized, the height responds automatically to the width.

So this is the responsive embed. The search box is like the input group. It's specifically for search box. So you're not going to miss special ids or whatever.

And finally, the tabs. So you can tab from one tab to another. And have different tabs and so on. So these are the things that you have available in PUXL now.

In the next version, it will be more. We'll be adding more with time, for example, not accordions -- I don't find the name now. The carousels. Like Bootstrap.

But we are working on truly accessible ones. Not like the one they have. And we think they can be done -- many things with this. So you can play with it now.

Sorry. One more question. So at what point in the workflow of the development do you kind of apply this library? Because people may have their own classes for each element.

They may have... Like, for buttons, they may have a class. So they may have their own CSS file. And they run into complaints...

So do you start with this framework and build on top of it?

INIGO: Yeah, that's the goal. The goal is to make like a new standard tool for everyone to use that doesn't fail since the beginning. So that we can get rid of all the problems that come after that. Like the WCAG and the ADA and so on.

So if you want to implement it over an already done design, you would have to start over again. If you have done it with Bootstrap, for example, you can see here... I'll show you. Okay.

Not here. Up there. Button... Okay.

Here is the link I showed you before. It's this link here. The call to action link. Okay?

So in Bootstrap, you would need to type: btn btn-default btn-lg... It always starts with btn-anything else. Right? Here with PUXL, you just write: btn solid primary md.

That way you have a shorter line of classes. And if you shorten all the classes of all the websites, then you are getting a chunk of the code that you don't need, and you can get rid of it. So your HTML document is a bit lighter, and you don't require energy or data expenditure for loading the website from the server to the device of the user.

Thank you.

INIGO: Thank you. Yes?

When you were showing your CSS and you were showing the colors for color contrast, so are those... Those are your colors, correct?

INIGO: Yeah, the default colors.

So let's say at our company we have our library of our colors. Can we input those and replace with what you have, one? And how will we know -- will it tell me -- let's say I put in yellow and green -- but the yellow and the green have a horrible contrast. And those are my two colors.

Does that mean, then, at that point... A, I have to change the yellow and the green... Or B, I have to change the combination of the yellow and the green? Maybe it'll be yellow and white or green and white instead?

So by me entering that data, the colors, will your program tell me? It'll flag me and it'll flag me -- will it give me... An idea of what I need to change it to? Or do I have to keep testing it until it gets right?

INIGO: You should keep testing, when you want to input the two colors yourself. You have to test it. Because PUXL -- it won't flag it. But if you change the palette of PUXL, and then compile again, all the framework, all the calculations will be done, so that you don't have to worry about it anymore.

That's what I thought. Okay. Thank you.

INIGO: Thank you.

So kind of going off that a little bit, I am curious about the compilation part. For example, if I do want to change it to a different theme, for example, does it have to be a Sass file that I create and compile? Or am I able to create CSS variables that will overwrite yours?

INIGO: You can do it. You can create your own CSS variables that will overwrite PUXL.

And where could I find those? Because when I looked at the light theme, it seemed to have a lot more variables than the compiled CSS.

INIGO: Yeah. The theme is the place where you store all the variables imaginable. To be able to control every single pixel of the application. For now, they are built in Sass.

But now we're working on putting more... CSS, customized variables, or CSS variables... Customized properties, sorry. AKA the CSS variables.

So you can have more CSS variables available to you to play with them with CSS or JavaScript. So for now, you can control all the appearance in the theme. But the most part of them are just Sass variables. They will comply and then will forget.

There is also a file here called the structure file. Which takes the Sass variables and stores them into CSS variables. So that you can have a set of CSS variables that take data directly from the theme. So you have continuous appearance and everything works fine.

Okay. So just to make sure everything's clear, so if I want the most control, I should create my own theme in Sass and then make sure to compile all the Sass files? Is that right?

INIGO: Yeah. For example, I'm not very friendly with command line, because it's like another galaxy for me. I am a designer, not a hard coder. Okay?

So I use -- in this case, I use brackets, with a plugin that compiles Sass for me. But it's not the only one. You can use Visual Code Studio or whatever, with many plugins, or just install the Sass for yourself and your computer and then compile again. So each time you click -- each time I type save, it will compile again.

The compilation time, when calculating many colors, can be delayed. In the next version of PUXL, you have a new flag. Saying... Okay.

Get rid of all the hard calculations. So the calculation time of 40 to 60 seconds goes all the way down to 1.

That's a big difference. Okay.

INIGO: A big difference, yeah.

Anyone else? Yeah? Okay. Well, thank you so much for your wonderful presentation tonight.

That was really informative.

INIGO: Did I pass the test?

Absolutely. I just want to thank everybody for coming out tonight. If you haven't done so, I invite you guys to join our meetup. Actually sign up for it, and then you can get emails from me about future events and other goings on and activities.

And all that jazz. So please join us there. We also have a Twitter feed that you can follow us on, for additional news and information. And also, for tonight's meetup and all of our past ones, you can check out our YouTube page.

Where if you want to see this again, and all of our past events, we have them archived there. So please check that out. Once again, I would like to thank our co-organizers, our production folks, and our generous sponsors, Equal Entry, Adobe, Level Access, and Thoughtbot. We'll stop the stream now, and thank you all so much.

See you next time!

INIGO: Thank you very much. (applause)