Skip to content
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

Basic structure completed and button 2 variants ready #256

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions V2/assets/css/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*
base.css
Author: Mudit Kashyap (GitHub: @muditkashyap - https://github.com/muditkashyap)
Description: This is the base stylesheet.
It provides foundational styles, color variables, and basic typography settings.
Contact: If you have questions or suggestions regarding this CSS code, please feel free to create an issue or discussion on the project's GitHub repository.
*/



:root {
--primary-color: #007bff;
--secondary-color: #6c757d;
--success-color: #28a745;
--danger-color: #dc3545;
--warning-color: #ffc107;
--info-color: #17a2b8;
--light-color: #f8f9fa;
--dark-color: #343a40;
}

/* Typography */
body {
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
font-weight: bold;
}

p {
margin-bottom: 1rem;
}

/* Basic Styles */
body {
background-color: var(--light-color);
color: #333;
}

header {
background-color: var(--primary-color);
color: #fff;
text-align: center;
padding: 10px;
}

nav {
background-color: var(--dark-color);
color: #fff;
text-align: center;
padding: 10px;
}

main {
margin: 20px;
padding: 20px;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
}

aside {
background-color: var(--light-color);
padding: 10px;
}

footer {
background-color: var(--dark-color);
color: #fff;
text-align: center;
padding: 10px;
}
132 changes: 132 additions & 0 deletions V2/assets/css/buttons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/* Base Button Styles */
.button {
display: inline-block;
padding: 10px 20px;
border: none;
border-radius: 4px;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
font-weight: bold;
}

/* Primary Button */
.button-primary {
background-color: var(--primary-color);
color: #fff;
}
.button-hover-primary:hover{
background-color: var(--primary-color);
color:#fff;
transition: background-color 0.3s, color 0.3s;
}

/* Secondary Button */
.button-secondary {
background-color: var(--secondary-color);
color: #fff;
}
.button-hover-secondary:hover{
background-color: var(--secondary-color);
color: #fff;
transition: background-color 0.3s, color 0.3s;
}


/* Success Button */
.button-success {
background-color: var(--success-color);
color: #fff;
}
.button-hover-success:hover {
background-color: var(--success-color);
color: #fff;
transition: background-color 0.3s, color 0.3s;
}

/* Danger Button */
.button-danger {
background-color: var(--danger-color);
color: #fff;
}
.button-hover-danger:hover {
background-color: var(--danger-color);
color: #fff;
transition: background-color 0.3s, color 0.3s;
}

/* Warning Button */
.button-warning {
background-color: var(--warning-color);
color: #fff;
}
.button-hover-warning:hover {
background-color: var(--warning-color);
color: #fff;
transition: background-color 0.3s, color 0.3s;
}

/* Info Button */
.button-info {
background-color: var(--info-color);
color: #fff;
}
.button-hover-info:hover{
background-color: var(--info-color);
color: #fff;
transition: background-color 0.3s, color 0.3s;
}

/* Light Button */
.button-light {
background-color: var(--light-color);
color: #333;
}
.button-hover-light:hover {
background-color: var(--light-color);
color: #333;
transition: background-color 0.3s, color 0.3s;
}

/* Dark Button */
.button-dark {
background-color: var(--dark-color);
color: #fff;
}
.button-hover-dark:hover{
background-color: var(--dark-color);
color: #fff;
transition: background-color 0.3s, color 0.3s;
}


/* Guidelines for Variants:
- To create a new button variant, follow these steps:
1. Define a class for the new variant, e.g., .button-new-variant.
2. Use background-color and color properties, maintaining the color format.
3. Ensure that the .button class's base styles are inherited for consistency.
4. Provide a brief description in a comment for the new variant.
*/

/* Example of a Custom Button Variant:
.button-custom-variant {
background-color: var(--primary-color); /* Maintain the color format
color: #fff;
Add any additional styles for the custom variant
}
*/


/* Rounded Button */
.button-rounded{
border-radius: 20px;
}

/* Neon Button */
.button-neon {
background-color: #00ffec;
color: #000;
text-shadow: 0 0 5px rgba(0, 255, 236, 0.5);
box-shadow: 0 0 10px rgba(0, 255, 236, 0.5);
}
14 changes: 14 additions & 0 deletions V2/examples/butons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="../assets/css/base.css">
<link rel="stylesheet" href="../assets/css/buttons.css">
</head>
<body>

<button class="button button-rounded button-primary button-hover-danger">Click Here</button>
</body>
</html>