@progress/kendo-theme-core 6.1.1-dev.8 → 6.2.1-dev.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.
@@ -0,0 +1,78 @@
1
+ {
2
+ "equilateral-index": {
3
+ "type": "Number",
4
+ "value": "1.7320508076"
5
+ },
6
+ "equilateral-height": {
7
+ "type": "Number",
8
+ "value": "0.8660254038"
9
+ },
10
+ "wcag-min-contrast-ratio": {
11
+ "type": "Number",
12
+ "value": "7"
13
+ },
14
+ "wcag-dark": {
15
+ "type": "Color",
16
+ "value": "black"
17
+ },
18
+ "wcag-light": {
19
+ "type": "Color",
20
+ "value": "white"
21
+ },
22
+ "kendo-light-color-level-step": {
23
+ "type": "Number",
24
+ "value": "8%"
25
+ },
26
+ "kendo-dark-color-level-step": {
27
+ "type": "Number",
28
+ "value": "16%"
29
+ },
30
+ "kendo-color-level-step": {
31
+ "type": "Number",
32
+ "value": "8%"
33
+ },
34
+ "kendo-color-white": {
35
+ "type": "Color",
36
+ "value": "#ffffff"
37
+ },
38
+ "kendo-color-black": {
39
+ "type": "Color",
40
+ "value": "#000000"
41
+ },
42
+ "kendo-color-rgba-transparent": {
43
+ "type": "Color",
44
+ "value": "rgba(0, 0, 0, 0)"
45
+ },
46
+ "kendo-gradient-transparent-to-black": {
47
+ "type": "List",
48
+ "value": "rgba(0, 0, 0, 0), black"
49
+ },
50
+ "kendo-gradient-transparent-to-white": {
51
+ "type": "List",
52
+ "value": "rgba(255, 255, 255, 0), white"
53
+ },
54
+ "kendo-gradient-black-to-transparent": {
55
+ "type": "List",
56
+ "value": "black, rgba(0, 0, 0, 0)"
57
+ },
58
+ "kendo-gradient-white-to-transparent": {
59
+ "type": "List",
60
+ "value": "white, rgba(255, 255, 255, 0)"
61
+ },
62
+ "kendo-gradient-rainbow": {
63
+ "type": "List",
64
+ "value": "#ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000"
65
+ },
66
+ "kendo-palettes": {
67
+ "type": "Map",
68
+ "value": "(neutral: (0: #ffffff, 50: #f8f8f8, 100: #ededed, 200: #d6d6d6, 300: #b7b7b7, 400: #949494, 500: #767676, 600: #5f5f5f, 700: #494949, 800: #373737, 900: #282828, 1000: #000000), marsala: (0: #ffffff, 50: #faf0f2, 100: #f3dde0, 200: #e197a3, 300: #c54e69, 400: #8b3548, 500: #622331, 600: #551d2a, 700: #441620, 800: #340f17, 900: #23080e, 1000: #000000), bootstrapGray: (0: #ffffff, 100: #f8f9fa, 200: #e9ecef, 300: #dee2e6, 400: #ced4da, 500: #adb5bd, 600: #6c757d, 700: #495057, 800: #343a40, 900: #212529, 1000: #000000), bootstrapBlue: (0: #ffffff, 100: #cfe2ff, 200: #9ec5fe, 300: #6ea8fe, 400: #3d8bfd, 500: #0d6efd, 600: #0a58ca, 700: #084298, 800: #052c65, 900: #031633, 1000: #000000), bootstrapIndigo: (0: #ffffff, 100: #e0cffc, 200: #c29ffa, 300: #a370f7, 400: #8540f5, 500: #6610f2, 600: #520dc2, 700: #3d0a91, 800: #290661, 900: #140330, 1000: #000000), bootstrapPurple: (0: #ffffff, 100: #e2d9f3, 200: #c5b3e6, 300: #a98eda, 400: #8c68cd, 500: #6f42c1, 600: #59359a, 700: #432874, 800: #2c1a4d, 900: #160d27, 1000: #000000), bootstrapPink: (0: #ffffff, 100: #f7d6e6, 200: #efadce, 300: #e685b5, 400: #de5c9d, 500: #d63384, 600: #ab296a, 700: #801f4f, 800: #561435, 900: #2b0a1a, 1000: #000000), bootstrapRed: (0: #ffffff, 100: #f8d7da, 200: #f1aeb5, 300: #ea868f, 400: #e35d6a, 500: #dc3545, 600: #b02a37, 700: #842029, 800: #58151c, 900: #2c0b0e, 1000: #000000), bootstrapOrange: (0: #ffffff, 100: #ffe5d0, 200: #fecba1, 300: #feb272, 400: #fd9843, 500: #fd7e14, 600: #ca6510, 700: #984c0c, 800: #653208, 900: #331904, 1000: #000000), bootstrapYellow: (0: #ffffff, 100: #fff3cd, 200: #ffe69c, 300: #ffda6a, 400: #ffcd39, 500: #ffc107, 600: #cc9a06, 700: #997404, 800: #664d03, 900: #332701, 1000: #000000), bootstrapGreen: (0: #ffffff, 100: #d1e7dd, 200: #a3cfbb, 300: #75b798, 400: #479f76, 500: #198754, 600: #146c43, 700: #0f5132, 800: #0a3622, 900: #051b11, 1000: #000000), bootstrapTeal: (0: #ffffff, 100: #d2f4ea, 200: #a6e9d5, 300: #79dfc1, 400: #4dd4ac, 500: #20c997, 600: #1aa179, 700: #13795b, 800: #0d503c, 900: #06281e, 1000: #000000), bootstrapCyan: (0: #ffffff, 100: #cff4fc, 200: #9eeaf9, 300: #6edff6, 400: #3dd5f3, 500: #0dcaf0, 600: #0aa2c0, 700: #087990, 800: #055160, 900: #032830, 1000: #000000), fluentNeutral: (0: #ffffff, 50: #faf9f8, 100: #edebe9, 150: #e1dfdd, 200: #d2d0ce, 250: #c8c6c4, 300: #bdbbb8, 350: #b3b0ad, 400: #a19f9d, 450: #8a8886, 500: #797775, 550: #605e5c, 600: #484644, 650: #3b3a39, 700: #323130, 750: #292827, 800: #201f1e, 850: #1b1a19, 900: #161514, 950: #11100f, 1000: #000000), materialGray: (0: #ffffff, 50: #fafafa, 100: #f5f5f5, 200: #eeeeee, 300: #e0e0e0, 400: #bdbdbd, 500: #9e9e9e, 600: #757575, 700: #616161, 800: #424242, 900: #212121, 1000: #000000), materialBlueGray: (0: #ffffff, 50: #eceff1, 100: #cfd8dc, 200: #b0bec5, 300: #90a4ae, 400: #78909c, 500: #607d8b, 600: #546e7a, 700: #455a64, 800: #37474f, 900: #263238, 1000: #000000), materialRed: (0: #ffffff, 50: #ffebee, 100: #ffcdd2, 200: #ef9a9a, 300: #e57373, 400: #ef5350, 500: #f44336, 600: #e53935, 700: #d32f2f, 800: #c62828, 900: #b71c1c, 1000: #000000), materialPink: (0: #ffffff, 50: #fce4ec, 100: #f8bbd0, 200: #f48fb1, 300: #f06292, 400: #ec407a, 500: #e51a5f, 600: #d81b60, 700: #c2185b, 800: #ad1457, 900: #880e4f, 1000: #000000), materialPurple: (0: #ffffff, 50: #f3e5f5, 100: #e1bee7, 200: #ce93d8, 300: #ba68c8, 400: #ab47bc, 500: #9c27b0, 600: #8e24aa, 700: #7b1fa2, 800: #6a1b9a, 900: #4a148c, 1000: #000000), materialDeepPurple: (0: #ffffff, 50: #ede7f6, 100: #d1c4e9, 200: #b39ddb, 300: #9575cd, 400: #7e57c2, 500: #673ab7, 600: #5e35b1, 700: #512da8, 800: #4527a0, 900: #311b92, 1000: #000000), materialIndigo: (0: #ffffff, 50: #e8eaf6, 100: #c5cae9, 200: #9fa8da, 300: #7986cb, 400: #5c6bc0, 500: #3f51b5, 600: #3949ab, 700: #303f9f, 800: #283593, 900: #1a237e, 1000: #000000), materialBlue: (0: #ffffff, 50: #e3f2fd, 100: #bbdefb, 200: #90caf9, 300: #64b5f6, 400: #42a5f5, 500: #2196f3, 600: #1e88e5, 700: #1976d2, 800: #1565c0, 900: #0d47a1, 1000: #000000), materialLightBlue: (0: #ffffff, 50: #e1f5fe, 100: #b3e5fc, 200: #81d4fa, 300: #4fc3f7, 400: #29b6f6, 500: #03a9f4, 600: #039be5, 700: #0288d1, 800: #0277bd, 900: #01579b, 1000: #000000), materialCyan: (0: #ffffff, 50: #e0f7fa, 100: #b2ebf2, 200: #80deea, 300: #4dd0e1, 400: #26c6da, 500: #00bcd4, 600: #00acc1, 700: #0097a7, 800: #00838f, 900: #006064, 1000: #000000), materialTeal: (0: #ffffff, 50: #e0f2f1, 100: #b2dfdb, 200: #80cbc4, 300: #4db6ac, 400: #26a69a, 500: #009688, 600: #00897b, 700: #00796b, 800: #00695c, 900: #004d40, 1000: #000000), materialGreen: (0: #ffffff, 50: #e8f5e9, 100: #c8e6c9, 200: #a5d6a7, 300: #81c784, 400: #66bb6a, 500: #4caf50, 600: #43a047, 700: #388e3c, 800: #2e7d32, 900: #1b5e20, 1000: #000000), materialLightGreen: (0: #ffffff, 50: #f1f8e9, 100: #dcedc8, 200: #c5e1a5, 300: #aed581, 400: #9ccc65, 500: #8bc34a, 600: #7cb342, 700: #689f38, 800: #558b2f, 900: #33691e, 1000: #000000), materialLime: (0: #ffffff, 50: #f9fbe7, 100: #f0f4c3, 200: #e6ee9c, 300: #dce775, 400: #d4e157, 500: #cddc39, 600: #c0ca33, 700: #afb42b, 800: #9e9d24, 900: #827717, 1000: #000000), materialYellow: (0: #ffffff, 50: #fffde7, 100: #fff9c4, 200: #fff59d, 300: #fff176, 400: #ffee58, 500: #ffeb3b, 600: #fdd835, 700: #fbc02d, 800: #f9a825, 900: #f57f17, 1000: #000000), materialAmber: (0: #ffffff, 50: #fff8e1, 100: #ffecb3, 200: #ffe082, 300: #ffd54f, 400: #ffca28, 500: #ffc107, 600: #ffb300, 700: #ffa000, 800: #ff8f00, 900: #ff6f00, 1000: #000000), materialOrange: (0: #ffffff, 50: #fff3e0, 100: #ffe0b2, 200: #ffcc80, 300: #ffb74d, 400: #ffa726, 500: #ff9800, 600: #fb8c00, 700: #f57c00, 800: #ef6c00, 900: #e65100, 1000: #000000), materialDeepOrange: (0: #ffffff, 50: #fbe9e7, 100: #ffccbc, 200: #ffab91, 300: #ff8a65, 400: #ff7043, 500: #ff5722, 600: #f4511e, 700: #e64a19, 800: #d84315, 900: #bf360c, 1000: #000000), materialBrown: (0: #ffffff, 50: #efebe9, 100: #d7ccc8, 200: #bcaaa4, 300: #a1887f, 400: #8d6e63, 500: #795548, 600: #6d4c41, 700: #5d4037, 800: #4e342e, 900: #3e2723, 1000: #000000), primerGray: (0: #ffffff, 50: #f6f8fa, 100: #eaeef2, 200: #d0d7de, 300: #afb8c1, 400: #8c959f, 500: #6e7781, 600: #57606a, 700: #424a53, 800: #32383f, 900: #24292f, 1000: #000000), primerBlue: (0: #ffffff, 50: #ddf4ff, 100: #b6e3ff, 200: #80ccff, 300: #54aeff, 400: #218bff, 500: #0969da, 600: #0550ae, 700: #033d8b, 800: #0a3069, 900: #002155, 1000: #000000), primerGreen: (0: #ffffff, 50: #dafbe1, 100: #aceebb, 200: #6fdd8b, 300: #4ac26b, 400: #2da44e, 500: #1a7f37, 600: #116329, 700: #044f1e, 800: #003d16, 900: #002d11, 1000: #000000), primerYellow: (0: #ffffff, 50: #fff8c5, 100: #fae17d, 200: #eac54f, 300: #d4a72c, 400: #bf8700, 500: #9a6700, 600: #7d4e00, 700: #633c01, 800: #4d2d00, 900: #3b2300, 1000: #000000), primerOrange: (0: #ffffff, 50: #fff1e5, 100: #ffd8b5, 200: #ffb77c, 300: #fb8f44, 400: #e16f24, 500: #bc4c00, 600: #953800, 700: #762c00, 800: #5c2200, 900: #471700, 1000: #000000), primerRed: (0: #ffffff, 50: #ffebe9, 100: #ffcecb, 200: #ffaba8, 300: #ff8182, 400: #fa4549, 500: #cf222e, 600: #a40e26, 700: #82071e, 800: #660018, 900: #4c0014, 1000: #000000), primerPurple: (0: #ffffff, 50: #fbefff, 100: #ecd8ff, 200: #d8b9ff, 300: #c297ff, 400: #a475f9, 500: #8250df, 600: #6639ba, 700: #512a97, 800: #3e1f79, 900: #2e1461, 1000: #000000), primerPink: (0: #ffffff, 50: #ffeff7, 100: #ffd3eb, 200: #ffadda, 300: #ff80c8, 400: #e85aad, 500: #bf3989, 600: #99286e, 700: #772057, 800: #611347, 900: #4d0336, 1000: #000000), primerCoral: (0: #ffffff, 50: #fff0eb, 100: #ffd6cc, 200: #ffb4a1, 300: #fd8c73, 400: #ec6547, 500: #c4432b, 600: #9e2f1c, 700: #801f0f, 800: #691105, 900: #510901, 1000: #000000), tailwindNeutral: (0: #ffffff, 50: #fafafa, 100: #f5f5f5, 200: #e5e5e5, 300: #d4d4d4, 400: #a3a3a3, 500: #737373, 600: #525252, 700: #404040, 800: #262626, 900: #171717, 1000: #000000), tailwindSlate: (0: #ffffff, 50: #f8fafc, 100: #f1f5f9, 200: #e2e8f0, 300: #cbd5e1, 400: #94a3b8, 500: #64748b, 600: #475569, 700: #334155, 800: #1e293b, 900: #0f172a, 1000: #000000), tailwindGray: (0: #ffffff, 50: #f9fafb, 100: #f3f4f6, 200: #e5e7eb, 300: #d1d5db, 400: #9ca3af, 500: #6b7280, 600: #4b5563, 700: #374151, 800: #1f2937, 900: #111827, 1000: #000000), tailwindZinc: (0: #ffffff, 50: #fafafa, 100: #f4f4f5, 200: #e4e4e7, 300: #d4d4d8, 400: #a1a1aa, 500: #71717a, 600: #52525b, 700: #3f3f46, 800: #27272a, 900: #18181b, 1000: #000000), tailwindStone: (0: #ffffff, 50: #fafaf9, 100: #f5f5f4, 200: #e7e5e4, 300: #d6d3d1, 400: #a8a29e, 500: #78716c, 600: #57534e, 700: #44403c, 800: #292524, 900: #1c1917, 1000: #000000), tailwindRed: (0: #ffffff, 50: #fef2f2, 100: #fee2e2, 200: #fecaca, 300: #fca5a5, 400: #f87171, 500: #ef4444, 600: #dc2626, 700: #b91c1c, 800: #991b1b, 900: #7f1d1d, 1000: #000000), tailwindOrange: (0: #ffffff, 50: #fff7ed, 100: #ffedd5, 200: #fed7aa, 300: #fdba74, 400: #fb923c, 500: #f97316, 600: #ea580c, 700: #c2410c, 800: #9a3412, 900: #7c2d12, 1000: #000000), tailwindAmber: (0: #ffffff, 50: #fffbeb, 100: #fef3c7, 200: #fde68a, 300: #fcd34d, 400: #fbbf24, 500: #f59e0b, 600: #d97706, 700: #b45309, 800: #92400e, 900: #78350f, 1000: #000000), tailwindYellow: (0: #ffffff, 50: #fefce8, 100: #fef9c3, 200: #fef08a, 300: #fde047, 400: #facc15, 500: #eab308, 600: #ca8a04, 700: #a16207, 800: #854d0e, 900: #713f12, 1000: #000000), tailwindLime: (0: #ffffff, 50: #f7fee7, 100: #ecfccb, 200: #d9f99d, 300: #bef264, 400: #a3e635, 500: #84cc16, 600: #65a30d, 700: #4d7c0f, 800: #3f6212, 900: #365314, 1000: #000000), tailwindGreen: (0: #ffffff, 50: #f0fdf4, 100: #dcfce7, 200: #bbf7d0, 300: #86efac, 400: #4ade80, 500: #22c55e, 600: #16a34a, 700: #15803d, 800: #166534, 900: #14532d, 1000: #000000), tailwindEmerald: (0: #ffffff, 50: #ecfdf5, 100: #d1fae5, 200: #a7f3d0, 300: #6ee7b7, 400: #34d399, 500: #10b981, 600: #059669, 700: #047857, 800: #065f46, 900: #064e3b, 1000: #000000), tailwindTeal: (0: #ffffff, 50: #f0fdfa, 100: #ccfbf1, 200: #99f6e4, 300: #5eead4, 400: #2dd4bf, 500: #14b8a6, 600: #0d9488, 700: #0f766e, 800: #115e59, 900: #134e4a, 1000: #000000), tailwindCyan: (0: #ffffff, 50: #ecfeff, 100: #cffafe, 200: #a5f3fc, 300: #67e8f9, 400: #22d3ee, 500: #06b6d4, 600: #0891b2, 700: #0e7490, 800: #155e75, 900: #164e63, 1000: #000000), tailwindSky: (0: #ffffff, 50: #f0f9ff, 100: #e0f2fe, 200: #bae6fd, 300: #7dd3fc, 400: #38bdf8, 500: #0ea5e9, 600: #0284c7, 700: #0369a1, 800: #075985, 900: #0c4a6e, 1000: #000000), tailwindBlue: (0: #ffffff, 50: #eff6ff, 100: #dbeafe, 200: #bfdbfe, 300: #93c5fd, 400: #60a5fa, 500: #3b82f6, 600: #2563eb, 700: #1d4ed8, 800: #1e40af, 900: #1e3a8a, 1000: #000000), tailwindIndigo: (0: #ffffff, 50: #eef2ff, 100: #e0e7ff, 200: #c7d2fe, 300: #a5b4fc, 400: #818cf8, 500: #6366f1, 600: #4f46e5, 700: #4338ca, 800: #3730a3, 900: #312e81, 1000: #000000), tailwindViolet: (0: #ffffff, 50: #f5f3ff, 100: #ede9fe, 200: #ddd6fe, 300: #c4b5fd, 400: #a78bfa, 500: #8b5cf6, 600: #7c3aed, 700: #6d28d9, 800: #5b21b6, 900: #4c1d95, 1000: #000000), tailwindPurple: (0: #ffffff, 50: #faf5ff, 100: #f3e8ff, 200: #e9d5ff, 300: #d8b4fe, 400: #c084fc, 500: #a855f7, 600: #9333ea, 700: #7e22ce, 800: #6b21a8, 900: #581c87, 1000: #000000), tailwindFuchsia: (0: #ffffff, 50: #fdf4ff, 100: #fae8ff, 200: #f5d0fe, 300: #f0abfc, 400: #e879f9, 500: #d946ef, 600: #c026d3, 700: #a21caf, 800: #86198f, 900: #701a75, 1000: #000000), tailwindPink: (0: #ffffff, 50: #fdf2f8, 100: #fce7f3, 200: #fbcfe8, 300: #f9a8d4, 400: #f472b6, 500: #ec4899, 600: #db2777, 700: #be185d, 800: #9d174d, 900: #831843, 1000: #000000), tailwindRose: (0: #ffffff, 50: #fff1f2, 100: #ffe4e6, 200: #fecdd3, 300: #fda4af, 400: #fb7185, 500: #f43f5e, 600: #e11d48, 700: #be123c, 800: #9f1239, 900: #881337, 1000: #000000))"
69
+ },
70
+ "kendo-scrollbar-width": {
71
+ "type": "Number",
72
+ "value": "17px"
73
+ },
74
+ "kendo-components": {
75
+ "type": "List",
76
+ "value": "\"typography\", \"utils\", \"cursor\", \"draggable\", \"table\", \"icon\", \"chip\", \"messagebox\", \"input\", \"list\", \"listgroup\", \"overlay\", \"ripple\", \"virtual-scroller\", \"avatar\", \"badge\", \"color-preview\", \"loader\", \"skeleton\", \"tooltip\", \"button\", \"split-button\", \"menu-button\", \"textbox\", \"textarea\", \"checkbox\", \"listbox\", \"progressbar\", \"radio\", \"slider\", \"form\", \"validator\", \"floating-label\", \"calendar\", \"popup\", \"time-selector\", \"autocomplete\", \"captcha\", \"color-palette\", \"color-gradient\", \"color-editor\", \"color-picker\", \"combobox\", \"date-input\", \"date-picker\", \"time-picker\", \"date-time-picker\", \"date-range-picker\", \"dropdown-grid\", \"dropdown-list\", \"dropdown-tree\", \"masked-textbox\", \"multiselect\", \"numeric-textbox\", \"rating\", \"searchbox\", \"switch\", \"upload\", \"dropzone\", \"actions\", \"appbar\", \"fab\", \"menu\", \"toolbar\", \"action-sheet\", \"dialog\", \"drawer\", \"notification\", \"popover\", \"responsive-panel\", \"window\", \"bottom-navigation\", \"breadcrumb\", \"pager\", \"stepper\", \"tabstrip\", \"treeview\", \"wizard\", \"card\", \"expander\", \"panelbar\", \"splitter\", \"tile-layout\", \"grid\", \"listview\", \"spreadsheet\", \"pivotgrid\", \"treelist\", \"filter\", \"file-manager\", \"task-board\", \"editor\", \"image-editor\", \"gantt\", \"scheduler\", \"adaptive\", \"chat\", \"media-player\", \"timeline\", \"pdf-viewer\", \"scroller\", \"scroll-view\", \"dataviz\", \"map\", \"orgchart\", \"signature\""
77
+ }
78
+ }
@@ -0,0 +1,10 @@
1
+ @use "sass:meta";
2
+ @use "../all.scss";
3
+
4
+ $_vars: meta.module-variables("all");
5
+
6
+ body {
7
+ @each $key, $val in $_vars {
8
+ var: k-resolve-var( unquote($key), meta.type-of( $val ), $val );
9
+ }
10
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-theme-core",
3
3
  "description": "A collection of functions and mixins used for building themes for Kendo UI",
4
- "version": "6.1.1-dev.8+237a5fdca",
4
+ "version": "6.2.1-dev.0+7a0fad806",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "prepublishOnly": "node ../../scripts/themes-prepublish.js",
40
40
  "postpublish": "echo 'no postpublish for core theme'"
41
41
  },
42
- "gitHead": "237a5fdca51516273f563421c40d03335734d230"
42
+ "gitHead": "7a0fad8063cd9fe27e17a9898e289cca17895c32"
43
43
  }
@@ -1,3 +1,72 @@
1
+ /// Color palettes to be used in the Kendo UI themes.
2
+ /// @access private
3
+ /// @type Record<String, ColorMap>
4
+ /// @prop {ColorMap} neutral - The neutral palette
5
+ /// @prop {ColorMap} marsala - The marsala palette
6
+ /// @prop {ColorMap} bootstrapGray - The Bootstrap gray palette
7
+ /// @prop {ColorMap} bootstrapBlue - The Bootstrap blue palette
8
+ /// @prop {ColorMap} bootstrapIndigo - The Bootstrap indigo palette
9
+ /// @prop {ColorMap} bootstrapPurple - The Bootstrap purple palette
10
+ /// @prop {ColorMap} bootstrapPink - The Bootstrap pink palette
11
+ /// @prop {ColorMap} bootstrapRed - The Bootstrap red palette
12
+ /// @prop {ColorMap} bootstrapOrange - The Bootstrap orange palette
13
+ /// @prop {ColorMap} bootstrapYellow - The Bootstrap yellow palette
14
+ /// @prop {ColorMap} bootstrapGreen - The Bootstrap green palette
15
+ /// @prop {ColorMap} bootstrapTeal - The Bootstrap teal palette
16
+ /// @prop {ColorMap} bootstrapCyan - The Bootstrap cyan palette
17
+ /// @prop {ColorMap} fluentNeutral - The Fluent neutral palette
18
+ /// @prop {ColorMap} materialGray - The Material gray palette
19
+ /// @prop {ColorMap} materialBlueGray - The Material blue gray palette
20
+ /// @prop {ColorMap} materialRed - The Material red palette
21
+ /// @prop {ColorMap} materialPink - The Material pink palette
22
+ /// @prop {ColorMap} materialPurple - The Material purple palette
23
+ /// @prop {ColorMap} materialDeepPurple - The Material deep purple palette
24
+ /// @prop {ColorMap} materialIndigo - The Material indigo palette
25
+ /// @prop {ColorMap} materialBlue - The Material blue palette
26
+ /// @prop {ColorMap} materialLightBlue - The Material light blue palette
27
+ /// @prop {ColorMap} materialCyan - The Material cyan palette
28
+ /// @prop {ColorMap} materialTeal - The Material teal palette
29
+ /// @prop {ColorMap} materialGreen - The Material green palette
30
+ /// @prop {ColorMap} materialLightGreen - The Material light green palette
31
+ /// @prop {ColorMap} materialLime - The Material lime palette
32
+ /// @prop {ColorMap} materialYellow - The Material yellow palette
33
+ /// @prop {ColorMap} materialAmber - The Material amber palette
34
+ /// @prop {ColorMap} materialOrange - The Material orange palette
35
+ /// @prop {ColorMap} materialDeepOrange - The Material deep orange palette
36
+ /// @prop {ColorMap} materialBrown - The Material brown palette
37
+ /// @prop {ColorMap} primerGray - The Primer gray palette
38
+ /// @prop {ColorMap} primerBlue - The Primer blue palette
39
+ /// @prop {ColorMap} primerGreen - The Primer green palette
40
+ /// @prop {ColorMap} primerYellow - The Primer yellow palette
41
+ /// @prop {ColorMap} primerOrange - The Primer orange palette
42
+ /// @prop {ColorMap} primerRed - The Primer red palette
43
+ /// @prop {ColorMap} primerPurple - The Primer purple palette
44
+ /// @prop {ColorMap} primerPink - The Primer pink palette
45
+ /// @prop {ColorMap} primerCoral - The Primer coral palette
46
+ /// @prop {ColorMap} tailwindNeutral - The Tailwind neutral palette
47
+ /// @prop {ColorMap} tailwindSlate - The Tailwind slate palette
48
+ /// @prop {ColorMap} tailwindGray - The Tailwind gray palette
49
+ /// @prop {ColorMap} tailwindZinc - The Tailwind zinc palette
50
+ /// @prop {ColorMap} tailwindStone - The Tailwind stone palette
51
+ /// @prop {ColorMap} tailwindRed - The Tailwind red palette
52
+ /// @prop {ColorMap} tailwindOrange - The Tailwind orange palette
53
+ /// @prop {ColorMap} tailwindAmber - The Tailwind amber palette
54
+ /// @prop {ColorMap} tailwindYellow - The Tailwind yellow palette
55
+ /// @prop {ColorMap} tailwindLime - The Tailwind lime palette
56
+ /// @prop {ColorMap} tailwindGreen - The Tailwind green palette
57
+ /// @prop {ColorMap} tailwindEmerald - The Tailwind emerald palette
58
+ /// @prop {ColorMap} tailwindTeal - The Tailwind teal palette
59
+ /// @prop {ColorMap} tailwindCyan - The Tailwind cyan palette
60
+ /// @prop {ColorMap} tailwindSky - The Tailwind sky palette
61
+ /// @prop {ColorMap} tailwindBlue - The Tailwind blue palette
62
+ /// @prop {ColorMap} tailwindIndigo - The Tailwind indigo palette
63
+ /// @prop {ColorMap} tailwindViolet - The Tailwind violet palette
64
+ /// @prop {ColorMap} tailwindPurple - The Tailwind purple palette
65
+ /// @prop {ColorMap} tailwindFuchsia - The Tailwind fuchsia palette
66
+ /// @prop {ColorMap} tailwindPink - The Tailwind pink palette
67
+ /// @prop {ColorMap} tailwindRose - The Tailwind rose palette
68
+ ///
69
+ /// @group color-system
1
70
  $kendo-palettes: (
2
71
 
3
72
  // Kendo
@@ -1,12 +1,49 @@
1
1
  // Color constants
2
+
3
+ /// The color white.
4
+ /// Note: you cannot change this value.
5
+ /// @type Color
6
+ /// @group color-system
2
7
  $kendo-color-white: #ffffff; // stylelint-disable-line scss/dollar-variable-default
8
+
9
+ /// The color black.
10
+ /// Note: you cannot change this value.
11
+ /// @type Color
12
+ /// @group color-system
3
13
  $kendo-color-black: #000000; // stylelint-disable-line scss/dollar-variable-default
4
14
 
15
+ /// The color transparent.
16
+ /// Note: you cannot change this value.
17
+ /// @type Color
18
+ /// @group color-system
5
19
  $kendo-color-rgba-transparent: rgba( 0, 0, 0, 0 ); // stylelint-disable-line scss/dollar-variable-default
6
20
 
21
+ /// A gradient that goes from transparent to black.
22
+ /// Note: you cannot change this value.
23
+ /// @type Gradient
24
+ /// @group color-system
7
25
  $kendo-gradient-transparent-to-black: rgba( black, 0 ), black; // stylelint-disable-line scss/dollar-variable-default
26
+
27
+ /// A gradient that goes from transparent to white.
28
+ /// Note: you cannot change this value.
29
+ /// @type Gradient
30
+ /// @group color-system
8
31
  $kendo-gradient-transparent-to-white: rgba( white, 0 ), white; // stylelint-disable-line scss/dollar-variable-default
32
+
33
+ /// A gradient that goes from black to transparent.
34
+ /// Note: you cannot change this value.
35
+ /// @type Gradient
36
+ /// @group color-system
9
37
  $kendo-gradient-black-to-transparent: black, rgba( black, 0 ); // stylelint-disable-line scss/dollar-variable-default
38
+
39
+ /// A gradient that goes from white to transparent.
40
+ /// Note: you cannot change this value.
41
+ /// @type Gradient
42
+ /// @group color-system
10
43
  $kendo-gradient-white-to-transparent: white, rgba( white, 0 ); // stylelint-disable-line scss/dollar-variable-default
11
44
 
45
+ /// A gradient that cycles through the colors of the rainbow.
46
+ /// Note: you cannot change this value.
47
+ /// @type Gradient
48
+ /// @group color-system
12
49
  $kendo-gradient-rainbow: #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000; // stylelint-disable-line scss/dollar-variable-default
@@ -271,17 +271,31 @@ $_linear-channel-values: (
271
271
  1
272
272
  );
273
273
 
274
- // The contrast ratio to reach against white, to determine if color changes from "light" to "dark".
275
- // Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
276
- // See https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast
277
- // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
274
+ /// The contrast ratio to reach against white, to determine if color changes from "light" to "dark".
275
+ /// Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
276
+ /// @type Number
277
+ /// @group accessibility
278
+ ///
279
+ /// @link https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast
280
+ /// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
278
281
  $wcag-min-contrast-ratio: 7 !default;
282
+ /// Default dark color for WCAG 2.0.
283
+ /// @type Color
284
+ /// @group accessibility
279
285
  $wcag-dark: black !default;
286
+ /// Default light color for WCAG 2.0.
287
+ /// @type Color
288
+ /// @group accessibility
280
289
  $wcag-light: white !default;
281
290
 
282
- // Calculate the luminance for a color.
283
- // See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
284
- // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
291
+ /// Calculate the relative luminance for a color.
292
+ /// @param {Color} $color - The color to calculate the relative luminance for.
293
+ /// @return {Number} - The relative luminance for the color.
294
+ ///
295
+ /// @group accessibility
296
+ ///
297
+ /// @link https://www.w3.org/TR/WCAG/#dfn-relative-luminance
298
+ /// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
285
299
  @function k-color-luminance( $color ) {
286
300
  $red: k-list-nth( $_linear-channel-values, k-color-red( $color ) + 1 );
287
301
  $green: k-list-nth( $_linear-channel-values, k-color-green( $color ) + 1 );
@@ -290,9 +304,15 @@ $wcag-light: white !default;
290
304
  @return .2126 * $red + .7152 * $green + .0722 * $blue;
291
305
  }
292
306
 
293
- // Calculate the luminance for a color.
294
- // See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
295
- // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
307
+ /// Calculates contrast ratio between two colors
308
+ /// @param {Color} $background - The background color
309
+ /// @param {Color} $foreground - The foreground color
310
+ /// @return {Number} - The contrast ratio between the two colors
311
+ ///
312
+ /// @group accessibility
313
+ ///
314
+ /// @link https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
315
+ /// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
296
316
  @function k-color-contrast-ratio( $background, $foreground ) {
297
317
  // sass-lint:disable-block variable-name-format
298
318
  $backLum: k-color-luminance( $background ) + .05;
@@ -301,15 +321,34 @@ $wcag-light: white !default;
301
321
  @return k-math-div( k-math-max( $backLum, $foreLum ), k-math-min( $backLum, $foreLum ) );
302
322
  }
303
323
 
324
+ /// Checks if a color is dark
325
+ /// @param {Color} $color - The color to check
326
+ /// @return {Boolean} - True if the color is dark, false otherwise
327
+ ///
328
+ /// @group accessibility
304
329
  @function k-is-dark( $color ) {
305
330
  @return if( k-color-luminance( $color ) < .5, true, false );
306
331
  }
332
+
333
+ /// Checks if a color is light
334
+ /// @param {Color} $color - The color to check
335
+ /// @return {Boolean} - True if the color is light, false otherwise
336
+ ///
337
+ /// @group accessibility
307
338
  @function k-is-light( $color ) {
308
339
  @return if( k-color-luminance( $color ) < .5, false, true );
309
340
  }
310
341
 
311
342
 
312
- // Contrast functions
343
+ /// Calculates the contrast ratio between a background color and a foreground color.
344
+ /// If the contrast ratio is not high enough, it will return the color with the highest contrast ratio.
345
+ /// @param {Color} $background - The background color
346
+ /// @param {Color} $dark - The dark color to use as a fallback
347
+ /// @param {Color} $light - The light color to use as a fallback
348
+ /// @param {Number} $min-ratio - The minimum contrast ratio to reach
349
+ /// @return {Color} - The color with the highest contrast ratio
350
+ ///
351
+ /// @group accessibility
313
352
  @function k-contrast-color( $background, $dark: $wcag-dark, $light: $wcag-light, $min-ratio: $wcag-min-contrast-ratio ) {
314
353
  $foregrounds: $light, $dark, #ffffff, #000000;
315
354
  $max-ratio: 0;
@@ -1,9 +1,14 @@
1
+ $kendo-light-color-level-step: 8% !default;
2
+ $kendo-dark-color-level-step: 16% !default;
3
+
1
4
  /// Set a specific jump point for requesting color jumps
2
5
  /// @group color-system
3
6
  /// @access private
4
7
  $kendo-color-level-step: 8% !default;
5
8
 
6
9
  @function k-color-level( $color, $level: 0 ) {
10
+ $_dark-theme: if( k-meta-variable-exists( kendo-is-dark-theme ), $kendo-is-dark-theme, false );
11
+ $_color-level-step: if( $_dark-theme, $kendo-dark-color-level-step, $kendo-light-color-level-step );
7
12
 
8
13
  @if ( $level == 0 ) or ( $level == 0% ) {
9
14
  @return $color;
@@ -17,16 +22,41 @@ $kendo-color-level-step: 8% !default;
17
22
  @return k-color-mix( $base, $color, $level );
18
23
  }
19
24
 
20
- @return k-color-mix( $base, $color, $level * $kendo-color-level-step );
25
+ @return k-color-mix( $base, $color, k-math-clamp( $level * $_color-level-step, 0%, 100% ) );
21
26
  }
22
27
 
28
+ /// Makes a color lighter by mixing it with white
29
+ /// @param {Color} $color - The color to lighten
30
+ /// @param {Number} $level - The amount to lighten the color
31
+ /// @return {Color} - The lightened color
32
+ ///
33
+ /// @group color-system
34
+ ///
35
+ /// @example scss - Usage
36
+ /// @debug k-color-tint( #f00, 1 ); // => #ff1a1a
23
37
  @function k-color-tint( $color, $level: 1 ) {
24
38
  @return k-color-level( $color, -$level );
25
39
  }
40
+
41
+ /// Makes a color darker by mixing it with black
42
+ /// @param {Color} $color - The color to darken
43
+ /// @param {Number} $level - The amount to darken the color
44
+ /// @return {Color} - The darkened color
45
+ ///
46
+ /// @group color-system
47
+ ///
48
+ /// @example scss - Usage
49
+ /// @debug k-color-shade( #f00, 1 ); // => #e60000
26
50
  @function k-color-shade( $color, $level: 1 ) {
27
51
  @return k-color-level( $color, $level );
28
52
  }
29
53
 
54
+ /// Shades the color in light themes and tints it in dark themes
55
+ /// @param {Color} $color - The color to shade or tint
56
+ /// @param {Number} $level - The amount to shade or tint the color
57
+ /// @return {Color} - The shaded or tinted color
58
+ ///
59
+ /// @group color-system
30
60
  @function k-try-shade( $color, $level: 1 ) {
31
61
  $_dark-theme: if( k-meta-variable-exists( kendo-is-dark-theme ), $kendo-is-dark-theme, false );
32
62
 
@@ -36,6 +66,13 @@ $kendo-color-level-step: 8% !default;
36
66
 
37
67
  @return k-color-shade( $color, $level );
38
68
  }
69
+
70
+ /// Tints the color in light themes and shades it in dark themes
71
+ /// @param {Color} $color - The color to tint or shade
72
+ /// @param {Number} $level - The amount to tint or shade the color
73
+ /// @return {Color} - The tinted or shaded color
74
+ ///
75
+ /// @group color-system
39
76
  @function k-try-tint( $color, $level: 1 ) {
40
77
  $_dark-theme: if( k-meta-variable-exists( kendo-is-dark-theme ), $kendo-is-dark-theme, false );
41
78
 
@@ -46,7 +83,12 @@ $kendo-color-level-step: 8% !default;
46
83
  @return k-color-tint( $color, $level );
47
84
  }
48
85
 
49
-
86
+ /// Darkens the color in light themes and lightens it in dark themes
87
+ /// @param {Color} $color - The color to darken or lighten
88
+ /// @param {Number} $level - The amount to darken or lighten the color
89
+ /// @return {Color} - The darkened or lightened color
90
+ ///
91
+ /// @group color-system
50
92
  @function k-try-darken( $color, $amount ) {
51
93
  $_dark-theme: if( k-meta-variable-exists( kendo-is-dark-theme ), $kendo-is-dark-theme, false );
52
94
 
@@ -56,6 +98,12 @@ $kendo-color-level-step: 8% !default;
56
98
  @return k-color-darken( $color, $amount );
57
99
  }
58
100
 
101
+ /// Lightens the color in light themes and darkens it in dark themes
102
+ /// @param {Color} $color - The color to lighten or darken
103
+ /// @param {Number} $level - The amount to lighten or darken the color
104
+ /// @return {Color} - The lightened or darkened color
105
+ ///
106
+ /// @group color-system
59
107
  @function k-try-lighten( $color, $amount ) {
60
108
  $_dark-theme: if( k-meta-variable-exists( kendo-is-dark-theme ), $kendo-is-dark-theme, false );
61
109
 
@@ -65,6 +113,15 @@ $kendo-color-level-step: 8% !default;
65
113
  @return k-color-lighten( $color, $amount );
66
114
  }
67
115
 
116
+ /// Converts a color with alpha to solid color mixed with a background color
117
+ /// @param {Color} $color - The color to convert
118
+ /// @param {Color} $bg - The background color
119
+ /// @return {Color} - The converted color
120
+ ///
121
+ /// @group color-system
122
+ ///
123
+ /// @example scss - Usage
124
+ /// @debug k-rgba-to-mix( rgba( #f00, 0.5 ), #fff ); // => #ff8080
68
125
  @function k-rgba-to-mix( $color, $bg ) {
69
126
  $percent: k-color-alpha( $color ) * 100%;
70
127
 
@@ -1,63 +1,168 @@
1
+ /// Returns the alpha channel of a color.
2
+ /// @param {Color} $color - The color to get the alpha channel for.
3
+ /// @return {Number} - The alpha channel of the color.
4
+ ///
5
+ /// @example scss - Usage
6
+ /// @debug k-color-alpha( rgba( 0, 0, 0, 0.5 ) ); // => 0.5
7
+ /// @debug k-color-alpha( #000 ); // => 1
1
8
  @function k-color-alpha( $color ) {
2
9
  @return alpha( $color );
3
10
  }
4
11
 
12
+ /// Returns the red channel of a color.
13
+ /// @param {Color} $color - The color to get the red channel for.
14
+ /// @return {Number} - The red channel of the color.
15
+ ///
16
+ /// @example scss - Usage
17
+ /// @debug k-color-red( #ff0000 ); // => 255
5
18
  @function k-color-red( $color ) {
6
19
  @return red( $color );
7
20
  }
8
21
 
22
+ /// Returns the green channel of a color.
23
+ /// @param {Color} $color - The color to get the green channel for.
24
+ /// @return {Number} - The green channel of the color.
25
+ ///
26
+ /// @example scss - Usage
27
+ /// @debug k-color-green( #00ff00 ); // => 255
9
28
  @function k-color-green( $color ) {
10
29
  @return green( $color );
11
30
  }
12
31
 
32
+ /// Returns the blue channel of a color.
33
+ /// @param {Color} $color - The color to get the blue channel for.
34
+ /// @return {Number} - The blue channel of the color.
35
+ ///
36
+ /// @example scss - Usage
37
+ /// @debug k-color-blue( #0000ff ); // => 255
13
38
  @function k-color-blue( $color ) {
14
39
  @return blue( $color );
15
40
  }
16
41
 
42
+ /// Returns the hue of a color.
43
+ /// @param {Color} $color - The color to get the hue for.
44
+ /// @return {Number} - The hue of the color.
45
+ ///
46
+ /// @example scss - Usage
47
+ /// @debug k-color-hue( #e1d7d2 ); // => 20deg
17
48
  @function k-color-hue( $color ) {
18
49
  @return hue( $color );
19
50
  }
20
51
 
52
+ /// Returns the saturation of a color.
53
+ /// @param {Color} $color - The color to get the saturation for.
54
+ /// @return {Number} - The saturation of the color.
55
+ ///
56
+ /// @example scss - Usage
57
+ /// @debug k-color-saturation( #e1d7d2 ); // => 20%
21
58
  @function k-color-saturation( $color ) {
22
59
  @return saturation( $color );
23
60
  }
24
61
 
62
+ /// Returns the lightness of a color.
63
+ /// @param {Color} $color - The color to get the lightness for.
64
+ /// @return {Number} - The lightness of the color.
65
+ ///
66
+ /// @example scss - Usage
67
+ /// @debug k-color-lightness( #e1d7d2 ); // => 80%
25
68
  @function k-color-lightness( $color ) {
26
69
  @return lightness( $color );
27
70
  }
28
71
 
72
+ /// Returns a color that is a mix of two colors.
73
+ /// @param {Color} $color1 - The first color.
74
+ /// @param {Color} $color2 - The second color.
75
+ /// @param {Number} $weight - The weight of the first color in the mix.
76
+ /// @return {Color} - The mixed color.
77
+ ///
78
+ /// @example scss - Usage
79
+ /// @debug k-color-mix( #f00, #00f ); // => #800080
29
80
  @function k-color-mix( $color1, $color2, $weight: 50% ) {
30
81
  @return mix( $color1, $color2, $weight );
31
82
  }
32
83
 
84
+ /// Makes a color darker by decreasing its lightness.
85
+ /// @param {Color} $color - The color to darken.
86
+ /// @param {Number} $amount - The amount to darken the color.
87
+ /// @return {Color} - The darkened color.
88
+ ///
89
+ /// @example scss - Usage
90
+ /// @debug k-color-darken( #f00, 10% ); // => #e60000
33
91
  @function k-color-darken( $color, $amount) {
34
92
  @return darken( $color, $amount );
35
93
  }
36
94
 
95
+ /// Makes a color lighter by increasing its lightness.
96
+ /// @param {Color} $color - The color to lighten.
97
+ /// @param {Number} $amount - The amount to lighten the color.
98
+ /// @return {Color} - The lightened color.
99
+ ///
100
+ /// @example scss - Usage
101
+ /// @debug k-color-lighten( #f00, 10% ); // => #ff1a1a
37
102
  @function k-color-lighten( $color, $amount) {
38
103
  @return lighten( $color, $amount );
39
104
  }
40
105
 
106
+ /// Increases or decreases the hue of a color.
107
+ /// @param {Color} $color - The color to adjust the hue for.
108
+ /// @param {Number} $degrees - The amount to adjust the hue.
109
+ /// @return {Color} - The adjusted color.
110
+ ///
111
+ /// @example scss - Usage
112
+ /// @debug k-color-adjust-hue( #f00, 10deg ); // => #ff1a00
41
113
  @function k-color-adjust-hue( $color, $degrees ) {
42
114
  @return adjust-hue( $color, $degrees );
43
115
  }
44
116
 
117
+ /// Increases the saturation of a color.
118
+ /// @param {Color} $color - The color to saturate.
119
+ /// @param {Number} $amount - The amount to saturate the color.
120
+ /// @return {Color} - The saturated color.
121
+ ///
122
+ /// @example scss - Usage
123
+ /// @debug k-color-saturate( #f00, 10% ); // => #ff3333
45
124
  @function k-color-saturate( $color, $amount ) {
46
125
  @return saturate( $color, $amount );
47
126
  }
48
127
 
128
+ /// Decreases the saturation of a color.
129
+ /// @param {Color} $color - The color to desaturate.
130
+ /// @param {Number} $amount - The amount to desaturate the color.
131
+ /// @return {Color} - The desaturated color.
132
+ ///
133
+ /// @example scss - Usage
134
+ /// @debug k-color-desaturate( #f00, 10% ); // => #e60000
49
135
  @function k-color-desaturate( $color, $amount ) {
50
136
  @return desaturate( $color, $amount );
51
137
  }
52
138
 
139
+ /// Returns a gray color with the same lightness as the input color.
140
+ /// @param {Color} $color - The color to convert to grayscale.
141
+ /// @return {Color} - The grayscale color.
142
+ ///
143
+ /// @example scss - Usage
144
+ /// @debug k-color-grayscale( #f00 ); // => #808080
53
145
  @function k-color-grayscale( $color ) {
54
146
  @return grayscale( $color );
55
147
  }
56
148
 
149
+ /// Returns the RGB complement of a color. This identical to adjusting the hue
150
+ /// by 180 degrees.
151
+ /// @param {Color} $color - The color to get the complement for.
152
+ /// @return {Color} - The complement color.
153
+ ///
154
+ /// @example scss - Usage
155
+ /// @debug k-color-complement( #f00 ); // => #00ffff
57
156
  @function k-color-complement( $color ) {
58
157
  @return complement( $color );
59
158
  }
60
159
 
160
+ /// Returns the inverse of a color.
161
+ /// @param {Color} $color - The color to invert.
162
+ /// @return {Color} - The inverted color.
163
+ ///
164
+ /// @example scss - Usage
165
+ /// @debug k-color-invert( #f00 ); // => #00ffff
61
166
  @function k-color-invert( $color ) {
62
167
  @return invert( $color );
63
168
  }
@@ -7,7 +7,11 @@ $_kendo-svg-escaped-characters: (
7
7
  (")", "%29")
8
8
  ) !default;
9
9
 
10
- // See https://codepen.io/kevinweber/pen/dXWoRw
10
+ /// Escapes SVG characters in a string
11
+ /// @param {String} $string - The string to escape
12
+ /// @return {String} - The escaped string
13
+ ///
14
+ /// @link https://codepen.io/kevinweber/pen/dXWoRw
11
15
  @function k-escape-svg($string) {
12
16
  @if k-string-index($string, "data:image/svg+xml") {
13
17
  @each $char, $encoded in $_kendo-svg-escaped-characters {
@@ -30,6 +34,9 @@ $_kendo-escape-class-name: (
30
34
  "/": "\\/"
31
35
  );
32
36
 
37
+ /// Escapes special characters in a class name
38
+ /// @param {String} $text - The string to escape
39
+ /// @return {String} - The escaped string
33
40
  @function k-escape-class-name( $text ) {
34
41
  $_text: $text;
35
42