Rails
The rails icon represents Ruby on Rails, a popular web development framework written in the Ruby programming language.
Exports at 68 × 24 px
Code
Rails in your framework
In any framework. Customize it above, and the code follows.
export const RailsIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="68" height="24" viewBox="0 0 512 180" {...props}>
<g fill="#C00"><path d="M219.115 150.634s22.57-1.935 22.57-31.081s-27.341-31.855-27.341-31.855h-49.266v91.953h24.762V157.47l21.408 22.182h36.627zm-9.543-18.83H189.84v-21.021h19.86s5.546 2.063 5.546 10.446s-5.674 10.576-5.674 10.576m93.243-43.461h-25.149c-17.926 0-23.987 16.25-23.987 23.987v67.321h25.148v-16.12h23.601v16.12h24.375v-67.32c0-19.604-17.797-23.988-23.988-23.988m-.387 49.136h-23.73v-22.311s0-5.03 7.867-5.03h8.641c6.964 0 7.093 5.03 7.093 5.03v22.311zm35.853-49.136h26.18v91.308h-26.18zm62.936 67.707V88.343h-26.051v91.308h61.259v-23.6zm43.849.258v23.343h42.172c8.641 0 23.472-6.319 23.988-23.988v-9.027c0-15.09-12.38-23.988-23.988-23.988h-21.021v-10.833h41.656V88.343h-39.98c-10.317 0-24.117 8.511-24.117 24.374v8.125c0 15.863 13.67 23.988 24.117 23.988c29.018.13-6.964 0 19.861 0v11.35z"/><path d="M9.028 179.522h101.884s-19.474-88.858 45.01-124.84c14.057-6.835 58.808-32.37 132.062 21.796c2.321-1.935 4.514-3.483 4.514-3.483S225.435 6.061 150.763 13.542c-37.53 3.353-83.7 37.529-110.783 82.668c-27.083 45.138-30.952 83.312-30.952 83.312m212.28-158.758l.516-8.641c-1.161-.645-4.385-2.193-12.51-4.514l-.516 8.512a207 207 0 0 1 12.51 4.643m-12.252 27.34l-.516 8.126q6.384.194 12.768 1.547l.516-7.996c-4.385-.902-8.641-1.418-12.768-1.676M161.338 7.868h1.29L160.048 0q-5.997 0-12.38.774l2.45 7.609c3.74-.387 7.48-.516 11.22-.516m6.19 47.46l2.967 8.899c3.74-1.806 7.48-3.353 11.22-4.514l-2.837-8.512a94 94 0 0 0-11.35 4.127m-58.55-33.918l-5.804-8.9c-3.224 1.677-6.578 3.483-10.06 5.546l5.933 9.028c3.353-2.063 6.577-3.998 9.93-5.674m26.438 58.035l6.19 9.285c2.192-3.224 4.772-6.19 7.61-9.156l-5.804-8.77a71.4 71.4 0 0 0-7.996 8.64m-18.7 41.527l10.446 8.254q.773-7.545 2.708-15.089l-9.286-7.351c-1.676 4.772-2.837 9.543-3.869 14.186M60.226 59.71l-9.157-7.995c-3.353 3.224-6.577 6.448-9.544 9.672l9.93 8.512c2.71-3.482 5.675-6.964 8.77-10.188m-38.948 57.65l-14.832-5.417C3.998 117.489 1.29 123.938 0 127.42l14.831 5.416c1.677-4.385 4.385-10.704 6.449-15.476m93.5 36.368c.259 6.835.904 12.38 1.548 16.25l15.477 5.545c-1.161-5.03-2.322-10.704-3.096-16.765z"/></g>
</svg>
);Other libraries
Rails in 3 more libraries
Each library draws it its own way. Open one to compare.
SVG Logos
More like it
Icons that share its tags, in the same style.
Search SVG Logos
Skip the copy and paste. With Pro, your AI agent finds and installs any SVG Logos icon from a prompt.
Get ProTags
Browse by tag
Rails is tagged web development, framework, software development and 2 more. Related tags follow; each opens its icons from every library.
Pricing
SVG Logos MCP, with Pro
Ask for Rails or any of 2,063 SVG Logos 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 Rails icon means and where it's used, then how to install, style, label and license it.
The rails icon represents Ruby on Rails, a popular web development framework written in the Ruby programming language. Rails is known for its simplicity, flexibility, and ease of use.
Rails is commonly used in web development for building web applications. It is used by developers to create scalable and maintainable software systems.
From a UX perspective, the rails icon communicates a sense of web development and programming. It helps users understand that the functionality or interface is related to web development or software development.
Rails is one of 2,063 icons in SVG Logos, made by Gil Barbara and released under CC0. It is drawn on a 512 × 180 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 RailsIcon to components/icons/logos-rails.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 RailsIcon 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 Rails icon, or any of 2,063 SVG Logos 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 512 × 180 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="Rails", so screen readers say what it does.
Yes. RailsIcon passes every SVG prop to the svg element, so <RailsIcon 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.
CC0 puts the icons in the public domain: use them anywhere, with no conditions. The full terms are in the license, linked on this page.
No. CC0 gives the icons to the public domain, so no credit and no notice is required. Icons installed with the shadcn CLI still start with a comment naming SVG Logos, Gil Barbara and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
3 other libraries draw an icon called Rails. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are web development, framework, software development, programming language and Ruby. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Rails in another set.
4.9 out of 5 from 150+ developers
Install Rails from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro