Opt-out of picocss for selective parts of the app #334
-
👋 Really enjoying PicoCSS for a small app I'm building. It works brilliantly for 90% of what I need. At the moment its clashing with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
you can include only the components that you use using scss example: // Config
@import "variables";
// Theming
@import "themes/default";
// Layout
@import "layout/document"; // html
@import "layout/sectioning"; // body, header, main, footer
@import "layout/container"; // .container, .container-fluid
@import "layout/section"; // section
@import "layout/grid"; // .grid
@import "layout/scroller"; // figure
// Content
@import "content/typography"; // a, headings, p, ul, blockquote, ...
@import "content/embedded"; // audio, canvas, iframe, img, svg, video
@import "content/button"; // button, a[role=button], type=button, type=submit ...
@import "content/table"; // table, tr, td, ...
@import "content/code"; // pre, code, ...
@import "content/miscs"; // hr, template, [hidden], dialog, canvas
// Components
@import "components/accordion"; // details, summary
@import "components/card"; // article
@import "components/nav"; // nav
@import "components/dropdown"; // dropdown
// Utilities
@import "utilities/loading"; // aria-busy=true
@import "utilities/accessibility"; // -ms-touch-action, aria-*
@import "utilities/reduce-motion"; // prefers-reduced-motion or you just have to overwrite pico's styles with your own |
Beta Was this translation helpful? Give feedback.
-
I am dealing with the same problem - I need to exclude a component (custom time picker) and all its children from being styled by pico. I've tried setting all style values for the time picker to their initial values using And exactly because I'm a complete analphabet when it comes to web technologies, I'd like to ask if this is something that's possible to do with pico. I've spent several hours trying to figure it out, over an hour consulting uncle Google and even resorted to ChatGPT, but all to no avail. I reckon I could go over the generated CSS file and specify the I would very much appreciate any pointers! |
Beta Was this translation helpful? Give feedback.
you can include only the components that you use using scss
example: