1
0
Fork 0
freesewing/sites/dev/docs/reference/packages/react/components/logo
joostdecock 22a89f12d3 feat(dev): Added react docs for Pattern + refactor
This adds support for not only documenating components, but also
constants and functions that may be exported next to components.
2025-05-25 16:29:57 +02:00
..
_examples.js [react] feat: Added docs for components/Logo 2025-05-24 17:52:31 +02:00
readme.mdx feat(dev): Added react docs for Pattern + refactor 2025-05-25 16:29:57 +02:00

---
title: Logo
---

import { DocusaurusDoc } from '@freesewing/react/components/Docusaurus'
import { ComponentDocs } from '@site/src/components/component-docs.js'
import * as jsdoc from '@site/prebuild/jsdoc/components.logo.mjs'
import { FreeSewingLogoExample } from './_examples.js'

<DocusaurusDoc>

- [Components](#components)

## Components

The **Logo** component family provides the following components:

- [FreeSewingLogo](#freesewinglogo)

### FreeSewingLogo

:::tip Understanding the colors of the logo
The logo will always be filled with `currentColor` which is a specific keyword
that will be substituted with whatever the current text color is.

Furthermore, two logos will be stacked on top of each other.
The one filled with `currentColor` sits on top, and below it sits one that is
not filled, but stroked with `var(--background-base-100)`.

This ensures that if the logo is placed on a background with low contrast, it
stands out On the default background, the stroked version will be the same
color, so it will be invisible.

You can also set an explicit stroke color with the `stroke` prop, or control
`currentColor` by setting the `className` prop.
:::

<ComponentDocs docs={jsdoc.jsdocFreeSewingLogo} example={FreeSewingLogoExample} />

</DocusaurusDoc>