URL-encoder<\/a> is literally just for this \u2014 I just don’t know that it’s necessary anymore. <\/p>\n","protected":false},"excerpt":{"rendered":"Stefan Judis has a “Today I Learned” (TIL) post explaining how SVGs filters can be inlined in CSS. The idea is that CSS has the filter property which supports some built-in functions, like grayscale(100%) and stuff like that. But it can also point to a filter defined by SVG. So you could do filter: url(#my-custom-filter) […]<\/p>\n","protected":false},"author":3,"featured_media":333676,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[4],"tags":[1473,469,1476],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/01\/svg-in-css.jpg?fit=1200%2C600&ssl=1","jetpack-related-posts":[{"id":268607,"url":"https:\/\/css-tricks.com\/solved-with-css-colorizing-svg-backgrounds\/","url_meta":{"origin":333618,"position":0},"title":"Solved with CSS! Colorizing SVG Backgrounds","date":"March 30, 2018","format":false,"excerpt":"This post is the first in a series about the power of CSS. Article Series: Colorizing SVG Backgrounds (this post)Dropdown MenusLogical Styling Based On the Number of Given Elements CSS is getting increasingly powerful, and with features like CSS grid and custom properties (also known as CSS variables), we\u2019re seeing\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2018\/03\/icon-pattern.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":342164,"url":"https:\/\/css-tricks.com\/adding-shadows-to-svg-icons-with-css-and-svg-filters\/","url_meta":{"origin":333618,"position":1},"title":"Adding Shadows to SVG Icons With CSS and SVG Filters","date":"June 11, 2021","format":false,"excerpt":"Why would we need to apply shadows to SVG? Shadows are a common design feature that can help elements, like icons, stand out. They could be persistent, or applied in different states (e.g. :hover, :focus, or :active) to indicate interaction to users.Shadows happen in real life, so they can be\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/06\/svg-shadow-twitter.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":281810,"url":"https:\/\/css-tricks.com\/the-many-ways-to-change-an-svg-fill-on-hover-and-when-to-use-them\/","url_meta":{"origin":333618,"position":2},"title":"The Many Ways to Change an SVG Fill on Hover (and When to Use Them)","date":"January 31, 2019","format":false,"excerpt":"SVG is a great format for icons. Vector formats look crisp and razor sharp, no matter the size or device \u2014 and we get tons of design control when using them inline. SVG also gives us another powerful feature: the ability to manipulate their properties with CSS. As a result,\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2018\/11\/Untitled_Artwork-scaled.jpg?fit=1200%2C502&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":263756,"url":"https:\/\/css-tricks.com\/using-svg-to-create-a-duotone-image-effect\/","url_meta":{"origin":333618,"position":3},"title":"Using SVG to Create a Duotone Effect on Images","date":"December 19, 2017","format":false,"excerpt":"Creatives everywhere welcomed the 2016 new year with the spark of a colorizing technique popularized by Spotify\u2019s 2015 Year in Music website (here is last year\u2019s) which introduced bold, duotone images to their brand identity. Well, thanks to the potentially life-saving powers of SVG, we can create these Photoshop-like \u201cadjustment\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2017\/12\/svg-duotone-beforeafter.png?fit=918%2C416&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":351302,"url":"https:\/\/css-tricks.com\/grainy-gradients\/","url_meta":{"origin":333618,"position":4},"title":"Grainy Gradients","date":"September 13, 2021","format":false,"excerpt":"Browse through Dribbble or Behance, and you\u2019ll find designers using a simple technique to add texture to an image: noise. Adding noise makes otherwise solid colors or smooth gradients, such as shadows, more realistic. But despite designers\u2019 affinity for texture, noise is rarely used in web design. In this article,\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/09\/noisy-gradient.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":146140,"url":"https:\/\/css-tricks.com\/svg-filters-on-text\/","url_meta":{"origin":333618,"position":5},"title":"SVG Filters on Text","date":"August 9, 2013","format":false,"excerpt":"The following is a guest post by Chris Scott. Chris was messing around with SVG filters and how they can be applied to text. I thought this was quite interesting because SVG filters are quite a bit different than CSS filters. Arguably more powerful, as there are more of them\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/333618"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=333618"}],"version-history":[{"count":8,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/333618\/revisions"}],"predecessor-version":[{"id":333675,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/333618\/revisions\/333675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media\/333676"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=333618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=333618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=333618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}