From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1695743743; bh=qc79fhk42XjekSyq9mAVcOm3n6htGFBNXpXEUJp9jUU=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=oUCqJlTPld/XAy0EP6HVtWgwQlM56veSMij/xIq4yHQHwk1o9Rap9evzOwPo/6VXX A1xWkFk858osHFKDrI7cAbu8m43F5S99h2+pRgoZYcicnHYfvlQri27wah3FE6QTwb TTlLoZsvRkHCzrajij3O22kHib/WSv0xBThQS9jWrYQ5e7iZyZN0ZmKqGHfpezGVK7 xOg7A6WxffQM7uOQnt/SkF377orqqvpViijs7/X6Eup2qPGKU+XK65OivSk5n+bSO1 plkEFMu+NiOYI0Ws1HT5I39lnTdb/gmpLe14gHzTd1X09GWW6z7qZ7DLVlCqAc2Tqb ZLpxgXvzO3XsQ== Received: from [192.168.1.5] (unknown [175.158.50.50]) by gnuweeb.org (Postfix) with ESMTPSA id 8BCF124B756; Tue, 26 Sep 2023 22:55:42 +0700 (WIB) Message-ID: <71837805-a4b6-9a47-4b8d-b49ae199355e@gnuweeb.org> Date: Tue, 26 Sep 2023 22:55:38 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v1 0/1] Add tailwind configuration To: Ammar Faizi Cc: Alviro Iskandar Setiawan , Irvan Malik Azantha , Memet Zx , GNU/Weeb Mailing List References: <20230926120027.516-1-kiizuha@gnuweeb.org> Content-Language: en-US From: Muhammad Rizki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 26/09/2023 19.15, Ammar Faizi wrote: > On Tue, Sep 26, 2023 at 07:00:26PM +0700, Muhammad Rizki wrote: >> Hai, this is just a small patch for tailwind config: >> - Add JS and CSS to the `tailwind.config.js` on content detection. > > I don't understand what the problem is. Please explain what goes wrong. > Also, add a "Fixes" tag in the patch, mention the offending commit. It seems Tailwind does not detect class name properly inside inline JavaScript that contains like `element.classList.add(..., getColor({first_name}))`, in dev environment, it is working properly in my device that user profile name and border color are not white colors. Maybe Irvan knows how to fix it? > >> Please test it first on your device and look for reply UI border color >> and user profile name text color, if it's not white then it works, >> thanks! > > Therefore, it doesn't work. After applying your patch and running "npm > run build" plus clear cache, I see white and blue on two different > messages. > > This is white: > > https://gist.githubusercontent.com/ammarfaizi2/7ba8aa2f542d260ed6863930b3b1b9d4/raw/a53751c4c0eda0455a2b66e8000e520fe8cfd9e1/Screenshot%2520from%25202023-09-26%252019-06-28.png > > This is blue: > > https://gist.githubusercontent.com/ammarfaizi2/7ba8aa2f542d260ed6863930b3b1b9d4/raw/a53751c4c0eda0455a2b66e8000e520fe8cfd9e1/Screenshot%2520from%25202023-09-26%252019-06-09.png > That's weird, I tried the similar commands on Windows: - npm run build:css - Get-Content .\index.html | ForEach-Object { $_ -replace 'dist', '.' } | Set-Content .\dist\index.html - robocopy static dist\static - npm run build:minify Then open the dist index.html file in the browser and it's working properly. https://i.ibb.co/GdqLj9y/image.png