Open science SVG icons, by Continuous Science Foundation.
Available as basic SVG icons and via first-party React and Vue libraries.
First, install @scienceicons/react
from npm:
npm install @scienceicons/react
Now each icon can be imported individually as a React component:
import { OpenAccessIcon } from '@scienceicons/react/24/solid'
function MyComponent() {
return (
<div>
<OpenAccessIcon className="h-6 w-6 text-blue-500" />
<p>...</p>
</div>
)
}
The 24x24 outline icons can be imported from @scienceicons/react/24/outline
, the 24x24 solid icons can be imported from @scienceicons/react/24/solid
, and the 20x20 solid icons can be imported from @scienceicons/react/20/solid
.
Icons use an upper camel case naming convention and are always suffixed with the word Icon
.
Browse the full list of icon names on UNPKG →
Note that this library currently only supports Vue 3.
First, install @scienceicons/vue
from npm:
npm install @scienceicons/vue
Now each icon can be imported individually as a Vue component:
<template>
<div>
<OpenAccessIcon class="w-6 h-6 text-blue-500" />
<p>...</p>
</div>
</template>
<script>
import { OpenAccessIcon } from '@scienceicons/vue/24/solid'
export default {
components: { OpenAccessIcon },
}
</script>
The 24x24 outline icons can be imported from @scienceicons/vue/24/outline
, the 24x24 solid icons can be imported from @scienceicons/vue/24/solid
, and the 20x20 solid icons can be imported from @scienceicons/vue/20/solid
.
Icons use an upper camel case naming convention and are always suffixed with the word Icon
.
Browse the full list of icon names on UNPKG →
A MyST Markdown role for science icons and an accompanying react based renderer
Copy the file scienceicons.mjs
from dist/
intoyour local mystmd
project and add it to the list of plugins in myst.yml
:
project:
plugins:
- scienceicons.mjs
To use the role simply add it to your MyST markdown like so:
Praesent mattis viverra lacus, {scienceicon}`twitter` at cursus eros hendrerit nec {scienceicon}`curvenote`.
And the relevant icons will appear inline in your text. Use the icons in links by:
... metus ut consequat [{scienceicon}`twitter`](https://x.com/@curvenote) dignissim ante sem ...
Browse the full list of icon names on UNPKG →
Tip
MyST Markdown's plugin loading system is still developing, look out for updates on easier ways to access and load plugins.
Methods for installing a bundled renderer are still in development by the MyST Markdown project and Curvenote. In the meantime you can install this package from git (git+https://github.com/<org>/<repo>.git#<branch>
) and include in your build.
This library is primarily based on heroicons, see MIT license. For other cases, license and attribution information can be found in comments within individual .svg
files.
This library is MIT licensed.