yummacss 1.0.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gulpfile.js CHANGED
@@ -3,26 +3,26 @@ const sass = require('gulp-sass')(require('sass'));
3
3
  const clean = require('gulp-clean-css');
4
4
  const rename = require('gulp-rename');
5
5
 
6
- function buildStyles() {
6
+ function standardFile() {
7
7
  return src('yumma-css/**/*.scss')
8
8
  .pipe(sass())
9
9
  .pipe(rename('yumma.css'))
10
10
  .pipe(dest('dist'));
11
11
  }
12
12
 
13
- function minifyStyles() {
13
+ function minifiedFile() {
14
14
  return src('dist/yumma.css')
15
15
  .pipe(clean())
16
16
  .pipe(rename({ suffix: '.min' }))
17
17
  .pipe(dest('dist'));
18
18
  }
19
19
 
20
- function watchTask() {
21
- watch(['yumma-css/**/*.scss', '*.html'], series(buildStyles, minifyStyles));
20
+ function watchFiles() {
21
+ watch(['yumma-css/**/*.scss', '*.html'], series(standardFile, minifiedFile));
22
22
  }
23
23
 
24
- exports.buildStyles = buildStyles;
25
- exports.minifyStyles = minifyStyles;
26
- exports.watch = watchTask;
24
+ exports.standardFile = standardFile;
25
+ exports.minifiedFile = minifiedFile;
26
+ exports.watch = watchFiles;
27
27
 
28
- exports.default = series(buildStyles, minifyStyles, watchTask);
28
+ exports.default = series(standardFile, minifiedFile, watchFiles);
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- const packageJson = require('./package.json');
1
+ const pkg = require('./package.json');
2
2
 
3
3
  const showVer = () => {
4
- const version = packageJson.version;
4
+ const version = pkg.version;
5
5
  console.log(`You're running Yumma CSS v${version}!`);
6
6
  };
7
7
 
package/package.json CHANGED
@@ -1,28 +1,26 @@
1
1
  {
2
2
  "name": "yummacss",
3
- "version": "1.0.3",
4
- "description": "A CSS library for streamlined UI development.",
3
+ "version": "1.2.0",
4
+ "description": "Build beautiful websites with small class names.",
5
5
  "main": "index.js",
6
6
  "style": "dist/yumma.css",
7
7
  "author": "Renildo Pereira",
8
8
  "keywords": [
9
- "customization",
10
- "ux design",
11
- "css"
9
+ "css",
10
+ "css library",
11
+ "customization"
12
12
  ],
13
13
  "license": "MIT",
14
- "homepage": "https://yummacss.vercel.app/",
14
+ "homepage": "https://yummacss.com",
15
15
  "bugs": {
16
16
  "url": "https://github.com/yumma-lib/yumma-css/issues"
17
17
  },
18
18
  "scripts": {
19
- "build": "gulp buildStyles",
20
- "minify": "gulp minifyStyles",
21
- "watch": "gulp watchTask",
22
- "prod": "concurrently \"gulp buildStyles\" \"gulp minifyStyles\""
19
+ "std": "gulp standardFile",
20
+ "min": "gulp minifiedFile",
21
+ "watch": "gulp watchFiles"
23
22
  },
24
23
  "devDependencies": {
25
- "concurrently": "^8.2.2",
26
24
  "gulp": "^4.0.2",
27
25
  "gulp-clean-css": "^4.3.0",
28
26
  "gulp-copy": "^4.0.1",
@@ -1,43 +1,62 @@
1
- /* Yumma CSS - https://yummacss.vercel.app/ */
1
+ /* Yumma CSS - https://yummacss.com */
2
+
3
+ *,
4
+ *::before,
5
+ *::after {
6
+ border-width: 0;
7
+ border-style: solid;
8
+ box-sizing: border-box;
9
+ }
10
+
2
11
  * {
3
- color: inherit;
4
12
  margin: 0;
5
- font-family: system-ui, sans-serif;
13
+ color: inherit;
14
+ font-family: $yma-system-fonts;
6
15
  }
7
16
 
8
17
  body {
18
+ line-height: 1.5;
9
19
  font-family: inherit;
10
20
  }
11
21
 
12
- a {
13
- color: inherit;
14
- text-decoration: none;
22
+ img,
23
+ picture,
24
+ video,
25
+ canvas,
26
+ svg {
27
+ display: block;
28
+ max-width: 100%;
15
29
  }
16
30
 
17
- hr {
18
- border: 0;
19
- border-top: 1px solid #efefef;
20
- margin: 1em 0;
31
+ input,
32
+ button,
33
+ textarea,
34
+ select {
35
+ font: inherit;
21
36
  }
22
37
 
23
- html {
24
- scroll-behavior: smooth;
38
+ p,
39
+ h1,
40
+ h2,
41
+ h3,
42
+ h4,
43
+ h5,
44
+ h6 {
45
+ overflow-wrap: break-word;
25
46
  }
26
47
 
27
- img,
28
- picture,
29
- svg,
30
- video {
31
- max-width: 100%;
32
- display: block;
48
+ a {
49
+ text-decoration: none;
33
50
  }
34
51
 
52
+ ol,
35
53
  ul {
36
54
  padding: 0;
37
55
  list-style: none;
38
56
  }
39
57
 
40
- ::before,
41
- ::after {
42
- box-sizing: border-box;
43
- }
58
+ hr {
59
+ border: 0;
60
+ margin: 1em 0;
61
+ border-top: $ym-colors-transparent;
62
+ }
@@ -1,13 +1,13 @@
1
1
  $breakpoints: (
2
- "xsm": 0,
2
+ "xs": 0,
3
3
  "sm": 480px,
4
4
  "md": 720px,
5
5
  "lg": 960px,
6
- "xlg": 1200px,
6
+ "xl": 1200px
7
7
  );
8
8
 
9
- @mixin xsm {
10
- @media (min-width: map-get($breakpoints, "xsm")) {
9
+ @mixin xs {
10
+ @media (min-width: map-get($breakpoints, "xs")) {
11
11
  @content;
12
12
  }
13
13
  }
@@ -30,14 +30,14 @@ $breakpoints: (
30
30
  }
31
31
  }
32
32
 
33
- @mixin xlg {
34
- @media (min-width: map-get($breakpoints, "xlg")) {
33
+ @mixin xl {
34
+ @media (min-width: map-get($breakpoints, "xl")) {
35
35
  @content;
36
36
  }
37
37
  }
38
38
 
39
39
  @mixin breakpoint($bp: 0) {
40
- @media(min-width: $bp) {
40
+ @media (min-width: $bp) {
41
41
  @content;
42
42
  }
43
- }
43
+ }
@@ -1,4 +1,4 @@
1
- @each $k, $v in $base-colors {
1
+ @each $k, $v in $yma-colors {
2
2
  // backgrounds
3
3
  .bg-#{$k} {
4
4
  background-color: $v;
@@ -103,6 +103,16 @@
103
103
  }
104
104
  }
105
105
 
106
+ .td-#{$k} {
107
+ text-decoration-color: $v;
108
+ }
109
+
110
+ .h\:td-#{$k} {
111
+ &:hover {
112
+ text-decoration-color: $v;
113
+ }
114
+ }
115
+
106
116
  @if ($v !=black and $v !=white) {
107
117
  // light variations
108
118
  @for $i from 1 through 6 {
@@ -200,7 +210,7 @@
200
210
  caret-color: mix(white, $v, $i * 10%);
201
211
  }
202
212
 
203
- .h\:cc-#{$k}-#{$i} {
213
+ .h\:cc-l-#{$k}-#{$i} {
204
214
  &:hover {
205
215
  caret-color: mix(white, $v, $i * 10%);
206
216
  }
@@ -299,7 +309,7 @@
299
309
  }
300
310
  }
301
311
 
302
- .cc-#{$k}-#{$i} {
312
+ .cc-d-#{$k}-#{$i} {
303
313
  caret-color: mix(black, $v, $i * 10%);
304
314
  }
305
315
 
@@ -1,19 +1,19 @@
1
1
  .ff-d {
2
- font-family: system-ui, sans-serif;
3
- font-weight: $base-font;
2
+ font-family: $yma-system-fonts;
3
+ font-weight: $yma-font-weight;
4
4
  }
5
5
 
6
6
  .ff-c {
7
- font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
8
- font-weight: $base-font;
7
+ font-family: $yma-charter-fonts;
8
+ font-weight: $yma-font-weight;
9
9
  }
10
10
 
11
11
  .ff-i {
12
- font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
13
- font-weight: $base-font;
12
+ font-family: $yma-inter-fonts;
13
+ font-weight: $yma-font-weight;
14
14
  }
15
15
 
16
16
  .ff-m {
17
- font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
18
- font-weight: $base-font;
19
- }
17
+ font-family: $yma-monospace-fonts;
18
+ font-weight: $yma-font-weight;
19
+ }
@@ -9,12 +9,11 @@ $grid-gaps: (
9
9
  "3": 30px,
10
10
  "4": 40px,
11
11
  "5": 50px,
12
- "6": 60px,
12
+ "6": 60px
13
13
  );
14
14
 
15
- @each $k,
16
- $v in $grid-gaps {
17
- .gap-#{$k}>* {
15
+ @each $k, $v in $grid-gaps {
16
+ .gap-#{$k} > * {
18
17
  padding: $v;
19
18
  }
20
19
 
@@ -25,9 +24,9 @@ $v in $grid-gaps {
25
24
  }
26
25
 
27
26
  // column classes
28
- @include xsm {
27
+ @include xs {
29
28
  @for $i from 1 through $grid-columns {
30
- .col-#{$i}-xsm {
29
+ .xs\:col-#{$i} {
31
30
  box-sizing: border-box;
32
31
  flex-grow: 0;
33
32
  width: math.div($i * 100%, $grid-columns);
@@ -37,7 +36,7 @@ $v in $grid-gaps {
37
36
 
38
37
  @include sm {
39
38
  @for $i from 1 through $grid-columns {
40
- .col-#{$i}-sm {
39
+ .sm\:col-#{$i} {
41
40
  box-sizing: border-box;
42
41
  flex-grow: 0;
43
42
  width: math.div($i * 100%, $grid-columns);
@@ -47,7 +46,7 @@ $v in $grid-gaps {
47
46
 
48
47
  @include md {
49
48
  @for $i from 1 through $grid-columns {
50
- .col-#{$i}-md {
49
+ .md\:col-#{$i} {
51
50
  box-sizing: border-box;
52
51
  flex-grow: 0;
53
52
  width: math.div($i * 100%, $grid-columns);
@@ -57,7 +56,7 @@ $v in $grid-gaps {
57
56
 
58
57
  @include lg {
59
58
  @for $i from 1 through $grid-columns {
60
- .col-#{$i}-lg {
59
+ .lg\:col-#{$i} {
61
60
  box-sizing: border-box;
62
61
  flex-grow: 0;
63
62
  width: math.div($i * 100%, $grid-columns);
@@ -65,12 +64,12 @@ $v in $grid-gaps {
65
64
  }
66
65
  }
67
66
 
68
- @include xlg {
67
+ @include xl {
69
68
  @for $i from 1 through $grid-columns {
70
- .col-#{$i}-xlg {
69
+ .xl\:col-#{$i} {
71
70
  box-sizing: border-box;
72
71
  flex-grow: 0;
73
72
  width: math.div($i * 100%, $grid-columns);
74
73
  }
75
74
  }
76
- }
75
+ }
@@ -6,13 +6,13 @@
6
6
  box-sizing: border-box;
7
7
  }
8
8
 
9
- .row {
10
- display: flex;
11
- flex-flow: row wrap;
12
- }
13
-
14
9
  .ins {
15
10
  display: flex;
16
11
  align-items: center;
17
12
  justify-content: center;
18
- }
13
+ }
14
+
15
+ .row {
16
+ display: flex;
17
+ flex-flow: row wrap;
18
+ }