Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Project Words - Run pnpm lint:spelling:sort after adding words
abernathyca
Abramov
Adriaan
aldridged
alexbdebrie
Expand All @@ -14,6 +15,7 @@ apify
appinstalled
Applanga
applescript
Ashim
astring
atrule
autogenerating
Expand All @@ -23,6 +25,7 @@ backgrounded
Bartosz
beforeinstallprompt
Bhatt
Blockquotes
blockquotes
Bokmål
bunfig
Expand Down Expand Up @@ -82,6 +85,7 @@ Endilie
endilie
endiliey
ERRNAMETOOLONG
Español
etlua
externalwaiting
failfast
Expand All @@ -106,13 +110,15 @@ hasura
Heavener
Hideable
hideable
Hoverable
hoverable
Husain
Héctor
héllô
IANAD
Infima
infima
infimum
inlines
interactiveness
Interpolatable
Expand All @@ -137,6 +143,7 @@ Lifecycles
lifecycles
lightningcss
Linkify
longessssssssst
longlonglonglonglonglonglonglonglonglonglonglong
Lorber
lorber
Expand Down Expand Up @@ -174,11 +181,13 @@ moonwave
Nabors
Nakagawa
nand
Navbars
Navigations
navigations
navlink
newtab
Nisarag
nocaret
noflash
noicon
nojekyll
Expand Down Expand Up @@ -212,6 +221,7 @@ playbtn
Plushie
plushie
plushies
Pojer
Preapproved
precached
precaching
Expand All @@ -223,6 +233,7 @@ profilo
PRPL
Pyltsyn
QJPUV
Quaco
quasis
Quddus
Quddús
Expand All @@ -232,6 +243,7 @@ rachelnabors
Ramón
reactjs
rearchitecture
reasonml
Recma
recma
redirections
Expand Down Expand Up @@ -282,6 +294,7 @@ structurizr
styl
sublabel
sublicensable
Sublist
sublist
subsubcategory
subsubfolder
Expand Down Expand Up @@ -337,6 +350,7 @@ Vinnik
vjeux
voir
waivable
Walke
webfactory
webpackbar
webstorm
Expand Down
17 changes: 17 additions & 0 deletions website/_dogfooding/dogfooding.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import path from 'node:path';
import RecmaMDXDisplayName from 'recma-mdx-displayname';
import htmlPlayground from '../src/remark/htmlPlayground';
import {isArgosBuild} from './argosBuild';
import type {PluginConfig, Plugin} from '@docusaurus/types';
import type {Options as DocsOptions} from '@docusaurus/plugin-content-docs';
Expand Down Expand Up @@ -81,6 +82,22 @@ export const dogfoodingPluginInstances: PluginConfig[] = [
} satisfies DocsOptions,
],

[
'content-docs',
{
id: 'infima',
path: 'infima',
routeBasePath: '/infima',
editUrl: 'https://github.com/meta/docusaurus/edit/main/website/',
versions: {
current: {
noIndex: !isArgosBuild,
},
},
remarkPlugins: [htmlPlayground],
} satisfies DocsOptions,
],

[
'@docusaurus/plugin-content-blog', // Longhand
/** @type {import('@docusaurus/plugin-content-blog').Options} */
Expand Down
2 changes: 2 additions & 0 deletions website/infima/components/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: Components
position: 2
81 changes: 81 additions & 0 deletions website/infima/components/alert.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Alert

## Colors

### Primary

```html
<div class="alert alert--primary" role="alert">
<button aria-label="Close" class="clean-btn close" type="button">
<span aria-hidden="true">&times;</span>
</button>
This is a
<strong>primary</strong>
alert. You should probably pay attention to it.
</div>
```

### Secondary

```html
<div class="alert alert--secondary" role="alert">
<button aria-label="Close" class="clean-btn close" type="button">
<span aria-hidden="true">&times;</span>
</button>
This is a
<strong>secondary</strong>
alert. It's not too important, you may ignore it.
</div>
```

### Success

```html
<div class="alert alert--success" role="alert">
<button aria-label="Close" class="clean-btn close" type="button">
<span aria-hidden="true">&times;</span>
</button>
This is a
<strong>success</strong>
alert. Something good must have happened!
</div>
```

### Info

```html
<div class="alert alert--info" role="alert">
<button aria-label="Close" class="clean-btn close" type="button">
<span aria-hidden="true">&times;</span>
</button>
This is an
<strong>info</strong>
alert. For your information only.
</div>
```

### Warning

```html
<div class="alert alert--warning" role="alert">
<button aria-label="Close" class="clean-btn close" type="button">
<span aria-hidden="true">&times;</span>
</button>
This is a
<strong>warning</strong>
alert. Be warned, you should pay attention!
</div>
```

### Danger

```html
<div class="alert alert--danger" role="alert">
<button aria-label="Close" class="clean-btn close" type="button">
<span aria-hidden="true">&times;</span>
</button>
This is a
<strong>danger</strong>
alert. Something has gone wrong, please investigate!
</div>
```
105 changes: 105 additions & 0 deletions website/infima/components/avatar.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Avatar

## Various Orientations

### Horizontal

```html
<div class="avatar">
<a
class="avatar__photo-link avatar__photo avatar__photo--lg"
href="https://twitter.com/dan_abramov">
<img
alt="Dan Abramov Profile"
src="https://avatars1.githubusercontent.com/u/810438?s=460" />
</a>
<div class="avatar__intro">
<div class="avatar__name">Dan Abramov</div>
<small class="avatar__subtitle">
Working on @reactjs. Co-author of Redux and Create React App.
</small>
</div>
</div>
```

### Vertical

```html
<div class="avatar avatar--vertical">
<img
alt=""
class="avatar__photo avatar__photo--xl"
src="https://avatars1.githubusercontent.com/u/977348?s=460&v=4" />
Comment thread
slorber marked this conversation as resolved.
Resolved
<div class="avatar__intro">
<div class="avatar__name">Jordan Walke</div>
<small class="avatar__subtitle">
Maker of things: ReactJS. Working on:
<a href="https://twitter.com/reasonml">@reasonml</a>. At: Facebook
Engineering.
</small>
</div>
</div>
```

## Various Sizes

### Small

```html
<div class="avatar">
<img
alt=""
class="avatar__photo avatar__photo--sm"
src="https://avatars3.githubusercontent.com/u/13352?s=400&v=4" />
<div class="avatar__intro">
<div class="avatar__name">Christoph Pojer</div>
</div>
</div>
```

### Default

```html
<div class="avatar">
<img
alt=""
class="avatar__photo"
src="https://avatars1.githubusercontent.com/u/165856?s=460&v=4" />
<div class="avatar__intro">
<div class="avatar__name">Hector Ramos</div>
<small class="avatar__subtitle">React Native @facebook</small>
</div>
</div>
```

### Large

```html
<div class="avatar">
<img
alt=""
class="avatar__photo avatar__photo--lg"
src="https://avatars2.githubusercontent.com/u/197597?s=460" />
<div class="avatar__intro">
<div class="avatar__name">Christopher Chedeau</div>
<small class="avatar__subtitle">Frenchy Front End Engineer</small>
</div>
</div>
```

### Extra Large

```html
<div class="avatar">
<img
alt=""
class="avatar__photo avatar__photo--xl"
src="https://avatars0.githubusercontent.com/u/3757713?s=460&v=4" />
<div class="avatar__intro">
<div class="avatar__name">Joel Marcey</div>
<small class="avatar__subtitle">
Developer Advocate at Facebook, co-creator of Docusaurus
</small>
</div>
</div>
```
39 changes: 39 additions & 0 deletions website/infima/components/badge.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Badge

## Colors

### Primary

```html
<span class="badge badge--primary">Primary</span>
```

### Secondary

```html
<span class="badge badge--secondary">Secondary</span>
```

### Success

```html
<span class="badge badge--success">Success</span>
```

### Info

```html
<span class="badge badge--info">Info</span>
```

### Warning

```html
<span class="badge badge--warning">Warning</span>
```

### Danger

```html
<span class="badge badge--danger">Danger</span>
```
Loading
Loading