Socket
Book a DemoInstallSign in
Socket

cra-template-ts-wind

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-template-ts-wind

a minimal TypeScript template for Create React App with tailwind.

1.1.6
latest
npmnpm
Version published
Maintainers
1
Created
Source

Description

This project was bootstrapped with Create React App --template typescript. it has tailwindcss with few plugin and removes some boilerplate code.

Start

npx create-react-app my_path --template ts-wind
cd my_path
npm run start # yarn start

Tailwindcss

Tailwindcss is a utility first css framework that helps build and compose design in the HTML markup.

Tailwindcss plugin used

Available Scripts

All script available in create-react-app are available as well npm run start

Tips

If you are working with images, install the responsive images generator, Image Processing Pipeline and than: ipp -i your_image_path -o src/Asssets/images to automatically generate different optimized web images for different screen sizes:

import React, { Component } from 'react';

import splashMd from "./Asssets/images/splash-md.webp"
import splashSm from "./Asssets/images/splash-sm.webp"
import splashLg from "./Asssets/images/splash-lg.webp"
import splashXl from "./Asssets/images/splash-xl.webp"

class Splash extends Component
{
    render()
    {
        return (
            <div className='absolute z-n2 flex justify-center'>
                <img className={`min-w-screen min-h-screen object-cover `} src={splashMd} srcSet={ `${splashSm} 300w, ${splashMd} 768w, ${splashLg} 1280w, ${splashXl} 1400w`} alt='Splash' />
            </div>
        );
    }
}

Keywords

react

FAQs

Package last updated on 10 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.