BaseCSS is a minimal and flexible CSS library designed for fast, responsive, and maintainable web development. Ideal for developers looking for simplicity and scalability. ππβ¨
- CSS Reset: Standardizes browser behavior for consistent styling.
- Responsive Typography: Automatically adjusts font sizes for optimal readability on different screen sizes.
- Minimal Styling: Provides a clean slate for building custom designs.
To install the package, use the following command: ππ¦π»
npm i @tfs-8/basecss
Link the CSS file in your <head>
tag: π§Ύππ₯οΈ
<link rel="stylesheet" href="node_modules/@tfs-8/basecss" />
Import the CSS in your entry file: πππ¦
import "@tfs-8/basecss";
If you're using SCSS: βοΈπ¨π
@import "node_modules/@tfs-8/basecss";
To use the CDN, link to the following URL: ππ‘β¨
https://unpkg.com/@tfs-8/basecss
Link the CSS file in your <head>
tag: π§Ύππ
<link rel="stylesheet" href="https://unpkg.com/@tfs-8/basecss" />
Import the CSS in your entry file: π₯ππ§
import "https://unpkg.com/@tfs-8/basecss";
If you're using SCSS: π¨πβοΈ
@import "https://unpkg.com/@tfs-8/basecss";
Instead of importing the entire compiled CSS file, you can include only the specific parts you need by importing the corresponding files from the dist
folder. This allows for greater flexibility and reduced file size. π―ποΈβ‘
- vars: Variables for theming and custom properties.
- reset: Browser style resets.
- type: Responsive typography styles.
- utilities: Utility classes for quick styling.
- components: Predefined UI components.
- scroll: Smooth scrolling and scrollbar styling.
Link the desired CSS file in your <head>
tag: πππ§Ύ
<link rel="stylesheet" href="node_modules/@tfs-8/basecss/dist/reset.min.css" />
Import the specific section in your entry file: π οΈππ¦
import "@tfs-8/basecss/dist/type.min.css";
If you're using SCSS: βοΈππ¨
@import "node_modules/@tfs-8/basecss/dist/utilities.min.css";
Once BaseCSS is imported, it will: πππ‘
- Reset the default browser styles for consistency.
- Apply responsive typography for better readability.
- Provide a clean slate for adding your custom styles.
You can now start building your styles on top of this foundation. πππ»
We welcome contributions! Please check the CONTRIBUTING.md for guidelines. π€π‘π±
Created with β€οΈ by @MFM-347. π¨ππ
The code in this repository is licensed under the MIT License. View more info here. πβ ποΈ