Hi everyone, in this video I'm going to show you how to hide components... font styles, color styles from your library... so that when you publish them other people can't access them... you can still work on them, it might be that it's a work in progress... or it's just something that you're using... and you don't want to confuse the team with...
I'll also show you a couple of little things that might catch you out... people are already using the components or styles... but for the moment let's jump in and hide some styles and components. So I have published this library from this file here... and used it in this untitled document here, I can see all the bits... Button A, B, C, D that we made...
if we want to hide any of those, so that other people can't use them... there's two ways... you can find it in your Assets panel... so remember, 'Option 1' is Layers, 'Option 2' is Assets... I'm going to go to my buttons... and the easy way is to right click it and say, 'Hide When Publishing'...
what happens is it comes out of here and goes down to this folder that says... Hidden Stuff, there it is, in there... but I've got to republish it otherwise this person can still see my button. So I'm, I'm going to call this guy Doug... Doug can see Daniel's file, I'm going to have to publish this... there's no quick easy way to publish, or at least no shortcut, go 'Option 3'...
'Publish 1 Change', it's this thing here, has been modified, Button A... now 'Command 3', or 'Ctrl 3', it's gone, can't see it... now with styles it's slightly different... 'Command 2', 'Ctrl 2' to get back to this tab, I'll stop doing shortcuts... styles, it comes down to naming, so I've got nothing selected... over here if I don't want Doug to be able to see this 900 style...
I'm going to click on it, and what I need to do is, at the front of it... add an underscore or a period... you'll see, people-- or a full stop, it depends... I don't think it makes any difference... I see lots of people using both... I use underscores, you can use a dot at the front...
don't think so, let me know in the comments if you've figured out a difference... all I know is that I can still see it, but when I hit Publish... remember 'Option 3', 'Alt 3' on a PC... or you could use your Quick key to go to Publish Changes to Library... that might be the shortest way of doing it... you can see there, it has been removed...
and now let's go check Doug. Doug, when he's creating something, can go through, grabs his Fill colors... but he can't see the 900, it's gone... so, for components, let's go back to components... we did the right click, you can actually do the same naming trick... so let's say that I want to hide button, this one here...
what button are you? Button B... so what I could do is, right click it, 'Publish When Hiding'... or if I want to keep that kind of underscore consistency, I can rename it... remember, 'Command R', 'Ctrl R'... and I was going to put an underscore or a period in front of it...
and what will happen is, when I publish, not until you publish... quick actions, 'Enter', 'Enter', 'Enter'... because I've done it all before, let's publish that one... let's go check out Doug, he's gone... there's no real better, if I go to Assets... can you see, they all ended up in the hidden section...
except the name of this has changed... I haven't really decided which way I like better... sometimes it can be clear when there's an underscore... that it is not meant to be part of the library. Now one thing that might catch you out... is that if Doug already uses this, so if Doug goes...
says, "All right, I need the pink button"... what is that? Random box... uses the pink button, and then back here I say, actually... "Quick, before Doug goes and use the pink button... I'm going to remove it from publishing"...
I'm going to publish this file, 'Command /', 'Ctrl /', there it is there... quick, phew, glad nobody used it... aha, over here, Doug still got it... it's not something he can drag out, but it doesn't like remove it... so once somebody's got it already, it's kind of in those documents... I, as the creator can't make changes to Doug's button...
unless I publish the button again into the library... and then it'll connect back up and push changes along. One last little thing is, if you're messing with libraries quite a lot... like intensely, like publish, unpublish... link, unlink, doing lots of that sort of stuff... some, and you're having, and you're like, "Man, it used to work"...
I have found, like mainly, just not in my normal kind of design practice... but making this course, Figma freaks out... and I just have to close it down, open it back up again... basically, what I was doing is, I was turning them off here, I was doing that... and publishing, and they were staying in Doug's file, I was like... "Huh," I'm like, "Maybe I've done something wrong, I've broken the internet"...
turns out I just, I don't know... I think I was a little intensively going through the libraries... and I just had to close Figma, give it a little nap... just for a second, little sleep, then woke her back up, and everything worked again. All right, that is it, that is how to hide components... colors and fonts are just the same, just put underscore in front of them...
make sure you publish the library... and anyone else won't be able to have access to them... unless they've dragged out instances... then they'll have an instance in their own, used in this file library... there it is, Button D... all right, that is it, I will see you in the next video.