hue.gl 0.0.23 → 0.0.29

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.
Files changed (64) hide show
  1. package/README.md +5 -5
  2. package/css/unit.gl.css +2 -0
  3. package/css/unit.gl.min.css +2 -0
  4. package/js/color/ColorPicker.js +1 -1
  5. package/js/color/ColorScheme.js +1 -1
  6. package/js/color/ColorSwatch.js +1 -1
  7. package/js/color/index.js +1 -1
  8. package/js/config/hue.config.js +1 -1
  9. package/js/config/hue.names.js +1 -1
  10. package/js/config/index.js +1 -1
  11. package/js/constants/hue_hcl.js +1 -1
  12. package/js/constants/hue_hex.js +1 -1
  13. package/js/constants/hue_rgb.js +1 -1
  14. package/js/constants/index.js +1 -1
  15. package/js/index.js +1 -1
  16. package/package.json +4 -20
  17. package/py/hue.gl.py +0 -1
  18. package/scss/functions/_base.scss +11 -11
  19. package/scss/functions/_blend.scss +20 -20
  20. package/scss/functions/_contrast.scss +23 -23
  21. package/scss/functions/_filter.scss +10 -10
  22. package/scss/functions/_helpers.scss +10 -10
  23. package/scss/functions/_index.scss +7 -7
  24. package/scss/functions/_pattern.scss +7 -7
  25. package/scss/functions/_scheme.scss +22 -22
  26. package/scss/functions/_variants.scss +32 -32
  27. package/scss/hue/_hue.gl-hcl-map.scss +1 -21
  28. package/scss/hue/_hue.gl-hcl-var.scss +0 -20
  29. package/scss/hue/_hue.gl-hex-map.scss +1 -15
  30. package/scss/hue/_hue.gl-hex-var.scss +0 -14
  31. package/scss/hue/_hue.gl-rgb-map.scss +1 -15
  32. package/scss/hue/_hue.gl-rgb-var.scss +0 -14
  33. package/scss/index.scss +0 -6
  34. package/scss/maps/_as2700_hex_map.scss +1 -17
  35. package/scss/maps/_bs381_hex_map.scss +1 -17
  36. package/scss/maps/_copic_hex_map.scss +1 -17
  37. package/scss/maps/_flat_design_hex_map.scss +1 -16
  38. package/scss/maps/_flat_design_hex_var.scss +1 -16
  39. package/scss/maps/_fs595_hex_map.scss +0 -16
  40. package/scss/maps/_index.scss +11 -11
  41. package/scss/maps/_material_design_hex_map.scss +1 -16
  42. package/scss/maps/_material_design_hex_var.scss +1 -16
  43. package/scss/maps/_nbs_hex_map.scss +3 -19
  44. package/scss/maps/_ncs_hex_map.scss +3 -3
  45. package/scss/maps/_ral_hex_map.scss +0 -16
  46. package/scss/maps/_tailwind_hex_map.scss +1 -16
  47. package/scss/maps/_tailwind_hex_var.scss +0 -15
  48. package/scss/maps/_x11_hex_map.scss +1 -16
  49. package/scss/mixins/_blend.scss +11 -11
  50. package/scss/mixins/_contrast.scss +8 -8
  51. package/scss/mixins/_helpers.scss +17 -17
  52. package/scss/variables/_base.scss +3 -5
  53. package/ts/color/ColorPicker.ts +22 -34
  54. package/ts/color/ColorScheme.ts +4 -21
  55. package/ts/color/ColorSwatch.ts +8 -24
  56. package/ts/color/index.ts +3 -16
  57. package/ts/config/hue.config.ts +0 -18
  58. package/ts/config/hue.names.ts +0 -17
  59. package/ts/config/index.ts +2 -17
  60. package/ts/constants/hue_hcl.ts +0 -14
  61. package/ts/constants/hue_hex.ts +225 -239
  62. package/ts/constants/hue_rgb.ts +0 -14
  63. package/ts/constants/index.ts +3 -17
  64. package/ts/index.ts +8 -22
package/README.md CHANGED
@@ -8,12 +8,12 @@
8
8
 
9
9
  <div align="center">
10
10
 
11
- [![Website](https://img.shields.io/website?url=https%3A%2F%2Fwww.hue.gl&up_message=Up&up_color=354351&down_message=Down&down_color=354351&style=flat-square&logo=Firefox&logoColor=FFFFFF&label=Website&labelColor=354351&color=354351)
11
+ [![Website](https://img.shields.io/website?url=https%3A%2F%2Fwww.hue.gl&up_message=Up&up_color=%23000000&down_message=Down&down_color=%23000000&style=flat-square&logo=Firefox&logoColor=FFFFFF&label=Website&labelColor=%23000000&color=%23000000)
12
12
  ](https://www.hue.gl)
13
- [![NPM Version](https://img.shields.io/npm/v/hue.gl?style=flat-square&logo=npm&logoColor=FFFFFF&label=NPM&labelColor=354351&color=354351&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fhue.gl)](https://www.npmjs.com/package/hue.gl)
14
- [![devContainer](https://img.shields.io/badge/devContainer-23354351?style=flat-square&logo=Docker&logoColor=%23FFFFFF&labelColor=%23354351&color=%23354351)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/stylescape/hue.gl)
15
- [![StackBlitz](https://img.shields.io/badge/StackBlitz-23354351?style=flat-square&logo=StackBlitz&logoColor=%23FFFFFF&labelColor=%23354351&color=%23354351)](https://stackblitz.com/github/stylescape/hue.gl/tree/main?file=src%2Findex.html)
16
- [![GitHub License](https://img.shields.io/github/license/stylescape/hue.gl?style=flat-square&logo=readthedocs&logoColor=FFFFFF&label=&labelColor=%23354351&color=%23354351&link=LICENSE)](https://github.com/stylescape/hue.gl/blob/main/LICENSE)
13
+ [![NPM Version](https://img.shields.io/npm/v/hue.gl?style=flat-square&logo=npm&logoColor=FFFFFF&label=NPM&labelColor=%23000000&color=%23000000&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fhue.gl)](https://www.npmjs.com/package/hue.gl)
14
+ [![devContainer](https://img.shields.io/badge/devContainer-23354351?style=flat-square&logo=Docker&logoColor=%23FFFFFF&labelColor=%23000000&color=%23000000)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/stylescape/hue.gl)
15
+ [![StackBlitz](https://img.shields.io/badge/StackBlitz-23354351?style=flat-square&logo=StackBlitz&logoColor=%23FFFFFF&labelColor=%23000000&color=%23000000)](https://stackblitz.com/github/stylescape/hue.gl/tree/main?file=src%2Findex.html)
16
+ [![GitHub License](https://img.shields.io/github/license/stylescape/hue.gl?style=flat-square&logo=readthedocs&logoColor=FFFFFF&label=&labelColor=%23000000&color=%23000000&link=LICENSE)](https://github.com/stylescape/hue.gl/blob/main/LICENSE)
17
17
 
18
18
  </div>
19
19
 
@@ -0,0 +1,2 @@
1
+
2
+ /*# sourceMappingURL=to.css.map */
@@ -0,0 +1,2 @@
1
+
2
+ /*# sourceMappingURL=to.css.map */
@@ -2,7 +2,7 @@
2
2
  // script/class/class/DirectoryCleaner.ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ColorPicker = void 0;
5
- // Copyright 2024 Scape Agency BV
5
+ // Copyright 2025 Scape Agency BV
6
6
  // Licensed under the Apache License, Version 2.0 (the "License");
7
7
  // you may not use this file except in compliance with the License.
8
8
  // You may obtain a copy of the License at
@@ -2,7 +2,7 @@
2
2
  // script/class/class/DirectoryCleaner.ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ColorScheme = void 0;
5
- // Copyright 2024 Scape Agency BV
5
+ // Copyright 2025 Scape Agency BV
6
6
  // Licensed under the Apache License, Version 2.0 (the "License");
7
7
  // you may not use this file except in compliance with the License.
8
8
  // You may obtain a copy of the License at
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
5
5
  };
package/js/color/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ColorPicker = exports.ColorSwatch = exports.ColorScheme = void 0;
5
5
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -2,7 +2,7 @@
2
2
  // hue/config/hue.config.ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hueConfig = void 0;
5
- // Copyright 2024 Scape Agency BV
5
+ // Copyright 2025 Scape Agency BV
6
6
  // Licensed under the Apache License, Version 2.0 (the "License");
7
7
  // you may not use this file except in compliance with the License.
8
8
  // You may obtain a copy of the License at
@@ -2,7 +2,7 @@
2
2
  // hue/config/hue.names.ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hueNames = void 0;
5
- // Copyright 2024 Scape Agency BV
5
+ // Copyright 2025 Scape Agency BV
6
6
  // Licensed under the Apache License, Version 2.0 (the "License");
7
7
  // you may not use this file except in compliance with the License.
8
8
  // You may obtain a copy of the License at
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hueNames = exports.hueConfig = void 0;
5
5
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hue_hcl = void 0;
5
5
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hue_hex = void 0;
5
5
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hue_rgb = void 0;
5
5
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hue_rgb = exports.hue_hcl = exports.hue_hex = void 0;
5
5
  // Licensed under the Apache License, Version 2.0 (the "License");
package/js/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Scape Agency BV
2
+ // Copyright 2025 Scape Agency BV
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.hue_rgb = exports.hue_hcl = exports.hue_hex = exports.hueNames = exports.hueConfig = exports.ColorSwatch = exports.ColorScheme = exports.ColorPicker = void 0;
5
5
  // Licensed under the Apache License, Version 2.0 (the "License");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hue.gl",
3
- "version": "0.0.23",
3
+ "version": "0.0.29",
4
4
  "description": "hue.gl is a colour palette developed by Scape Agency.",
5
5
  "keywords": [
6
6
  "hue.gl",
@@ -15,12 +15,6 @@
15
15
  ],
16
16
  "license": "MIT",
17
17
  "homepage": "https://www.hue.gl/",
18
- "funding": [
19
- {
20
- "type": "github",
21
- "url": "https://github.com/sponsors/stylescape"
22
- }
23
- ],
24
18
  "main": "js/index.js",
25
19
  "types": "js/index.d.ts",
26
20
  "files": [
@@ -45,18 +39,8 @@
45
39
  "ts/**/*.ts",
46
40
  "!.DS_Store"
47
41
  ],
48
- "author": "Lars van Vianen",
49
- "contributors": [
50
- "Scape Agency"
51
- ],
52
- "repository": {
53
- "type": "git",
54
- "url": "git+https://github.com/stylescape/hue.gl.git"
55
- },
56
- "exports": {
57
- ".": {
58
- "sass": "./scss/index.scss",
59
- "typescript": "./ts/index.scss"
60
- }
42
+ "dependencies": {
43
+ "colorjs.io": "^0.5.2",
44
+ "core-js": "^3.40.0"
61
45
  }
62
46
  }
package/py/hue.gl.py CHANGED
@@ -347,4 +347,3 @@ N3606 = (166, 98, 120)
347
347
  N3607 = (136, 84, 100)
348
348
  N3608 = (107, 69, 81)
349
349
  N3609 = (79, 55, 62)
350
-
@@ -3,18 +3,18 @@
3
3
  // ============================================================================
4
4
 
5
5
  ////
6
- ///
6
+ ///
7
7
  /// Base Functions Module
8
8
  /// ===========================================================================
9
- ///
10
- ///
9
+ ///
10
+ ///
11
11
  /// @group Base
12
12
  /// @author Scape Agency
13
13
  /// @link https://hue.gl
14
14
  /// @since 0.1.0 initial release
15
15
  /// @todo None
16
16
  /// @access public
17
- ///
17
+ ///
18
18
  ////
19
19
 
20
20
 
@@ -39,15 +39,15 @@
39
39
  ///
40
40
  /// Color Getter Function
41
41
  /// ---------------------------------------------------------------------------
42
- ///
42
+ ///
43
43
  /// Retrieves a color value based on a given color name from the `$hue` map.
44
44
  /// This function ensures that only defined colors are accessed, preventing
45
45
  /// errors in color application.
46
- ///
46
+ ///
47
47
  /// @name hue_color
48
48
  /// @param {String} $color_name - The name of the color to retrieve.
49
49
  /// @return {Color} - Returns the color value from the map or `null` if not found.
50
- ///
50
+ ///
51
51
  /// @example scss - Usage
52
52
  /// .element {
53
53
  /// // color: hue_color('primary');
@@ -65,20 +65,20 @@
65
65
  }
66
66
 
67
67
 
68
- ///
68
+ ///
69
69
  /// Random Color Generator
70
70
  /// ---------------------------------------------------------------------------
71
- ///
71
+ ///
72
72
  /// Generates a random color within specified hue and luminance ranges.
73
73
  /// This function can be used to produce vibrant backgrounds, borders, or
74
74
  /// for dynamic color themes.
75
- ///
75
+ ///
76
76
  /// @name hue_random_color
77
77
  /// @param {Number} $hue_min [0] - The minimum hue value.
78
78
  /// @param {Number} $hue_max [360] - The maximum hue value.
79
79
  /// @param {Number} $luminance [50%] - The luminance of the color.
80
80
  /// @return {Color} - Returns a random HSL color.
81
- ///
81
+ ///
82
82
  /// @example scss - Usage
83
83
  /// .random-bg {
84
84
  /// background-color: hue_random_color(100, 200, 40%);
@@ -3,18 +3,18 @@
3
3
  // ============================================================================
4
4
 
5
5
  ////
6
- ///
6
+ ///
7
7
  /// Blend Functions Module
8
8
  /// ===========================================================================
9
- ///
10
- ///
9
+ ///
10
+ ///
11
11
  /// @group Blend
12
12
  /// @author Scape Agency
13
13
  /// @link https://hue.gl
14
14
  /// @since 0.1.0 initial release
15
15
  /// @todo None
16
16
  /// @access public
17
- ///
17
+ ///
18
18
  ////
19
19
 
20
20
 
@@ -36,15 +36,15 @@
36
36
  ///
37
37
  /// Gradient Color
38
38
  /// ----------------------------------------------------------------------------
39
- ///
39
+ ///
40
40
  /// Generates a CSS linear gradient from one color to another using color
41
41
  /// names from the `$hue` map.
42
- ///
42
+ ///
43
43
  /// @name hue_gradient
44
44
  /// @param {String} $start_color_name - Name of the start color.
45
45
  /// @param {String} $end_color_name - Name of the end color.
46
46
  /// @return {String} - CSS linear-gradient string if both colors are found, otherwise null.
47
- ///
47
+ ///
48
48
  /// @example scss - Usage
49
49
  /// .gradient-background {
50
50
  /// background: hue_gradient('red', 'blue');
@@ -69,15 +69,15 @@
69
69
  ///
70
70
  /// Color Blending Function
71
71
  /// ---------------------------------------------------------------------------
72
- ///
72
+ ///
73
73
  /// Function to blend two colors based on a given weight percentage.
74
- ///
74
+ ///
75
75
  /// @name hue_blend_colors
76
76
  /// @param {String} $color_name1 - First color name.
77
77
  /// @param {String} $color_name2 - Second color name.
78
78
  /// @param {Number} $weight [50%] - Percentage of the first color to blend.
79
79
  /// @return {Color} - The blended color, or null if one of the colors is not found.
80
- ///
80
+ ///
81
81
  /// @example scss - Usage
82
82
  /// .mixed-color {
83
83
  /// color: hue_blend_colors('red', 'blue', 25%);
@@ -100,16 +100,16 @@
100
100
  }
101
101
 
102
102
 
103
- ///
103
+ ///
104
104
  /// Grayscale Color Variant
105
105
  /// ---------------------------------------------------------------------------
106
- ///
106
+ ///
107
107
  /// Converts a specified color to grayscale using its name from the `$hue` map.
108
- ///
108
+ ///
109
109
  /// @name hue_grayscale
110
110
  /// @param {String} $color_name - Name of the color to convert.
111
111
  /// @return {Color} - Grayscale color, or null if the color is not found.
112
- ///
112
+ ///
113
113
  /// @example scss - Usage
114
114
  /// .gray-element {
115
115
  /// color: hue_grayscale('vibrant');
@@ -127,12 +127,12 @@
127
127
  }
128
128
 
129
129
 
130
- ///
130
+ ///
131
131
  /// Blend Colors
132
132
  /// ---------------------------------------------------------------------------
133
- ///
133
+ ///
134
134
  /// Mixes two colors together in a specified ratio.
135
- ///
135
+ ///
136
136
  @function hue_blend($color_name1, $color_name2, $weight: 50%) {
137
137
  $color1: hue_color($color_name1);
138
138
  $color2: hue_color($color_name2);
@@ -146,12 +146,12 @@
146
146
  }
147
147
 
148
148
 
149
- ///
149
+ ///
150
150
  /// Background Gradient with Direction
151
151
  /// ---------------------------------------------------------------------------
152
- ///
152
+ ///
153
153
  /// Generates a background gradient with a specified direction.
154
- ///
154
+ ///
155
155
  // @function hue_background_gradient($start_color_name, $end_color_name, $direction: to bottom) {
156
156
  // $start_color: hue_color($start_color_name);
157
157
  // $end_color: hue_color($end_color_name);
@@ -3,18 +3,18 @@
3
3
  // ============================================================================
4
4
 
5
5
  ////
6
- ///
6
+ ///
7
7
  /// Contrast Functions Module
8
8
  /// ===========================================================================
9
- ///
10
- ///
9
+ ///
10
+ ///
11
11
  /// @group Contrast
12
12
  /// @author Scape Agency
13
13
  /// @link https://hue.gl
14
14
  /// @since 0.1.0 initial release
15
15
  /// @todo None
16
16
  /// @access public
17
- ///
17
+ ///
18
18
  ////
19
19
 
20
20
 
@@ -33,17 +33,17 @@
33
33
 
34
34
 
35
35
 
36
- ///
36
+ ///
37
37
  /// Contrast Function
38
38
  /// ---------------------------------------------------------------------------
39
- ///
39
+ ///
40
40
  /// Function to determine the ideal text color (light or dark) for optimal
41
41
  /// readability against a specified background color.
42
- ///
42
+ ///
43
43
  /// @name color_contrast
44
44
  /// @param {Color} $background-color - The background color to analyze.
45
45
  /// @return {Color} - Returns `black` for light backgrounds and `white` for dark backgrounds.
46
- ///
46
+ ///
47
47
  /// @example scss - Usage
48
48
  /// color: color_contrast(#fff); // Returns 'black'
49
49
  ///
@@ -58,18 +58,18 @@
58
58
  }
59
59
 
60
60
 
61
- ///
61
+ ///
62
62
  /// Contrast Checker
63
63
  /// ---------------------------------------------------------------------------
64
- ///
64
+ ///
65
65
  /// Calculates the contrast ratio between two colors to ensure they meet
66
66
  /// accessibility guidelines.
67
- ///
67
+ ///
68
68
  /// @name color_contrast_checker
69
69
  /// @param {String} $color1_name - The name of the first color.
70
70
  /// @param {String} $color2_name - The name of the second color.
71
71
  /// @return {Number} - The contrast ratio between the two colors.
72
- ///
72
+ ///
73
73
  /// @example scss - Usage
74
74
  /// $contrast: color_contrast_checker('blue', 'white');
75
75
  ///
@@ -86,14 +86,14 @@
86
86
  ///
87
87
  /// Color Contrast Ratio
88
88
  /// ---------------------------------------------------------------------------
89
- ///
89
+ ///
90
90
  /// Generates a dynamic text color (black or white) based on the given
91
91
  /// background color to enhance readability.
92
- ///
92
+ ///
93
93
  /// @name color_contrast_dynamic
94
94
  /// @param {String} $background_color_name - The name of the background color.
95
95
  /// @return {Color} - Optimal text color for the given background.
96
- ///
96
+ ///
97
97
  /// @example scss - Usage
98
98
  /// color: color_contrast_dynamic('darkblue');
99
99
  ///
@@ -115,13 +115,13 @@
115
115
  }
116
116
 
117
117
 
118
- ///
118
+ ///
119
119
  /// Dynamic Text Color
120
120
  /// ---------------------------------------------------------------------------
121
- ///
121
+ ///
122
122
  /// Generates a dynamic text color (black or white) based on the given
123
123
  /// background color to enhance readability.
124
- ///
124
+ ///
125
125
  /// @name color_contrast_dynamic
126
126
  /// @param {String} $background_color_name - The name of the background color.
127
127
  /// @return {Color} - Optimal text color for the given background.
@@ -143,15 +143,15 @@
143
143
  /// ---------------------------------------------------------------------------
144
144
  /// Returns a high-contrast text color (black or white) based on the specified
145
145
  /// background color.
146
- ///
146
+ ///
147
147
  /// @name hue_contrast_text_color
148
148
  /// @param {String} $background_color_name - The name of the background color from the color map.
149
149
  /// @return {Color} - Either black or white, depending on which has higher contrast against the background.
150
- ///
150
+ ///
151
151
  /// @example scss - Usage
152
152
  /// color: hue_contrast_text_color('lightgrey'); // Returns 'black'
153
153
  ///
154
- ///
154
+ ///
155
155
  @function hue_contrast_text_color(
156
156
  $background_color_name
157
157
  ) {
@@ -175,11 +175,11 @@
175
175
  /// ---------------------------------------------------------------------------
176
176
  /// Determines an overlay text color that is readable over any background by
177
177
  /// adjusting opacity.
178
- ///
178
+ ///
179
179
  /// @name hue_readable_overlay
180
180
  /// @param {String} $background_color_name - The name of the background color.
181
181
  /// @return {Color} - A semi-transparent black or white color for text overlays.
182
- ///
182
+ ///
183
183
  /// @example scss - Usage
184
184
  /// background-color: hue_readable_overlay('limegreen');
185
185
  ///
@@ -3,18 +3,18 @@
3
3
  // ============================================================================
4
4
 
5
5
  ////
6
- ///
6
+ ///
7
7
  /// Filter Functions Module
8
8
  /// ===========================================================================
9
- ///
10
- ///
9
+ ///
10
+ ///
11
11
  /// @group Filter
12
12
  /// @author Scape Agency
13
13
  /// @link https://hue.gl
14
14
  /// @since 0.1.0 initial release
15
15
  /// @todo None
16
16
  /// @access public
17
- ///
17
+ ///
18
18
  ////
19
19
 
20
20
 
@@ -33,29 +33,29 @@
33
33
 
34
34
 
35
35
 
36
- ///
36
+ ///
37
37
  /// Color Filter Function
38
38
  /// ---------------------------------------------------------------------------
39
- ///
39
+ ///
40
40
  /// Applies a CSS filter effect to a color. Supported filters include 'sepia'
41
41
  /// and 'brightness'.
42
- ///
42
+ ///
43
43
  /// @name hue_apply_filter
44
44
  /// @param {String} $color_name - The name of the color in the color map.
45
45
  /// @param {String} $filter - The type of filter to apply ('sepia' or 'brightness').
46
46
  /// @return {Color} - The color with the filter effect applied, or the original color if the filter is unsupported.
47
47
  /// @throws - If the color name does not exist in the map, or if the filter type is unsupported.
48
- ///
48
+ ///
49
49
  /// @example scss - Applying a sepia filter
50
50
  /// .image-sepia {
51
51
  /// color: hue_apply_filter('oceanblue', 'sepia');
52
52
  /// }
53
- ///
53
+ ///
54
54
  /// @example scss - Applying a brightness filter
55
55
  /// .image-bright {
56
56
  /// color: hue_apply_filter('skyblue', 'brightness');
57
57
  /// }
58
- ///
58
+ ///
59
59
  /// @example scss - Using an unsupported filter
60
60
  /// .image-unsupported {
61
61
  /// color: hue_apply_filter('forestgreen', 'blur');
@@ -3,18 +3,18 @@
3
3
  // ============================================================================
4
4
 
5
5
  ////
6
- ///
6
+ ///
7
7
  /// Helper Functions Module
8
8
  /// ===========================================================================
9
- ///
10
- ///
9
+ ///
10
+ ///
11
11
  /// @group Helper
12
12
  /// @author Scape Agency
13
13
  /// @link https://hue.gl
14
14
  /// @since 0.1.0 initial release
15
15
  /// @todo None
16
16
  /// @access public
17
- ///
17
+ ///
18
18
  ////
19
19
 
20
20
 
@@ -32,17 +32,17 @@
32
32
  // ============================================================================
33
33
 
34
34
 
35
- ///
35
+ ///
36
36
  /// Semi-Transparent Border Color
37
37
  /// ---------------------------------------------------------------------------
38
- ///
38
+ ///
39
39
  /// Generates a semi-transparent version of a color, suitable for borders.
40
- ///
40
+ ///
41
41
  /// @name hue_border_color
42
42
  /// @param {String} $color_name - The name of the color.
43
43
  /// @param {Number} $opacity [0.5] - Opacity of the border color.
44
44
  /// @return {Color} - The RGBA color value.
45
- ///
45
+ ///
46
46
  /// @example scss - Getting a semi-transparent border color
47
47
  /// .fancy-border {
48
48
  /// border-color: hue_border_color('primary', 0.75);
@@ -63,10 +63,10 @@
63
63
  }
64
64
 
65
65
 
66
- ///
66
+ ///
67
67
  /// Box Shadow Generator
68
68
  /// ---------------------------------------------------------------------------
69
- ///
69
+ ///
70
70
  /// Creates a box shadow with adjustable properties.
71
71
  ///
72
72
  // @function hue_box_shadow(
@@ -4,10 +4,10 @@
4
4
  // Colour Utilities
5
5
  // ============================================================================
6
6
 
7
- @import "_base.scss";
8
- @import "_contrast.scss";
9
- @import "_variants.scss";
10
- @import "_blend.scss";
11
- @import "_scheme.scss";
12
- @import "_pattern.scss";
13
- @import "_helpers.scss";
7
+ @forward "_base.scss";
8
+ @forward "_contrast.scss";
9
+ @forward "_variants.scss";
10
+ @forward "_blend.scss";
11
+ @forward "_scheme.scss";
12
+ @forward "_pattern.scss";
13
+ @forward "_helpers.scss";