Skip to content

Commit

Permalink
Merge branch 'fiaz-dev:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-fiaz authored Dec 8, 2023
2 parents 787095d + bc68f4a commit 72f3c72
Show file tree
Hide file tree
Showing 39 changed files with 2,670 additions and 131 deletions.
10 changes: 10 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,30 @@ OpenCSS is a lightweight and versatile CSS utility library designed to streamlin
- **Modular Architecture:** The library is modular, allowing you to include only the parts you need, keeping your stylesheets clean and efficient.

## Installation
OpenCSS can be easily installed via npm, the Node.js package manager. Ensure that you have Node.js and npm installed on your system before proceeding.

You can install OpenCSS via npm:
To install OpenCSS globally, allow you to use the opencss command from any directory,
run the following command in your terminal:

```bash
npm install -g opencss
```

## Local Installation (for project-specific use)

If you prefer to install OpenCSS locally within a specific project, navigate to your project directory and run:
```bash
npm install opencss
```
## Verify Installation

After installation, you can verify that OpenCSS is installed by checking its version:
```bash
opencss --version
```
This should display the installed version of OpenCSS.


## Contributing
Contributions are welcome! Before contributing, please read our [Contributing Guidelines](CONTRIBUTING.md) to ensure a smooth and collaborative development process.

Expand Down
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ['@babel/preset-env'],
};
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import './opencss/styles/_variables.scss';
import './opencss.scss';
6 changes: 6 additions & 0 deletions opencss.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions opencss.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions opencss.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "opencss/index";
4 changes: 4 additions & 0 deletions opencss/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
background-color: #000;
color: #fff;
}
File renamed without changes.
File renamed without changes.
Empty file.
Empty file added opencss/components/_forms.scss
Empty file.
Empty file added opencss/components/_navbar.scss
Empty file.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions opencss/index.css

This file was deleted.

1 change: 0 additions & 1 deletion opencss/index.css.map

This file was deleted.

Empty file added opencss/styles/_base.scss
Empty file.
Empty file added opencss/styles/_globals.scss
Empty file.
Empty file added opencss/styles/_mixins.scss
Empty file.
32 changes: 32 additions & 0 deletions opencss/styles/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// variables.scss

// Light Theme
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--background-color: #ffffff;
--text-color: #333333;
--link-color: #3498db;
--border-color: #dddddd;
--box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

// Dark Theme
:root[data-theme='dark'] {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--background-color: #1a1a1a;
--text-color: #ffffff;
--link-color: #3498db;
--border-color: #333333;
--box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

// Common Variables
:root {
--font-family: 'Arial', sans-serif;
--font-size-base: 16px;
--line-height-base: 1.6;
--spacing-unit: 8px;
--border-radius: 4px;
}
3 changes: 0 additions & 3 deletions opencss/styles/globals.css

This file was deleted.

1 change: 0 additions & 1 deletion opencss/styles/globals.css.map

This file was deleted.

Empty file added opencss/utilities/_colors.scss
Empty file.
Empty file.
Empty file added opencss/utilities/_flexbox.scss
Empty file.
Empty file.
Empty file added opencss/utilities/_grid.scss
Empty file.
Empty file added opencss/utilities/_icons.scss
Empty file.
Empty file.
Empty file.
Empty file.
Loading

0 comments on commit 72f3c72

Please sign in to comment.