@ulu/frontend 0.1.0-beta.45 → 0.1.0-beta.47
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.md +10 -0
- package/dist/ulu-frontend.min.css +1 -1
- package/docs-dev/changelog/index.html +28 -0
- package/docs-dev/demos/card/index.html +16 -16
- package/docs-dev/demos/data-table/index.html +100 -100
- package/docs-dev/sass/components/card/index.html +4 -4
- package/docs-dev/sass/core/color/index.html +130 -10
- package/docs-dev/sass/core/element/index.html +32 -26
- package/docs-dev/sass/core/units/index.html +10 -4
- package/package.json +1 -1
- package/scss/_color.scss +24 -2
- package/scss/components/_card.scss +5 -0
|
@@ -5224,8 +5224,14 @@
|
|
|
5224
5224
|
<li><a href="#function-tint">tint()</a>
|
|
5225
5225
|
</li>
|
|
5226
5226
|
|
|
5227
|
+
<li><a href="#function-css-tint">css-tint()</a>
|
|
5228
|
+
</li>
|
|
5229
|
+
|
|
5227
5230
|
<li><a href="#function-shade">shade()</a>
|
|
5228
5231
|
</li>
|
|
5232
|
+
|
|
5233
|
+
<li><a href="#function-css-shade">css-shade()</a>
|
|
5234
|
+
</li>
|
|
5229
5235
|
</ol>
|
|
5230
5236
|
</li>
|
|
5231
5237
|
</ol>
|
|
@@ -5577,8 +5583,8 @@
|
|
|
5577
5583
|
<li><strong>File:</strong> _color.scss</li>
|
|
5578
5584
|
<li><strong>Group:</strong> color</li>
|
|
5579
5585
|
<li><strong>Type:</strong> mixin</li>
|
|
5580
|
-
<li><strong>Lines (comments):</strong>
|
|
5581
|
-
<li><strong>Lines (code):</strong>
|
|
5586
|
+
<li><strong>Lines (comments):</strong> 223-230</li>
|
|
5587
|
+
<li><strong>Lines (code):</strong> 232-241</li>
|
|
5582
5588
|
</ul>
|
|
5583
5589
|
</details>
|
|
5584
5590
|
<h4 id="examples-2" tabindex="-1">Examples</h4>
|
|
@@ -5630,8 +5636,8 @@
|
|
|
5630
5636
|
<li><strong>File:</strong> _color.scss</li>
|
|
5631
5637
|
<li><strong>Group:</strong> color</li>
|
|
5632
5638
|
<li><strong>Type:</strong> mixin</li>
|
|
5633
|
-
<li><strong>Lines (comments):</strong>
|
|
5634
|
-
<li><strong>Lines (code):</strong>
|
|
5639
|
+
<li><strong>Lines (comments):</strong> 243-247</li>
|
|
5640
|
+
<li><strong>Lines (code):</strong> 249-258</li>
|
|
5635
5641
|
</ul>
|
|
5636
5642
|
</details>
|
|
5637
5643
|
<h4 id="examples-3" tabindex="-1">Examples</h4>
|
|
@@ -5840,7 +5846,7 @@
|
|
|
5840
5846
|
<span class="tag tag--primary"><strong>Function</strong></span>
|
|
5841
5847
|
</div>
|
|
5842
5848
|
</div>
|
|
5843
|
-
<p>
|
|
5849
|
+
<p>Tint (add white) a color using the default white by a percentage</p>
|
|
5844
5850
|
<details>
|
|
5845
5851
|
<summary>File Information</summary>
|
|
5846
5852
|
<ul>
|
|
@@ -5896,24 +5902,79 @@
|
|
|
5896
5902
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
5897
5903
|
</ul>
|
|
5898
5904
|
<div class="sassdoc-item-header">
|
|
5905
|
+
<h3 id="function-css-tint" tabindex="-1">css-tint()</h3>
|
|
5906
|
+
<div class="sassdoc-item-header__labels">
|
|
5907
|
+
<span class="tag tag--primary"><strong>Function</strong></span>
|
|
5908
|
+
</div>
|
|
5909
|
+
</div>
|
|
5910
|
+
<p>Tint (add white) a color using the default white by a percentage (Using color-mix)</p>
|
|
5911
|
+
<ul>
|
|
5912
|
+
<li>This only works in modern browsers (as of June 2025)</li>
|
|
5913
|
+
</ul>
|
|
5914
|
+
<details>
|
|
5915
|
+
<summary>File Information</summary>
|
|
5916
|
+
<ul>
|
|
5917
|
+
<li><strong>File:</strong> _color.scss</li>
|
|
5918
|
+
<li><strong>Group:</strong> color</li>
|
|
5919
|
+
<li><strong>Type:</strong> function</li>
|
|
5920
|
+
<li><strong>Lines (comments):</strong> 192-196</li>
|
|
5921
|
+
<li><strong>Lines (code):</strong> 198-200</li>
|
|
5922
|
+
</ul>
|
|
5923
|
+
</details>
|
|
5924
|
+
<h4 id="parameters-9" tabindex="-1">Parameters</h4>
|
|
5925
|
+
<table>
|
|
5926
|
+
<thead>
|
|
5927
|
+
<tr>
|
|
5928
|
+
<th style="text-align:left">Name</th>
|
|
5929
|
+
<th style="text-align:left">Type</th>
|
|
5930
|
+
<th style="text-align:left">Description</th>
|
|
5931
|
+
</tr>
|
|
5932
|
+
</thead>
|
|
5933
|
+
<tbody>
|
|
5934
|
+
<tr>
|
|
5935
|
+
<td style="text-align:left">$color</td>
|
|
5936
|
+
<td style="text-align:left"><code>Color, String</code></td>
|
|
5937
|
+
<td style="text-align:left">Color or custom property to apply mix to</td>
|
|
5938
|
+
</tr>
|
|
5939
|
+
<tr>
|
|
5940
|
+
<td style="text-align:left">$percentage</td>
|
|
5941
|
+
<td style="text-align:left"><code>Number</code></td>
|
|
5942
|
+
<td style="text-align:left">Percentage</td>
|
|
5943
|
+
</tr>
|
|
5944
|
+
</tbody>
|
|
5945
|
+
</table>
|
|
5946
|
+
<h4 id="returns-4" tabindex="-1">Returns</h4>
|
|
5947
|
+
<table>
|
|
5948
|
+
<thead>
|
|
5949
|
+
<tr>
|
|
5950
|
+
<th style="text-align:left">Type</th>
|
|
5951
|
+
</tr>
|
|
5952
|
+
</thead>
|
|
5953
|
+
<tbody>
|
|
5954
|
+
<tr>
|
|
5955
|
+
<td style="text-align:left">Color</td>
|
|
5956
|
+
</tr>
|
|
5957
|
+
</tbody>
|
|
5958
|
+
</table>
|
|
5959
|
+
<div class="sassdoc-item-header">
|
|
5899
5960
|
<h3 id="function-shade" tabindex="-1">shade()</h3>
|
|
5900
5961
|
<div class="sassdoc-item-header__labels">
|
|
5901
5962
|
<span class="tag tag--primary"><strong>Function</strong></span>
|
|
5902
5963
|
</div>
|
|
5903
5964
|
</div>
|
|
5904
|
-
<p>
|
|
5965
|
+
<p>Shade (add black) a color with the default black by a percentage</p>
|
|
5905
5966
|
<details>
|
|
5906
5967
|
<summary>File Information</summary>
|
|
5907
5968
|
<ul>
|
|
5908
5969
|
<li><strong>File:</strong> _color.scss</li>
|
|
5909
5970
|
<li><strong>Group:</strong> color</li>
|
|
5910
5971
|
<li><strong>Type:</strong> function</li>
|
|
5911
|
-
<li><strong>Lines (comments):</strong>
|
|
5912
|
-
<li><strong>Lines (code):</strong>
|
|
5972
|
+
<li><strong>Lines (comments):</strong> 202-207</li>
|
|
5973
|
+
<li><strong>Lines (code):</strong> 209-211</li>
|
|
5913
5974
|
<li><strong>Author:</strong> Kitty Giraudel</li>
|
|
5914
5975
|
</ul>
|
|
5915
5976
|
</details>
|
|
5916
|
-
<h4 id="parameters-
|
|
5977
|
+
<h4 id="parameters-10" tabindex="-1">Parameters</h4>
|
|
5917
5978
|
<table>
|
|
5918
5979
|
<thead>
|
|
5919
5980
|
<tr>
|
|
@@ -5935,7 +5996,7 @@
|
|
|
5935
5996
|
</tr>
|
|
5936
5997
|
</tbody>
|
|
5937
5998
|
</table>
|
|
5938
|
-
<h4 id="returns-
|
|
5999
|
+
<h4 id="returns-5" tabindex="-1">Returns</h4>
|
|
5939
6000
|
<table>
|
|
5940
6001
|
<thead>
|
|
5941
6002
|
<tr>
|
|
@@ -5955,6 +6016,65 @@
|
|
|
5955
6016
|
<h4 id="require-11" tabindex="-1">Require</h4>
|
|
5956
6017
|
<ul>
|
|
5957
6018
|
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
6019
|
+
</ul>
|
|
6020
|
+
<div class="sassdoc-item-header">
|
|
6021
|
+
<h3 id="function-css-shade" tabindex="-1">css-shade()</h3>
|
|
6022
|
+
<div class="sassdoc-item-header__labels">
|
|
6023
|
+
<span class="tag tag--primary"><strong>Function</strong></span>
|
|
6024
|
+
</div>
|
|
6025
|
+
</div>
|
|
6026
|
+
<p>Shade (add black) a color using the default white by a percentage (Using color-mix)</p>
|
|
6027
|
+
<ul>
|
|
6028
|
+
<li>This only works in modern browsers (as of June 2025)</li>
|
|
6029
|
+
</ul>
|
|
6030
|
+
<details>
|
|
6031
|
+
<summary>File Information</summary>
|
|
6032
|
+
<ul>
|
|
6033
|
+
<li><strong>File:</strong> _color.scss</li>
|
|
6034
|
+
<li><strong>Group:</strong> color</li>
|
|
6035
|
+
<li><strong>Type:</strong> function</li>
|
|
6036
|
+
<li><strong>Lines (comments):</strong> 213-217</li>
|
|
6037
|
+
<li><strong>Lines (code):</strong> 219-221</li>
|
|
6038
|
+
</ul>
|
|
6039
|
+
</details>
|
|
6040
|
+
<h4 id="parameters-11" tabindex="-1">Parameters</h4>
|
|
6041
|
+
<table>
|
|
6042
|
+
<thead>
|
|
6043
|
+
<tr>
|
|
6044
|
+
<th style="text-align:left">Name</th>
|
|
6045
|
+
<th style="text-align:left">Type</th>
|
|
6046
|
+
<th style="text-align:left">Description</th>
|
|
6047
|
+
</tr>
|
|
6048
|
+
</thead>
|
|
6049
|
+
<tbody>
|
|
6050
|
+
<tr>
|
|
6051
|
+
<td style="text-align:left">$color</td>
|
|
6052
|
+
<td style="text-align:left"><code>Color, String</code></td>
|
|
6053
|
+
<td style="text-align:left">Color or custom property to apply mix to</td>
|
|
6054
|
+
</tr>
|
|
6055
|
+
<tr>
|
|
6056
|
+
<td style="text-align:left">$percentage</td>
|
|
6057
|
+
<td style="text-align:left"><code>Number</code></td>
|
|
6058
|
+
<td style="text-align:left">Percentage</td>
|
|
6059
|
+
</tr>
|
|
6060
|
+
</tbody>
|
|
6061
|
+
</table>
|
|
6062
|
+
<h4 id="returns-6" tabindex="-1">Returns</h4>
|
|
6063
|
+
<table>
|
|
6064
|
+
<thead>
|
|
6065
|
+
<tr>
|
|
6066
|
+
<th style="text-align:left">Type</th>
|
|
6067
|
+
</tr>
|
|
6068
|
+
</thead>
|
|
6069
|
+
<tbody>
|
|
6070
|
+
<tr>
|
|
6071
|
+
<td style="text-align:left">Color</td>
|
|
6072
|
+
</tr>
|
|
6073
|
+
</tbody>
|
|
6074
|
+
</table>
|
|
6075
|
+
<h4 id="require-12" tabindex="-1">Require</h4>
|
|
6076
|
+
<ul>
|
|
6077
|
+
<li><a href="/frontend/sass/core/breakpoint/#function-get">get()</a></li>
|
|
5958
6078
|
</ul>
|
|
5959
6079
|
|
|
5960
6080
|
</div>
|
|
@@ -5631,8 +5631,8 @@
|
|
|
5631
5631
|
<li><strong>File:</strong> _element.scss</li>
|
|
5632
5632
|
<li><strong>Group:</strong> element</li>
|
|
5633
5633
|
<li><strong>Type:</strong> mixin</li>
|
|
5634
|
-
<li><strong>Lines (comments):</strong> 117-
|
|
5635
|
-
<li><strong>Lines (code):</strong>
|
|
5634
|
+
<li><strong>Lines (comments):</strong> 117-119</li>
|
|
5635
|
+
<li><strong>Lines (code):</strong> 121-123</li>
|
|
5636
5636
|
</ul>
|
|
5637
5637
|
</details>
|
|
5638
5638
|
<h4 id="parameters-2" tabindex="-1">Parameters</h4>
|
|
@@ -5650,10 +5650,16 @@
|
|
|
5650
5650
|
<td style="text-align:left"><code>Map</code></td>
|
|
5651
5651
|
<td style="text-align:left">Map of changes</td>
|
|
5652
5652
|
</tr>
|
|
5653
|
+
<tr>
|
|
5654
|
+
<td style="text-align:left">$merge-mode</td>
|
|
5655
|
+
<td style="text-align:left"><code>String</code></td>
|
|
5656
|
+
<td style="text-align:left">Merge mode see utils.map-merge() [null</td>
|
|
5657
|
+
</tr>
|
|
5653
5658
|
</tbody>
|
|
5654
5659
|
</table>
|
|
5655
5660
|
<h4 id="require-2" tabindex="-1">Require</h4>
|
|
5656
5661
|
<ul>
|
|
5662
|
+
<li>map-merge()</li>
|
|
5657
5663
|
<li><a href="/frontend/sass/core/element/#variable-rule-margins">$rule-margins</a></li>
|
|
5658
5664
|
</ul>
|
|
5659
5665
|
<div class="sassdoc-item-header">
|
|
@@ -5669,8 +5675,8 @@
|
|
|
5669
5675
|
<li><strong>File:</strong> _element.scss</li>
|
|
5670
5676
|
<li><strong>Group:</strong> element</li>
|
|
5671
5677
|
<li><strong>Type:</strong> mixin</li>
|
|
5672
|
-
<li><strong>Lines (comments):</strong>
|
|
5673
|
-
<li><strong>Lines (code):</strong>
|
|
5678
|
+
<li><strong>Lines (comments):</strong> 139-140</li>
|
|
5679
|
+
<li><strong>Lines (code):</strong> 142-148</li>
|
|
5674
5680
|
</ul>
|
|
5675
5681
|
</details>
|
|
5676
5682
|
<h4 id="parameters-3" tabindex="-1">Parameters</h4>
|
|
@@ -5708,8 +5714,8 @@
|
|
|
5708
5714
|
<li><strong>File:</strong> _element.scss</li>
|
|
5709
5715
|
<li><strong>Group:</strong> element</li>
|
|
5710
5716
|
<li><strong>Type:</strong> mixin</li>
|
|
5711
|
-
<li><strong>Lines (comments):</strong>
|
|
5712
|
-
<li><strong>Lines (code):</strong>
|
|
5717
|
+
<li><strong>Lines (comments):</strong> 150-151</li>
|
|
5718
|
+
<li><strong>Lines (code):</strong> 153-155</li>
|
|
5713
5719
|
</ul>
|
|
5714
5720
|
</details>
|
|
5715
5721
|
<h4 id="parameters-4" tabindex="-1">Parameters</h4>
|
|
@@ -5748,8 +5754,8 @@
|
|
|
5748
5754
|
<li><strong>File:</strong> _element.scss</li>
|
|
5749
5755
|
<li><strong>Group:</strong> element</li>
|
|
5750
5756
|
<li><strong>Type:</strong> mixin</li>
|
|
5751
|
-
<li><strong>Lines (comments):</strong>
|
|
5752
|
-
<li><strong>Lines (code):</strong>
|
|
5757
|
+
<li><strong>Lines (comments):</strong> 157-158</li>
|
|
5758
|
+
<li><strong>Lines (code):</strong> 160-164</li>
|
|
5753
5759
|
</ul>
|
|
5754
5760
|
</details>
|
|
5755
5761
|
<h4 id="parameters-5" tabindex="-1">Parameters</h4>
|
|
@@ -5795,8 +5801,8 @@ styling (text-decoration, etc)</li>
|
|
|
5795
5801
|
<li><strong>File:</strong> _element.scss</li>
|
|
5796
5802
|
<li><strong>Group:</strong> element</li>
|
|
5797
5803
|
<li><strong>Type:</strong> mixin</li>
|
|
5798
|
-
<li><strong>Lines (comments):</strong>
|
|
5799
|
-
<li><strong>Lines (code):</strong>
|
|
5804
|
+
<li><strong>Lines (comments):</strong> 166-172</li>
|
|
5805
|
+
<li><strong>Lines (code):</strong> 174-187</li>
|
|
5800
5806
|
</ul>
|
|
5801
5807
|
</details>
|
|
5802
5808
|
<h4 id="parameters-6" tabindex="-1">Parameters</h4>
|
|
@@ -5838,8 +5844,8 @@ styling (text-decoration, etc)</li>
|
|
|
5838
5844
|
<li><strong>File:</strong> _element.scss</li>
|
|
5839
5845
|
<li><strong>Group:</strong> element</li>
|
|
5840
5846
|
<li><strong>Type:</strong> mixin</li>
|
|
5841
|
-
<li><strong>Lines (comments):</strong>
|
|
5842
|
-
<li><strong>Lines (code):</strong>
|
|
5847
|
+
<li><strong>Lines (comments):</strong> 189-191</li>
|
|
5848
|
+
<li><strong>Lines (code):</strong> 193-215</li>
|
|
5843
5849
|
</ul>
|
|
5844
5850
|
</details>
|
|
5845
5851
|
<h4 id="parameters-7" tabindex="-1">Parameters</h4>
|
|
@@ -5881,8 +5887,8 @@ styling (text-decoration, etc)</li>
|
|
|
5881
5887
|
<li><strong>File:</strong> _element.scss</li>
|
|
5882
5888
|
<li><strong>Group:</strong> element</li>
|
|
5883
5889
|
<li><strong>Type:</strong> mixin</li>
|
|
5884
|
-
<li><strong>Lines (comments):</strong>
|
|
5885
|
-
<li><strong>Lines (code):</strong>
|
|
5890
|
+
<li><strong>Lines (comments):</strong> 217-218</li>
|
|
5891
|
+
<li><strong>Lines (code):</strong> 220-244</li>
|
|
5886
5892
|
</ul>
|
|
5887
5893
|
</details>
|
|
5888
5894
|
<h4 id="parameters-8" tabindex="-1">Parameters</h4>
|
|
@@ -5919,8 +5925,8 @@ styling (text-decoration, etc)</li>
|
|
|
5919
5925
|
<li><strong>File:</strong> _element.scss</li>
|
|
5920
5926
|
<li><strong>Group:</strong> element</li>
|
|
5921
5927
|
<li><strong>Type:</strong> mixin</li>
|
|
5922
|
-
<li><strong>Lines (comments):</strong>
|
|
5923
|
-
<li><strong>Lines (code):</strong>
|
|
5928
|
+
<li><strong>Lines (comments):</strong> 246-247</li>
|
|
5929
|
+
<li><strong>Lines (code):</strong> 249-269</li>
|
|
5924
5930
|
</ul>
|
|
5925
5931
|
</details>
|
|
5926
5932
|
<h4 id="parameters-9" tabindex="-1">Parameters</h4>
|
|
@@ -5957,8 +5963,8 @@ styling (text-decoration, etc)</li>
|
|
|
5957
5963
|
<li><strong>File:</strong> _element.scss</li>
|
|
5958
5964
|
<li><strong>Group:</strong> element</li>
|
|
5959
5965
|
<li><strong>Type:</strong> mixin</li>
|
|
5960
|
-
<li><strong>Lines (comments):</strong>
|
|
5961
|
-
<li><strong>Lines (code):</strong>
|
|
5966
|
+
<li><strong>Lines (comments):</strong> 271-276</li>
|
|
5967
|
+
<li><strong>Lines (code):</strong> 278-296</li>
|
|
5962
5968
|
</ul>
|
|
5963
5969
|
</details>
|
|
5964
5970
|
<h4 id="examples" tabindex="-1">Examples</h4>
|
|
@@ -5998,8 +6004,8 @@ styling (text-decoration, etc)</li>
|
|
|
5998
6004
|
<li><strong>File:</strong> _element.scss</li>
|
|
5999
6005
|
<li><strong>Group:</strong> element</li>
|
|
6000
6006
|
<li><strong>Type:</strong> mixin</li>
|
|
6001
|
-
<li><strong>Lines (comments):</strong>
|
|
6002
|
-
<li><strong>Lines (code):</strong>
|
|
6007
|
+
<li><strong>Lines (comments):</strong> 299-307</li>
|
|
6008
|
+
<li><strong>Lines (code):</strong> 309-332</li>
|
|
6003
6009
|
</ul>
|
|
6004
6010
|
</details>
|
|
6005
6011
|
<h4 id="parameters-11" tabindex="-1">Parameters</h4>
|
|
@@ -6080,8 +6086,8 @@ styling (text-decoration, etc)</li>
|
|
|
6080
6086
|
<li><strong>File:</strong> _element.scss</li>
|
|
6081
6087
|
<li><strong>Group:</strong> element</li>
|
|
6082
6088
|
<li><strong>Type:</strong> mixin</li>
|
|
6083
|
-
<li><strong>Lines (comments):</strong>
|
|
6084
|
-
<li><strong>Lines (code):</strong>
|
|
6089
|
+
<li><strong>Lines (comments):</strong> 336-341</li>
|
|
6090
|
+
<li><strong>Lines (code):</strong> 343-385</li>
|
|
6085
6091
|
</ul>
|
|
6086
6092
|
</details>
|
|
6087
6093
|
<h4 id="parameters-12" tabindex="-1">Parameters</h4>
|
|
@@ -6173,8 +6179,8 @@ styling (text-decoration, etc)</li>
|
|
|
6173
6179
|
<li><strong>File:</strong> _element.scss</li>
|
|
6174
6180
|
<li><strong>Group:</strong> element</li>
|
|
6175
6181
|
<li><strong>Type:</strong> function</li>
|
|
6176
|
-
<li><strong>Lines (comments):</strong>
|
|
6177
|
-
<li><strong>Lines (code):</strong>
|
|
6182
|
+
<li><strong>Lines (comments):</strong> 125-126</li>
|
|
6183
|
+
<li><strong>Lines (code):</strong> 128-130</li>
|
|
6178
6184
|
</ul>
|
|
6179
6185
|
</details>
|
|
6180
6186
|
<h4 id="parameters-14" tabindex="-1">Parameters</h4>
|
|
@@ -6212,8 +6218,8 @@ styling (text-decoration, etc)</li>
|
|
|
6212
6218
|
<li><strong>File:</strong> _element.scss</li>
|
|
6213
6219
|
<li><strong>Group:</strong> element</li>
|
|
6214
6220
|
<li><strong>Type:</strong> function</li>
|
|
6215
|
-
<li><strong>Lines (comments):</strong>
|
|
6216
|
-
<li><strong>Lines (code):</strong>
|
|
6221
|
+
<li><strong>Lines (comments):</strong> 132-133</li>
|
|
6222
|
+
<li><strong>Lines (code):</strong> 135-137</li>
|
|
6217
6223
|
</ul>
|
|
6218
6224
|
</details>
|
|
6219
6225
|
<h4 id="parameters-15" tabindex="-1">Parameters</h4>
|
|
@@ -5296,8 +5296,8 @@
|
|
|
5296
5296
|
<li><strong>File:</strong> _units.scss</li>
|
|
5297
5297
|
<li><strong>Group:</strong> units</li>
|
|
5298
5298
|
<li><strong>Type:</strong> mixin</li>
|
|
5299
|
-
<li><strong>Lines (comments):</strong> 28-
|
|
5300
|
-
<li><strong>Lines (code):</strong>
|
|
5299
|
+
<li><strong>Lines (comments):</strong> 28-34</li>
|
|
5300
|
+
<li><strong>Lines (code):</strong> 36-38</li>
|
|
5301
5301
|
</ul>
|
|
5302
5302
|
</details>
|
|
5303
5303
|
<h4 id="examples" tabindex="-1">Examples</h4>
|
|
@@ -5320,10 +5320,16 @@
|
|
|
5320
5320
|
<td style="text-align:left"><code>Map</code></td>
|
|
5321
5321
|
<td style="text-align:left">A map to merge into the color palette</td>
|
|
5322
5322
|
</tr>
|
|
5323
|
+
<tr>
|
|
5324
|
+
<td style="text-align:left">$merge-mode</td>
|
|
5325
|
+
<td style="text-align:left"><code>String</code></td>
|
|
5326
|
+
<td style="text-align:left">Merge mode see utils.map-merge() [null</td>
|
|
5327
|
+
</tr>
|
|
5323
5328
|
</tbody>
|
|
5324
5329
|
</table>
|
|
5325
5330
|
<h4 id="require" tabindex="-1">Require</h4>
|
|
5326
5331
|
<ul>
|
|
5332
|
+
<li>map-merge()</li>
|
|
5327
5333
|
<li><a href="/frontend/sass/core/breakpoint/#variable-config">$config</a></li>
|
|
5328
5334
|
</ul>
|
|
5329
5335
|
<h2 id="functions" tabindex="-1">Functions</h2>
|
|
@@ -5340,8 +5346,8 @@
|
|
|
5340
5346
|
<li><strong>File:</strong> _units.scss</li>
|
|
5341
5347
|
<li><strong>Group:</strong> units</li>
|
|
5342
5348
|
<li><strong>Type:</strong> function</li>
|
|
5343
|
-
<li><strong>Lines (comments):</strong>
|
|
5344
|
-
<li><strong>Lines (code):</strong>
|
|
5349
|
+
<li><strong>Lines (comments):</strong> 40-42</li>
|
|
5350
|
+
<li><strong>Lines (code):</strong> 44-49</li>
|
|
5345
5351
|
</ul>
|
|
5346
5352
|
</details>
|
|
5347
5353
|
<h4 id="parameters-1" tabindex="-1">Parameters</h4>
|
package/package.json
CHANGED
package/scss/_color.scss
CHANGED
|
@@ -178,7 +178,7 @@ $color-classes: (
|
|
|
178
178
|
color: get-context-value($name, "color");
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
///
|
|
181
|
+
/// Tint (add white) a color using the default white by a percentage
|
|
182
182
|
/// @param {Color, String} $color Color/palette color name to apply to tint
|
|
183
183
|
/// @param {Number} $percentage Percentage
|
|
184
184
|
/// @return {Color}
|
|
@@ -189,7 +189,18 @@ $color-classes: (
|
|
|
189
189
|
@return color.mix(get("white"), get($color), $percentage);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
///
|
|
192
|
+
/// Tint (add white) a color using the default white by a percentage (Using color-mix)
|
|
193
|
+
/// - This only works in modern browsers (as of June 2025)
|
|
194
|
+
/// - These match ulu.color-tint() and are designed to accept the same arguments with the same results
|
|
195
|
+
/// @param {Color, String} $color Color or custom property to apply mix to
|
|
196
|
+
/// @param {Number} $percentage Percentage
|
|
197
|
+
/// @return {Color}
|
|
198
|
+
|
|
199
|
+
@function css-tint($color, $percentage) {
|
|
200
|
+
@return color-mix(in srgb, white $percentage, $color calc(100% - $percentage));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/// Shade (add black) a color with the default black by a percentage
|
|
193
204
|
/// @param {Color, String} $color Color/palette color name to shade
|
|
194
205
|
/// @param {Number} $percentage Percentage to shade
|
|
195
206
|
/// @return {Color}
|
|
@@ -200,6 +211,17 @@ $color-classes: (
|
|
|
200
211
|
@return color.mix(get("black"), get($color), $percentage);
|
|
201
212
|
}
|
|
202
213
|
|
|
214
|
+
/// Shade (add black) a color using the default white by a percentage (Using color-mix)
|
|
215
|
+
/// - This only works in modern browsers (as of June 2025)
|
|
216
|
+
/// - These match ulu.color-shade() and are designed to accept the same arguments with the same results
|
|
217
|
+
/// @param {Color, String} $color Color or custom property to apply mix to
|
|
218
|
+
/// @param {Number} $percentage Percentage
|
|
219
|
+
/// @return {Color}
|
|
220
|
+
|
|
221
|
+
@function css-shade($color, $percentage) {
|
|
222
|
+
@return color-mix(in srgb, get("black") $percentage, $color calc(100% - $percentage));
|
|
223
|
+
}
|
|
224
|
+
|
|
203
225
|
/// Prints all context styles
|
|
204
226
|
/// @param {String} $with-prop Checks the specific context for a certain prop (has to be truthy)(used for output in helper/base color modules)
|
|
205
227
|
/// @example scss
|