<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/kiba.min.css" crossorigin="anonymous">
Looking to quickly add Kiba-CSS to your project? Use the jsDelivr link or download it directly from Github
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/kiba.min.css" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1">
Put it all together, also with the latest design and development standards, your pages should look like this:
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- KIBA-CSS --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/kiba.min.css" crossorigin="anonymous"> <title>Hello, world!</title> </head> <body> <h1>Hello, world!</h1> </body> </html>
Alternatively Pull in Kiba-CSS source files into nearly any project with a package manager like npm
npm install kiba-css
Determine which modules you need
While the kiba.min.css file contains all components, including utility classes, the base with rules for the HTML and body element, the components.min.css file only includes the base with rules for the HTML and body element without utilty classes.
Name | Url | Size |
---|---|---|
kiba | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/kiba.min.css | 17kb |
Components | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/components.min.css | 11kb |
You can also pull in the following components individually.
Name | Url | Size |
---|---|---|
Container | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/container.min.css | 1kb |
Grid | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/grid.min.css | 7kb |
Form | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/form.min.css | 3kb |
Button | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/button.min.css | 1kb |
Navbar | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/navbar.min.css | 1kb |
Table | https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/table.min.css | 1kb |
One of our goals when developing Kiba-CSS was to make it highly extensible. By incorporating Kiba-CSS and adding your own CSS on top of it, you can ensure cross-browser compatibility while achieving a truly unique look for your site or app. The best part is that your CSS file size will remain minimal, which is especially beneficial for mobile users and those with slow connections.
Kiba-CSS is based on the BEM methodology, which promotes modular and reusable CSS code. By following BEM's guidelines, Kiba-CSS helps you create structured and scalable stylesheets. It ensures consistency, collaboration, and code readability.
To extend the button component in Kiba-CSS with a new modifier, let's say button--secondary, you can simply add CSS after loading kiba.min.css. Here's an example:
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- KIBA-CSS --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kiba-css@0.5.5/dest/kiba.min.css" crossorigin="anonymous"> <!-- Custom style --> <style> .button--secondary { background: #000; color: #cccc; } </style> <title>Hello, world!</title> </head> <body> <button class="button button--secondary">Secondary button</button> </body> </html>
Import our source Sass files to take advantage of variables. You can either download the source files or use a package manager. The component partials are located in the partials folder. For example if you want to extend the button partial:
@import "../node_modules/kiba-css/src/scss/partials/button"; .button--secondary { background: #000; color: #cccc; }
some partials require scss variables which have to be defined as well. These are described as comments in the file.
Streamlined Development Process: Kiba-CSS simplifies the development process by combining the best aspects of BEM methodology and utility classes. With its well-organized code structure and modular approach, you can save time and effort while building your website or web application.
Maintainable and Scalable Styles: By adhering to the BEM methodology, Kiba-CSS ensures that your styles remain maintainable and scalable as your project evolves. The BEM naming convention promotes clarity and avoids conflicts, making it easier to manage and update your stylesheets in the long run.
Customization and Flexibility: Kiba-CSS serves as a solid foundation that you can easily customize to meet your specific design requirements. Whether you want to override existing styles or create your own components, Kiba-CSS allows for seamless customization, empowering you to achieve the desired look and feel for your project.
Compatibility with Other Frameworks: One of the standout features of Kiba-CSS is its compatibility with other CSS frameworks like Tailwind. You can leverage Kiba-CSS's standalone BEM components alongside utility classes from other frameworks, giving you the flexibility to combine and integrate different styling approaches effortlessly.
Quick and Easy Styling: With Kiba-CSS, applying styling to your elements becomes a breeze. The framework offers a comprehensive set of utility classes that cover common styling needs. These classes allow you to achieve desired effects without writing extensive custom CSS, saving you time and reducing the complexity of your stylesheets.
In summary, Kiba-CSS combines the strengths of BEM methodology and utility classes, providing a streamlined development experience, maintainable styles, customization options, compatibility with other frameworks, easy styling capabilities . By choosing Kiba-CSS, you can build robust and visually appealing websites or web applications efficiently.