Skip to content

This project demonstrates how the currentColor value can be applied to SVG attributes allowing SVG elements to inherit the CSS color property defined on the nearest parent element.

License

Notifications You must be signed in to change notification settings

georgewpark/SVG-Theming-with-currentColor

Repository files navigation

SVG Theming with currentColor

This project demonstrates how the currentColor value can be applied to SVG attributes allowing SVG elements to inherit the CSS color property defined on the nearest parent element.

SVG Theming with currentColor Demo

Live Demo

A live demo is available on CodePen and Netlify.

License

This project is licensed under the MIT License - see the license.md file for details.

Project Setup

From the root directory, install project dependencies by running npm install from the terminal.

Build the files and start the local dev server by running npm run dev from the terminal. This should open the dev site automatically at http://localhost:3000/.

You can build the files without starting the dev server by running npm run build from the terminal to compile the development build or npm run prod to compile the production build.

About

This project demonstrates how the currentColor value can be applied to SVG attributes allowing SVG elements to inherit the CSS color property defined on the nearest parent element.

Topics

Resources

License

Stars

Watchers

Forks