-
Notifications
You must be signed in to change notification settings - Fork 475
Feature/base on html5 elements refactor #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/base on html5 elements refactor #705
Conversation
|
The idea is to move styles into HTML element scss files. The benefit I want to have is having to learn less PicoCSS SCSS "madness", but being able to write themes by allowing me to work with the well-known HTML elements' scss, rather than modules. Once I modify Then I run Finally I run Basically, the only things I want to actually really manually refactor here are content forms folders - these I want to replace with the new inline/block folders. void elements are intentionally left out due to not being visible. |
54b0523 to
64abdfc
Compare
10a411f to
c4d8e12
Compare
|
I think the purpose of this branch needs further clarification. So with this new structure in place, I am positive to get there soon. As an example, a story for links would sit in a anchor folder, and I'd be able to configure storybook vite, a sass and twig loader to look like this: This will make the process of creating new custom components much easier. Plus it will allow to do theming in a atoms/molecules/organisms fashion. For reference: |
… missing aria-* attributes, etc.)
Please ignore everything PHP (especially in src/ folder). It just helps me auto-generate files. Everything PHP will not be in the final PR - unless useful.
This pull request updates the
composer.jsonfile to add Composer package management support for the project. The most important changes include specifying a new dependency and configuring autoloading for the source code.Composer integration and configuration:
requiresection to include thevardumper/extended-htmldocumentpackage as a dependency.autoloadsection using PSR-4 to map thePicoCss\Piconamespace to thesrc/directory.