Skip to content

Commit 2ee14b3

Browse files
b254 3.0.1 beta
1 parent e153c06 commit 2ee14b3

File tree

9 files changed

+40
-26
lines changed

9 files changed

+40
-26
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ If you want to quickly add the Punica CSS to your project, you can use the JsDel
1616
```html
1717
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/codeforms/Punica-CSS-Framework@3.x.x/dist/punica.min.css" crossorigin="anonymous">
1818
```
19+
for Default Dark Theme;
20+
```html
21+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/codeforms/Punica-CSS-Framework@3.x.x/dist/punica-dark.min.css" crossorigin="anonymous">
22+
```
1923
### HTML Markup
2024
For your default setup, add the Punica CSS file to the <head> element of your HTML5 document.
2125
```html
@@ -47,7 +51,7 @@ Punica's API-based structure allows you to create or customize a CSS framework t
4751

4852
### TODO List
4953
- [x] Default Theme
50-
- [ ] Default Dark Theme (testing)
54+
- [x] Default Dark Theme
5155
- [x] Documentation
5256
- [ ] API Documentation (0%)
5357
- [ ] Starter Templates (65%)

dist/punica-dark.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/punica.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Modules/Components/Card/Card.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
flex: inherit;
146146
.#{class('card', 'title')},
147147
.#{class('card', 'description')} {
148-
//padding: components('card', 'padding');
149148
padding: calc(#{components('card', 'padding')} / 2) calc(#{components('card', 'padding')} * 3);
150149
}
151150
.#{class('card', 'description')} {

src/Modules/Components/Navbar/Navbar.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@
143143
color: components('navbar', 'button', 'icon', 'color');
144144
}
145145
&:hover {
146-
background: darken(components('navbar', 'background-color'), 5%);
147-
border-radius: 0;
146+
color : components('navbar', 'button', 'hover', 'color');
147+
background-color: components('navbar', 'button', 'hover', 'background-color');
148+
border-radius : 0;
148149
}
149150
&:active,
150151
&.#{class('button', 'active')} {
@@ -153,7 +154,6 @@
153154
transition : components('button', 'transition');
154155
&:hover {
155156
transition: components('button', 'transition');
156-
background: darken(components('navbar', 'background-color'), 7%);
157157
}
158158
}
159159
}

src/Modules/Components/Navbar/mixins.scss

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@
5151
}
5252

5353
.#{class('button', 'group')} {
54-
.#{class('button', 'name')} {
55-
color: $text-color;
54+
.#{class('button', 'name')},
55+
.#{class('button', 'dropdown')} .#{class('button', 'name')} {
56+
color : $text-color;
5657
min-height: 100%;
5758
i {
5859
color: $text-color;
5960
}
6061
&:hover {
61-
background: darken($bg-color, 5%);
62+
background: lighten($bg-color, 5%);
6263
}
6364
}
6465
}
@@ -72,8 +73,8 @@
7273
div.#{class('navbar', 'section')} {
7374
input[type='text'] {
7475
background-color: $input-bg;
75-
border-color: $input-border-color;
76-
color: $input-color;
76+
border-color : $input-border-color;
77+
color : $input-color;
7778
&::placeholder {
7879
color: $text-color;
7980
}
@@ -86,12 +87,12 @@
8687
.#{class('button', 'dropdown')} .#{class('button', 'name')} {
8788
&:active,
8889
&.#{class('button', 'active')} {
89-
color: $text-color;
90-
background: darken($bg-color, 5%);
91-
transition: components('button', 'transition');
90+
color : $text-color;
91+
background-color: lighten($bg-color, 5%);
92+
transition : components('button', 'transition');
9293
&:hover {
93-
transition: components('button', 'transition');
94-
background: darken($bg-color, 7%);
94+
transition : components('button', 'transition');
95+
//background-color: darken($bg-color, 7%);
9596
}
9697
}
9798
}

src/options.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,14 +499,18 @@ $options: (
499499
'font-size' : 1rem,
500500
'color' : theme('color', 'text'),
501501
'font-weight' : bold,
502-
'background-color': #fff,
502+
'background-color': white,
503503
'width' : 100%,
504504
'min-height' : 5rem,
505505
'button' : (
506506
'padding': .935rem 1.4rem,
507507
'icon' : (
508508
'color': theme('color', 'text')
509509
),
510+
'hover': (
511+
'color' : theme('color', 'text'),
512+
'background-color': color.$grey
513+
),
510514
'active': (
511515
'color' : theme('color', 'text'),
512516
'background-color': color.$grey
@@ -531,7 +535,7 @@ $options: (
531535
),
532536
'input': (
533537
'color' : theme('color', 'text'),
534-
'background-color': white,
538+
'background-color': transparent,
535539
'border-color' : theme('border', 'color'),
536540
'border-width' : theme('border', 'width'),
537541
'focus' : (
@@ -559,7 +563,7 @@ $options: (
559563
(
560564
"primary", // theme name (class)
561565
theme('color', 'primary'), // bg color
562-
white, // text color
566+
white, // text/button color
563567
darken(theme('color', 'primary'), 7%), // input bg
564568
white, // input color
565569
lighten(theme('color', 'primary'), 4%), // input border color
@@ -568,7 +572,7 @@ $options: (
568572
(
569573
"dark", // theme name (class)
570574
theme('color', 'dark'), // bg color
571-
white, // text color
575+
white, // text/button color
572576
lighten(theme('color', 'dark'), 7%), // input bg
573577
white, // input color
574578
lighten(theme('color', 'dark'), 25.75%), // input border color
@@ -1081,7 +1085,7 @@ $options: (
10811085
'font-family' : inherit,
10821086
'box-sizing' : inherit,
10831087
'color' : inherit,
1084-
'background-color': initial,
1088+
'background-color': transparent,
10851089
'border-color' : inherit,
10861090
'height' : initial,
10871091
'padding' : .7rem .5rem,

src/punica.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
////////////////////////////////////////////////////////////////
1111
///-------------------------------------------------------------
12-
$active-theme: dark;
12+
$active-theme: default;
1313
///-------------------------------------------------------------
1414
////////////////////////////////////////////////////////////////
1515
$theme-name: if(map.has-key(get.$themes, $active-theme), $active-theme, theme-not-found($active-theme));

src/themes.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ $themes: (
6161
'success' : #369138,
6262
'warning' : #c17f2a,
6363
'error' : #CC2B52,
64-
'dark' : #29292f
64+
'dark' : #39414f
6565
),
6666
'border': (
6767
'color' : #454859,
@@ -96,9 +96,6 @@ $themes: (
9696
),
9797
'navbar': (
9898
'background-color': lighten(#222226, 2.5%),
99-
'input': (
100-
'background-color': #29292f
101-
),
10299
'menu': (
103100
'background-color': lighten(#222226, 2.5%),
104101
)

0 commit comments

Comments
 (0)