{"id":936,"date":"2025-05-10T22:39:11","date_gmt":"2025-05-10T22:39:11","guid":{"rendered":"https:\/\/pensplace.co.uk\/?post_type=wpdmpro&#038;p=936"},"modified":"2025-05-10T22:39:11","modified_gmt":"2025-05-10T22:39:11","slug":"material-design","status":"publish","type":"wpdmpro","link":"https:\/\/pensplace.co.uk\/index.php\/download\/material-design\/","title":{"rendered":"Material Design"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"361\" src=\"https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/image-32-1024x361.png\" alt=\"\" class=\"wp-image-937\" srcset=\"https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/image-32-1024x361.png 1024w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/image-32-300x106.png 300w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/image-32-768x271.png 768w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/image-32-1536x542.png 1536w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/image-32.png 1700w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Meta Data<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Column Name<\/strong><\/td><td><strong>Data<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>Name<\/td><td>Material Design<\/td><td>Name of the Pack<\/td><\/tr><tr><td>Shortcode<\/td><td>material<\/td><td>Shortcode of the pack used for filtering<\/td><\/tr><tr><td>Github Link<\/td><td><a href=\"https:\/\/github.com\/Templarian\/MaterialDesign\">https:\/\/github.com\/Templarian\/MaterialDesign<\/a><\/td><td>Github Repository Link<\/td><\/tr><tr><td>Total<\/td><td>7447<\/td><td>Total Number of Icons<\/td><\/tr><tr><td>Author<\/td><td>Templarian<\/td><td>Author of the Icon Pack<\/td><\/tr><tr><td>Author Link<\/td><td><a href=\"https:\/\/github.com\/Templarian\">Templarian (Austin Andrews)<\/a><\/td><td>Link to the Author<\/td><\/tr><tr><td>Icon SVG<\/td><td>&lt;svg <em>xmlns<\/em>=&#8217;http:\/\/www.w3.org\/2000\/svg&#8217; <em>viewBox<\/em>=&#8217;0 0 156 156&#8217;>&lt;g <em>transform<\/em>=&#8217;translate(-382 -1985)&#8217;>&lt;rect <em>width<\/em>=&#8217;156&#8242; <em>height<\/em>=&#8217;156&#8242; <em>fill<\/em>=&#8217;#2196f3&#8242; <em>data-name<\/em>=&#8217;Rectangle 11&#8242; <em>rx<\/em>=&#8217;20&#8217; <em>transform<\/em>=&#8217;translate(382 1985)&#8217;\/>&lt;path <em>fill<\/em>=&#8217;#fff&#8217; <em>d<\/em>=&#8217;M399.3 2002.3h36.42v12.14h48.56v-12.14h36.42v36.42h-12.14v48.56h12.14v36.42h-36.42v-12.14h-48.56v12.14H399.3v-36.42h12.14v-48.56H399.3v-36.42m84.98 36.42v-12.14h-48.56v12.14h-12.14v48.56h12.14v12.14h48.56v-12.14h12.14v-48.56h-12.14m-72.84-24.28v12.14h12.14v-12.14h-12.14m84.98 0v12.14h12.14v-12.14h-12.14m-84.98 84.98v12.14h12.14v-12.14h-12.14m84.98 0v12.14h12.14v-12.14Z&#8217;\/>&lt;\/g>&lt;\/svg><\/td><td>SVG for the Pack Logo, or<\/td><\/tr><tr><td>Logo<\/td><td><\/td><td>PNG or JPG for the Pack Logo<\/td><\/tr><tr><td>Icons CSV<\/td><td><\/td><td>CSV FIle of the Icons<\/td><\/tr><tr><td>Has Categories<\/td><td>Yes<\/td><td>Are categories used to group icons within a pack.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Transformations<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Transform From<\/strong><\/td><td><strong>Transform To<\/strong><\/td><\/tr><tr><td>1<\/td><td>&#8216; \/>&lt;\/svg><\/td><td>&#8216; fill='{{IconColor}}&#8217;\/>&lt;\/svg><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">PowerShell script to create csv from repository.<\/h2>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-powershell\" data-line=\"\">$counter = 1\n$file = &quot;D:\\Appz\\IconManager\\Packs\\CSV\\material-20250429.csv&quot;\nwrite-host &quot;Material Design Icons&quot;\n$setName = &quot;material&quot;\n$path = &quot;D:\\Appz\\IconManager\\Packs\\MaterialDesign\\svg\\*.svg&quot;\n$icons = get-childitem -File $path -recurse\n\nForEach($icon in $icons){\n    [string]$svg = Get-Content $icon.FullName;\n    [array]$split = $icon.Name.Split(&#039;-&#039;)\n    [string]$path = $icon.Name.Split(&#039;-&#039;)[0]\n    $TextInfo = (Get-Culture).TextInfo\n    $num = $split.Count\n\n    If( $num= 0){\n        $string = $icon.Name.Replace(&quot;.svg&quot;,&quot;&quot;).Replace(&quot;-&quot;,&quot; &quot;).Trim()\n    }else{\n        $string = $icon.Name.Replace(&quot;.svg&quot;,&quot;&quot;).Replace(&quot;-&quot;,&quot; &quot;).Replace($path,&quot;&quot;).Trim()\n    }\n    \n    # Capitalize the first letter of each word\n    $name = $TextInfo.ToTitleCase($string.ToLower())\n    $objResults = New-Object PSObject -Property @{\n        pp_id = $counter;\n        pp_name =  $name \n        pp_svg = $svg.Replace(&quot;&quot;&quot;&quot;,&quot;&#039;&quot;);\n        pp_pack = $setName\n        pp_size = &quot;24&quot;\n        pp_category = $path.Replace(&quot;.svg&quot;,&quot;&quot;).Trim()\n    }\n    $counter++\n    $objResults | Export-CSV $file -Append -NoTypeInformation -force\n}\nwrite-host &quot;Finished&quot;<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Meta Data Column Name Data Description Name Material Design Name of the Pack Shortcode material Shortcode of the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":""},"wpdmcategory":[47],"class_list":["post-936","wpdmpro","type-wpdmpro","status-publish","hentry","wpdmcategory-icon-packs"],"_links":{"self":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/wpdmpro\/936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/wpdmpro"}],"about":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/types\/wpdmpro"}],"author":[{"embeddable":true,"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=936"}],"wp:attachment":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=936"}],"wp:term":[{"taxonomy":"wpdmcategory","embeddable":true,"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/wpdmcategory?post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}