Sass Get Function

Developer
Size
2,155 Kb
Views
22,264

How do I make an sass get function?

Function to dig into a multi-level map in Sass. What is a sass get function? How do you make a sass get function? This script and codes were developed by Luke Watts on 14 August 2022, Sunday.

Sass Get Function Previews

Sass Get Function - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sass Get Function</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>
</body>
</html>

Sass Get Function - Script Codes CSS Codes

$primary-theme: ( font: ( family: ( serif: (Georgia, Times New Roman, serif), sans: (Verdana, Arial, sans-serif), code: (Monaco, Consolas, Courier New, monospace) ), size: ( small: 0.75em, normal: 1em, large: 1.33em, x-large: 2em ) ), color: ( blue: ( default: hsl(210, 50%, 50%), light: hsl(210, 50%, 75%), dark: hsl(210, 50%, 25%) ) )
);
@function get($map, $arglist...) { $m: $map; @each $item in $arglist { $m: map-get($m, $item); } @return $m;
}
@debug map-get(map-get(map-get($primary-theme, font), family), serif);
@debug get($primary-theme, font, family, serif);
Sass Get Function - Script Codes
Sass Get Function - Script Codes
Home Page Home
Developer Luke Watts
Username lukewatts
Uploaded August 14, 2022
Rating 3
Size 2,155 Kb
Views 22,264
Do you need developer help for Sass Get Function?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Luke Watts (lukewatts) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!