Share to: share facebook share twitter share wa share telegram print page

Tailwind CSS

Tailwind CSS
Tipeperangkat lunak bebas, Framework CSS dan Pustaka JavaScript Edit nilai pada Wikidata
Versi stabil
3.4.17 (17 Desember 2024) Edit nilai pada Wikidata
LisensiMIT License [1]
Bahasa
Daftar bahasa

English

Karakteristik teknis
Sistem operasiLintas platform Edit nilai pada Wikidata
Bahasa pemrogramanCascading Style Sheets Edit nilai pada Wikidata
Sumber kode
Informasi tambahan
Situs webtailwindcss.com
X: tailwindcss Modifica els identificadors a Wikidata
Sunting di Wikidata Sunting di Wikidata • Sunting kotak info • L • B
Info templat
Bantuan penggunaan templat ini

Tailwind CSS adalah kerangka kerja (framework) CSS yang di dalamnya terdapat sekumpulan utility classes untuk membangun antarmuka kustom dengan cepat.[4] Tailwind CSS berbeda dengan kerangka kerja CSS seperti Bootstrap, Bulma, atau Foundation, karena Tailwind CSS bukan sebuah UI Framework.[5] Tailwind CSS tidak memiliki tema default maupun komponen UI bawaan. Tailwind CSS dirancang agar dapat digunakan oleh pengguna sesuai dengan desain kustom yang mereka inginkan.[6]

Sejarah

Tailwind CSS dibuat oleh Adam Wathan—sekarang menjabat sebagai CEO Tailwind Labs—dan rekannya yang bernama Steve Schoger.[7]

Versi alpha Tailwind CSS resmi dirilis pada tanggal 1 November 2017 dan hingga saat ini Tailwind CSS sudah mencapai versi 3.1.8.[8]

Perbedaan dengan kerangka kerja lain

Situs web resmi Tailwind CSS menyatakan bahwa dengan menggunakan Tailwind CSS pengguna dapat mengembangkan sebuah web modern tanpa meninggalkan file HTML ketika proses pengembangan.[4]

" Rapidly build modern websites without ever leaving your HTML "

Selain itu, perbedaan lain Tailwind CSS dengan kerangka kerja (framework) lain seperti Bootstrap yaitu Tailwind CSS merupakan Utility-First Framework, sedangkan Bootstrap adalah UI Framework.

Utilities Tailwind CSS

Utility adalah kelas HTML sederhana yang biasanya berada dalam satu scope properti CSS, seperti border-style atau background-color.[9] Berikut adalah contoh utility classes yang ada di Tailwind CSS:

Contoh: yellow notice
Hasil FExample Tailwind yellow warning.png
Kode
<div class="m-4 p-4 bg-yellow-200 font-bold rounded-lg">
  <p>Please be careful when feeding the birds.</p>
</div>
Classes Tailwind Vanilla CSS atau CSS polos
m-4 margin: 1rem;
p-4 padding: 1rem;
bg-yellow-200 background-color: rgba(229, 231, 235, 1);
font-bold font-weight: 700;
rounded-lg border-radius: 0.5rem;

Jenis-jenis

Ada banyak jenis utility class di Tailwind CSS yang memungkinkan pengguna untuk mengontrol dan melakukan kustom properti CSS sesuai dengan keinginannya, seperti warna font, ukuran font, jenis font, padding, margin, display, dan lain sebagainya.[10]

Berikut adalah beberapa daftar utilities yang terdapat pada Tailwind CSS:

  • Preflight
  • Layout
  • Tables
  • Typography
  • Effect & filters
  • Flexbox & grid
  • Spacing & sizing
  • Background & border
  • Transition, transformation & animation
  • dan lain sebagainya

Fitur-fitur

Adapun beberapa fitur-fitur unggulan yang terdapat pada Tailwind CSS adalah sebagai berikut :[11]

  • Utility-first concept
  • Interactivity
  • Responsive design
  • Dark mode
  • Reusability
  • Custom styles
  • Functions & directives

Penggunaan Tailwind CSS

Ada beberapa cara penggunaan (instalasi) Tailwind CSS berdasarkan situs web resmi Tailwind CSS. Di antaranya yaitu:[12]

  • Tailwind CLI
  • PostCSS
  • Play CDN

Contoh kode

Berikut adalah salah satu contoh penulisan kode Tailwind CSS apabila dibandingkan dengan Bootstrap dan vanilla CSS (CSS polos) :

Tailwind CSS

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Page Title</title>
  <!-- Tailwind CSS CDN -->
  <script src="https://cdn.tailwindcss.com"></script>
</head>

<body>
  <button type="submit" class="bg-blue-600 text-white px-3 py-2 rounded hover:bg-blue-700">Submit</button>
</body>

</html>

Bootstrap 5

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Page Title</title>
  <!-- Bootstrap5 CDN links -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
</head>

<body>
  <button type="submit" class="btn btn-primary">Submit</button>
</body>

</html>

Vanilla CSS

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Page Title</title>
  <!-- di bawah adalah kode CSS -->
  <style>
    .button {
      padding: 6px 12px;
      border-radius: 4px;
      background-color: #0D6eFD;
      color: white;
      border: 0;
      transition: 0.2s;
    }
  </style>
  <!-- di atas adalah kode CSS -->
</head>

<body>
  <button type="submit" class="button">Submit</button>
</body>

</html>

Versi

Berikut adalah beberapa versi Tailwind CSS hingga saat ini:

Lihat pula

Referensi

  1. ^ "Github: tailwindlabs/tailwindcss, LICENSE". 
  2. ^ "Tailwind Labs". 
  3. ^ "Release 3.4.17". 17 Desember 2024. Diakses tanggal 31 Desember 2024. 
  4. ^ a b "Tailwind CSS - Rapidly build modern websites without ever leaving your HTML". tailwindcss.com (dalam bahasa Inggris). Diakses tanggal 2022-10-19. 
  5. ^ "Tailwind CSS - A Utility-First CSS Framework for Rapid UI Development". tailwindcss-v0.netlify.app (dalam bahasa Inggris). Diakses tanggal 2022-10-19. 
  6. ^ "Tailwind CSS - A Utility-First CSS Framework for Rapidly Building Custom Designs". tailwindcss.com (dalam bahasa Inggris). Diakses tanggal 2022-10-19. 
  7. ^ "The Story of Tailwind CSS feat. Adam Wathan". The OfferZen Community Blog. Diakses tanggal 2022-10-19. 
  8. ^ "Release Notes - Tailwind CSS". tailwindcss.com (dalam bahasa Inggris). Diarsipkan dari versi asli tanggal 2020-11-06. Diakses tanggal 2022-10-19. 
  9. ^ "Utilities". U.S. Web Design System (USWDS) (dalam bahasa Inggris). 2022-10-11. Diakses tanggal 2022-10-19. 
  10. ^ "Utility-First Fundamentals - Tailwind CSS". tailwindcss.com (dalam bahasa Inggris). Diakses tanggal 2022-10-19. 
  11. ^ "Installation: Tailwind CLI - Tailwind CSS". tailwindcss.com (dalam bahasa Inggris). Diakses tanggal 2022-10-19. 
  12. ^ "Installation: Tailwind CLI - Tailwind CSS". tailwindcss.com (dalam bahasa Inggris). Diakses tanggal 2022-10-19. 

Pranala luar

Read other articles:

2017 single by Yxng BaneRihannaSingle by Yxng BaneReleased14 August 2017GenreR&B, afroswingLength3:27LabelDisturbing LondonSongwriter(s) Gordon Egwu Guystone Menga Uzezi Oniko[1] Producer(s)Legendury Beatz[2]Yxng Bane singles chronology Diamonds (2017) Rihanna (2017) No Way (2017) Rihanna is a song by British rapper Yxng Bane. It was released as a single through Disturbing London on 14 August 2017,[3] peaking at number 40 on the UK chart.[4] The song was w…

Experimental drug being tested for use in pharmacological antiarrhythmic therapy This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article is written like a personal reflection, personal essay, or argumentative essay that states a Wikipedia editor's personal feelings or presents an original argument about a topic. Please help improve it by rewriting it in an encyclopedic style. (March 201…

بي إم-30 سميرتش النوع قاذفة صواريخ متعددة بلد الأصل  الاتحاد السوفيتي فترة الاستخدام 1989[1] - إلى الآن الحروب الحرب الشيشانية الثانية،  والحرب الأهلية السورية،  والحرب في دونباس،  وحرب مرتفعات قره باغ الثانية،  والغزو الروسي لأوكرانيا 2022  المواصفات الوزن 43.7 …

Norwegian guitarist (born 1963) Ronni Le TekrøLe Tekrø performing in 2009Background informationBirth nameRolf Ågrim TekrøBorn (1963-10-05) 5 October 1963 (age 60)Oslo, NorwayGenresHard rockheavy metalglam metalpop rockOccupation(s)MusiciansongwriterInstrument(s)GuitarvocalsYears active1977–presentMember ofTNTFormerly ofRoquefireVagabondWebsiteronniletekro.comMusical artist Ronni Le Tekrø (born Rolf Ågrim Tekrø, 5 October 1963) is a Norwegian musician best known as the guitarist and…

Павлиний фазан Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:ЗавропсидыКласс:ПтицыП…

J-VillageLocalizzazioneStato Italia RegionePiemonte LocalitàTorino IndirizzoVia Druento 175, I-10151 Torino Coordinate45°06′41.83″N 7°37′52.55″E / 45.111618°N 7.631265°E45.111618; 7.631265Coordinate: 45°06′41.83″N 7°37′52.55″E / 45.111618°N 7.631265°E45.111618; 7.631265 Informazioni generaliCondizioniin costruzione Costruzione2015-in corso Usocivile-sportivo multifunzionale Area calpestabile175475 m²[1] RealizzazioneCost…

Синелобый амазон Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:ЗавропсидыКласс:Птиц…

Association football club in England Football clubCrewe AlexandraFull nameCrewe Alexandra Football ClubNickname(s)The Railwaymen, The AlexFounded1877; 147 years ago (1877) (as Crewe)GroundGresty RoadCapacity10,153ChairmanCharles Grant[1][2]ManagerLee BellLeagueEFL League Two2023–24EFL League Two, 6th of 24WebsiteClub website Home colours Away colours Current season Crewe Alexandra Football Club is a professional association football club based in the town of C…

This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Crossed-field amplifier – news · newspapers · books · scholar · JSTOR (October 2012) A crossed-field amplifier (CFA) is a specialized vacuum tube, first introduced in the mid-1950s and frequently used as a microwave amplifier in very-high-power transmitt…

Place in Western Cape, South AfricaMowbrayMostert's Mill, February 2008Street map of MowbrayMowbrayShow map of Western CapeMowbrayShow map of South AfricaCoordinates: 33°56′46″S 18°28′34″E / 33.94611°S 18.47611°E / -33.94611; 18.47611CountrySouth AfricaProvinceWestern CapeMunicipalityCity of Cape TownArea[1] • Total2.76 km2 (1.07 sq mi)Population (2011)[1] • Total4,726 • Density1,700/km2 (…

Commodity exchange located in Mumbai, India Multi Commodity Exchange of India LtdCompany typePublicTraded asBSE: 534091NSE: MCXISININE745G01035IndustryCommodity ExchangeFoundedNovember 10, 2003; 20 years ago (2003-11-10) (commenced operation)HeadquartersMumbai, Maharashtra, IndiaKey peopleP S Reddy (MD & CEO)ProductsCommodity derivativesWebsitewww.mcxindia.com Multi Commodity Exchange of India Ltd (MCX) is a commodity exchange based in India. It was established in…

Wiki Science CompetitionOfficial logo of Wiki Science CompetitionGenreScientific photography, Nature photography, Scientific illustrationBegins1-15 November [1]Ends1-15 December [2]Location(s)WorldwideYears active6Inaugurated2017Most recent2023ParticipantsPhotographers, researchers, studentsOrganised byWikipedia community membersWebsitewikisciencecompetition.org The Wiki Science Competition (WSC) is a global science photography competition for students, researchers, and others to…

American film and television actor (1920–1989) Richard ShannonShannon in The Deputy, 1961BornRichard Esberry Mangan(1920-07-25)July 25, 1920San Francisco, California, U.S.DiedDecember 2, 1989(1989-12-02) (aged 69)Astoria, Oregon, U.S.Occupation(s)Film and television actorYears active1953–1963 Richard Esberry Mangan (July 25, 1920 – December 2, 1989) was an American film and television actor.[1][2] He appeared in over 70 films and television programs, and was known…

American actor and director (1907–1997) This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help improve this article by introducing more precise citations. (June 2021) (Learn how and when to remove this message) Thomas CarrCarr in 1964BornThomas Howard Carr(1907-07-04)July 4, 1907Philadelphia, Pennsylvania, U.S.DiedApril 23, 1997(1997-04-23) (aged 89)Ventura, California, U.S.Other na…

Численность населения республики по данным Росстата составляет 4 003 016[1] чел. (2024). Татарстан занимает 8-е место по численности населения среди субъектов Российской Федерации[2]. Плотность населения — 59,00 чел./км² (2024). Городское население — 76,72[3] % (2022)…

Pour les articles homonymes, voir Globe. The Globe and Mail Pays Canada Langue Anglais Périodicité Quotidienne Format Grand format Prix au numéro 4,00 $ CA (la semaine) 7,00 $ CA (le samedi) Fondateur George Brown Date de fondation 1844 Ville d’édition Toronto Propriétaire The Globe and Mail Inc.Woodbridge (100 %) Rédacteur en chef Edward Greenspon ISSN 0319-0714 Site web www.theglobeandmail.com modifier  The Globe and Mail est un journal canadien quotidien de langue …

Questa voce sull'argomento squadre ciclistiche è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Solo-SuperiaCiclismo Rik Van Looy in maglia Solo-Superia (1964)InformazioniNazione Belgio Debutto1961 Scioglimento1966 SpecialitàStrada, Pista StatusProfessionisti Divisa Manuale La Solo-Superia è stata una squadra maschile belga di ciclismo su strada, attiva tra i professionisti dal 1961 al 1966. La squadra ebbe tra le sue file i campioni belgi Rik Van S…

Kungkuni Baccaurea tetrandra Herbarium specimenStatus konservasiRisiko rendahIUCN135804457 TaksonomiDivisiTracheophytaSubdivisiSpermatophytesKladAngiospermaeKladmesangiospermsKladeudicotsKladcore eudicotsKladSuperrosidaeKladrosidsKladfabidsOrdoMalpighialesFamiliPhyllanthaceaeTribusAntidesmeaeGenusBaccaureaSpesiesBaccaurea tetrandra Müll.Arg., 1866 Tata namaSinonim takson Adenocrepis tetrandra Baill. Baccaurea brevipedicellata Pax & K.Hoffm. Baccaurea stipulata J.J.Sm. Baccaurea terminaliifo…

American college football season 2010 San Jose State Spartans footballConferenceWestern Athletic ConferenceRecord1–12 (0–8 WAC)Head coachMike MacIntyre (1st season)Defensive coordinatorKent Baer (1st season)Home stadiumSpartan StadiumSeasons← 20092011 → 2010 Western Athletic Conference football standings vte Conf Overall Team   W   L     W   L   No. 11 Nevada +   7 – 1     13 – 1   No. 9 Boise …

This article may be a rough translation from German. It may have been generated, in whole or in part, by a computer or by a translator without dual proficiency. Please help to enhance the translation. The original article is under Deutsch in the languages list. If you have just labeled this article as needing attention, please add{{subst:Needtrans|pg=Urgesellschaft |language=de |comments= }} ~~~~to the bottom of the WP:PNTCU section on Wikipedia:…

Kembali kehalaman sebelumnya