Why Pico Is My Favorite CSS Framework For Svelte

  Рет қаралды 47,612

Joy of Code

Joy of Code

Күн бұрын

Пікірлер
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
I want to note the way I customize Pico is because I don't use Sass but if you are import the Sass files in your project to customize it as mentioned in the docs picocss.com/docs/customization.html.
@RavenRebels
@RavenRebels Жыл бұрын
Wonderful that you can customize using CSS variables
@giltig2
@giltig2 Жыл бұрын
After you compiled the pico.slim.sass into css - how do you import the new css file into your actual project? (because in the project you are on npm install and not your css version)
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
@@giltig2 You have to do it yourself in that case which is why they recommend you don't.
@OldKing11100
@OldKing11100 Жыл бұрын
8 months later do you still prefer using PicoCSS and have you tried their Alpha V2?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
@@OldKing11100 I love Pico, but I mostly use something custom.
@marcusrehn6915
@marcusrehn6915 2 жыл бұрын
I really want to try this out, it feels like the polar opposite to tailwind at first glance. And I am all for it!
@local9
@local9 2 жыл бұрын
I'm glad I haven't added one yet given I've just seen this, time to play. Class-Less is an option in the menu, yes I was shouting at my monitor.
@a0um
@a0um Жыл бұрын
I’ma backend developer, not much experience with CSS, and I love this approach.
@axelb423
@axelb423 Жыл бұрын
More I use css frameworks over years, more I want stay with scoped native CSS.
@GeneraluStelaru
@GeneraluStelaru Жыл бұрын
Svelte has scoped CSS out of the box.
@WyzrdCat
@WyzrdCat Жыл бұрын
Never met a css framework I liked, been an SCSS guy, but this actually looks decent.
@kensleylewis
@kensleylewis 7 ай бұрын
my new favorite CSS framework
@dc22199x
@dc22199x 2 жыл бұрын
Css flexibility is a must, you can override the entire input and button by using @apply by which it is same thing when using tw
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
What is this in response to? 😄
@jugibur2117
@jugibur2117 2 жыл бұрын
Didn't know that, looks great for a start, thanks for the introduction! EDIT: I just think a fluid based approach for all spaces and font sizes will be even more helpful in the future. So that you no longer have to make adjustments for any breakpoint.
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
I would prefer using clamp instead: developer.mozilla.org/en-US/docs/Web/CSS/clamp.
@jugibur2117
@jugibur2117 2 жыл бұрын
@@JoyofCodeDev Yes, actually I meant a conversion with clamp()
@uopb
@uopb 2 жыл бұрын
🎉 excited to try this out! Thanks 🙏
@brqnet
@brqnet Жыл бұрын
You are a hidden diamond.
@thekinoreview1515
@thekinoreview1515 Жыл бұрын
This looks awesome. Gonna try it out in a project now!
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
Hope you like it! 😄
@zachzeurcher6450
@zachzeurcher6450 Жыл бұрын
You really should have showed how you set up your folders in svelte kit.
@JayXTQ
@JayXTQ Жыл бұрын
This looks really nice, but I can't think of a way to do theme switching (light and dark mode) because limitations with svelte seem like you can't edit the HTML attribute to have data-theme in it. Unless I am missing something
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
You can do whatever you want using JavaScript! If you need an example have a look at github.com/mattcroat/joy-of-code.
@JayXTQ
@JayXTQ Жыл бұрын
@@JoyofCodeDev Found out how to do it by going to their Discord to ask the question and got a rapid and simple response. But maybe you should make a video explaining light/dark mode switching with pico or another css library like tailwind css
@kensleylewis
@kensleylewis 7 ай бұрын
Has anyone found any scss variables that would control the sizing of pico css buttons (i.e. their padding, margin, spacing)?
@BeautifulTurkish
@BeautifulTurkish Жыл бұрын
Can you do an update on UI libs for Svelte?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
I might.
@st3ddyman
@st3ddyman Жыл бұрын
Is there a way to use a framework like this, and override specific components actually within your svelte component and the CSS section within the component? Let's say you add an additional class to your component, then CSS values for that class in your svelte, would that work?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
You can customize it however you want! 😄
@dvkerns
@dvkerns 2 жыл бұрын
"praise be" 🤣
@AndreasWalter1984
@AndreasWalter1984 29 күн бұрын
Can you make an update for pico css v2. It works kinda different after walking from imports to use within sass?
@JoyofCodeDev
@JoyofCodeDev 28 күн бұрын
I mostly use Open Props these days
@JVSd-SG
@JVSd-SG Жыл бұрын
how to switch "open" in accordion tag ? {open?: 'open', ''} not work
@jonahfoxy
@jonahfoxy 2 жыл бұрын
in SvelteKit you probably want to change the "$semantic-root-element" to be "body div" because SK recommends this.
@AlexanderSuraphel
@AlexanderSuraphel 2 жыл бұрын
Why is that recommended?
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
You can learn why here kit.svelte.dev/docs/project-structure#project-files-src but tl;dr is to prevent bugs caused by browser extensions injecting elements.
@AlexanderSuraphel
@AlexanderSuraphel 2 жыл бұрын
@@JoyofCodeDev Thanks a lot man. Your videos are a joy to watch!
@samueloluwafemi4462
@samueloluwafemi4462 Жыл бұрын
How did you customize your terminal? I love it.
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
You can find the link to what I use in the description! 😄
@neveryoumind6913
@neveryoumind6913 Жыл бұрын
Whats your opinion of combining Skeleton with Pico , or in the Skeleton mindset its tailwind all the way ?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
I would not do that but that's up to you.
@yulose9
@yulose9 11 ай бұрын
what font are you using? I mean in vscode?
@JoyofCodeDev
@JoyofCodeDev 11 ай бұрын
You can find what I use in the description.
@yulose9
@yulose9 11 ай бұрын
@@JoyofCodeDev thanks!!
@Ricardoromero4444
@Ricardoromero4444 2 жыл бұрын
Water css is very similar, a bit more lighweight maybe.
@kupyn
@kupyn 2 жыл бұрын
is it weird to use pico + tw? also will there be a tutorial for darkmode showcasing best solutions like you did with auth?
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
I would not use them together - If you're using Tailwind I would use daisyUI, Flowbite or Skeleton. I have plans on making a video on dark mode in SvelteKit! 😄
@heroe1486
@heroe1486 Жыл бұрын
​@@JoyofCodeDevI mean it's not crazy either, at the end tailwind just puts classes you use in a .css file and nothing else is shipped, so using tailwind for directives like margins paddings flex grid etc and pico for the base style may be a nice idea, I guess one should just disable tailwind preflight which overrides some styles by default (not sure if it'd override pico's tho)
@4sARy
@4sARy Жыл бұрын
What theme do you use in the editor?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
You can find what I use in the description.
@IdeationGeek
@IdeationGeek Жыл бұрын
You didn't even try to show how to use it :) (compose something from these lego bricks, instead of customizing the bricks) Pico is unique that it doesn't introduce new tags! (so, instead of learning new bricks, we can demo building with them)
@naeemrind1776
@naeemrind1776 2 жыл бұрын
Plz make a video about CRUD Todo or Notes app with svelte using local storage.
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
I already have! 😄 You can watch it here kzbin.info/aero/PLA9WiRZ-IS_xz1M4H0fjZAii4vzRffTno.
@soumitripattnaik
@soumitripattnaik Жыл бұрын
Are there other css frameworks like this?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
There's a lot of minimal CSS frameworks.
@soumitripattnaik
@soumitripattnaik Жыл бұрын
@@JoyofCodeDev can you please suggest a couple. So far I have used bootstrap, bulma and picocss.
@heroe1486
@heroe1486 Жыл бұрын
​@@soumitripattnaikif you just want random names : unocss tailwind tachyon basscss
@soumitripattnaik
@soumitripattnaik Жыл бұрын
@@heroe1486 I am not asking for random names. I am just asking for simple css libraries like PicoCss, for example Bulma and Bootstrap are somewhat similar to PicoCss if not the same. I am looking to explore 0 config, non toolkit based libraries where I won't have to worry about styling each component, for small to very small projects and prototypes. The names you have suggested are all toolkit based libraries which are the opposite of pico and have similarities with Tailwind.
@PruthiviTheDev
@PruthiviTheDev Жыл бұрын
How can I customize it if I import it using CDN ?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
You can customize it using CSS variables.
@PruthiviTheDev
@PruthiviTheDev Жыл бұрын
@@JoyofCodeDev I tried, but didn't worked. By the way I'm using Django.
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
@@PruthiviTheDev picocss.com/docs/customization.html
@tombarfoot9693
@tombarfoot9693 2 жыл бұрын
Great video. I really agree with your comment about your last video ... the UI frameworks for svelte are a major disappointment in my opinion. Its to a point where, sadly, I've had to create my own UI component library. I've tried pico css before, and liked it, but I always find myself looking for the convenience of tailwind for my projects. To bad Pico and tailwind don't play well with each other.
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
I've been thinking a lot about it and I would love a UI component library that uses regular HTML you can copy and not deal with imports and use Svelte actions for the logic but I would have to try it out.
@mahmoudaboelfadel48
@mahmoudaboelfadel48 2 жыл бұрын
you can use tailwind + pico
@ontheruntonowhere
@ontheruntonowhere Жыл бұрын
You can definitely use both. Just import the final stylesheet build from each, although watch out for TW's Preflight reset, and probably import TW first. Whether using both is solving a problem or adding unnecessary complexity is another story.
@BosonCollider
@BosonCollider Жыл бұрын
@Tom Barfoot you may be interested in bonsai CSS, which is a classless framework that also comes with a bunch of utilities
@FredT34
@FredT34 Жыл бұрын
A real question from a newbie... don't you use bun?
@fatihtoprakkale4174
@fatihtoprakkale4174 2 жыл бұрын
perfect for admin panels ngl
@JoyofCodeDev
@JoyofCodeDev 2 жыл бұрын
Yeah, I love it! 😄
@el.bromas
@el.bromas Жыл бұрын
A los chilenos les gustará este framework
@StarlightInsights_com
@StarlightInsights_com Жыл бұрын
Pico looks really nice! But it looks like it isn't being maintained any more 😒
@ouvreboite87
@ouvreboite87 9 ай бұрын
As of February 2024, it looks maintained (quite a little of commits over the past weeks/months)
@LeeZhenYong
@LeeZhenYong 9 ай бұрын
This comment is outdated. They launch v2 about 3 weeks ago. We need a v2 video!!
@mjerez6029
@mjerez6029 10 күн бұрын
New version released few months ago, maintained and healthy ❤
@manolobustamante2853
@manolobustamante2853 2 жыл бұрын
weno pal pico
@jonahfoxy
@jonahfoxy Жыл бұрын
Do you still use pico ? @JoyofCodeDev?
@JoyofCodeDev
@JoyofCodeDev Жыл бұрын
I use a custom library. 😂
@jonahfoxy
@jonahfoxy Жыл бұрын
ooh secret sauce!@@JoyofCodeDev
The One Icon Library To Rule Them All (Iconify)
5:10
Joy of Code
Рет қаралды 11 М.
Use Svelte 5 Snippets To Reuse Markup Without Creating Components
17:41
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 61 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,6 МЛН
Master The Svelte Context API
18:07
Joy of Code
Рет қаралды 8 М.
Say Goodbye to CSS Classes Web Designers with Pico CSS
8:12
Ray Villalobos
Рет қаралды 26 М.
I Tried Every Svelte UI Library
20:57
Joy of Code
Рет қаралды 53 М.
Svelte 5 Snippets: Revolutionizing UI Composition | Snippets Vs Slots
12:09
Fullstack Ninja Academy
Рет қаралды 2,1 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 183 М.
7 ways to deal with CSS
6:23
Fireship
Рет қаралды 1,1 МЛН
Do You Really Need Bootstrap or Tailwind?
8:28
Lama Dev
Рет қаралды 204 М.
The Svelte 5 Migration Guide
50:41
Joy of Code
Рет қаралды 6 М.
Best UI Library for Svelte
16:13
Huntabyte
Рет қаралды 110 М.
Is Tailwind Taking Over CSS? (and some other insights)
18:25
Kevin Powell
Рет қаралды 59 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 61 МЛН