@guebbit/css-toolkit 1.1.1 → 1.1.3
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/CHANGELOG +2 -0
- package/docs/.postcssrc.cjs +12 -0
- package/docs/.vitepress/config.ts +89 -0
- package/docs/.vitepress/dist/404.html +21 -0
- package/docs/.vitepress/dist/assets/app.BlbAZR_S.js +1 -0
- package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.KjYvZcUz.js +1 -0
- package/docs/.vitepress/dist/assets/chunks/VPLocalSearchBox.BwVVD-os.js +7 -0
- package/docs/.vitepress/dist/assets/chunks/framework.Bt53DRYp.js +18 -0
- package/docs/.vitepress/dist/assets/chunks/theme.VODMs8XS.js +2 -0
- package/docs/.vitepress/dist/assets/colors_bootstrap.md.Bfy-p7dM.js +1 -0
- package/docs/.vitepress/dist/assets/colors_bootstrap.md.Bfy-p7dM.lean.js +1 -0
- package/docs/.vitepress/dist/assets/colors_brands.md.Ch21qzT7.js +1 -0
- package/docs/.vitepress/dist/assets/colors_brands.md.Ch21qzT7.lean.js +1 -0
- package/docs/.vitepress/dist/assets/colors_customs.md.CrumAnve.js +1 -0
- package/docs/.vitepress/dist/assets/colors_customs.md.CrumAnve.lean.js +1 -0
- package/docs/.vitepress/dist/assets/functions_colors.md.Dz-AUCFY.js +8 -0
- package/docs/.vitepress/dist/assets/functions_colors.md.Dz-AUCFY.lean.js +8 -0
- package/docs/.vitepress/dist/assets/functions_helpers.md.BLiEkjA1.js +1 -0
- package/docs/.vitepress/dist/assets/functions_helpers.md.BLiEkjA1.lean.js +1 -0
- package/docs/.vitepress/dist/assets/functions_strings.md.BHTeKsax.js +1 -0
- package/docs/.vitepress/dist/assets/functions_strings.md.BHTeKsax.lean.js +1 -0
- package/docs/.vitepress/dist/assets/index.md.Dwdim14B.js +1 -0
- package/docs/.vitepress/dist/assets/index.md.Dwdim14B.lean.js +1 -0
- package/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
- package/docs/.vitepress/dist/assets/mixins_build-aspect-ratio.md.l9MRJQQl.js +1 -0
- package/docs/.vitepress/dist/assets/mixins_build-aspect-ratio.md.l9MRJQQl.lean.js +1 -0
- package/docs/.vitepress/dist/assets/mixins_build-compatibility.md.t0sS5a2s.js +30 -0
- package/docs/.vitepress/dist/assets/mixins_build-compatibility.md.t0sS5a2s.lean.js +30 -0
- package/docs/.vitepress/dist/assets/mixins_build-scrollbar.md.C-TaPgpo.js +32 -0
- package/docs/.vitepress/dist/assets/mixins_build-scrollbar.md.C-TaPgpo.lean.js +32 -0
- package/docs/.vitepress/dist/assets/mixins_create-colors.md.Bs8hXar1.js +1 -0
- package/docs/.vitepress/dist/assets/mixins_create-colors.md.Bs8hXar1.lean.js +1 -0
- package/docs/.vitepress/dist/assets/mixins_create-helper-margin.md.BFzwO-0T.js +46 -0
- package/docs/.vitepress/dist/assets/mixins_create-helper-margin.md.BFzwO-0T.lean.js +46 -0
- package/docs/.vitepress/dist/assets/mixins_create-helper-padding.md.Ci6DL4m-.js +45 -0
- package/docs/.vitepress/dist/assets/mixins_create-helper-padding.md.Ci6DL4m-.lean.js +45 -0
- package/docs/.vitepress/dist/assets/mixins_create-instruction.md.CGTPQqQv.js +20 -0
- package/docs/.vitepress/dist/assets/mixins_create-instruction.md.CGTPQqQv.lean.js +20 -0
- package/docs/.vitepress/dist/assets/style.B-ztagZG.css +1 -0
- package/docs/.vitepress/dist/colors/bootstrap.html +24 -0
- package/docs/.vitepress/dist/colors/brands.html +24 -0
- package/docs/.vitepress/dist/colors/customs.html +24 -0
- package/docs/.vitepress/dist/functions/colors.html +31 -0
- package/docs/.vitepress/dist/functions/helpers.html +24 -0
- package/docs/.vitepress/dist/functions/strings.html +24 -0
- package/docs/.vitepress/dist/hashmap.json +1 -0
- package/docs/.vitepress/dist/index.html +24 -0
- package/docs/.vitepress/dist/mixins/build-aspect-ratio.html +24 -0
- package/docs/.vitepress/dist/mixins/build-compatibility.html +53 -0
- package/docs/.vitepress/dist/mixins/build-scrollbar.html +55 -0
- package/docs/.vitepress/dist/mixins/create-colors.html +24 -0
- package/docs/.vitepress/dist/mixins/create-helper-margin.html +69 -0
- package/docs/.vitepress/dist/mixins/create-helper-padding.html +68 -0
- package/docs/.vitepress/dist/mixins/create-instruction.html +43 -0
- package/docs/.vitepress/theme/index.js +12 -0
- package/docs/colors/bootstrap.md +1 -0
- package/docs/colors/brands.md +1 -0
- package/docs/colors/customs.md +1 -0
- package/docs/functions/colors.md +64 -0
- package/docs/functions/helpers.md +1 -0
- package/docs/functions/strings.md +1 -0
- package/docs/index.md +1 -0
- package/docs/logo.svg +55 -0
- package/docs/logotype.svg +149 -0
- package/docs/mixins/build-aspect-ratio.md +1 -0
- package/docs/mixins/build-compatibility.md +23 -0
- package/docs/mixins/build-scrollbar.md +19 -0
- package/docs/mixins/create-colors.md +1 -0
- package/docs/mixins/create-helper-margin.md +25 -0
- package/docs/mixins/create-helper-padding.md +24 -0
- package/docs/mixins/create-instruction.md +33 -0
- package/package.json +18 -14
- package/src/colors/_bootstrap.scss +181 -0
- package/src/colors/_brands.scss +20 -0
- package/src/colors/_customs.scss +55 -0
- package/src/colors/_index.scss +200 -0
- package/src/functions/_colors.scss +109 -0
- package/src/functions/_helpers.scss +42 -0
- package/src/functions/_strings.scss +31 -0
- package/src/index.scss +13 -0
- package/src/mixins/_build-aspect-ratio.scss +37 -0
- package/src/mixins/_build-compatibility.scss +28 -0
- package/src/mixins/_build-scrollbar.scss +32 -0
- package/src/mixins/_create-colors.scss +119 -0
- package/src/mixins/_create-helper-margin.scss +39 -0
- package/src/mixins/_create-helper-padding.scss +40 -0
- package/src/mixins/_create-instructions.scss +11 -0
- package/test/compile.test.js +97 -0
- package/test/lint.test.js +50 -0
- package/test/test.css +5805 -0
- package/test/test.scss +148 -0
- package/vite.config.ts +26 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Build Compatibility
|
|
2
|
+
|
|
3
|
+
## Example
|
|
4
|
+
|
|
5
|
+
Compatibility mode for browsers
|
|
6
|
+
Firefox, Internet Explorer, Microsoft Edge, Opera (TODO), Safari (TODO)
|
|
7
|
+
|
|
8
|
+
```scss
|
|
9
|
+
@include guebbit-compatibility("ie") {
|
|
10
|
+
...
|
|
11
|
+
}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
# Code
|
|
15
|
+
|
|
16
|
+
<<< ../../src/mixins/_build-compatibility.scss
|
|
17
|
+
|
|
18
|
+
## SCSS variables
|
|
19
|
+
|
|
20
|
+
| Variable | Description | Accepted Values | Default |
|
|
21
|
+
|:-------------|:-------------------|:----------------|:--------|
|
|
22
|
+
| `@content` | CSS Style to apply | `content` | `` |
|
|
23
|
+
| `$browser` | browser name | `string` | `none` |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Scrollbar
|
|
2
|
+
|
|
3
|
+
## Example
|
|
4
|
+
Scrollbars of element
|
|
5
|
+
|
|
6
|
+
```scss
|
|
7
|
+
@include build-scrollbar(4px, #fff, #000, 10px);
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Code
|
|
11
|
+
|
|
12
|
+
<<< ../../src/mixins/_build-scrollbar.scss
|
|
13
|
+
|
|
14
|
+
| Variable | Description | Accepted Values | Default |
|
|
15
|
+
|:----------|:------------------------|:----------------|:--------|
|
|
16
|
+
| `$size` | Size of scrollbar | `size` | `4px` |
|
|
17
|
+
| `$color` | Color of scrollbar | `color` | `#fff` |
|
|
18
|
+
| `$bg` | Color in the background | `color` | `auto` |
|
|
19
|
+
| `$radius` | Radius of scrollbar | `size` | `10px` |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# TODO
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Create Margin
|
|
2
|
+
|
|
3
|
+
## Example
|
|
4
|
+
|
|
5
|
+
```scss
|
|
6
|
+
@include create-helper-margin((
|
|
7
|
+
(auto, auto),
|
|
8
|
+
(6, 6px),
|
|
9
|
+
(12, 12px),
|
|
10
|
+
(24, 24px),
|
|
11
|
+
(36, 36px),
|
|
12
|
+
(48, 48px),
|
|
13
|
+
), true);
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Code
|
|
17
|
+
|
|
18
|
+
<<< ../../src/mixins/_create-helper-margin.scss
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
| Variable | Description | Accepted Values | Default |
|
|
22
|
+
|:------------------|:---------------------------------------------------------|:----------------------|:--------|
|
|
23
|
+
| `$measure-list` | List of pairs <name, value> | `Array<name,value>[]` | `[]` |
|
|
24
|
+
| `$important` | If instruction is !important | `boolean` | `false` |
|
|
25
|
+
| `$prefix` | Eventual prefix (like `guebbit-`), to prevent collisions | `string` | `` |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Create Padding
|
|
2
|
+
|
|
3
|
+
## Example
|
|
4
|
+
|
|
5
|
+
```scss
|
|
6
|
+
@include create-helper-padding((
|
|
7
|
+
(6, 6px),
|
|
8
|
+
(12, 12px),
|
|
9
|
+
(24, 24px),
|
|
10
|
+
(36, 36px),
|
|
11
|
+
(48, 48px),
|
|
12
|
+
), true);
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Code
|
|
16
|
+
|
|
17
|
+
<<< ../../src/mixins/_create-helper-margin.scss
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
| Variable | Description | Accepted Values | Default |
|
|
21
|
+
|:------------------|:---------------------------------------------------------|:----------------------|:--------|
|
|
22
|
+
| `$measure-list` | List of pairs <name, value> | `Array<name,value>[]` | `[]` |
|
|
23
|
+
| `$important` | If instruction is !important | `boolean` | `false` |
|
|
24
|
+
| `$prefix` | Eventual prefix (like `guebbit-`), to prevent collisions | `string` | `` |
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Create Instruction
|
|
2
|
+
|
|
3
|
+
Create instructions. Given name and size.
|
|
4
|
+
Example: width and min-width
|
|
5
|
+
|
|
6
|
+
## Example
|
|
7
|
+
|
|
8
|
+
```scss
|
|
9
|
+
@include create-instructions("width", (
|
|
10
|
+
(25, 25%),
|
|
11
|
+
(50, 50%),
|
|
12
|
+
(75, 75%),
|
|
13
|
+
(100, 100%),
|
|
14
|
+
(p25, 25px),
|
|
15
|
+
(p50, 50px),
|
|
16
|
+
(p75, 75px),
|
|
17
|
+
(p100, 100px)
|
|
18
|
+
), true);
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Code
|
|
22
|
+
|
|
23
|
+
<<< ../../src/mixins/_create-instructions.scss
|
|
24
|
+
|
|
25
|
+
## SCSS variables
|
|
26
|
+
|
|
27
|
+
| Variable | Description | Accepted Values | Default |
|
|
28
|
+
|:------------------|:---------------------------------------------------------|:----------------------|:--------|
|
|
29
|
+
| `$instruction` | CSS instruction to insert | `string` | `none` |
|
|
30
|
+
| `$measure-list` | List of pairs <name, value> | `Array<name,value>[]` | `[]` |
|
|
31
|
+
| `$important` | Flag: if instruction is !important | `boolean` | `false` |
|
|
32
|
+
| `$prefix` | Eventual prefix (like `guebbit-`), to prevent collisions | `string` | `` |
|
|
33
|
+
| `$delimiter` | Custom delimeter of the final classnames | `string` | `-` |
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guebbit/css-toolkit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"description": "A repository containing helpful SCSS functions, mixins, and utilities for streamlining and standardizing CSS development",
|
|
6
6
|
"main": "vite.config.js",
|
|
7
7
|
"files": [
|
|
8
|
+
"docs",
|
|
9
|
+
"src",
|
|
10
|
+
"test",
|
|
8
11
|
"index.scss",
|
|
9
12
|
"README.md",
|
|
10
13
|
"LICENSE",
|
|
11
|
-
"CHANGELOG"
|
|
14
|
+
"CHANGELOG",
|
|
15
|
+
"vite.config.ts"
|
|
12
16
|
],
|
|
13
17
|
"scripts": {
|
|
14
18
|
"test": "mocha",
|
|
@@ -20,25 +24,25 @@
|
|
|
20
24
|
"publish:public": "npm publish --access public"
|
|
21
25
|
},
|
|
22
26
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^22.
|
|
24
|
-
"@vitejs/plugin-vue": "^5.
|
|
25
|
-
"autoprefixer": "^10.4.
|
|
27
|
+
"@types/node": "^22.7.4",
|
|
28
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
29
|
+
"autoprefixer": "^10.4.20",
|
|
26
30
|
"breakpoint-sass": "^3.0.0",
|
|
27
31
|
"chai": "^5.1.1",
|
|
28
32
|
"css-loader": "^7.1.2",
|
|
29
33
|
"cssnano": "^7.0.6",
|
|
30
|
-
"mocha": "^10.
|
|
31
|
-
"postcss": "^8.4.
|
|
34
|
+
"mocha": "^10.7.3",
|
|
35
|
+
"postcss": "^8.4.47",
|
|
32
36
|
"postcss-loader": "^8.1.1",
|
|
33
|
-
"postcss-prefix-selector": "^1.16.
|
|
34
|
-
"sass": "^1.
|
|
37
|
+
"postcss-prefix-selector": "^1.16.1",
|
|
38
|
+
"sass": "^1.79.4",
|
|
35
39
|
"style-loader": "^4.0.0",
|
|
36
|
-
"stylelint": "^16.
|
|
40
|
+
"stylelint": "^16.9.0",
|
|
37
41
|
"stylelint-config-prettier-scss": "^1.0.0",
|
|
38
|
-
"stylelint-config-standard-scss": "^13.
|
|
39
|
-
"stylelint-scss": "^6.
|
|
40
|
-
"vite": "^5.
|
|
41
|
-
"vitepress": "^1.
|
|
42
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
43
|
+
"stylelint-scss": "^6.7.0",
|
|
44
|
+
"vite": "^5.4.8",
|
|
45
|
+
"vitepress": "^1.3.4"
|
|
42
46
|
},
|
|
43
47
|
"repository": {
|
|
44
48
|
"type": "git",
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
@use "sass:color" as color;
|
|
2
|
+
@use "../functions/colors" as color-functions;
|
|
3
|
+
|
|
4
|
+
// Material colors by Bootstrap
|
|
5
|
+
// https://github.com/twbs/bootstrap
|
|
6
|
+
// https://github.com/twbs/bootstrap/blob/v5.3.2/scss/_variables.scss
|
|
7
|
+
|
|
8
|
+
// Variables should follow the `$component-state-property-size` formula for
|
|
9
|
+
// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// scss-docs-start gray-color-variables
|
|
13
|
+
$white: #fff !default;
|
|
14
|
+
$gray-100: #f8f9fa !default;
|
|
15
|
+
$gray-200: #e9ecef !default;
|
|
16
|
+
$gray-300: #dee2e6 !default;
|
|
17
|
+
$gray-400: #ced4da !default;
|
|
18
|
+
$gray-500: #adb5bd !default;
|
|
19
|
+
$gray-600: #6c757d !default;
|
|
20
|
+
$gray-700: #495057 !default;
|
|
21
|
+
$gray-800: #343a40 !default;
|
|
22
|
+
$gray-900: #212529 !default;
|
|
23
|
+
$black: #000 !default;
|
|
24
|
+
// scss-docs-end gray-color-variables
|
|
25
|
+
|
|
26
|
+
// fusv-disable
|
|
27
|
+
// scss-docs-start gray-colors-map
|
|
28
|
+
$grays: (
|
|
29
|
+
"100": $gray-100,
|
|
30
|
+
"200": $gray-200,
|
|
31
|
+
"300": $gray-300,
|
|
32
|
+
"400": $gray-400,
|
|
33
|
+
"500": $gray-500,
|
|
34
|
+
"600": $gray-600,
|
|
35
|
+
"700": $gray-700,
|
|
36
|
+
"800": $gray-800,
|
|
37
|
+
"900": $gray-900
|
|
38
|
+
) !default;
|
|
39
|
+
// scss-docs-end gray-colors-map
|
|
40
|
+
// fusv-enable
|
|
41
|
+
|
|
42
|
+
// scss-docs-start color-variables
|
|
43
|
+
$blue: #0d6efd !default;
|
|
44
|
+
$indigo: #6610f2 !default;
|
|
45
|
+
$purple: #6f42c1 !default;
|
|
46
|
+
$pink: #d63384 !default;
|
|
47
|
+
$red: #dc3545 !default;
|
|
48
|
+
$orange: #fd7e14 !default;
|
|
49
|
+
$yellow: #ffc107 !default;
|
|
50
|
+
$green: #198754 !default;
|
|
51
|
+
$teal: #20c997 !default;
|
|
52
|
+
$cyan: #0dcaf0 !default;
|
|
53
|
+
// scss-docs-end color-variables
|
|
54
|
+
|
|
55
|
+
// scss-docs-start colors-map
|
|
56
|
+
$colors: (
|
|
57
|
+
"blue": $blue,
|
|
58
|
+
"indigo": $indigo,
|
|
59
|
+
"purple": $purple,
|
|
60
|
+
"pink": $pink,
|
|
61
|
+
"red": $red,
|
|
62
|
+
"orange": $orange,
|
|
63
|
+
"yellow": $yellow,
|
|
64
|
+
"green": $green,
|
|
65
|
+
"teal": $teal,
|
|
66
|
+
"cyan": $cyan,
|
|
67
|
+
"black": $black,
|
|
68
|
+
"white": $white,
|
|
69
|
+
"gray": $gray-600,
|
|
70
|
+
"gray-dark": $gray-800
|
|
71
|
+
) !default;
|
|
72
|
+
// scss-docs-end colors-map
|
|
73
|
+
|
|
74
|
+
// The contrast ratio to reach against white, to determine if color changes from "light" to "dark". Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
|
|
75
|
+
// See https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast
|
|
76
|
+
$min-contrast-ratio: 4.5 !default;
|
|
77
|
+
|
|
78
|
+
// Customize the light and dark text colors for use in our color contrast function.
|
|
79
|
+
$color-contrast-dark: $black !default;
|
|
80
|
+
$color-contrast-light: $white !default;
|
|
81
|
+
|
|
82
|
+
// fusv-disable
|
|
83
|
+
$blue-100: color.scale($blue, $lightness: 80%) !default;
|
|
84
|
+
$blue-200: color.scale($blue, $lightness: 60%) !default;
|
|
85
|
+
$blue-300: color.scale($blue, $lightness: 40%) !default;
|
|
86
|
+
$blue-400: color.scale($blue, $lightness: 20%) !default;
|
|
87
|
+
$blue-500: $blue !default;
|
|
88
|
+
$blue-600: color.scale($blue, $lightness: -20%) !default;
|
|
89
|
+
$blue-700: color.scale($blue, $lightness: -40%) !default;
|
|
90
|
+
$blue-800: color.scale($blue, $lightness: -60%) !default;
|
|
91
|
+
$blue-900: color.scale($blue, $lightness: -80%) !default;
|
|
92
|
+
|
|
93
|
+
$indigo-100: color.scale($indigo, $lightness: 80%) !default;
|
|
94
|
+
$indigo-200: color.scale($indigo, $lightness: 60%) !default;
|
|
95
|
+
$indigo-300: color.scale($indigo, $lightness: 40%) !default;
|
|
96
|
+
$indigo-400: color.scale($indigo, $lightness: 20%) !default;
|
|
97
|
+
$indigo-500: $indigo !default;
|
|
98
|
+
$indigo-600: color.scale($indigo, $lightness: -20%) !default;
|
|
99
|
+
$indigo-700: color.scale($indigo, $lightness: -40%) !default;
|
|
100
|
+
$indigo-800: color.scale($indigo, $lightness: -60%) !default;
|
|
101
|
+
$indigo-900: color.scale($indigo, $lightness: -80%) !default;
|
|
102
|
+
|
|
103
|
+
$purple-100: color.scale($purple, $lightness: 80%) !default;
|
|
104
|
+
$purple-200: color.scale($purple, $lightness: 60%) !default;
|
|
105
|
+
$purple-300: color.scale($purple, $lightness: 40%) !default;
|
|
106
|
+
$purple-400: color.scale($purple, $lightness: 20%) !default;
|
|
107
|
+
$purple-500: $purple !default;
|
|
108
|
+
$purple-600: color.scale($purple, $lightness: -20%) !default;
|
|
109
|
+
$purple-700: color.scale($purple, $lightness: -40%) !default;
|
|
110
|
+
$purple-800: color.scale($purple, $lightness: -60%) !default;
|
|
111
|
+
$purple-900: color.scale($purple, $lightness: -80%) !default;
|
|
112
|
+
|
|
113
|
+
$pink-100: color.scale($pink, $lightness: 80%) !default;
|
|
114
|
+
$pink-200: color.scale($pink, $lightness: 60%) !default;
|
|
115
|
+
$pink-300: color.scale($pink, $lightness: 40%) !default;
|
|
116
|
+
$pink-400: color.scale($pink, $lightness: 20%) !default;
|
|
117
|
+
$pink-500: $pink !default;
|
|
118
|
+
$pink-600: color.scale($pink, $lightness: -20%) !default;
|
|
119
|
+
$pink-700: color.scale($pink, $lightness: -40%) !default;
|
|
120
|
+
$pink-800: color.scale($pink, $lightness: -60%) !default;
|
|
121
|
+
$pink-900: color.scale($pink, $lightness: -80%) !default;
|
|
122
|
+
|
|
123
|
+
$red-100: color.scale($red, $lightness: 80%) !default;
|
|
124
|
+
$red-200: color.scale($red, $lightness: 60%) !default;
|
|
125
|
+
$red-300: color.scale($red, $lightness: 40%) !default;
|
|
126
|
+
$red-400: color.scale($red, $lightness: 20%) !default;
|
|
127
|
+
$red-500: $red !default;
|
|
128
|
+
$red-600: color.scale($red, $lightness: -20%) !default;
|
|
129
|
+
$red-700: color.scale($red, $lightness: -40%) !default;
|
|
130
|
+
$red-800: color.scale($red, $lightness: -60%) !default;
|
|
131
|
+
$red-900: color.scale($red, $lightness: -80%) !default;
|
|
132
|
+
|
|
133
|
+
$orange-100: color.scale($orange, $lightness: 80%) !default;
|
|
134
|
+
$orange-200: color.scale($orange, $lightness: 60%) !default;
|
|
135
|
+
$orange-300: color.scale($orange, $lightness: 40%) !default;
|
|
136
|
+
$orange-400: color.scale($orange, $lightness: 20%) !default;
|
|
137
|
+
$orange-500: $orange !default;
|
|
138
|
+
$orange-600: color.scale($orange, $lightness: -20%) !default;
|
|
139
|
+
$orange-700: color.scale($orange, $lightness: -40%) !default;
|
|
140
|
+
$orange-800: color.scale($orange, $lightness: -60%) !default;
|
|
141
|
+
$orange-900: color.scale($orange, $lightness: -80%) !default;
|
|
142
|
+
|
|
143
|
+
$yellow-100: color.scale($yellow, $lightness: 80%) !default;
|
|
144
|
+
$yellow-200: color.scale($yellow, $lightness: 60%) !default;
|
|
145
|
+
$yellow-300: color.scale($yellow, $lightness: 40%) !default;
|
|
146
|
+
$yellow-400: color.scale($yellow, $lightness: 20%) !default;
|
|
147
|
+
$yellow-500: $yellow !default;
|
|
148
|
+
$yellow-600: color.scale($yellow, $lightness: -20%) !default;
|
|
149
|
+
$yellow-700: color.scale($yellow, $lightness: -40%) !default;
|
|
150
|
+
$yellow-800: color.scale($yellow, $lightness: -60%) !default;
|
|
151
|
+
$yellow-900: color.scale($yellow, $lightness: -80%) !default;
|
|
152
|
+
|
|
153
|
+
$green-100: color.scale($green, $lightness: 80%) !default;
|
|
154
|
+
$green-200: color.scale($green, $lightness: 60%) !default;
|
|
155
|
+
$green-300: color.scale($green, $lightness: 40%) !default;
|
|
156
|
+
$green-400: color.scale($green, $lightness: 20%) !default;
|
|
157
|
+
$green-500: $green !default;
|
|
158
|
+
$green-600: color.scale($green, $lightness: -20%) !default;
|
|
159
|
+
$green-700: color.scale($green, $lightness: -40%) !default;
|
|
160
|
+
$green-800: color.scale($green, $lightness: -60%) !default;
|
|
161
|
+
$green-900: color.scale($green, $lightness: -80%) !default;
|
|
162
|
+
|
|
163
|
+
$teal-100: color.scale($teal, $lightness: 80%) !default;
|
|
164
|
+
$teal-200: color.scale($teal, $lightness: 60%) !default;
|
|
165
|
+
$teal-300: color.scale($teal, $lightness: 40%) !default;
|
|
166
|
+
$teal-400: color.scale($teal, $lightness: 20%) !default;
|
|
167
|
+
$teal-500: $teal !default;
|
|
168
|
+
$teal-600: color.scale($teal, $lightness: -20%) !default;
|
|
169
|
+
$teal-700: color.scale($teal, $lightness: -40%) !default;
|
|
170
|
+
$teal-800: color.scale($teal, $lightness: -60%) !default;
|
|
171
|
+
$teal-900: color.scale($teal, $lightness: -80%) !default;
|
|
172
|
+
|
|
173
|
+
$cyan-100: color.scale($cyan, $lightness: 80%) !default;
|
|
174
|
+
$cyan-200: color.scale($cyan, $lightness: 60%) !default;
|
|
175
|
+
$cyan-300: color.scale($cyan, $lightness: 40%) !default;
|
|
176
|
+
$cyan-400: color.scale($cyan, $lightness: 20%) !default;
|
|
177
|
+
$cyan-500: $cyan !default;
|
|
178
|
+
$cyan-600: color.scale($cyan, $lightness: -20%) !default;
|
|
179
|
+
$cyan-700: color.scale($cyan, $lightness: -40%) !default;
|
|
180
|
+
$cyan-800: color.scale($cyan, $lightness: -60%) !default;
|
|
181
|
+
$cyan-900: color.scale($cyan, $lightness: -80%) !default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
$brand-facebook: #3b5998;
|
|
2
|
+
$brand-youtube: #cc181e;
|
|
3
|
+
$brand-twitter: #3cf;
|
|
4
|
+
$brand-skype: #00aff0;
|
|
5
|
+
$brand-linkedin: #1565c0;
|
|
6
|
+
$brand-whatsapp: #4ac959;
|
|
7
|
+
$brand-telegram: #08c;
|
|
8
|
+
$brand-twitch: #6441a4;
|
|
9
|
+
$brand-pinterest: #e60023;
|
|
10
|
+
$brand-reddit: #ff4301;
|
|
11
|
+
$brand-tumblr: #35465c;
|
|
12
|
+
$brand-patreon: #f96854;
|
|
13
|
+
$brand-kickstarter: #05ce78;
|
|
14
|
+
$brand-instagram: #f09433;
|
|
15
|
+
$brand-tiktok: #25f4ee;
|
|
16
|
+
$brand-google: #dc4a38;
|
|
17
|
+
$brand-paypal: #003087;
|
|
18
|
+
$brand-paypal2: #f2b938;
|
|
19
|
+
$advanced-brand-instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
|
|
20
|
+
$advanced-brand-tiktok: linear-gradient(90deg, #25f4ee 0%, #000 30%, #000 50%, #000 70%, #fe2c55 100%);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use "sass:color" as color;
|
|
2
|
+
@use "../functions/colors" as color-functions;
|
|
3
|
+
|
|
4
|
+
$flatrica-green: #06a763 !default;
|
|
5
|
+
$manga-red: #d41816 !default;
|
|
6
|
+
|
|
7
|
+
$flatrica-green-100: color.scale($flatrica-green, $lightness: 20%);
|
|
8
|
+
$flatrica-green-200: color.scale($flatrica-green, $lightness: 40%);
|
|
9
|
+
$flatrica-green-300: color.scale($flatrica-green, $lightness: 60%);
|
|
10
|
+
$flatrica-green-400: color.scale($flatrica-green, $lightness: 80%);
|
|
11
|
+
$flatrica-green-500: $flatrica-green;
|
|
12
|
+
$flatrica-green-600: color.scale($flatrica-green, $lightness: -20%);
|
|
13
|
+
$flatrica-green-700: color.scale($flatrica-green, $lightness: -40%);
|
|
14
|
+
$flatrica-green-800: color.scale($flatrica-green, $lightness: -60%);
|
|
15
|
+
$flatrica-green-900: color.scale($flatrica-green, $lightness: -80%);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
$manga-red-100: color.scale($manga-red, $lightness: 20%);
|
|
19
|
+
$manga-red-200: color.scale($manga-red, $lightness: 40%);
|
|
20
|
+
$manga-red-300: color.scale($manga-red, $lightness: 60%);
|
|
21
|
+
$manga-red-400: color.scale($manga-red, $lightness: 80%);
|
|
22
|
+
$manga-red-500: $manga-red;
|
|
23
|
+
$manga-red-600: color.scale($manga-red, $lightness: -20%);
|
|
24
|
+
$manga-red-700: color.scale($manga-red, $lightness: -40%);
|
|
25
|
+
$manga-red-800: color.scale($manga-red, $lightness: -60%);
|
|
26
|
+
$manga-red-900: color.scale($manga-red, $lightness: -80%);
|
|
27
|
+
|
|
28
|
+
$colors-collection: (
|
|
29
|
+
"core": (
|
|
30
|
+
"flatrica-green": $flatrica-green,
|
|
31
|
+
"manga-red": $manga-red,
|
|
32
|
+
),
|
|
33
|
+
"flatrica-green": (
|
|
34
|
+
"100": $flatrica-green-100,
|
|
35
|
+
"200": $flatrica-green-200,
|
|
36
|
+
"300": $flatrica-green-300,
|
|
37
|
+
"400": $flatrica-green-400,
|
|
38
|
+
"500": $flatrica-green-500,
|
|
39
|
+
"600": $flatrica-green-600,
|
|
40
|
+
"700": $flatrica-green-700,
|
|
41
|
+
"800": $flatrica-green-800,
|
|
42
|
+
"900": $flatrica-green-900,
|
|
43
|
+
),
|
|
44
|
+
"manga-red": (
|
|
45
|
+
"100": $manga-red-100,
|
|
46
|
+
"200": $manga-red-200,
|
|
47
|
+
"300": $manga-red-300,
|
|
48
|
+
"400": $manga-red-400,
|
|
49
|
+
"500": $manga-red-500,
|
|
50
|
+
"600": $manga-red-600,
|
|
51
|
+
"700": $manga-red-700,
|
|
52
|
+
"800": $manga-red-800,
|
|
53
|
+
"900": $manga-red-900,
|
|
54
|
+
),
|
|
55
|
+
);
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@forward "brands";
|
|
2
|
+
@forward "customs";
|
|
3
|
+
@forward "bootstrap";
|
|
4
|
+
|
|
5
|
+
@use "bootstrap" as bootstrap;
|
|
6
|
+
@use "customs" as customs;
|
|
7
|
+
@use "brands" as brands;
|
|
8
|
+
|
|
9
|
+
$colors-collection: (
|
|
10
|
+
// BOOTSTRAP
|
|
11
|
+
"grey": (
|
|
12
|
+
"100": bootstrap.$gray-100,
|
|
13
|
+
"200": bootstrap.$gray-200,
|
|
14
|
+
"300": bootstrap.$gray-300,
|
|
15
|
+
"400": bootstrap.$gray-400,
|
|
16
|
+
"500": bootstrap.$gray-500,
|
|
17
|
+
"600": bootstrap.$gray-600,
|
|
18
|
+
"700": bootstrap.$gray-700,
|
|
19
|
+
"800": bootstrap.$gray-800,
|
|
20
|
+
"900": bootstrap.$gray-900,
|
|
21
|
+
),
|
|
22
|
+
"blue": (
|
|
23
|
+
"100": bootstrap.$blue-100,
|
|
24
|
+
"200": bootstrap.$blue-200,
|
|
25
|
+
"300": bootstrap.$blue-300,
|
|
26
|
+
"400": bootstrap.$blue-400,
|
|
27
|
+
"500": bootstrap.$blue-500,
|
|
28
|
+
"600": bootstrap.$blue-600,
|
|
29
|
+
"700": bootstrap.$blue-700,
|
|
30
|
+
"800": bootstrap.$blue-800,
|
|
31
|
+
"900": bootstrap.$blue-900,
|
|
32
|
+
),
|
|
33
|
+
"indigo": (
|
|
34
|
+
"100": bootstrap.$indigo-100,
|
|
35
|
+
"200": bootstrap.$indigo-200,
|
|
36
|
+
"300": bootstrap.$indigo-300,
|
|
37
|
+
"400": bootstrap.$indigo-400,
|
|
38
|
+
"500": bootstrap.$indigo-500,
|
|
39
|
+
"600": bootstrap.$indigo-600,
|
|
40
|
+
"700": bootstrap.$indigo-700,
|
|
41
|
+
"800": bootstrap.$indigo-800,
|
|
42
|
+
"900": bootstrap.$indigo-900,
|
|
43
|
+
),
|
|
44
|
+
"purple": (
|
|
45
|
+
"100": bootstrap.$purple-100,
|
|
46
|
+
"200": bootstrap.$purple-200,
|
|
47
|
+
"300": bootstrap.$purple-300,
|
|
48
|
+
"400": bootstrap.$purple-400,
|
|
49
|
+
"500": bootstrap.$purple-500,
|
|
50
|
+
"600": bootstrap.$purple-600,
|
|
51
|
+
"700": bootstrap.$purple-700,
|
|
52
|
+
"800": bootstrap.$purple-800,
|
|
53
|
+
"900": bootstrap.$purple-900,
|
|
54
|
+
),
|
|
55
|
+
"pink": (
|
|
56
|
+
"100": bootstrap.$pink-100,
|
|
57
|
+
"200": bootstrap.$pink-200,
|
|
58
|
+
"300": bootstrap.$pink-300,
|
|
59
|
+
"400": bootstrap.$pink-400,
|
|
60
|
+
"500": bootstrap.$pink-500,
|
|
61
|
+
"600": bootstrap.$pink-600,
|
|
62
|
+
"700": bootstrap.$pink-700,
|
|
63
|
+
"800": bootstrap.$pink-800,
|
|
64
|
+
"900": bootstrap.$pink-900,
|
|
65
|
+
),
|
|
66
|
+
"red": (
|
|
67
|
+
"100": bootstrap.$red-100,
|
|
68
|
+
"200": bootstrap.$red-200,
|
|
69
|
+
"300": bootstrap.$red-300,
|
|
70
|
+
"400": bootstrap.$red-400,
|
|
71
|
+
"500": bootstrap.$red-500,
|
|
72
|
+
"600": bootstrap.$red-600,
|
|
73
|
+
"700": bootstrap.$red-700,
|
|
74
|
+
"800": bootstrap.$red-800,
|
|
75
|
+
"900": bootstrap.$red-900,
|
|
76
|
+
),
|
|
77
|
+
"orange": (
|
|
78
|
+
"100": bootstrap.$orange-100,
|
|
79
|
+
"200": bootstrap.$orange-200,
|
|
80
|
+
"300": bootstrap.$orange-300,
|
|
81
|
+
"400": bootstrap.$orange-400,
|
|
82
|
+
"500": bootstrap.$orange-500,
|
|
83
|
+
"600": bootstrap.$orange-600,
|
|
84
|
+
"700": bootstrap.$orange-700,
|
|
85
|
+
"800": bootstrap.$orange-800,
|
|
86
|
+
"900": bootstrap.$orange-900,
|
|
87
|
+
),
|
|
88
|
+
"yellow": (
|
|
89
|
+
"100": bootstrap.$yellow-100,
|
|
90
|
+
"200": bootstrap.$yellow-200,
|
|
91
|
+
"300": bootstrap.$yellow-300,
|
|
92
|
+
"400": bootstrap.$yellow-400,
|
|
93
|
+
"500": bootstrap.$yellow-500,
|
|
94
|
+
"600": bootstrap.$yellow-600,
|
|
95
|
+
"700": bootstrap.$yellow-700,
|
|
96
|
+
"800": bootstrap.$yellow-800,
|
|
97
|
+
"900": bootstrap.$yellow-900,
|
|
98
|
+
),
|
|
99
|
+
"green": (
|
|
100
|
+
"100": bootstrap.$green-100,
|
|
101
|
+
"200": bootstrap.$green-200,
|
|
102
|
+
"300": bootstrap.$green-300,
|
|
103
|
+
"400": bootstrap.$green-400,
|
|
104
|
+
"500": bootstrap.$green,
|
|
105
|
+
"600": bootstrap.$green-500,
|
|
106
|
+
"700": bootstrap.$green-600,
|
|
107
|
+
"800": bootstrap.$green-700,
|
|
108
|
+
"900": bootstrap.$green-800,
|
|
109
|
+
),
|
|
110
|
+
"teal": (
|
|
111
|
+
"100": bootstrap.$teal-100,
|
|
112
|
+
"200": bootstrap.$teal-200,
|
|
113
|
+
"300": bootstrap.$teal-300,
|
|
114
|
+
"400": bootstrap.$teal-400,
|
|
115
|
+
"500": bootstrap.$teal-500,
|
|
116
|
+
"600": bootstrap.$teal-600,
|
|
117
|
+
"700": bootstrap.$teal-700,
|
|
118
|
+
"800": bootstrap.$teal-800,
|
|
119
|
+
"900": bootstrap.$teal-900,
|
|
120
|
+
),
|
|
121
|
+
"cyan": (
|
|
122
|
+
"100": bootstrap.$cyan-100,
|
|
123
|
+
"200": bootstrap.$cyan-200,
|
|
124
|
+
"300": bootstrap.$cyan-300,
|
|
125
|
+
"400": bootstrap.$cyan-400,
|
|
126
|
+
"500": bootstrap.$cyan-500,
|
|
127
|
+
"600": bootstrap.$cyan-600,
|
|
128
|
+
"700": bootstrap.$cyan-700,
|
|
129
|
+
"800": bootstrap.$cyan-800,
|
|
130
|
+
"900": bootstrap.$cyan-900,
|
|
131
|
+
),
|
|
132
|
+
// CUSTOM
|
|
133
|
+
"flatrica-green": (
|
|
134
|
+
"100": customs.$flatrica-green-100,
|
|
135
|
+
"200": customs.$flatrica-green-200,
|
|
136
|
+
"300": customs.$flatrica-green-300,
|
|
137
|
+
"400": customs.$flatrica-green-400,
|
|
138
|
+
"500": customs.$flatrica-green-500,
|
|
139
|
+
"600": customs.$flatrica-green-600,
|
|
140
|
+
"700": customs.$flatrica-green-700,
|
|
141
|
+
"800": customs.$flatrica-green-800,
|
|
142
|
+
"900": customs.$flatrica-green-900,
|
|
143
|
+
),
|
|
144
|
+
"manga-red": (
|
|
145
|
+
"100": customs.$manga-red-100,
|
|
146
|
+
"200": customs.$manga-red-200,
|
|
147
|
+
"300": customs.$manga-red-300,
|
|
148
|
+
"400": customs.$manga-red-400,
|
|
149
|
+
"500": customs.$manga-red-500,
|
|
150
|
+
"600": customs.$manga-red-600,
|
|
151
|
+
"700": customs.$manga-red-700,
|
|
152
|
+
"800": customs.$manga-red-800,
|
|
153
|
+
"900": customs.$manga-red-900,
|
|
154
|
+
),
|
|
155
|
+
// BRANDS
|
|
156
|
+
"brand": (
|
|
157
|
+
"facebook": brands.$brand-facebook,
|
|
158
|
+
"youtube": brands.$brand-youtube,
|
|
159
|
+
"twitter": brands.$brand-twitter,
|
|
160
|
+
"skype": brands.$brand-skype,
|
|
161
|
+
"linkedin": brands.$brand-linkedin,
|
|
162
|
+
"whatsapp": brands.$brand-whatsapp,
|
|
163
|
+
"telegram": brands.$brand-telegram,
|
|
164
|
+
"twitch": brands.$brand-twitch,
|
|
165
|
+
"pinterest": brands.$brand-pinterest,
|
|
166
|
+
"reddit": brands.$brand-reddit,
|
|
167
|
+
"tumblr": brands.$brand-tumblr,
|
|
168
|
+
"patreon": brands.$brand-patreon,
|
|
169
|
+
"kickstarter":brands.$brand-kickstarter,
|
|
170
|
+
"instagram": brands.$brand-instagram,
|
|
171
|
+
"tiktok": brands.$brand-tiktok,
|
|
172
|
+
"google": brands.$brand-google,
|
|
173
|
+
"paypal": brands.$brand-paypal,
|
|
174
|
+
"paypal2": brands.$brand-paypal2,
|
|
175
|
+
),
|
|
176
|
+
// CORE
|
|
177
|
+
"core": (
|
|
178
|
+
"blue": bootstrap.$blue,
|
|
179
|
+
"indigo": bootstrap.$indigo,
|
|
180
|
+
"purple": bootstrap.$purple,
|
|
181
|
+
"pink": bootstrap.$pink,
|
|
182
|
+
"red": bootstrap.$red,
|
|
183
|
+
"orange": bootstrap.$orange,
|
|
184
|
+
"yellow": bootstrap.$yellow,
|
|
185
|
+
"green": bootstrap.$green,
|
|
186
|
+
"teal": bootstrap.$teal,
|
|
187
|
+
"cyan": bootstrap.$cyan,
|
|
188
|
+
"black": bootstrap.$black,
|
|
189
|
+
"white": bootstrap.$white,
|
|
190
|
+
"gray": bootstrap.$gray-500,
|
|
191
|
+
"gray-dark": bootstrap.$gray-900,
|
|
192
|
+
"flatrica-green": customs.$flatrica-green,
|
|
193
|
+
"manga-red": customs.$manga-red,
|
|
194
|
+
),
|
|
195
|
+
// ADVANCED
|
|
196
|
+
"advanced": (
|
|
197
|
+
"brand-instagram": brands.$advanced-brand-instagram,
|
|
198
|
+
"brand-tiktok": brands.$advanced-brand-tiktok,
|
|
199
|
+
),
|
|
200
|
+
);
|