Skip to content

Commit

Permalink
docs: Tailwind -> Tailwind CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Dec 25, 2023
1 parent abe5946 commit 6aa2c62
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![TWC — Supercharge React + Tailwind](.github/assets/banner.png "TWC — Supercharge React + Tailwind")
![TWC — Supercharge React + Tailwind CSS](.github/assets/banner.png "TWC — Supercharge React + Tailwind CSS")

<p align="center">
<br/>
<a href="https://react-twc.vercel.app">TWC</a> creates reusable React + Tailwind components in one line
<a href="https://react-twc.vercel.app">TWC</a> creates reusable React + Tailwind CSS components in one line
<br/><br/>
</p>

Expand Down
4 changes: 2 additions & 2 deletions website/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ export function Card(props: { children: React.ReactNode }) {
<div className="text">
<div className="text-center my-10 max-w-4xl mx-auto text-balance">
<h1 className="text-8xl mb-5 font-semibold font-accent text-transparent bg-clip-text bg-gradient-to-br from-blue-9 to-purple-11">
Supercharge React + Tailwind
Supercharge React + Tailwind CSS
</h1>
<p className="text-2xl text-low">
TWC is a lightweight library to create Tailwind Components in one
TWC is a lightweight library to create Tailwind CSS Components in one
line, write less code and build faster.
</p>
</div>
Expand Down
8 changes: 5 additions & 3 deletions website/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ export function Hero() {
return (
<div className="text">
<div className="text-center mt-10 mb-20 max-w-4xl mx-auto text-balance">
<h1 className="text-[3rem] leading-none md:text-8xl mb-5 font-semibold font-accent text-transparent bg-clip-text bg-gradient-to-br from-blue-9 to-purple-11">
Supercharge React + Tailwind
<h1 className="text-[2.3rem] leading-none md:text-7xl mb-5 font-semibold font-accent text-transparent bg-clip-text bg-gradient-to-br from-blue-9 to-purple-11">
Supercharge
<br />
React + Tailwind CSS
</h1>
<p className="text-lg md:text-2xl text-low">
TWC is a lightweight library to create Tailwind Components in one
TWC is a lightweight library to create Tailwind CSS Components in one
line, write less code and build faster.
</p>
<div className="mt-8 flex justify-center gap-4">
Expand Down
2 changes: 1 addition & 1 deletion website/pages/api/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default async function (req) {
letterSpacing: -1,
}}
>
Supercharge React + Tailwind
Supercharge React + Tailwind CSS
</p>
<h1
style={
Expand Down
2 changes: 1 addition & 1 deletion website/pages/docs/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Can I use it without Tailwind CSS?

Yes, even if `react-twc` has been created to solve Tailwind + React productivity, it is not linked to it. It creates class based components, so you can perfectly use it without Tailwind.
Yes, even if `react-twc` has been created to solve Tailwind CSS + React productivity, it is not linked to it. It creates class based components, so you can perfectly use it without Tailwind CSS.

## Does it supports props interpolations?

Expand Down
2 changes: 1 addition & 1 deletion website/pages/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm i react-twc

### Setup autocompletion in your editor

You can enable Tailwind autocompletion inside `twc` using the steps below:
You can enable Tailwind CSS autocompletion inside `twc` using the steps below:

<Tabs items={["Visual Studio Code", "Neovim", "WebStorm"]}>
<Tab>
Expand Down
6 changes: 3 additions & 3 deletions website/pages/docs/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# React Tailwind Components
# Introduction

Tailwind is very productive and really easy to use with React. You can easily style elements by specifying a `className` attribute.
Tailwind CSS is very productive and really easy to use with React. You can easily style elements by specifying a `className` attribute.

```tsx
<div className="rounded-lg border bg-slate-100 text-white shadow-sm" />
```

...but creating reusable React components with Tailwind is not trivial.
...but creating reusable React components with Tailwind CSS is not trivial.

```tsx
const Card = React.forwardRef<
Expand Down
2 changes: 1 addition & 1 deletion website/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Create reusable Tailwind + React components
title: Create reusable Tailwind CSS + React components
---

import Link from "next/link";
Expand Down
Binary file modified website/public/og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions website/theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ export default {
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="Create reusable React Tailwind components."
content="Create reusable React Tailwind CSS components."
/>
<meta
name="og:description"
content="Create reusable React Tailwind components."
content="Create reusable React Tailwind CSS components."
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content={socialCard} />
Expand Down

0 comments on commit 6aa2c62

Please sign in to comment.