chantastic.fm

48: Open Source It with Jon Rohan

Episode 48 · May 16, 2019 · 00:41:07

Hosted by chantastic · With Jon Rohan

Sponsored by Infinite Red

Download MP3 · Jump to transcript

Jon Rohan is an Engineer on the Design Systems Team at GitHub, building tooling for Octicons and Primer — their React component library.

Chantastic asks about his 6 year tenure at GitHub, the inspiration behind his primer.css slam poem, how their using CSS-in-JS and Lerna to structure their work, and his project Figma Actions for seamlessly building icons from Figma design files.

They discuss design apps, Monorepos, GitHub Actions, CSS-in-JS, and why you should open source your systems.

Featuring

Links

Sponsors

Infinite Red

In over your head with a React or React Native app? Infinite Red can help. They're React Native core contributors who've been designing, building and shipping apps for over 10 years. reactpodcast.infinite.red

Transcript

[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. So you've specced out a killer component library. What tools do you use to keep it well maintained? Do you employ a monorepo for the task or use many repos? What is a monorepo? You've heard that Lerna is a thing, but is it a thing that will work for you? Is it something that can work if you publish more than just JavaScript. Once you finish the design, there's still a ton of questions that aren't related to code. So today I sit down with Jon Rohan, engineer on the design systems team at GitHub. We talk tooling for component libraries and design systems. We discuss Figma, Lerna, GitHub Actions, and many more on our quest for the perfect designer-developer bridge. If you're tasked with implementing or maintaining your company's design system, guaranteed there's something in this episode for you. For links and notes, visit reactpodcast.com/48. This week's episode is made possible by Infinite Red. Beautiful, functional web and mobile apps. Infinite Red wants to help bring your ideas to life. Got a completely new idea you want to share with the world? They can build it. Have an app that's all kinds of messed up and need help making it agile again? They can help you fix it. Use their expertise in design, mobile, React Native, Elixir, Phoenix, and Ruby on Rails to get your For a limited time, get 2 tickets to Chain React Conf when you start a new project. Chain React is North America's only React Native conference. While you're there, you can meet the team and see what Infinite Red is all about. Don't have an app that needs building? Let Infinite Red help you build a thriving remote culture. Going remote takes more than passing out laptops and telling everyone to work from home. Communication is hard, and remote communication even harder. Without a solid strategy, you could lose your team. Lose the culture you worked so hard to create. Infinite Red knows the risks. They've taken the plunge and they want to help you do the same. They wrote the Remote Work Handbook to help you create a thriving remote workplace without sacrificing culture. Download it for free at remote.infinite.red and take the road less commuted. Hey, John, how are you doing?

[00:02:32] Jon Rohan: Hey, pretty good.

[00:02:33] Michael Chan: Good, good. Uh, I am super glad to have you on. Uh, I had Diana and Emily on a couple months ago who you work with. And um, they just mentioned you and the pieces of the uh the GitHub uh design systems team that that you had put together several times. And so I was like, well, I I gotta get John on here now. So um, so yeah, so that is uh so that's why I wanted to talk with you today. For anyone who doesn't know, could you give us a summary of what it is that you do, where you do it, and why you love it?

[00:03:09] Jon Rohan: Um, yeah. So, my name is Jon Rohan. Um, I'm on the design systems team at GitHub. Uh, I've been at GitHub for uh 7.5 years. Um, I love working on the design systems team because uh I'm an engineer who uh cares a lot about developer tools, but I also I love that intersection of engineering and design, and I feel like on the design systems team, I can sort of cross over those two worlds and bring them together.

[00:03:42] Michael Chan: That's awesome. How- so, design systems as a team at GitHub is relatively new. What did that look like 6 years ago when you started?

[00:03:51] Jon Rohan: When I started, uh, GitHub had one stylesheet, if I remember correctly. No way. And it was just called screen.css, I think, or something like that. Um, immediately, like one of the first things we I did was uh we transitioned to uh Sass and split up the um split up the stylesheet into like you know more functional parts and sort of like clean stuff up. Um, but the work back then was, you know, I mean, design system as a concept was never not never really a thing back then, you know, so it was more. like we were writing in a sort of um object uh CSS sort of way, you know, uh and documenting it as we go. Um uh for the longest time, that was sort of just how things were going, and uh we were just— like I was kind of like kicking out these components uh that— I mean, components is the word we use now, but you know, they're just CSS objects. And um Primer actually started before we had a design systems team, but uh the primary use case there was that we have uh we have Gist and we have GitHub and they have like similar styles, but they're sort of like separate, and we wanted to be able to like port those to each other in a distributed way. So we started um we started shipping Primer externally so that we could do that easily.

[00:05:24] Michael Chan: Nice. What led to the decision to open source that? Because obviously it's, you know, it's it's your work for GitHub. Um, but why uh why open source that?

[00:05:34] Jon Rohan: Uh, you know, I mean, like originally there was a lot of like back and forth and we're like, if we open source this, is like, are people gonna just troll us and come like change things, you know? And um, we, so we hired uh Mark Otto, uh who who, if nobody knows, uh helped create Bootstrap.

[00:05:56] Michael Chan: Yeah.

[00:05:57] Jon Rohan: And um we sort of consulted with him, we were like, Mark, you know, you run Bootstrap, uh what do you think about us um open sourcing this? And uh he pushed us into doing it pretty pretty uh hard. So, uh in the end, I think it was probably one of the best decisions, and I I'd encourage anybody out there, even if Even if you don't even like expect your front end to be written for anyone else, you know, or you know, just open sourcing it and and writing it for yourselves, it it just removes barriers. So you're you you can work on it and your coworkers can work on it and you're not having to like, you know, grant people access to this thing or like, you know, um make sure they have all the permissions and the levels set up. You just say, here it is, here's some documentation, and If you want to use it, if you want to contribute to it, that's great.

[00:06:49] Michael Chan: Yeah, that is a huge benefit. I think one that goes, um, I guess maybe unstated a lot in open source is is that, you know, when you remove that access barrier, it's so much easier for, you know, the people who are working on it, who are using it, to like throw stuff together. I mean, even if you were just to, you know, like do a CodePen or a CodeSandbox, to be able to use all of those in that environment to just hack out an idea.

[00:07:13] Jon Rohan: Yeah.

[00:07:14] Michael Chan: There's such a tremendous value there beyond kind of the, uh, I guess, philosophy of open source.

[00:07:20] Jon Rohan: Yeah, I mean, uh, just publishing it to npm and giving access that way, like people can bring it into these other tools, you know, and they don't need us or our permission to sort of just like do that. If they want to use Primer and build uh some prototyping stuff on CodePen, then it's easily accessible and they can do that, you know.

[00:07:43] Michael Chan: Yeah, absolutely. So you are the only person that I'm aware of that has um written a slam poem for their CSS framework that we've been building. Uh what what inspired that? And do you feel like that's necessary for the success of like

[00:08:03] Jon Rohan: uh

[00:08:04] Michael Chan: all CSS projects?

[00:08:05] Jon Rohan: Yeah, I mean, so early GitHub, um we would have summits, right? And we were so small that um sort of everyone had to talk on something, you know, and it was either like deep dive into something or just like have fun and talk about something. And uh I sort of like to like push myself outside of my comfort zone, and I was like, wouldn't it be funny if I wrote a slam poem? I sort of just like dared myself, you know.

[00:08:32] Michael Chan: It's a good dare. I don't know if I would have been able to do that. It was good. We'll link it so that others can enjoy it. Nice. It's real solid. So one thing that um that I wanted to ask you is that you've been uh doing like CSS for for 10+ years, I believe. And um a lot of that at scale, like working at GitHub during this huge kind of trajectory as they've become, you know, this big company they are today. What do you think of some of these like newer trends that that we're seeing in CSS, in kind of like the CSS-in-JavaScript stuff? Um are you guys using that? The whole the whole gamut. Like how how do you how are things like that playing out at GitHub?

[00:09:13] Jon Rohan: Um so we we are currently building um Primer components. I think Emily and Diana probably talked about that last time. But um it uh I I believe we're using uh CSS-in-JS. And uh I I for one feel like it is definitely a good workflow for us as a design systems team. Um, the benefit I see with these frameworks and the way that, um, you know, you can come from the standpoint of like, oh, this is like garbage and CSS shouldn't be in JavaScript. But um, when you're when you're writing a component and you want it to be like encapsulated uh like fully, you know, in that component, um Having the CSS right there with uh the code uh makes a lot of sense to me because like when you're writing at scale and you're you know you're writing these like style sheets that have these components, but you know people can override them if they want, um people are going to override them and you're gonna end up with a huge mess whenever you want to refactor that stuff out. Um I I really like what React is doing in this in the stance of like design systems and um being able to fully contain those um components. Uh I also sort of I don't know a lot about this uh area, but I feel like uh web components, uh native web components are sort of doing a similar idea.

[00:10:48] Michael Chan: Yeah, it does seem like a natural progression, you know, going from that idea of like one style sheet for your whole site, you know, as as you came into GitHub with, um kind of breaking that down into kind of like logical components or whatever you want to call them. And now kind of moving that into like, hey, this actually lives with the code, the rest of the implementation code for how this thing gets on the screen. Um, it seems like seems like kind of that logical step. And it would be really great to see how that plays out in like web components or, you know, if kind of React is as far as we get in practice or or or whatever.

[00:11:23] Jon Rohan: It's great. I I just I love all of it, you know. The direction that it's going, it feels like a natural evolution to me.

[00:11:29] Michael Chan: Yeah, absolutely. Um, which uh approach are you all taking in um the Primer components?

[00:11:35] Jon Rohan: Um, as far as— uh—

[00:11:37] Michael Chan: Oh, like, are you using a particular CSS-in-JS uh library to do that?

[00:11:43] Jon Rohan: Um, yeah, I I believe we're still using um styled-system. Uh, and we sort of like bounce before between um using class names and using like Primer CSS and and. Importing the stylesheet, which we weren't super happy with because of the, like I was talking about, like total style encapsulation. We used Emotion on an iteration to sort of kind of feel it out, and I think we settled on Style System.

[00:12:16] Michael Chan: Okay, killer, killer. Yeah, I really want to have Brent Jackson on the show to talk about all that because I think that what he's doing really seems like a good direction for for all of that. And it seems to have the right ergonomics.

[00:12:29] Jon Rohan: Wait, so I'm thinking about styled-system with Brant. And uh what the one with Max, uh styled-components?

[00:12:37] Michael Chan: Oh, styled-components.

[00:12:39] Jon Rohan: Right, yeah. I'm sorry.

[00:12:40] Michael Chan: Yeah, okay, cool. No, no, no, no.

[00:12:42] Jon Rohan: Okay, cool, cool. Yes, yes. Styled-components we're using. I I mean, we did, we used, uh and we probably are still using styled-system.

[00:12:51] Michael Chan: Cool, cool.

[00:12:52] Jon Rohan: When we're talking about what uh like system we're using for styling the components, it's styled-components.

[00:13:00] Michael Chan: Nice, nice. Uh Max is great.

[00:13:02] Jon Rohan: Yeah.

[00:13:03] Michael Chan: Um so you guys have always been doing something really interesting with icons. I've I've gained a tremendous uh inspiration from the way that you have your icons workflow. Um icons are a pain in the ass. No matter how you do them. But I feel like like you all are getting it really uh really right. And I've really um been excited to talk with you about how you're building icons. Um tell us about Octicons and kind of what you're doing to actually get them on all your platforms.

[00:13:36] Jon Rohan: Um yeah. Well, let me go back. Um when I started, uh I was part of the team that sort of pushed Octocons. Um, when I started, we were using famfamfam. We didn't actually even have our own icons. Uh, I don't know if you can dig up any screenshots, but like, I think the founders like were using, like, uh, for instance, on a private repo, it would be like the repo name and there'd be like a smiley face next to it from famfamfam, which made no sense. But it was just like They don't have a private one, so we'll just put this one here. Uh, and they were looking, you know, they're very dated, and uh, right about that time, uh, screens started getting Retina, you know. Um, so we started talking about trying to make some that were, um, you know, infinitely portable and scalable, and we looked at a lot of options with uh SVG at first. And uh, originally what we did was uh, created a whole set in uh Font Icons.

[00:14:40] Michael Chan: Okay.

[00:14:40] Jon Rohan: Um, we felt like the support for what we wanted to do, font icons were the best choice at the time. Um, and they worked pretty well, but there's a lot of like accessibility problems and there's some, you know, there's time when the font is loading and stuff that the page kind of jumps around. So uh, we ported them again to SVG set. Uh, and um, I I I was involved in both of those, but uh, now currently what they are is they're a set of SVG icons. Um, the source lives on Figma, and the library uh sort of imports that that uh those images from Figma automatically and pipelines it out to um whatever language or like system you want to use them in. So the library is kind of this conduit of- there's a Ruby version, there's a Rails version, there's a React version, and there's a JavaScript version. And you can take those libraries and they have all the same data, same set of icons, and you can use them in your site.

[00:15:52] Michael Chan: Interesting. So do they have- so do you have a different- so you have the SVG source, those um those designs live in Figma, but then you build it out to like 3 different targets. Is that how I'm understanding it?

[00:16:04] Jon Rohan: Yeah. So, well, there's one repo, and it's actually a monorepo too. And we can go dive into this in detail. But uh the one repo pulls it down, uh and it uh sort of tidies up the SVG. And um then the other repos grab that content. And ship it to uh like npm or RubyGems with the SVG with it. So um then when people want to use those libraries, they get the new version. It has the full set of icons and they can use whatever ones they want.

[00:16:39] Michael Chan: That's crazy. So that's fully- you've fully automated all that then?

[00:16:43] Jon Rohan: Yeah, yeah.

[00:16:43] Michael Chan: Nice. So what are you using to um to to build those? Or like what's what's acting as the bridge to uh between Figma and um all of those platforms?

[00:16:53] Jon Rohan: Um, so uh we we do all that building on um on pull requests and on master, and the things that are powering that right now is GitHub Actions. Um,

[00:17:06] Michael Chan: okay.

[00:17:07] Jon Rohan: I mean, but in in theory, it could be uh any CI service, but I I'm I'm particularly partial to GitHub Actions.

[00:17:15] Michael Chan: That's interesting. So uh for anyone who's not familiar, and myself included, actually, um Describe to me GitHub Actions, because they're a relatively new feature, at least publicly, and what is the what's the role they fit in in that development cycle?

[00:17:31] Jon Rohan: So, the the sort of like uh high-level version of it is uh it's a workflow flow tool for your repos. And um what you can do is hook up your hook up your pull requests so that when somebody submits code, you can run specific actions on that code. And then you can string together those actions in such a way that, like, if one action does something, then the next one can sort of pick up that work and do more.

[00:18:03] Michael Chan: Oh, interesting.

[00:18:04] Jon Rohan: It's it's really interesting to me because each each one of these actions is like a a Docker container, uh and um which makes it very like self-contained. And you can have like One action be a Node action that does some work, and then another action be a shell action that just like runs some shell script, and then the next action be whatever other language—Go, Ruby, whatever you want to write—and they all can sort of work seamlessly together. And then, and then on top of all that, the sort of icing on the cake is we've written it in such a way that like anybody can share their actions with other people. So if you have an action in a repo you can publish it to the marketplace and then like anybody can use that action the same way that I am in this open source space.

[00:18:55] Michael Chan: Nice, nice. Now you've actually just published actions for what you're doing with icons, right? Or Octicons?

[00:19:01] Jon Rohan: Yeah, so I created a Figma action that is- I tried to generic it up a little bit more than it was. But it is an action that you give it a Figma file. like just a URL to a file, and it and it goes and grabs all the components from that file and exports them in the format you like. They support 3 different formats for exporting, so they export uh PNG, JPEG, and SVG. So you can just pick one of those formats and say, um get all the components from this file and put it in this folder for me, and um it'll just do that and run. And then the next action you have, you could like move those files somewhere or like, you know, ship them to npm, which is what I'm doing with uh with Octocorns.

[00:19:51] Michael Chan: Nice. That sounds that sounds amazing. So, you can run the whole— uh I guess like with your uh GitHub Actions. And what are they called again?

[00:19:59] Jon Rohan: Yeah, I well I called it Figma action.

[00:20:01] Michael Chan: Okay, cool.

[00:20:02] Jon Rohan: Super generic.

[00:20:04] Michael Chan: So, you can use that to uh effectively do like the whole like pipeline from like, hey, grab all of these SVG or grab all of these images from my Figma file, uh run some process- or take the export and then put them wherever?

[00:20:20] Jon Rohan: Yeah. You can just like put them in this directory and then the next action would be like, oh, okay, here's some files, you know.

[00:20:26] Michael Chan: That's awesome.

[00:20:28] Jon Rohan: You could do that with like- I mean, say somebody had like um screen prototypes on a Figma file, you know, you could export those and um You could have a second action take those images and like post them to the PR if you want. Which is really like mind-blowing, you know? And kind of awesome.

[00:20:44] Michael Chan: Yeah, that's crazy. So you could see like which ones changed in a PR effectively?

[00:20:49] Jon Rohan: Yeah, I am- yeah, I believe like, you know, the opportunities are endless, right? Uh, what we actually do too, which is really rad for workflow is um anybody who submits a PR to uh OctoKons uh will publish like an uh like a unstable alpha version for that.

[00:21:13] Michael Chan: Oh, okay.

[00:21:14] Jon Rohan: And it's really critical to us because we want like any contributors to come in um and get a version that they can then test like in whatever system that they're using.

[00:21:25] Michael Chan: Sure.

[00:21:26] Jon Rohan: So you could come in and um submit a URL to uh the action uh workflow file. Like you could change it to like, okay, here's my new set of icons. And it would run that process and be like, okay, here's your alpha version. You want to go try that out?

[00:21:44] Michael Chan: That's crazy. So that kind of goes back to that idea of like being able to like prototype pretty quickly, like to be able to have those icons available to kind of move forward while that discussion is happening.

[00:21:55] Jon Rohan: Yeah, I mean, so we don't want to be the blocker of somebody like testing out a new icon, right? So like we just give them the tools. The designer will design something and then they only really have to change one line in Octicons and then they can have a- like they can update their library and see that in action before we even wake up for the morning, you know?

[00:22:15] Michael Chan: That's that's awesome. Uh do you feel like this these types of solutions are kind of like birthed out of that asynchronous style of like GitHub? Like, do you feel like you'd have even a need for this if you worked at a company that was like all in the same time zone, all like working in the same table?

[00:22:33] Jon Rohan: Uh, I, I mean, I'd like to think that it'd be useful for anybody, you know? Um, nobody sort of likes to be, or maybe some people do, but, um, those remedial tasks that can just be done by robots, you know, I, I mean, We're all engineers because we want to do something like, like we want to just engineer a solution to like do something for us, right? Or at least that's why I became an engineer.

[00:23:01] Michael Chan: Well, that's one thing that I've always found inspiring about your team specifically is, is that you have these really good ways to, uh, let's see, these really good ways of like building up tools that, um, I guess maybe are like respectful of like the other developers on the project. I think a lot of times you see like, hey, this is the design system. Like it is your god. We've handed- like we've crafted it and handed it down to you. You must use it, never break it. Um, but I really like this mentality of being able to put tools in place for people to like to empower people, right? Like-

[00:23:36] Jon Rohan: Yeah.

[00:23:37] Michael Chan: To come in under them or like alongside them and be like, okay, this is like, this is how you start. And then, like, you know, get going, and then we can kind of have the discussion along the way of, like, what needs to change, you know, what could be better, uh, if we want to integrate this icon, etc., etc. And that's that's something I've always admired about the way that that you all work.

[00:23:58] Jon Rohan: Yeah, that's our our philosophy is, like, um, you know, we don't ever want to um stop somebody from doing something, and we want to just put the tools in place that they can do it. More quickly, and then we can have discussion about um whether we need to incorporate it or if they want to use something else. You know, those those mechanisms are there, and it all goes back into um the pull request, which is like the number one space, right?

[00:24:25] Michael Chan: Exactly. Um has that always been a cultural value for your team, or is that something that you uh you know can was birthed out of pain in the opposite direction?

[00:24:37] Jon Rohan: I like to think that it's been a cultural value at GitHub since the beginning, you know. Um, it's always sort of kind of like it's worked like an open source company in some ways where like a lot of people were sort of building these separate parts, but there was a lot of like crossover and integration between people so that they could contribute to each other, or, you know, somebody would be like, hey, I have these skills, uh, and I noticed you're working on something completely different, but I'd like to contribute, you know. Uh, there was nothing stopping people from doing that, like, since the beginning, and I I feel like that sort of mentality has persisted at GitHub even though we're a 1,000+ company now.

[00:25:21] Michael Chan: That's crazy, it's crazy. Um, you mentioned a monorepo. Um, what does that mean What does that mean for for you and your team?

[00:25:30] Jon Rohan: Um,

[00:25:30] Michael Chan: I feel like it's one of those big words that has like just this this really fluid definition. So what does it mean for uh for the design systems team?

[00:25:39] Jon Rohan: Um, so for us, uh the reason we built it, and this might be the definition of it, but um this is what makes sense to me. Uh we wanted somewhere where we could like share the Git history, but um we wanted to be able to uh publish separate packages, you know. And we we waffled back and forth between having like multiple repos, but that was just like uh too hard to manage for such a small team, you know.

[00:26:08] Michael Chan: Yeah.

[00:26:09] Jon Rohan: So we ended up going with a mono repo where um it was all the stuff was sort of encapsulated in one, but at publish time, all these different folders were kind of like published out to their respective package-

[00:26:25] Michael Chan: Sure, sure.

[00:26:26] Jon Rohan: —registries.

[00:26:27] Michael Chan: And so the value for that is that you kind of have like one development environment, one like set of dependencies, uh like one project to work in.

[00:26:36] Jon Rohan: Yeah.

[00:26:37] Michael Chan: Um and then the like you said before, like you just kind of let the robots handle the like putting it in the places that it needs to be.

[00:26:45] Jon Rohan: Right, right. Yeah, you set up the you set up the work and robots do all that extra heavy lifting for you, you know.

[00:26:51] Michael Chan: Nice, nice. Um, did you use a tool for that, or is it kind of like all uh homegrown in-house? Or like an open source tool, sorry.

[00:27:00] Jon Rohan: Yeah, so we were we were using Lerna for uh I think a year uh or so, um, but we we recently transitioned away from Lerna, um, and not that we didn't like the tool or anything, thing, but um we we changed the way we developed Primer CSS in that uh originally we were sort of shipping all these small packages for each like component, you know. I mean, they were like CSS components, but we the way we sort of like broke it down was like um maybe somebody doesn't want all of Primer, maybe they just want like Primer Markdown or Primer Buttons, so we sort of like separated that out and published them separately. But that was a little bit of extra overhead for us, and we determined that like it probably wasn't really worth it in the end, you know. So we kind of combined everything back in. We're working that way now. OctoKons is technically still a monorepo though, and it's interesting in the fact that uh there's two different like package managers going on there. There's Ruby be gems and there's npm.js, which is two different worlds, you know.

[00:28:13] Michael Chan: Yeah, that's interesting. I guess that's one thing that I'd not really ever thought about is that I think a lot of packages are kind of homogenous or a lot of monorepos are kind of homogenous in terms of the language that they're using or the, like you said, the package, um, or whatever those things are called that like have have all the the names of the packages. Um, you know, like they're they're publishing everything to npm. Um, but like a JavaScript tool might break down in the situation that you have where you have, you know, you're publishing to RubyGems and npm and, you know, maybe doing something else as well.

[00:28:44] Jon Rohan: Yeah, yeah.

[00:28:45] Michael Chan: So are are you using GitHub Actions then to uh to do all that?

[00:28:49] Jon Rohan: Yeah, so we we recently rewrote it um to uh use GitHub Actions to uh take care of that. And like I said, like the Figma action grabs the the image files, you know, um. And then runs tests on all of the separate packages. And then each separate package has an action that um just publishes it to where it needs to go after everything's checked, you know.

[00:29:13] Michael Chan: Killer. So uh if you had to estimate, obviously GitHub's getting really big now, how many individual teams are actually consuming the packages that you all are are making, or any any one of them?

[00:29:26] Jon Rohan: Oh, um I don't really have like concrete numbers on that. It's pretty- it's actually surprising sometimes when people come to us and they're like, hey, I used Primer for such and such, and I was like, that's awesome, you know. But uh yeah, I we're we're starting to try to track that a little bit more now um with uh coverage, but uh we we've sort of just been like, you know, here you go.

[00:29:53] Michael Chan: Yeah, yeah.

[00:29:53] Jon Rohan: We're we're we're technically writing it for us, you know, and and we're using it on GitHub.com and some uh internal tools, but um you know because it's open, other people are using it for other GitHub tools, and it's always a delight to find out what people are using it for.

[00:30:11] Michael Chan: That's awesome. How many, uh I guess, like public uh properties are there for GitHub? Obviously there's GitHub.com, um you guys are doing Gist, um are are there any other ones that these tools service?

[00:30:23] Jon Rohan: I believe the blog uses some Primer styles, uh and that's a separate uh server. And then we have our help sites, like all our documentation support sites. Those are using um Primer. Uh and then we have um some marketing pages. Uh typically if we're like throwing some kind of event or something, we'll we'll like put up a page really fast. And um usually that's Primer and they'll like start with Primer and kind of like modify it to fit the theme of whatever event's going on.

[00:30:55] Michael Chan: Interesting.

[00:30:56] Jon Rohan: Have you tinkered around with Primer or Octicons? I mean, have you pulled them down?

[00:31:00] Michael Chan: Yeah, yeah, actually I have. I've I've actually um specifically have been looking a lot at the the way that you guys have managed icons. Because we recently did a transition um toward SVG and all of the resources that that you'd provided on that were were super helpful, um in terms of- because we were doing the icon font thing for a while as well. Yeah. And it just, like you said, it got totally untenable with like, as you know, Retina screens like became more popular. And then also we were thinking more about accessibility. Um just there were just so many things that were like kind of a big a big mess. And um and yeah, so we've been able to- I don't know how long we've been on it. But um we've been doing serving SVGs for icons for, I don't know, uh maybe a year and a half, I guess.

[00:31:50] Jon Rohan: Nice.

[00:31:51] Michael Chan: Um, which has been fun. And and uh we're actually even spriting them, which is uh which is really nice. Um.

[00:31:59] Jon Rohan: Oh yeah. Yeah. That's something that was sort of like, we want to look at this. Uh but when we switched to SVG, it wasn't like it wasn't fully supported in IE and we were kind of hesitant to like go that direction.

[00:32:15] Michael Chan: Yeah.

[00:32:15] Jon Rohan: Uh, what we- the route we took was to write a helper and the thought is is like, hey, we can switch it out at some point to to be a sprite rather than like injecting SVG. Yeah. And you know, nobody's gonna have to like update their code, right?

[00:32:31] Michael Chan: Totally, totally. Um, so you did that on the on the rail side of things?

[00:32:34] Jon Rohan: Yeah, yeah. So we wrote a Rails helper class and, you know, nobody has to remember like long strings of like SVG code. They just say, I want an octicon of a uh issue icon, you know, and they just put it there and the Rails helper does the rest.

[00:32:52] Michael Chan: Yeah, yeah, yeah. Man, it's really nice. I feel like that is like a perfect example of like good abstraction. You know, like everyone's like trying to get like these like perfect abstractions, but I feel like that is like one of those perfect ones where like, we don't know what the future is, but like, we're gonna use icons. So use this thing and then you're kind of like, kind of ensured that like, we'll make the future smooth for you.

[00:33:14] Jon Rohan: And, and I mean, let's talk about the transition uh to where we are now with Figma. Um, there was a time, well, when it was a font, you know, the file kind of lived on someone's computer. And, you know, he would have to-

[00:33:28] Michael Chan: Yeah.

[00:33:28] Jon Rohan: He'd have to export, uh, I think he exported SVG, but then he fed that into FontForge and then ran some like very customized scripts and that like shot out that file. Um, we- there was a transitional period where we had it in Sketch.

[00:33:45] Michael Chan: Okay.

[00:33:45] Jon Rohan: Which is a great tool, uh, but, um, there's a lot of friction with having it in Sketch because Like we were storing it in this repo and you either- like, so designers who had the Sketch app, you know, they would want to go get this file and they'd have to like clone a repo and make sure it's up to date.

[00:34:06] Michael Chan: Get a license to Sketch.

[00:34:08] Jon Rohan: I mean, so like the designers might have it right already. Yeah, that's one target audience, right? Uh, and but we have to like describe like how to, you know, make sure your repo's up to date and like- Sure. If there's any merge conflicts, I'm sorry. Um, so that was tough. And then there's also a whole subset of people who wanted some icons, but um maybe they don't even have Sketch or don't even care to have it, you know. They're like, I just want these icons, like where are they, you know. Um, so Figma comes in and uh I feel like it's a great uh tool for storing those things because uh anybody with a URL can go and and export those files. And um they don't need special software. You don't need like to be on a Mac specifically. Uh you could be on Windows, you could be on whatever, and you can just get these files. And they're the exact same files that are in production, you know.

[00:35:06] Michael Chan: Yeah, we've kind of following your lead started to investigate Figma. And uh man, it's been- there's been these really nice workflow things that like I didn't really anticipate in like having a uh like a graphical editor in the browser. Um but I find myself a lot of times, you know, like I'll be in an environment where I just hit like Command+T in my browser and like open up that file, right? Which is like such a different workflow than, you know, getting in, you know, opening up an app to like to do that. But it's like it's kind of like delightful. I mean, especially for getting colors. Like if I'm in my browser working on, you know, my app anyway, to just be able to like Command+T and like snatch colors out of it, it's like-

[00:35:49] Jon Rohan: It's great.

[00:35:49] Michael Chan: Kind of amazing.

[00:35:50] Jon Rohan: I love this. I love this uh sort of way that we're moving as an industry with designers. And, you know, it's like, I mean, I still feel like there's a long way to go. For any developer that's sort of like seen the um what GitHub can do for development workflow, I feel like there's still so much to grow in the design workflow. And we're sort of like, we're we've come a long way, right? I mean, like having a Figma file and and like prototyping it for, you know, some room of developers or product people with just like a URL and doing a remotely is amazing, right?

[00:36:30] Michael Chan: Yeah.

[00:36:30] Jon Rohan: And a lot of people actually use it for presentations too. You know, it's just like so easy to be like, "Here, look at this."

[00:36:37] Michael Chan: Yeah, it's so cool. Um, how has your experience been uh using the API? Is it pretty intuitive?

[00:36:45] Jon Rohan: Yeah, yeah. Uh, there it's it's pretty it's it's pretty fresh. I mean, like, you know, there's like only a few endpoints, but uh I I think they're doing a great job with um like the direction and as far as like um trying to determine what people need the most uh with the API. Um there's a lot of stuff you can do on there and and a lot of information you can get from it just on a single file, which is pretty rad.

[00:37:13] Michael Chan: Yeah, it seems like a really ambitious project to take on, but I'm glad they're taking it on because I I think that it really marries a lot of the designer-developer relationship in a way that we have been able to maybe piece together a little bit, but have never really had in a fully integrated way.

[00:37:31] Jon Rohan: Yeah, yeah. I mean, even just like think about 5 years ago when like everything was in Photoshop and and Sketch was coming around. And Sketch is a better web designing tool, but um both of those four formats, you can't you can't like write a Node package just kind of like to slice them up, right? You'd have to like get in the app and and export it, you know?

[00:37:55] Michael Chan: Yeah. Yeah. No matter what, that was always gonna be a manual process.

[00:37:59] Jon Rohan: Yeah.

[00:38:00] Michael Chan: Yeah. That's awesome. Well, cool. I really appreciate you uh you talking with talking about this with all of me. It's been it's been super fun. Um where can people find more about you? More about what you're doing uh or kind of chat with you about uh how to how to start bringing this stuff to their apps?

[00:38:18] Jon Rohan: Yeah, so find me on Twitter. It's uh you know my username is @Jon Rohan, J-O-N-R-O-H-A-N. Um you can uh check out all the work that the design systems team at GitHub's doing at uh primer.style. Uh we have a lot we try to throw all that stuff up there. You can also check out our org on GitHub, github.com/Primer. And um I think once a month we are doing sort of a Spectrum chat, like uh free-for-all questions. So if you want to come to the Primer Spectrum channel and ask us a question, then uh we'll be happy to sort of answer.

[00:38:57] Michael Chan: Nice, putting that uh that GitHub Spectrum.chat relationship to use now.

[00:39:02] Jon Rohan: Yeah, yeah.

[00:39:03] Michael Chan: Awesome. Awesome. Well, thank you so much again, John. I really appreciate you taking the time to be on the show.

[00:39:09] Jon Rohan: Oh, it's been a pleasure. Thanks for inviting me.

[00:39:11] Michael Chan: Thanks for listening to this episode of React Podcast. Again, links and show notes are available at reactpodcast.com/48. As you go, remember to explore. As I listen back to this chat with John, I was impressed by the way that they embrace new technology. That fits their needs. As a team, they aren't overwhelmed by it, but eager to see how it can improve the lives of their teammates. Now, this doesn't mean that you have to address every single trend that pops up on Hacker News, but every once in a while, there's that perfect piece of tech that will help you do your job even better. Keep an open eye out for it. Thanks again to Infinite Red for sponsoring this episode. Download the Remote Work Handbook at remote.infinite.red. That's remote.infinite.red. If you start a new project with them, mention React Podcast for 2 tickets to this year's Chain React conference in Portland. It's on track to sell out, so it'll be a hot ticket pretty soon. Find out more about their services and what they do at infinite.red. This episode of React Podcast was edited by Mikael Delport. It was produced by Mikael Delport and Sarah Jackson. You can find React Podcast on Speck, a network to help designers and developers level up. Visit speck.fm to find other shows that will take you further in your career. Help us out by reviewing this show on iTunes. Your reviews help the show grow and help us ensure great guests and awesome content week to week. To join the discussion, visit reactpodcast.com/discuss. Or follow us on Twitter @ReactPodcast. I'm @Chantastic. To stay out of the discussion but get updates, visit reactpodcast.com/news and sign up for emails. Thanks so much for giving us your attention. We'll be in your ears again next week. Thanks for listening.