# brand-x icon

Brand x. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/brand-x

- Category: Brands
- Use it for: brand x, twitter, x twitter, x logo, twitter logo
- Tags: brand, logo, social
- Family: brand-x-square
- Component name: BrandXIcon
- Added: 2026-11-21
- Since: version 0.8.0
- npm: `import { BrandXIcon } from '@gentleface/react';` (@gentleface/react 0.8.0)
- Changed: 2026-11-22 (released in 0.8.0)

## Alternatives

- `brand-x-square`: the mark in its square, as an app icon or in a row of profile links

## Trademark

X logo, a trademark of its owner. Built from Wikimedia Commons File:X_logo_2023.svg.

Brand icons (brand-*) are trademarks of their respective owners. They are included only to represent those companies, products or services, for example a link to an account or a "sign in with" button. Their inclusion implies no endorsement by, or affiliation with, the owners. The MIT licence covers our drawings only and grants no trademark rights: using a brand icon is subject to that brand's guidelines, which you must follow. To have a mark removed, write to https://gentleface.com/feedback.

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

- line-round: https://gentleface.com/svg/line-round/16/brand-x.svg · PNG https://gentleface.com/png/line-round/16/brand-x.png · https://gentleface.com/png/line-round/32/brand-x.png · https://gentleface.com/png/line-round/48/brand-x.png
- line-soft: https://gentleface.com/svg/line-soft/16/brand-x.svg · PNG https://gentleface.com/png/line-soft/16/brand-x.png · https://gentleface.com/png/line-soft/32/brand-x.png · https://gentleface.com/png/line-soft/48/brand-x.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/brand-x.svg · PNG https://gentleface.com/png/line-sharp/16/brand-x.png · https://gentleface.com/png/line-sharp/32/brand-x.png · https://gentleface.com/png/line-sharp/48/brand-x.png
- solid-round: https://gentleface.com/svg/solid-round/16/brand-x.svg · PNG https://gentleface.com/png/solid-round/16/brand-x.png · https://gentleface.com/png/solid-round/32/brand-x.png · https://gentleface.com/png/solid-round/48/brand-x.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/brand-x.svg · PNG https://gentleface.com/png/solid-soft/16/brand-x.png · https://gentleface.com/png/solid-soft/32/brand-x.png · https://gentleface.com/png/solid-soft/48/brand-x.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/brand-x.svg · PNG https://gentleface.com/png/solid-sharp/16/brand-x.png · https://gentleface.com/png/solid-sharp/32/brand-x.png · https://gentleface.com/png/solid-sharp/48/brand-x.png

The SVG of every style: https://gentleface.com/icons/brand-x.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z"/></svg>
```

### React

```tsx
// Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x
import type { SVGProps } from 'react';

export function BrandXIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/brand-x.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x. Takes the text color. */
.icon-brand-x {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#brand-x"/></svg>
```

### SwiftUI

```swift
// Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x
import SwiftUI

struct BrandXIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 9.388, y: 7.112))
        p.addLine(to: CGPoint(x: 14.5, y: 13.87))
        p.addLine(to: CGPoint(x: 10.489, y: 13.87))
        p.addLine(to: CGPoint(x: 7.348, y: 9.763))
        p.addLine(to: CGPoint(x: 3.753, y: 13.87))
        p.addLine(to: CGPoint(x: 1.76, y: 13.87))
        p.addLine(to: CGPoint(x: 6.395, y: 8.542))
        p.addLine(to: CGPoint(x: 1.5, y: 2.13))
        p.addLine(to: CGPoint(x: 5.611, y: 2.13))
        p.addLine(to: CGPoint(x: 8.448, y: 5.882))
        p.addLine(to: CGPoint(x: 11.771, y: 2.13))
        p.addLine(to: CGPoint(x: 13.764, y: 2.13))
        p.addLine(to: CGPoint(x: 9.388, y: 7.112))
        p.closeSubpath()
        p.move(to: CGPoint(x: 3.844, y: 3.257))
        p.addLine(to: CGPoint(x: 11.073, y: 12.7))
        p.addLine(to: CGPoint(x: 12.178, y: 12.7))
        p.addLine(to: CGPoint(x: 5.03, y: 3.257))
        p.addLine(to: CGPoint(x: 3.844, y: 3.257))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// BrandXIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val BrandXIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "brand-x", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(BrandXIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_brand_x.xml · Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M9.388 7.112L14.5 13.87L10.489 13.87L7.348 9.763L3.753 13.87L1.76 13.87L6.395 8.542L1.5 2.13L5.611 2.13L8.448 5.882L11.771 2.13L13.764 2.13L9.388 7.112ZM3.844 3.257L11.073 12.7L12.178 12.7L5.03 3.257L3.844 3.257Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "brand-x" (line-round), MIT. https://gentleface.com/icons/brand-x
import 'package:flutter/widgets.dart';

class BrandXIcon extends StatelessWidget {
  const BrandXIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _BrandXIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _BrandXIconPainter extends CustomPainter {
  _BrandXIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(9.388, 7.112)
      ..lineTo(14.5, 13.87)
      ..lineTo(10.489, 13.87)
      ..lineTo(7.348, 9.763)
      ..lineTo(3.753, 13.87)
      ..lineTo(1.76, 13.87)
      ..lineTo(6.395, 8.542)
      ..lineTo(1.5, 2.13)
      ..lineTo(5.611, 2.13)
      ..lineTo(8.448, 5.882)
      ..lineTo(11.771, 2.13)
      ..lineTo(13.764, 2.13)
      ..lineTo(9.388, 7.112)
      ..close()
      ..moveTo(3.844, 3.257)
      ..lineTo(11.073, 12.7)
      ..lineTo(12.178, 12.7)
      ..lineTo(5.03, 3.257)
      ..lineTo(3.844, 3.257)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_BrandXIconPainter old) => old.color != color;
}
```
