diff --git a/package.json b/package.json index 847eef909..797435bd7 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,6 @@ "deepmerge": "^4.2.2", "detect-autofill": "^1.1.3", "perfect-scrollbar": "^1.5.5", - "tailwindcss": "3.2.4" + "tailwindcss": "3.3.0" } } diff --git a/site/content/docs/standard/getting-started/quick-start/index.html b/site/content/docs/standard/getting-started/quick-start/index.html index 50869b8e4..6a7fb6373 100644 --- a/site/content/docs/standard/getting-started/quick-start/index.html +++ b/site/content/docs/standard/getting-started/quick-start/index.html @@ -38,7 +38,7 @@

Tailwind Elements formats @@ -52,7 +52,7 @@

When to use ES or UMD format?

If your application:

-
    +
    1. is based on modules
    2. uses bundler functionality
    3. needs treeshaking
    4. @@ -96,7 +96,7 @@

      About the initTE method

      NPM @@ -140,7 +140,7 @@

      About the initTE method

      {{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
      -

      +

      3. Tailwind Elements is a plugin and should be included inside tailwind.config.js. It is also recommended to extend the content array with a js files pattern that loads dynamic @@ -160,7 +160,7 @@

      About the initTE method

      {{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
      -

      +

      4. Dynamic components will work after importing the package inside index.js:

      @@ -184,7 +184,7 @@

      About the initTE method

      MDB GO / CLI @@ -198,7 +198,7 @@

      About the initTE method

      -

      +

      1. To start using MDB GO / CLI install it with one command:

      @@ -207,14 +207,14 @@

      About the initTE method

      {{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
      -

      2. Log into the CLI using your MDB account:

      +

      2. Log into the CLI using your MDB account:

      {{< twsnippet/wrapper "terminal" "!bg-[#4A24AA] !text-white dark:!bg-violet-300 dark:!text-violet-900" "mobile" >}}{{< twsnippet/code active=true lang="Plaintext" >}} mdb login {{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
      -

      +

      3. Initialize a project and choose Tailwind Elements from the list:

      @@ -224,7 +224,7 @@

      About the initTE method

      {{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

+

4. Install the dependencies (inside the project directory):

@@ -233,14 +233,14 @@

About the initTE method

{{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

5. Run the app:

+

5. Run the app:

{{< twsnippet/wrapper "terminal" "!bg-[#BB2E3E] !text-white dark:!bg-rose-300 dark:!text-rose-900" "mobile" >}}{{< twsnippet/code active=true lang="Plaintext" >}} npm start {{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

6. Publish when you're ready:

+

6. Publish when you're ready:

{{< twsnippet/wrapper "terminal" "!bg-[#4A24AA] !text-white dark:!bg-violet-300 dark:!text-violet-900" "mobile" >}}{{< twsnippet/code active=true lang="Plaintext" >}} mdb publish @@ -252,7 +252,7 @@

About the initTE method

Vite @@ -330,7 +330,7 @@

About the initTE method

{{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

+

4. Add the necessary Tailwind directives to your style.css file to be able to use Tailwind classes on your website. Unless you changed it, style.css should be in the root directory of your app. You can @@ -357,7 +357,7 @@

About the initTE method

{{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

+

5. Link the css file inside the index.html.

@@ -370,7 +370,7 @@

About the initTE method

{{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

+

6. Tailwind should be connected properly to the vite app. If you type the code bellow, you will see the default vite index.html page (without any styles if you deleted them from style.css). @@ -383,7 +383,7 @@

About the initTE method

{{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

7. Install the tw-elements package.

+

7. Install the tw-elements package.

@@ -392,7 +392,7 @@

About the initTE method

{{< /twsnippet/code >}}{{< /twsnippet/wrapper >}}
-

+

8. Add js files patterns that loads dynamic component classes to the content array inside the tailwind.config.cjs. Extend the default tailwind classes by adding the Tailwind Elements plugin. @@ -414,7 +414,7 @@

About the initTE method

{{< /twsnippet/code >}}{{< /twsnippet/wrapper >}} -

+

9. Now you can start working on your app. Since the package.json created by vite has a type set to module, we are going to use the ES. Lets try to import some code and see if everything is working @@ -439,7 +439,7 @@

About the initTE method

data-te-carousel-init data-te-carousel-slide>