From 73c24275c0585df63c31caa68497a0609718bda1 Mon Sep 17 00:00:00 2001 From: Bartosz Cylwik Date: Wed, 5 Jul 2023 15:07:21 +0200 Subject: [PATCH 1/3] Update prism darkmode design --- .../standard/integrations/next/index.html | 8 +- .../standard/integrations/react/index.html | 4 +- .../standard/integrations/remix/index.html | 6 +- .../standard/integrations/solid/index.html | 4 +- .../standard/integrations/svelte/index.html | 4 +- site/layouts/shortcodes/twsnippet/code.html | 2 +- site/static/css/new-prism.css | 17 +- site/static/js/new-prism.js | 191 ++++++++++++++++++ 8 files changed, 214 insertions(+), 22 deletions(-) diff --git a/site/content/docs/standard/integrations/next/index.html b/site/content/docs/standard/integrations/next/index.html index 74ce0c0e3..82e4aa317 100644 --- a/site/content/docs/standard/integrations/next/index.html +++ b/site/content/docs/standard/integrations/next/index.html @@ -166,7 +166,7 @@

Step 4

{{< twsnippet/wrapper "_app.js" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import "@/styles/globals.css"; import { Roboto } from "next/font/google"; @@ -222,7 +222,7 @@

Step 7

{{< twsnippet/wrapper "MyDatepicker.js" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { Datepicker, Input, initTE } from "tw-elements"; import { useEffect } from "react"; @@ -265,7 +265,7 @@

Step 8

{{< twsnippet/wrapper "index.js" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import dynamic from "next/dynamic"; const DynamicDatepicker = dynamic(() => import("./MyDatepicker"), { ssr: false }); @@ -310,7 +310,7 @@

Step 1

{{< twsnippet/wrapper "MyDatepicker.js" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { Datepicker, Input } from "tw-elements"; import { useEffect } from "react"; diff --git a/site/content/docs/standard/integrations/react/index.html b/site/content/docs/standard/integrations/react/index.html index 031f23138..c11b1b0af 100644 --- a/site/content/docs/standard/integrations/react/index.html +++ b/site/content/docs/standard/integrations/react/index.html @@ -557,7 +557,7 @@

Step 6

{{< twsnippet/wrapper "App.jsx" "" "mobile">}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import React, { useEffect } from "react"; import { Datepicker, Input, initTE } from "tw-elements"; @@ -614,7 +614,7 @@

Step 1

{{< twsnippet/wrapper "App.jsx" "" "mobile">}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { useEffect } from "react"; import { Datepicker, Input } from "tw-elements"; diff --git a/site/content/docs/standard/integrations/remix/index.html b/site/content/docs/standard/integrations/remix/index.html index bf656fa29..9109e05b2 100644 --- a/site/content/docs/standard/integrations/remix/index.html +++ b/site/content/docs/standard/integrations/remix/index.html @@ -217,7 +217,7 @@

Step 6

{{< twsnippet/wrapper "MyDatepicker.client.jsx" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { useEffect } from "react"; import { Datepicker, Input, initTE } from "tw-elements"; @@ -267,7 +267,7 @@

Step 8

{{< twsnippet/wrapper "root.jsx" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { ClientOnly } from "remix-utils"; import MyDatepicker from "./components/MyDatepicker.client"; @@ -309,7 +309,7 @@

Step 1

{{< twsnippet/wrapper "MyDatepicker.client.jsx" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { useEffect } from "react"; import { Datepicker, Input } from "tw-elements"; diff --git a/site/content/docs/standard/integrations/solid/index.html b/site/content/docs/standard/integrations/solid/index.html index f69528875..d286d5040 100644 --- a/site/content/docs/standard/integrations/solid/index.html +++ b/site/content/docs/standard/integrations/solid/index.html @@ -197,7 +197,7 @@

Step 6

{{< twsnippet/wrapper "App.jsx" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { onMount } from "solid-js"; import { Datepicker, Input, initTE } from "tw-elements"; @@ -259,7 +259,7 @@

Step 1

{{< twsnippet/wrapper "App.jsx" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="jsx" >}} import { onMount } from "solid-js"; import { Datepicker, Input } from "tw-elements"; diff --git a/site/content/docs/standard/integrations/svelte/index.html b/site/content/docs/standard/integrations/svelte/index.html index 588cb6c36..ca2d0d14e 100644 --- a/site/content/docs/standard/integrations/svelte/index.html +++ b/site/content/docs/standard/integrations/svelte/index.html @@ -249,7 +249,7 @@

Step 8

{{< twsnippet/wrapper "+page.svelte" "" "mobile" >}} - {{< twsnippet/code active=true lang="JavaScript" >}} + {{< twsnippet/code active=true lang="html" >}}