File Type Ocaml
The file-type-ocaml icon represents an OCaml source file, which is a functional programming language.
Exports at 24 × 24 px
Code
File Type Ocaml in your framework
In any framework. Customize it above, and the code follows.
export const FileTypeOcamlIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32" {...props}>
<defs><linearGradient id="SVGIObcRrrh" x1="-745.623" x2="-745.623" y1="-92.76" y2="-85.108" gradientTransform="translate(758 113.28)" gradientUnits="userSpaceOnUse"><stop offset="0" stopColor="#f29104"/><stop offset="1" stopColor="#ec6813"/></linearGradient><linearGradient id="SVGpQFa7cuA" x1="-741.99" x2="-741.99" y1="-109.477" y2="-85.099" href="#SVGIObcRrrh"/><linearGradient id="SVGlkbp2bJc" x1="-752.111" x2="-752.111" y1="-93.918" y2="-85.284" href="#SVGIObcRrrh"/></defs><path fill="#fff" d="M16.571 25.246a4.3 4.3 0 0 0-.039-.709c-.059-.2-.2-.217-.3-.374a3.5 3.5 0 0 1-.532-1.477c-.02-.453-.2-.886-.217-1.339c-.02-.217.02-.453 0-.669a2 2 0 0 0-.039-.315a1 1 0 0 0-.039-.2l.059-.138a2.7 2.7 0 0 1 .65-.039c.256 0 .512.02.768.02a8 8 0 0 0 1.536-.059a3.7 3.7 0 0 0 1.949-.847a4.95 4.95 0 0 0 1.536-2.008c.177-.394.177-1.083.551-1.4c.433-.374 1.181-.335 1.693-.571a1.2 1.2 0 0 1 .807-.138c.217.039.63.315.729-.059c-.079-.039-.1-.138-.138-.177c.414-.039 0-1-.158-1.2A2.23 2.23 0 0 0 24.25 13a3.5 3.5 0 0 0-1.536-.217c-.886.177-.827-.335-1.339-.335c-.63 0-1.733.039-1.93.63a1.5 1.5 0 0 1-.335.512c-.138.177.02.354-.039.571c-.079.217-.177.985-.276 1.26c-.177.453-.394 1.024-.788 1.024a3.15 3.15 0 0 1-1.437-.079c-.276-.1-.729-.256-.945-.335c-1.024-.433-1.2-.906-1.2-.906a3 3 0 0 1-.512-.866c-.118-.414-.315-.768-.394-1s-.3-.591-.453-.985a2.7 2.7 0 0 0-.709-1.063c-.315-.276-.61-.729-1.26-.591a1.64 1.64 0 0 0-.866.315c-.217.177-.3.571-.492.886c-.118.177-.315.709-.512 1.162a1.9 1.9 0 0 1-.335.65c-.118.079-.256.2-.414.138a.9.9 0 0 1-.315-.2a5.3 5.3 0 0 1-.709-1.122a11 11 0 0 0-.788-1.241a1.02 1.02 0 0 0-.985-.551c-1.024 0-1.1.571-1.556 1.418a5.6 5.6 0 0 1-.669 1.4c-.236.256-.945 1.339-1.457 1.516H2v7.62c.039-.1.059-.2.1-.276c.2-.414.65-.807.906-1.221a3.5 3.5 0 0 0 .374-.709a3.7 3.7 0 0 1 .236-.709a.8.8 0 0 1 .571-.335c.354-.059.65.492 1.083.709c.2.079 1.063.394 1.319.453c.433.1.906.2 1.339.276c.236.039.453.079.709.1a7 7 0 0 1 1.083.1a2.28 2.28 0 0 0-.807 1.221c-.158.433-.276.925-.473 1.339c-.217.473-.669.669-.61 1.221a2.7 2.7 0 0 1 .02.689a4 4 0 0 1-.217.689c-.1.315-.217 1.359-.354 1.674l.906-.118a11 11 0 0 0 .215-1.326a3.7 3.7 0 0 1 .729-1.28c.335-.374.315-.847.512-1.3a13 13 0 0 1 .768-1.3c.492-.807.807-1.812 1.851-2.028a3.3 3.3 0 0 1 1.024.709a4.5 4.5 0 0 1 .886 1.1a13 13 0 0 1 .886 2.678a1.23 1.23 0 0 0 .394.709a5.5 5.5 0 0 1 .433.729c.079.177.2.571.3.788a6 6 0 0 1 .315.827l.847-.02h.02v-.02a9.8 9.8 0 0 1-.794-2.734"/><path fill="url(#SVGIObcRrrh)" d="M16.217 27.235c-.1-.2-.217-.61-.3-.788a5.5 5.5 0 0 0-.433-.729a1.12 1.12 0 0 1-.394-.709a12.5 12.5 0 0 0-.886-2.678a4.5 4.5 0 0 0-.886-1.1a3.3 3.3 0 0 0-1.024-.709c-1.044.2-1.359 1.221-1.851 2.028a13 13 0 0 0-.768 1.3c-.2.433-.177.925-.512 1.3a3.4 3.4 0 0 0-.729 1.28c-.039.1-.118 1.083-.217 1.319l1.536-.1c1.437.1 1.024.65 3.249.532l3.525-.118a6 6 0 0 0-.31-.828"/><path fill="url(#SVGpQFa7cuA)" d="M26.456 3.8H5.544A3.52 3.52 0 0 0 2.02 7.328v7.679c.512-.177 1.221-1.26 1.457-1.516a6 6 0 0 0 .669-1.4c.453-.827.532-1.418 1.556-1.418a1.02 1.02 0 0 1 .985.551a9.6 9.6 0 0 1 .788 1.241a5 5 0 0 0 .709 1.122a2 2 0 0 0 .315.2c.158.059.3-.059.414-.138A1.9 1.9 0 0 0 9.246 13c.2-.453.394-.965.512-1.162c.2-.315.276-.709.492-.886a1.6 1.6 0 0 1 .866-.315c.65-.138.945.315 1.26.591a3.3 3.3 0 0 1 .709 1.063c.158.394.354.768.453.985a9 9 0 0 1 .394 1a3.7 3.7 0 0 0 .512.866s.177.473 1.2.906a9 9 0 0 0 .945.335a3.15 3.15 0 0 0 1.437.079c.394 0 .61-.571.788-1.024c.1-.276.217-1.044.276-1.26s-.1-.374.039-.571c.158-.217.256-.236.335-.512c.2-.61 1.3-.63 1.93-.63c.532 0 .453.512 1.339.335a3.24 3.24 0 0 1 1.536.217a2.23 2.23 0 0 1 1.142.551c.158.2.571 1.162.158 1.2c.039.039.079.138.138.177c-.1.374-.492.1-.729.059a1.2 1.2 0 0 0-.807.138c-.512.217-1.241.2-1.693.571c-.374.315-.374 1-.551 1.4a5.2 5.2 0 0 1-1.536 2.008a3.9 3.9 0 0 1-1.949.847a8 8 0 0 1-1.536.059c-.256-.02-.512-.02-.768-.02c-.158 0-.669-.02-.65.039l-.059.138a.7.7 0 0 0 .039.2c.02.118.02.217.039.315c0 .217-.02.453 0 .669c.02.453.2.866.217 1.339a3.26 3.26 0 0 0 .532 1.477c.1.158.236.177.3.374a4 4 0 0 1 .039.709a9.7 9.7 0 0 0 .827 2.757v.02c.512-.079 1.044-.276 1.713-.374c1.241-.177 2.954-.1 4.056-.2c2.8-.256 4.312 1.142 6.813.571V7.328A3.55 3.55 0 0 0 26.456 3.8M16.02 20.343"/><path fill="url(#SVGlkbp2bJc)" d="M8.478 23.573c.2-.433.315-.906.473-1.339a2.28 2.28 0 0 1 .807-1.221a7 7 0 0 0-1.083-.1a8 8 0 0 1-.709-.1a27 27 0 0 1-1.339-.276c-.256-.059-1.142-.374-1.319-.453c-.453-.2-.748-.768-1.083-.709a.8.8 0 0 0-.571.335a3.7 3.7 0 0 0-.236.709c-.1.236-.256.473-.374.709a12 12 0 0 0-.925 1.2c-.039.1-.059.2-.1.3v4.745a5.4 5.4 0 0 1 .729.158a8.8 8.8 0 0 0 4.371.354l.177-.02c.138-.315.256-1.359.354-1.674a6 6 0 0 0 .217-.689a2.7 2.7 0 0 0-.02-.689c-.038-.571.415-.768.631-1.24"/>
</svg>
);VSCode Icons
More like it
Icons that share its tags, in the same style.
Search VSCode Icons
Skip the copy and paste. With Pro, your AI agent finds and installs any VSCode Icons icon from a prompt.
Get ProTags
Browse by tag
File Type Ocaml is tagged file and functional programming. Related tags follow; each opens its icons from every library.
Pricing
VSCode Icons MCP, with Pro
Ask for File Type Ocaml or any of 1,426 VSCode Icons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the File Type Ocaml icon means and where it's used, then how to install, style, label and license it.
The file-type-ocaml icon represents an OCaml source file, which is a functional programming language.
OCaml is a statically typed, multi-paradigm language used for developing a wide range of applications.
Developers use OCaml to create efficient and scalable software.
File Type Ocaml is one of 1,426 icons in VSCode Icons, made by Roberto Huertas and released under MIT. It is drawn on a 32 × 32 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds FileTypeOcamlIcon to components/icons/vscode-icons-file-type-ocaml.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed FileTypeOcamlIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the File Type Ocaml icon, or any of 1,426 VSCode Icons icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 32 × 32 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="File Type Ocaml", so screen readers say what it does.
Yes. FileTypeOcamlIcon passes every SVG prop to the svg element, so <FileTypeOcamlIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. MIT allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: MIT only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming VSCode Icons, Roberto Huertas and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
Its tags are file and functional programming. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for File Type Ocaml in another set.
VSCode Icons draws many icons in several styles: Light next to the default. Open the library and pick a style above the grid to see File Type Ocaml's siblings in it.
4.9 out of 5 from 150+ developers
Install File Type Ocaml from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro