Skip to content

Commit cbd2597

Browse files
committed
first commit
0 parents  commit cbd2597

33 files changed

+6102
-0
lines changed

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

Ijebucss/abstracts/_breakpoints.scss

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$breakpoints: (
2+
xs: 0px,
3+
sm: 576px,
4+
md: 768px,
5+
lg: 992px,
6+
xl: 1200px
7+
);

Ijebucss/abstracts/_colors.scss

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// theme colors
2+
$primary: #326dee !default;
3+
$secondary: #1ac888 !default;
4+
$error: #d32752 !default;
5+
$info: #f6c31c !default;
6+
$color-warning: #ffc107 !default;
7+
$color-danger: #dc3545 !default;
8+
$color-light: #f8f9fa !default;
9+
$color-dark: #343a40 !default;
10+
11+
// color palette
12+
$colors: (
13+
'primary': $primary,
14+
'secondary': $secondary,
15+
'error': $error,
16+
'info': $info,
17+
'warning': $color-warning,
18+
'danger': $color-danger,
19+
'light': $color-light,
20+
'dark': $color-dark,
21+
'blue': #1919e6,
22+
'red': #e61919,
23+
'yellow': #e6e619,
24+
'green': #19e635,
25+
'orange': #ffa600,
26+
'purple': #9900ff,
27+
'gray': #808080,
28+
'black': black,
29+
'white': white,
30+
);

Ijebucss/abstracts/_functions.scss

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@function light-comp($color) {
2+
$complement: complement($color);
3+
$light-complement: lighten($complement, 30%);
4+
@return $light-complement;
5+
}

Ijebucss/abstracts/_index.scss

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@forward "variables";
2+
@forward "colors";
3+
@forward "mixins";
4+
@forward "functions";
5+
@forward "breakpoints";

Ijebucss/abstracts/_mixins.scss

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
@use "variables" as *;
2+
@use "breakpoints" as *;
3+
4+
@mixin btn ($bg-color: #e2e2e2) {
5+
text-decoration: none;
6+
cursor: pointer;
7+
display: inline-block;
8+
border: 0;
9+
padding: $base-padding $base-padding * 2;
10+
border-radius: $base-border-radius;
11+
background-color: $bg-color;
12+
}
13+
14+
@mixin xs {
15+
@media (min-width: map-get($breakpoints, xs)) {
16+
@content;
17+
}
18+
}
19+
20+
@mixin sm {
21+
@media (min-width: map-get($breakpoints, sm)) {
22+
@content;
23+
}
24+
}
25+
26+
@mixin md {
27+
@media (min-width: map-get($breakpoints, md)) {
28+
@content;
29+
}
30+
}
31+
32+
@mixin lg {
33+
@media (min-width: map-get($breakpoints, lg)) {
34+
@content;
35+
}
36+
}
37+
38+
@mixin xl {
39+
@media (min-width: map-get($breakpoints, xl)) {
40+
@content;
41+
}
42+
}
43+
44+
@mixin breakpoint($bp: 0) {
45+
@media (min-width: $bp) {
46+
@content;
47+
}
48+
}

Ijebucss/abstracts/_variables.scss

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// spacing
2+
$base-padding: 0.74rem !default;
3+
$base-margin: 0.75rem !default;
4+
5+
//borders
6+
$base-border-thickness: 1px !default;
7+
$base-border-radius: 20px !default;
8+
9+
// box-shadow
10+
$base-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1) !default;
11+
12+
// font sizes
13+
$base-font-size: 1rem !default;
14+
$font-size-sm: $base-font-size * 0.75 !default;
15+
$font-size-lg: $base-font-size * 1.5 !default;
16+
$font-size-xl: $base-font-size * 2 !default;
17+
$font-size-xxl: $base-font-size * 3 !default;
18+
19+
// font weights
20+
$font-weight-light: 300 !default;
21+
$font-weight-normal: 400 !default;
22+
$font-weight-bold: 700 !default;
23+
24+
25+
// colors
26+
$color-primary: #007bff !default;
27+
$color-secondary: #6c757d !default;
28+
$color-success: #28a745 !default;
29+
$color-info: #17a2b8 !default;

Ijebucss/base/_general.scss

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// import google font
2+
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

Ijebucss/base/_index.scss

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@forward "reset";
2+
@forward "general";

Ijebucss/base/_reset.scss

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* reset styles */
2+
* {
3+
color: inherit;
4+
margin: 0;
5+
}
6+
7+
body {
8+
font-family: Poppins;
9+
}
10+
11+
ul {
12+
padding: 0;
13+
list-style-type: none;
14+
}
15+
16+
a {
17+
text-decoration: none;
18+
}
19+
20+
hr {
21+
border: 0;
22+
border-top: 1px dotted #efefef;
23+
}
24+
25+
img {
26+
max-width: 100%;
27+
}

Ijebucss/components/_badge.scss

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@use 'sass:math';
2+
@use '../abstracts' as *;
3+
4+
@mixin badge($bg-color: $info) {
5+
border-radius: $base-border-radius * 4;
6+
background-color: $bg-color;
7+
padding: math.div($base-padding, 4) math.div($base-padding, 2);
8+
font-size: $font-size-sm;
9+
font-weight: normal;
10+
}
11+
12+
.badge {
13+
@include badge;
14+
}
15+
16+
@each $key,
17+
$val in $colors {
18+
.badge-#{$key} {
19+
@include badge($val);
20+
}
21+
}

Ijebucss/components/_button.scss

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@use '../abstracts' as *;
2+
3+
.btn {
4+
@include btn;
5+
}
6+
7+
@each $key, $val in $colors {
8+
.btn-#{$key} {
9+
@include btn($val);
10+
11+
&:hover {
12+
background-color: lighten($val, 10%);
13+
}
14+
}
15+
16+
.btn-outlined-#{$key} {
17+
@include btn(white);
18+
border: $base-border-thickness solid $val;
19+
20+
&:hover {
21+
background-color: $val;
22+
}
23+
}
24+
25+
.btn-complement-#{$key} {
26+
@include btn($val);
27+
color: light-comp($val);
28+
29+
&:hover {
30+
color: $val;
31+
background-color: light-comp($val);
32+
}
33+
}
34+
}

Ijebucss/components/_card.scss

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@use "sass:math";
2+
@use "../abstracts" as *;
3+
4+
.card {
5+
display: block;
6+
padding: $base-padding;
7+
border: $base-border-thickness solid #ddd;
8+
box-shadow: $base-box-shadow;
9+
border-radius: math.div($base-border-radius, 4);
10+
11+
&-title {
12+
font-size: $font-size-lg;
13+
padding-bottom: $base-padding;
14+
font-weight: bold;
15+
}
16+
17+
&-body {
18+
font-size: $base-font-size;
19+
20+
a {
21+
text-decoration: underline;
22+
}
23+
}
24+
}

Ijebucss/components/_index.scss

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@forward "button";
2+
@forward "badge";
3+
@forward "card";
4+
@forward "navbar";

Ijebucss/components/_navbar.scss

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@use "../abstracts" as *;
2+
3+
%flex-layout {
4+
width: 100%;
5+
display: flex;
6+
align-items: center;
7+
justify-content: space-between;
8+
box-sizing: border-box;
9+
}
10+
11+
.navbar {
12+
@extend %flex-layout;
13+
padding: $base-padding $base-padding * 2;
14+
box-shadow: $base-box-shadow;
15+
16+
.site-title {
17+
font-size: $font-size-lg;
18+
}
19+
20+
.container {
21+
@extend %flex-layout;
22+
}
23+
}
24+
25+
@each $key,
26+
$val in $colors {
27+
.navbar-#{$key} {
28+
@extend .navbar;
29+
background-color: $val;
30+
}
31+
}

Ijebucss/index.scss

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// variables and functions
2+
@use "abstracts";
3+
4+
// base styling
5+
@use "base";
6+
7+
// colors
8+
9+
// components (button, card, navbar)
10+
@use "components";
11+
12+
// layout (grid, flexbox, position)
13+
@use "layout";
14+
15+
//utilities (margin, padding, opacity etc)
16+
@use "utilities";

0 commit comments

Comments
 (0)