-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
… fixup! fixup! fixup! fixup! Change documentation platform from Docz to Docoff
- Loading branch information
Showing
20 changed files
with
308 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ | |
<script crossorigin src="https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.dom.umd.min.js"></script> | ||
<script crossorigin src="https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.react-dom.umd.min.js"></script> | ||
<script src="/docs/_assets/generated/reactui.js" type="application/javascript"></script> | ||
<script src="/docs/_assets/js/ruiIcon.js" type="application/javascript"></script> | ||
<script src="/docs/_assets/js/ruiSwatch.js" type="application/javascript"></script> | ||
|
||
<!-- Then we load and init Docoff --> | ||
<script crossorigin src="https://unpkg.com/@react-ui-org/[email protected]/public/generated/bundle.js"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,110 @@ | ||
# Colors | ||
|
||
The color helpers allow coloring any text with built-in | ||
[component colors](/docs/foundation/colors#component-colors). On top of that, there | ||
is a muted variant for low-priority text. | ||
import { Playground } from 'docz' | ||
import { Placeholder } from '../_components/Placeholder/Placeholder' | ||
|
||
Helpers for text and background. | ||
|
||
## Text Colors | ||
|
||
The text color helpers allow coloring any text with predefined | ||
[text colors](/docs/foundation/colors#text-colors), | ||
[feedback colors](/docs/foundation/colors#feedback-colors), and | ||
[neutral colors](/docs/foundation/colors#neutral-colors). | ||
|
||
```docoff-react-preview | ||
<docoff-placeholder bordered> | ||
<code className="text-primary">.text-primary</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-primary-disabled">.text-primary-disabled</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-secondary">.text-secondary</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-secondary-disabled">.text-secondary-disabled</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-success">.text-success</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-warning">.text-warning</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-danger">.text-danger</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-help">.text-help</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-info">.text-info</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-note">.text-note</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered dark> | ||
<code className="text-light">.text-light</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-dark">.text-dark</code> | ||
</docoff-placeholder> | ||
``` | ||
|
||
## Background Colors | ||
|
||
The background color helpers allow coloring any element with predefined | ||
[background colors](/docs/foundation/colors#background-colors) (with an exception to | ||
background colors for interactive areas that are intended to be used only in | ||
CSS). | ||
|
||
```docoff-react-preview | ||
<docoff-placeholder bordered> | ||
<code className="text-primary">.text-primary</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-secondary">.text-secondary</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-success">.text-success</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-warning">.text-warning</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-danger">.text-danger</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-help">.text-help</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-info">.text-info</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-note">.text-note</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered dark> | ||
<code className="text-light">.text-light</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-dark">.text-dark</code> | ||
</docoff-placeholder> | ||
<docoff-placeholder bordered> | ||
<code className="text-muted">.text-muted</code> | ||
</docoff-placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-base">.bg-base</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-layer-1">.bg-layer-1</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-layer-2">.bg-layer-2</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-basic">.bg-basic</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-disabled">.bg-disabled</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-primary">.bg-primary</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-secondary">.bg-secondary</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-selected">.bg-selected</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-success">.bg-success</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-warning">.bg-warning</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-danger">.bg-danger</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-help">.bg-help</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-info">.bg-info</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-note">.bg-note</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-light">.bg-light</code> | ||
</Placeholder> | ||
<Placeholder bordered> | ||
<code className="bg-dark text-light">.bg-dark</code> | ||
</Placeholder> | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.